Skip to content

Commit 712d48a

Browse files
committed
deploy: 606b7d0
1 parent 04148c1 commit 712d48a

File tree

109 files changed

+1432
-496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1432
-496
lines changed

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ window.AppConfig = {
2626
"app_notification_url": "assets/notifications/dev/",
2727
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2828
"linting.enabled_by_default": true,
29-
"build_timestamp": "2025-01-16T06:43:14.251Z",
29+
"build_timestamp": "2025-01-16T10:18:10.391Z",
3030
"googleAnalyticsID": "G-P4HJFPDB76",
3131
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3232
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -38,7 +38,7 @@ window.AppConfig = {
3838
"bugsnagEnv": "development"
3939
},
4040
"name": "Phoenix Code",
41-
"version": "4.0.0-20815",
41+
"version": "4.0.0-20816",
4242
"apiVersion": "4.0.0",
4343
"homepage": "https://core.ai",
4444
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

brackets-min.js

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157239,6 +157239,7 @@ define("utils/Metrics", function (require, exports, module) {
157239157239
* ### Properties
157240157240
* `PLATFORM`, `PROJECT`, `THEMES`, `EXTENSIONS`, `EXTENSIONS`, `UI`, `UI_DIALOG`, `UI_BOTTOM_PANEL`,
157241157241
* `UI_SIDE_PANEL`, `LIVE_PREVIEW`, `CODE_HINTS`, `EDITOR`, `SEARCH`, `SHARING`, `PERFORMANCE`, `NEW_PROJECT`
157242+
* `ERROR`, `USER`, `NODEJS`, `LINT`, `GIT`
157242157243
*
157243157244
* @typedef EVENT_TYPE
157244157245
* @type {Object}
@@ -157268,7 +157269,8 @@ define("utils/Metrics", function (require, exports, module) {
157268157269
ERROR: "error",
157269157270
USER: "user",
157270157271
NODEJS: "node",
157271-
LINT: "lint"
157272+
LINT: "lint",
157273+
GIT: "git"
157272157274
};
157273157275

157274157276
/**
@@ -157578,6 +157580,33 @@ define("utils/Metrics", function (require, exports, module) {
157578157580
valueEvent(EVENT_TYPE.PERFORMANCE, "ms", action, Number(durationMs));
157579157581
}
157580157582

157583+
/**
157584+
* Get the range name for a given number.
157585+
*
157586+
* The function returns the first range that the number fits into, based on predefined ranges:
157587+
* 0, 10, 25, 50, 100, 250, 500, 1000, 5000, 10000, and "10000+" for numbers exceeding 10000.
157588+
*
157589+
* @param {number} number - The number to determine the range for.
157590+
* @returns {string} The range name that the number belongs to.
157591+
*/
157592+
function getRangeName(number) {
157593+
// Define the ranges
157594+
const ranges = [0, 5, 10, 25, 50, 100, 250, 500, 1000, 5000, 10000];
157595+
157596+
// Iterate through the ranges and return the first range that is greater than or equal to the number
157597+
// small array, linear scan is most efficient than binary search in most cases comparing the overheads and
157598+
// maintainability
157599+
for (let i = 0; i < ranges.length; i++) {
157600+
if (number <= ranges[i]) {
157601+
return ""+ranges[i];
157602+
}
157603+
}
157604+
157605+
// If the number exceeds the largest range, return "10000+"
157606+
return "10000+";
157607+
}
157608+
157609+
157581157610
// Define public API
157582157611
exports.init = init;
157583157612
exports.setDisabled = setDisabled;
@@ -157588,6 +157617,7 @@ define("utils/Metrics", function (require, exports, module) {
157588157617
exports.valueEvent = valueEvent;
157589157618
exports.logPerformanceTime = logPerformanceTime;
157590157619
exports.flushMetrics = flushMetrics;
157620+
exports.getRangeName = getRangeName;
157591157621
exports.EVENT_TYPE = EVENT_TYPE;
157592157622
exports.AUDIT_TYPE_COUNT = AUDIT_TYPE_COUNT;
157593157623
exports.AUDIT_TYPE_VALUE = AUDIT_TYPE_VALUE;

cacheManifest.json

Lines changed: 25 additions & 25 deletions
Large diffs are not rendered by default.

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"app_notification_url": "assets/notifications/dev/",
2626
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2727
"linting.enabled_by_default": true,
28-
"build_timestamp": "2025-01-16T06:43:14.251Z",
28+
"build_timestamp": "2025-01-16T10:18:10.391Z",
2929
"googleAnalyticsID": "G-P4HJFPDB76",
3030
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3131
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -37,7 +37,7 @@
3737
"bugsnagEnv": "development"
3838
},
3939
"name": "Phoenix Code",
40-
"version": "4.0.0-20815",
40+
"version": "4.0.0-20816",
4141
"apiVersion": "4.0.0",
4242
"homepage": "https://core.ai",
4343
"issues": {

0 commit comments

Comments
 (0)