Skip to content

Commit 24a7362

Browse files
committed
deploy: 606b7d0
1 parent 1cbc6a1 commit 24a7362

Some content is hidden

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

61 files changed

+504
-72
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": "2024-11-21T09:33:24.395Z",
29+
"build_timestamp": "2024-11-21T11:08:15.927Z",
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": "3.10.0-20667",
41+
"version": "3.10.0-20670",
4242
"apiVersion": "3.10.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: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29131,6 +29131,7 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2913129131
Strings = require("strings"),
2913229132
StringUtils = require("utils/StringUtils"),
2913329133
ThemeManager = require("view/ThemeManager"),
29134+
TaskManager = require("features/TaskManager"),
2913429135
Metrics = require("utils/Metrics");
2913529136

2913629137
const EXTENSION_REGISTRY_LOCAL_STORAGE_KEY = Phoenix.isTestWindow ?
@@ -29420,11 +29421,22 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2942029421
return filteredRegistry;
2942129422
}
2942229423

29424+
function _getTaskManager() {
29425+
if(Phoenix.isTestWindow){
29426+
return {
29427+
close: ()=>{}
29428+
};
29429+
}
29430+
return TaskManager.addNewTask(Strings.EXTENSIONS_REGISTRY_TASK_TITLE,
29431+
Strings.EXTENSIONS_REGISTRY_TASK_MESSAGE,
29432+
`<i class="fa-solid fa-list"></i>`);
29433+
}
29434+
2942329435
/**
2942429436
* Downloads the registry of Brackets extensions and stores the information in our
2942529437
* extension info.
2942629438
*
29427-
* @param {boolean} force - true to fetch registry from server fresh every time
29439+
* @param {boolean} [force] - true to fetch registry from server fresh every time
2942829440
* @return {$.Promise} a promise that's resolved with the registry JSON data
2942929441
* or rejected if the server can't be reached.
2943029442
*/
@@ -29437,6 +29449,7 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2943729449

2943829450
function _updateRegistry(newVersion) {
2943929451
console.log("downloading extension registry: ", newVersion, brackets.config.extension_registry);
29452+
const downloadTask = _getTaskManager();
2944029453
$.ajax({
2944129454
url: brackets.config.extension_registry,
2944229455
dataType: "json",
@@ -29449,12 +29462,15 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2944929462
if(!pendingDownloadRegistry.alreadyResolvedFromCache){
2945029463
_populateExtensions(registry);
2945129464
pendingDownloadRegistry.resolve();
29465+
pendingDownloadRegistry.alreadyResolvedFromCache = true;
2945229466
}
2945329467
}).finally(()=>{
2945429468
pendingDownloadRegistry = null;
29469+
downloadTask.close();
2945529470
});
2945629471
})
2945729472
.fail(function (err) {
29473+
downloadTask.close();
2945829474
console.error("error Fetching Extension Registry", err);
2945929475
if(!pendingDownloadRegistry.alreadyResolvedFromCache){
2946029476
pendingDownloadRegistry.reject();
@@ -29468,11 +29484,31 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2946829484
return pendingDownloadRegistry.promise();
2946929485
}
2947029486

29487+
async function _getLocalRegistry() {
29488+
// the extension registry is like 1.5MB. A local copy is packaged in the src/extensions/registry/ folder
29489+
// so that on first launch, the user can see the extension manager instantly(though outdated).
29490+
// The local registry is created at build time and will get outdated if the user uses an old installer.
29491+
// but it will get updated when the user clicks on extension manager.
29492+
try {
29493+
const response = await fetch("extensions/registry/registry.json");
29494+
if (response.ok) {
29495+
return await response.json();
29496+
} else {
29497+
console.error(`Failed to fetch local registry: ${response.status} ${response.statusText}`);
29498+
return null;
29499+
}
29500+
} catch (error) {
29501+
console.error(`Error fetching local registry: ${error.message}`);
29502+
return null;
29503+
}
29504+
}
29505+
2947129506
_getCachedRegistry() // never rejects
2947229507
.then(registryJson => {
2947329508
if(registryJson) {
2947429509
// we always immediately but after the promise chain is setup after function return (some bug sigh)
2947529510
// resolve for ui responsiveness and then check for updates.
29511+
console.log("Using cached extension registry");
2947629512
setTimeout(()=>{
2947729513
Metrics.countEvent(Metrics.EVENT_TYPE.EXTENSIONS, "registry", "cachedUse");
2947829514
let registry = JSON.parse(registryJson);
@@ -29481,6 +29517,19 @@ define("extensibility/ExtensionManager", function (require, exports, module) {
2948129517
pendingDownloadRegistry.resolve();
2948229518
}, 0);
2948329519
pendingDownloadRegistry.alreadyResolvedFromCache = true;
29520+
} else {
29521+
_getLocalRegistry().then(localRegistry => {
29522+
if(!localRegistry ||
29523+
!pendingDownloadRegistry || pendingDownloadRegistry.alreadyResolvedFromCache) {
29524+
return;
29525+
}
29526+
console.log("Using outdated local extension registry as no cached registry found.");
29527+
Metrics.countEvent(Metrics.EVENT_TYPE.EXTENSIONS, "registry", "outdatedUse");
29528+
localRegistry = _filterIncompatibleEntries(localRegistry);
29529+
_populateExtensions(localRegistry);
29530+
pendingDownloadRegistry.resolve();
29531+
pendingDownloadRegistry.alreadyResolvedFromCache = true;
29532+
});
2948429533
}
2948529534
// check for latest updates even if we have cache
2948629535
_shouldUpdateExtensionRegistry()
@@ -91903,6 +91952,8 @@ define("nls/root/strings", {
9190391952
"EXTENSIONS_UPDATES_TITLE": "Updates",
9190491953
"EXTENSIONS_LAST_UPDATED": "Last Updated",
9190591954
"EXTENSIONS_DOWNLOADS": "Downloads",
91955+
"EXTENSIONS_REGISTRY_TASK_TITLE": "Updating Extension List",
91956+
"EXTENSIONS_REGISTRY_TASK_MESSAGE": "Downloading\u2026",
9190691957

9190791958
"INLINE_EDITOR_NO_MATCHES": "No matches available.",
9190891959
"INLINE_EDITOR_HIDDEN_MATCHES": "All matches are collapsed. Expand the files listed at right to view matches.",

cacheManifest.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "00d9eb00ca76e34ffb068337686ec03700430140982660e94d9a98ea6c2d3aca",
3-
"assets/default-project/en.zip": "a70dc3186dc85fd5cce8915a94153411f560032353cb4d2e4de55ae8f455a4c4",
2+
"appConfig.js": "9c10015349cda8d3458f0ba8e91aad53219d3215d1fa86f40b816fd9ead11318",
3+
"assets/default-project/en.zip": "94ee818eef196ce91d8ce202182111ab71bc65ce8c69ca285fef637dc060830d",
44
"assets/default-project/en/images/cloud1.svg": "527399dadfa3357c3ee1a63d6c1c7dda81ecebb832f7383db26f1aaeaf722a8d",
55
"assets/default-project/en/images/cloud2.svg": "8127c63c0987bc674e2d25f7d24ead017853326c1e43d07706fec46091904418",
66
"assets/default-project/en/images/cloud3.svg": "15de53aa41dea3b0f685292814563f97213a9736c3cec2f8e17b5d9d45b3ae3d",
@@ -125,7 +125,7 @@
125125
"assets/pwa/32x32.png": "4f8f75bfcdb6efbbed1732f49edab4e292274cdeb1841e285ccc8194f4c9d8ac",
126126
"assets/pwa/phoenix.png": "d292bf76d6d61fdece2f97fb4cd71b8b0060d1058e9c1d02c94bfb20da8b7f0d",
127127
"assets/pwa/Square284x284Logo.png": "9887c2967039b4fae1214817925f1fb4f9227cba12d37612457c1c8ee1110c67",
128-
"assets/sample-projects/bootstrap-blog.zip": "9dcfe28dd042b834e5e84b982881c466dd59ddf3ed3c39f80addfae105634067",
128+
"assets/sample-projects/bootstrap-blog.zip": "48426b48385390cb5b57414b08b29db152412ebeec419f0702143d5401805979",
129129
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
130130
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
131131
"assets/sample-projects/bootstrap-blog/assets/dist/css/bootstrap.min.css": "fb1763b59f9f5764294b5af9fa5250835ae608282fe6f2f2213a5952aacf1fbf",
@@ -135,7 +135,7 @@
135135
"assets/sample-projects/bootstrap-blog/blog.rtl.css": "33f49d02bbcb2e78f019b7582408fad2b5a76a2ecf79fe09d5b3c08c6ee3872b",
136136
"assets/sample-projects/bootstrap-blog/index-rtl.html": "c582278884060098ff51b9d350b0739e1a0396debdc76772c62b6ec375b6efcb",
137137
"assets/sample-projects/bootstrap-blog/index.html": "f4716c2affa299a27ab6f8c74c22fe67564f1b1d36ff2f0b322672bf0479d739",
138-
"assets/sample-projects/dashboard.zip": "c767359242bdc743db593e130f26a5c5cc59a9b37fec9e0678e79d8811158709",
138+
"assets/sample-projects/dashboard.zip": "f67299116721f64a08839713c39046a6c9705c467892505097f4b5bde20bea39",
139139
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
140140
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
141141
"assets/sample-projects/dashboard/assets/dist/css/bootstrap.min.css": "fb1763b59f9f5764294b5af9fa5250835ae608282fe6f2f2213a5952aacf1fbf",
@@ -147,7 +147,7 @@
147147
"assets/sample-projects/dashboard/index.html": "1fb0c934f816d728cad85e180f78369679dc9edb1eca2d5c625b9360e6264235",
148148
"assets/sample-projects/dashboard/signin.css": "083bef710a6170a5112ce257c2ecf8580ca97ce19136d770f10460e5b85862de",
149149
"assets/sample-projects/dashboard/signin.html": "8c602e656631aeee624673397c0dc00c339498914ed930ab177478c4662a8d26",
150-
"assets/sample-projects/explore.zip": "a96c4c2fa2a16cb4338b8188dae500cda0c8bac820a0ea3f9e87430035aa9886",
150+
"assets/sample-projects/explore.zip": "f03d73eff28557a2fd875c20a3cc4f0bd7e5ac75306021986deaeaacfa093ad8",
151151
"assets/sample-projects/explore/A-tribute-page.html": "bd510c60f444058b7fcb71d83841f32b1cb5193c1a39421d7739bd6af9fef248",
152152
"assets/sample-projects/explore/adjustable-fireworks.html": "11e69bb2dd8708ed8fbf1acc62b0aaaf88c7ffec859ee958dc1ae51cd53ddac8",
153153
"assets/sample-projects/explore/ant_colony.html": "bc9435ed1b9868f2fbc7212d526f7532c533a5fdf45da988fa5e575bc5f363b7",
@@ -236,7 +236,7 @@
236236
"assets/sample-projects/explore/watermelon-pixel.html": "765a3fbffb5db97910512fbabaa7c55c0b52dc8eedfcc630811be39d0af98663",
237237
"assets/sample-projects/explore/webmine.html": "6b808f52812dc03db28483411500c04daf8ee0226f535c600a36999d6b7837c0",
238238
"assets/sample-projects/explore/whack-a-mole.html": "25be94a3640553b4801f80edd49998bae3a360988e8a26ff3bdfdc2a76b77191",
239-
"assets/sample-projects/home-pages.zip": "2dac2c512e553a50551b9ba271e85fd84c74aa9f97d522e59489715dc12aca78",
239+
"assets/sample-projects/home-pages.zip": "d58eb0a6b0c676324cfdc8b05a21f3532257a90480622ba6a23e99c2f4eb58f9",
240240
"assets/sample-projects/home-pages/album/index.html": "e29a1e96644bc17bab1a7e3724e822d65a479e10df182725ee1afa916efbfdc1",
241241
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
242242
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
@@ -248,19 +248,19 @@
248248
"assets/sample-projects/home-pages/carousel/index.html": "235d650043a09f2954f24e4659f64d99ef3988858567fb2221fb1cf34df057e6",
249249
"assets/sample-projects/home-pages/cover/cover.css": "2fbb596077c570cad7ee9e98fb88f5665e0ecfc11e7085c3e04639ad03f7bc10",
250250
"assets/sample-projects/home-pages/cover/index.html": "759214701ff759432711b3421d80aca692c7a2b4c978c516a0bcd0c81a43f381",
251-
"assets/sample-projects/HTML5.zip": "e2866ae5f7a2a9d973cccf1c2d667d5da3f76329f20d0c4a4e66c7a890fbd995",
251+
"assets/sample-projects/HTML5.zip": "67c33931a1ce48ee42c5635913264a2238323488ac3dacf76caed4437274f3d7",
252252
"assets/sample-projects/HTML5/index.html": "2dc94c7d3e33aeeb44ec4f75bc7df86a5fd19f3121f2fd3638636fbf7c476c6a",
253253
"assets/sample-projects/HTML5/script.js": "c49e4b01cded4defbc21f5d5d0102719ce4cccbe1b9cb19f9232c5a05df658da",
254254
"assets/sample-projects/HTML5/styles.css": "744b85a9c31affbb00976694c4b9c9149b31e575ed9efdec386231d062ae93f2",
255255
"assets/sample-projects/new-project-list.json": "be1c907279163610779b000aa9ea6e4b035e07429203f16445a914c7045f2d64",
256256
"assets/sample-projects/zips/bootstrap.zip": "6f10407c00ce5d598e77f890528743dc645bc28014335483992b481e63fd7b97",
257257
"base-config/keyboard.json": "f3380c609a293a95644965958286b31863d733293824d56b7087fa0ce4c2d618",
258258
"base-config/readme-keyboard.md": "27e98128176dbd060e93b1f321a4ddcd609571b7b8eb8c9112588f4767d08a03",
259-
"brackets-min.js": "ff46be9beb61adc20c7bfc5b59a27a53962084d22d34c22fe7c07b219973330a",
259+
"brackets-min.js": "ad8402165376965fc2ebb091506b4bd51bec2b62c9a00e5518b0d5de69aaf64c",
260260
"brackets.config.dist.json": "8faa5c0a82bb4f49784e93d1225dbd5e1fd8ec6ab07b95f5f874c7c7bd7bb234",
261261
"brackets.config.staging.json": "c0e1f22c772c80f4f5756ab947e40538bcaf7fb7f8925834cfd4ef57c55e477a",
262262
"brackets.js": "f7a3164510e76e012591c9758acb47f2445526642503180c57209d30faa24d69",
263-
"cacheManifest.json": "dcfd0a53a5da8d9ab8cc6d8da93b7bcfb47c1fc86dd63d6f0355aa752db5b620",
263+
"cacheManifest.json": "3a490e75ac200fab2271ac089d4c302dc7871ba961e5c1844b56be756b3b8de0",
264264
"command/ChangeShortcutTemplate.html": "345d682d8bde29380822824778cf09acc79affae6e82b9db00c6205b2b3dd2ee",
265265
"command/CommandManager.js": "10181902fc2e55a780981a17b95c7b579427fdfd12c92ed49df35d3b70f64c15",
266266
"command/Commands.js": "1865297506325887a66cf11113c5cef905676fdc4b594b707bee381d968f15b0",
@@ -269,7 +269,7 @@
269269
"command/KeyboardOverlayMode.js": "7170dfcfca59b41252146ef8a5ca4f652c666e33b7a4b411e30e72951bd35b49",
270270
"command/Keys.js": "36545bbbca56d2a909779c5873fa860bf737977588ad61a398acb86f6bcbe4ee",
271271
"command/Menus.js": "b0c5031f13e4ca6efd594e9fcb973f0e591a1af6cc0c0df8ec32024f6bdd0f08",
272-
"config.json": "a1e35f2d2671539361e79eaeb4882e728a020ddbf7fd17cb575b97f0453d98ff",
272+
"config.json": "121a9a585999e8d2f9455452bbc9bbd8558fef28c889cee7571d5613ea9cc6db",
273273
"desktop-metrics.html": "66f87550ddf04f284a6c1e81567b7dfbefb2b8007f48f0bad7d8f7aacdb11bac",
274274
"devEnable.html": "44aa1a496a8be413299f651e6b0c3e62ac50cd5d40126ad1bb6b70b9b2b818c4",
275275
"document/ChangedDocumentTracker.js": "03b0eaf0995fee6d27c782a8028a1314f61214e383f5f5e198320b2faac4cf40",
@@ -299,7 +299,7 @@
299299
"editor/InlineWidget.js": "b5b811a05983340c22e79d4ccda92ef830bbf142d225c50aa454446d07b2ae6e",
300300
"editor/MultiRangeInlineEditor.js": "c2ad73220818d2a1a90324a5784e4305e75df79942613266d616e9765350781b",
301301
"extensibility/ExtensionDownloader.js": "16fbff1ac2eab72af4cd8748f99bcdf05563a4a72b6b59bd0022f6e21a0d49a0",
302-
"extensibility/ExtensionManager.js": "a17fccfe0b5d750465e9d8af507574e3b1b13588ab792690a422064399843ba9",
302+
"extensibility/ExtensionManager.js": "340d2138082652093e58b450682ed76680aec11e337dea0944731860dbd8ac85",
303303
"extensibility/ExtensionManagerDialog.js": "152d159a713c4b1446a491981ccf7cdd0085ae435d5f8d36f1e8d682e91c2b5d",
304304
"extensibility/ExtensionManagerView.js": "1691c16439f87ce3b3e6bdae6a6ab5be074056535118a6bd7e456152eb9c1760",
305305
"extensibility/ExtensionManagerViewModel.js": "305cecf257dac205ca88abf4e59ced057a6a0efc258a08cda606b8a07e48849d",
@@ -516,6 +516,9 @@
516516
"extensions/default/UrlCodeHints/requirejs-config.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
517517
"extensions/default/UrlCodeHints/unittests.js": "c60ecbe81555d435437dc5b7294f4e89b3befb7b34d60c44285c6009807c29c2",
518518
"extensions/dev/README.md": "3fd897e55e0e05e503c898555cfa3b20e820b32946fc7c426ea9bb2afbed449f",
519+
"extensions/registry/popularity.json": "3354a77ecb6876a7782d188be28055a188361a752262aeb5ea76d6bad0439fa2",
520+
"extensions/registry/registry_version.json": "52e3ccbf5b5f3c81baaf97b8f14eca24495cad7e72abc41682ed9c6b021b1754",
521+
"extensions/registry/registry.json": "81450155decba3b0208e0bbd98afc58237bfe196b67f9ab89821a104f76f57d7",
519522
"extensions/samples/BracketsConfigCentral/htmlContent/Config.html": "6ac3ce03e2fb8913ec5da3e8835c0646894f242600c64d95b77c7d7dc0a156f7",
520523
"extensions/samples/BracketsConfigCentral/htmlContent/logo-sm.png": "006f025fecd24c292e87a1eb0e123ee21178ec9c09517a1f16fe362fe2fbcbb5",
521524
"extensions/samples/BracketsConfigCentral/main.js": "f2c36decadb7d98e2a89cfdb9aff8a74cc130ea8c3ad084b7af62ee21e3a8181",
@@ -835,7 +838,7 @@
835838
"nls/ro/lastTranslatedLocale.json": "4cb3f68e264c03b6c568f5a0868cdc8749ba190602fc6a8246bf7747be21a333",
836839
"nls/ro/strings.js": "f41ad3b431058098cde448d0f45a1faed9c004645af01051f5aaa3f602f9cf38",
837840
"nls/root/strings-app.js": "e82c0a855a2f6abc77063465c89c64974f1204146fbc629bd54fef2ae11a81bb",
838-
"nls/root/strings.js": "30237b094b6a4f257fac0324ed9f8b5603c7e704f22bef05b441183fc8967556",
841+
"nls/root/strings.js": "5bbb05301e0ed6e2627a9c6d7ded7b123800beb382a78ba64cf3d562030e8529",
839842
"nls/root/urls.js": "0e8522a0a58bb321a1de2d5fd72277089d558809a7c20af8922f1ea61ed4097e",
840843
"nls/ru/expertTranslations.json": "3feda049ee9cda78d51bf12678b10ccc1b4f1548eb84eeb8c46e321b4c3eab9b",
841844
"nls/ru/lastTranslated.json": "5583e101b63915228741bb048a4da12ea24c2e0d34bd473cc3fff910882c6330",

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": "2024-11-21T09:33:24.395Z",
28+
"build_timestamp": "2024-11-21T11:08:15.927Z",
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": "3.10.0-20667",
40+
"version": "3.10.0-20670",
4141
"apiVersion": "3.10.0",
4242
"homepage": "https://core.ai",
4343
"issues": {

0 commit comments

Comments
 (0)