Skip to content

Commit 29817aa

Browse files
committed
deploy: 606b7d0
1 parent c4b6eb2 commit 29817aa

File tree

45 files changed

+316
-76
lines changed

Some content is hidden

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

45 files changed

+316
-76
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-10-17T11:15:06.734Z",
29+
"build_timestamp": "2024-10-18T15:39:43.577Z",
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-20622",
41+
"version": "3.10.0-20623",
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: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33788,6 +33788,32 @@ define("extensionsIntegrated/NavigationAndHistory/FileRecovery", function (requi
3378833788
await createDir(folder);
3378933789
}
3379033790

33791+
function integrityCheck(input) {
33792+
// The backup is of the form "length,string_backed_up" so that we can do integrity checks. ideally we should use
33793+
// crypto hash functions but that may be expensive. since this is reversible with undo, not doing it for now.
33794+
if(!input){
33795+
return null;
33796+
}
33797+
const parts = input.split(',', 2);
33798+
33799+
if (parts.length !== 2) {
33800+
return null;
33801+
}
33802+
33803+
// Parse the length part (should be the first part before the comma)
33804+
const expectedLength = parseInt(parts[0], 10);
33805+
if (isNaN(expectedLength)) {
33806+
return null;
33807+
}
33808+
33809+
// The second part is the actual string after the comma
33810+
const actualString = parts[1];
33811+
if (actualString.length === expectedLength) {
33812+
return actualString;
33813+
}
33814+
return null;
33815+
}
33816+
3379133817
async function loadLastBackedUpFileContents(projectRootPath) {
3379233818
const project = trackedProjects[projectRootPath];
3379333819
if(!project){
@@ -33803,7 +33829,10 @@ define("extensionsIntegrated/NavigationAndHistory/FileRecovery", function (requi
3380333829
if(entry.isDirectory){
3380433830
continue;
3380533831
}
33806-
let text = await jsPromise(FileUtils.readAsText(entry));
33832+
let text = integrityCheck(await jsPromise(FileUtils.readAsText(entry)));
33833+
if(!text){
33834+
continue;
33835+
}
3380733836
let projectFilePath = getProjectFilePath(entry.fullPath, projectRootPath);
3380833837
if(currentProjectLoadCount !== project.projectLoadCount){
3380933838
// this means that while we were tying to load a project backup, the user switched to another project
@@ -33889,7 +33918,8 @@ define("extensionsIntegrated/NavigationAndHistory/FileRecovery", function (requi
3388933918
let parentDir = FileSystem.getDirectoryForPath(path.dirname(filePath));
3389033919
await createDir(parentDir);
3389133920
let file = FileSystem.getFileForPath(filePath);
33892-
await jsPromise(FileUtils.writeText(file, contents, true));
33921+
const restoreContentsWithIntegrity = contents.length + "," + contents;
33922+
await jsPromise(FileUtils.writeText(file, restoreContentsWithIntegrity, true));
3389333923
} catch (e) {
3389433924
console.error(e);
3389533925
}

cacheManifest.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "356e0496535914b0705010a075ccf08776981d7d7e5db784d158e58d7d966d5b",
3-
"assets/default-project/en.zip": "e6dac7d6ae39c8cdbc9ad9c4b64d1dfaf107a9639440f3ce658ee9d24ad29255",
2+
"appConfig.js": "70aefb658b73629db0736ae93660582d364805dcc2d278d450ecf775cdb12b80",
3+
"assets/default-project/en.zip": "a51cbf25d92699fdf88ff039897af72cd3aa367a7efa69ca4c54dbf6229a530e",
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": "afda7f8d3b7a4d90a6e605617792e9bedd8e632fe07f6f7810b1b699c6c02eff",
128+
"assets/sample-projects/bootstrap-blog.zip": "7f459ecb54979ffb80334c801f71b9892bbd55b8ad5c2b221331d81e5e48c074",
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": "7ff8525dfca2e8028979377846f10b4cf8428bc70f5db73f9aeb6c5319173325",
138+
"assets/sample-projects/dashboard.zip": "f439cdbe356f221638735938361e052f22981a76f679654754125c4978897970",
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": "184b7a81c766a7f3dca1e6ced5314518e1f11d65df1ecb3982f922388e9c9f0a",
150+
"assets/sample-projects/explore.zip": "e323b9a86c3ecfe74b1a46e60491ca42724c950f7aefffe720c2d4811533b406",
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",
@@ -237,7 +237,7 @@
237237
"assets/sample-projects/explore/watermelon-pixel.html": "765a3fbffb5db97910512fbabaa7c55c0b52dc8eedfcc630811be39d0af98663",
238238
"assets/sample-projects/explore/webmine.html": "6b808f52812dc03db28483411500c04daf8ee0226f535c600a36999d6b7837c0",
239239
"assets/sample-projects/explore/whack-a-mole.html": "25be94a3640553b4801f80edd49998bae3a360988e8a26ff3bdfdc2a76b77191",
240-
"assets/sample-projects/home-pages.zip": "45caaa6deba623bda8c06d070851a4a1dd23f122821bb7d15212c7f1f60517f7",
240+
"assets/sample-projects/home-pages.zip": "531486804e1529a0f5948626b5640387fd723545fe3d8b31b5354d7b9fa2255a",
241241
"assets/sample-projects/home-pages/album/index.html": "e29a1e96644bc17bab1a7e3724e822d65a479e10df182725ee1afa916efbfdc1",
242242
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
243243
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
@@ -249,19 +249,19 @@
249249
"assets/sample-projects/home-pages/carousel/index.html": "235d650043a09f2954f24e4659f64d99ef3988858567fb2221fb1cf34df057e6",
250250
"assets/sample-projects/home-pages/cover/cover.css": "2fbb596077c570cad7ee9e98fb88f5665e0ecfc11e7085c3e04639ad03f7bc10",
251251
"assets/sample-projects/home-pages/cover/index.html": "759214701ff759432711b3421d80aca692c7a2b4c978c516a0bcd0c81a43f381",
252-
"assets/sample-projects/HTML5.zip": "693970e19f9137a8a59962fd75c65f852ef9843592f023ed1d52cefe4aa63546",
252+
"assets/sample-projects/HTML5.zip": "33d2631b1a7ae2d030cb8a8c6f5bf19a41aee85a0766304799743e7796e64def",
253253
"assets/sample-projects/HTML5/index.html": "2dc94c7d3e33aeeb44ec4f75bc7df86a5fd19f3121f2fd3638636fbf7c476c6a",
254254
"assets/sample-projects/HTML5/script.js": "c49e4b01cded4defbc21f5d5d0102719ce4cccbe1b9cb19f9232c5a05df658da",
255255
"assets/sample-projects/HTML5/styles.css": "744b85a9c31affbb00976694c4b9c9149b31e575ed9efdec386231d062ae93f2",
256256
"assets/sample-projects/new-project-list.json": "be1c907279163610779b000aa9ea6e4b035e07429203f16445a914c7045f2d64",
257257
"assets/sample-projects/zips/bootstrap.zip": "6f10407c00ce5d598e77f890528743dc645bc28014335483992b481e63fd7b97",
258258
"base-config/keyboard.json": "f3380c609a293a95644965958286b31863d733293824d56b7087fa0ce4c2d618",
259259
"base-config/readme-keyboard.md": "27e98128176dbd060e93b1f321a4ddcd609571b7b8eb8c9112588f4767d08a03",
260-
"brackets-min.js": "e3ff3ce33f5ed3559e5776017d8a5f416b00e5f7d19e77a06559f03c596b59c5",
260+
"brackets-min.js": "6bfd61242fd1f7368c3d0d8965ed09aa264cec8510d2d35f2c71a5be9f7311ec",
261261
"brackets.config.dist.json": "8faa5c0a82bb4f49784e93d1225dbd5e1fd8ec6ab07b95f5f874c7c7bd7bb234",
262262
"brackets.config.staging.json": "c0e1f22c772c80f4f5756ab947e40538bcaf7fb7f8925834cfd4ef57c55e477a",
263263
"brackets.js": "f7a3164510e76e012591c9758acb47f2445526642503180c57209d30faa24d69",
264-
"cacheManifest.json": "04c55c8fdf0addf29a796bb9b28f07597e5563a84a023e5c7ff920ebb9d78ba1",
264+
"cacheManifest.json": "145cd2bafd7b7c3e54179f90cba99a4bfd492aa543e234f77615b3cec758082e",
265265
"command/ChangeShortcutTemplate.html": "345d682d8bde29380822824778cf09acc79affae6e82b9db00c6205b2b3dd2ee",
266266
"command/CommandManager.js": "ecd5ccb7ffacb8fa24b6c284f5a19576e774f204746dbef75872992becbe5fb0",
267267
"command/Commands.js": "99fa4895ba13713db0bf8c3d14ba57969ffbfe236ea29bebb309c5e367524d7d",
@@ -270,7 +270,7 @@
270270
"command/KeyboardOverlayMode.js": "8ed49bc8728a109e3850d8ad2df374b51021f24a65811ac826210a1adcdbbb56",
271271
"command/Keys.js": "31cd87a01ce41de28e56ccbdd4fa14866cccc2b7bcde61c5134095adaa5cb674",
272272
"command/Menus.js": "1663a900f0008422c03d48fd4609732a81060bc39a4c28f13a9e2c626361bb42",
273-
"config.json": "2aa66989d0929675ea59263418605aa5810125e36815f80e77d706e42aad8496",
273+
"config.json": "b4f3d3b1a0abf618d44ea1022b4ba78a42c1afc21c2395e53be5446170928953",
274274
"desktop-metrics.html": "66f87550ddf04f284a6c1e81567b7dfbefb2b8007f48f0bad7d8f7aacdb11bac",
275275
"devEnable.html": "44aa1a496a8be413299f651e6b0c3e62ac50cd5d40126ad1bb6b70b9b2b818c4",
276276
"document/ChangedDocumentTracker.js": "03b0eaf0995fee6d27c782a8028a1314f61214e383f5f5e198320b2faac4cf40",
@@ -557,7 +557,7 @@
557557
"extensionsIntegrated/InAppNotifications/utils.js": "fce0446d3e9b454b793c45e7684bbb68453c1f1f2cf8114ba8b2c8010a04bce6",
558558
"extensionsIntegrated/indentGuides/main.js": "aa3d0e6d1295254fe76bb45249efbd2b7161b3e9c1177494b3aa93df62a402e4",
559559
"extensionsIntegrated/loader.js": "3fcf92baa940828bd3edabad82f04f27f96630535f9f2fb694b6a035fb9bfb14",
560-
"extensionsIntegrated/NavigationAndHistory/FileRecovery.js": "5e0c167f7ffe16666f923ff03de4485d892577608dc64b3ddb8c4d8740042c87",
560+
"extensionsIntegrated/NavigationAndHistory/FileRecovery.js": "6c04da393d4c2fe7023ba0a4b88b1400ea7127f8b46ef32e3576c4b0f72aa626",
561561
"extensionsIntegrated/NavigationAndHistory/html/recentfiles-template.html": "90acb1b5d0c1b13482c332e05033f1e529f0c91f5385cf81a5aec8bf77057019",
562562
"extensionsIntegrated/NavigationAndHistory/html/recovery-template.html": "0c9b6e0a6284a9133141928773d0f27a91bf685414b3b36ebe8eb3a134e4709e",
563563
"extensionsIntegrated/NavigationAndHistory/keyboard.json": "722db5ebb04cd18e5a29be21b921c4b86f7b63d201ac18be20e08f220a4fcaf3",

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-10-17T11:15:06.734Z",
28+
"build_timestamp": "2024-10-18T15:39:43.577Z",
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-20622",
40+
"version": "3.10.0-20623",
4141
"apiVersion": "3.10.0",
4242
"homepage": "https://core.ai",
4343
"issues": {

0 commit comments

Comments
 (0)