Skip to content

Commit aee5fa2

Browse files
committed
deploy: 606b7d0
1 parent d5cbd4d commit aee5fa2

Some content is hidden

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

53 files changed

+364
-148
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-05-30T05:05:17.534Z",
29+
"build_timestamp": "2024-05-30T09:41:19.052Z",
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.8.0-20330",
41+
"version": "3.8.0-20332",
4242
"apiVersion": "3.8.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: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8486,11 +8486,15 @@ define("command/DefaultMenus", function (require, exports, module) {
84868486
menu.addMenuDivider();
84878487
menu.addMenuItem(Commands.FILE_SAVE);
84888488
menu.addMenuItem(Commands.FILE_SAVE_ALL);
8489+
if(Phoenix.isNativeApp){
8490+
menu.addMenuItem(Commands.FILE_SAVE_AS);
8491+
// save as is not yet supported in browser as in our vfs implements only open folder, so vfs needs to
8492+
// be changed. Also, we dont know how the ux for save as will be in virtual paths.
8493+
}
84898494
menu.addMenuItem(Commands.FILE_DUPLICATE_FILE);
84908495
menu.addMenuItem(Commands.FILE_DOWNLOAD_PROJECT, undefined, undefined, undefined, {
84918496
hideWhenCommandDisabled: true
84928497
});
8493-
// menu.addMenuItem(Commands.FILE_SAVE_AS); not yet available in phoenix
84948498
// menu.addMenuItem(Commands.FILE_PROJECT_SETTINGS); not yet available in phoenix
84958499
menu.addMenuDivider();
84968500
menu.addMenuItem(Commands.FILE_EXTENSION_MANAGER);
@@ -14627,8 +14631,16 @@ define("document/DocumentCommandHandlers", function (require, exports, module) {
1462714631

1462814632
if (FileViewController.getFileSelectionFocus() === FileViewController.PROJECT_MANAGER) {
1462914633
// If selection is in the tree, leave workingset unchanged - even if orig file is in the list
14630-
fileOpenPromise = FileViewController
14631-
.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER);
14634+
setTimeout(()=>{
14635+
fileOpenPromise = FileViewController
14636+
.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER);
14637+
// always configure editor after file is opened
14638+
fileOpenPromise.always(function () {
14639+
_configureEditorAndResolve();
14640+
});
14641+
}, 100); // this is in a timeout as the file tree may not have updated yet after save as
14642+
// file created, and we wait for the file watcher events to get triggered so that the file
14643+
// selection is updated.
1463214644
} else {
1463314645
// If selection is in workingset, replace orig item in place with the new file
1463414646
var info = MainViewManager.findInAllWorkingSets(doc.file.fullPath).shift();
@@ -14638,12 +14650,11 @@ define("document/DocumentCommandHandlers", function (require, exports, module) {
1463814650

1463914651
// Add new file to workingset, and ensure we now redraw (even if index hasn't changed)
1464014652
fileOpenPromise = handleFileAddToWorkingSetAndOpen({fullPath: path, paneId: info.paneId, index: info.index, forceRedraw: true});
14653+
// always configure editor after file is opened
14654+
fileOpenPromise.always(function () {
14655+
_configureEditorAndResolve();
14656+
});
1464114657
}
14642-
14643-
// always configure editor after file is opened
14644-
fileOpenPromise.always(function () {
14645-
_configureEditorAndResolve();
14646-
});
1464714658
}
1464814659

1464914660
// Same name as before - just do a regular Save
@@ -48585,7 +48596,7 @@ define("filesystem/WatchedRoot", function (require, exports, module) {
4858548596
*
4858648597
*/
4858748598

48588-
/*global appshell, Phoenix*/
48599+
/*global appshell, path*/
4858948600
/*eslint-env es6*/
4859048601
// jshint ignore: start
4859148602

@@ -48896,7 +48907,23 @@ define("filesystem/impls/appshell/AppshellFileSystem", function (require, export
4889648907
* @param {function(?string, string=)} callback
4889748908
*/
4889848909
function showSaveDialog(title, initialPath, proposedNewFilename, callback) {
48899-
appshell.fs.showSaveDialog(title, initialPath, proposedNewFilename, _wrap(callback));
48910+
if(Phoenix.isNativeApp){
48911+
const wrappedCallback = _wrap(callback);
48912+
appshell.fs.showSaveDialog({
48913+
title,
48914+
defaultPath: Phoenix.fs.getTauriPlatformPath(path.join(initialPath, proposedNewFilename || ""))
48915+
// no filter option for now filters: undefined
48916+
}).then(fileSavePath => {
48917+
if(!fileSavePath) {
48918+
wrappedCallback(FileSystemError.NOT_READABLE);
48919+
return;
48920+
}
48921+
wrappedCallback(null, fileSavePath);
48922+
}).catch(wrappedCallback);
48923+
return;
48924+
}
48925+
console.error("showSaveDialog is not yet supported in web browsers...");
48926+
callback(FileSystemError.NOT_SUPPORTED);
4890048927
}
4890148928

4890248929
function _createStatObject(stats, realPath) {

cacheManifest.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "fef2f4df707f8eb1a1e4efcc556b31ff16e4d648389cab8b78dec124a89013bf",
3-
"assets/default-project/en.zip": "b9486d6d3719a80ae1a3c7735b382db719b8bd59e44b3c0d012c0a34d64ce516",
2+
"appConfig.js": "05413e8df77ed22e9289f9b673ae9df7081befcff727c23fdcab936585338eea",
3+
"assets/default-project/en.zip": "23eb86b95e0dcbe080e7ed9a94902d3f0d2fd14939447008b925ab24d7942da2",
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": "58cf5f2cac7cece71d98357c1855ccc2f61fe3035c00ec4d208fc17791649bdf",
128+
"assets/sample-projects/bootstrap-blog.zip": "1c43588dc2fd9213fc2ac79ba7acc114a187f7dfa36030940cf8f5d3e8e903bb",
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": "ee92b345db8b6fbaf8ed2a8969c0e5ea5e022da66bcf796eb21b35e625a82ed1",
138+
"assets/sample-projects/dashboard.zip": "0b79b46a1a36b0ca5e63534696da9565eb0eba7f0d6f1266ba6d2f8463ac684b",
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": "4db445169e0f7776f892f280fcce75c42782c43eb71ed70273bcc3072409d5c9",
150+
"assets/sample-projects/explore.zip": "f6a0e70430d6a7febc8d089da57ee318d0ceeac83b5aee18f671a6b454ceb1e3",
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": "23ac75985d24bdee541b25369cbe6e89645755895c57b9dd5a44db2034439020",
240+
"assets/sample-projects/home-pages.zip": "82a450eb39d4efbfab376e217d70abcaa818fd0f90b0f15ce40c0ff466fe52a9",
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,33 +249,33 @@
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": "b50c4f7234fd533cfeb3da8b3b5f9ccea4c2ee038eaab28a6f25e3915c0962a1",
252+
"assets/sample-projects/HTML5.zip": "7c3e198784baf9d06f42843f03766e3885e754a85d4d8f89f4aa09e3ac2cd091",
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": "810b77ed12adddfffa711c57de85384ce6835039f40717b00739c26e45d2525f",
259259
"base-config/readme-keyboard.md": "27e98128176dbd060e93b1f321a4ddcd609571b7b8eb8c9112588f4767d08a03",
260-
"brackets-min.js": "51a27db650dd9108c56d1287fcf38a41c4000c88d3247638cc374797e150e9fc",
260+
"brackets-min.js": "aadc36ce7dd5b4bb1204e4a29298be76436d2076fa8f5979c0200c21aea2909f",
261261
"brackets.config.dist.json": "8faa5c0a82bb4f49784e93d1225dbd5e1fd8ec6ab07b95f5f874c7c7bd7bb234",
262262
"brackets.config.staging.json": "c0e1f22c772c80f4f5756ab947e40538bcaf7fb7f8925834cfd4ef57c55e477a",
263263
"brackets.js": "d8e3be7ddbbe9516ac3204f4e5850606794dc7228d7f864d52c13f3ecfcb42d3",
264-
"cacheManifest.json": "a238a848a2c798c3a5d783f680cafd1cff768f37ffff47a7388ac6c4032ee2fd",
264+
"cacheManifest.json": "19c6198bf6c3ffc5e7937213f0ed5d1b4a7adfe4480d749749c2338c8e2b7a39",
265265
"command/ChangeShortcutTemplate.html": "345d682d8bde29380822824778cf09acc79affae6e82b9db00c6205b2b3dd2ee",
266266
"command/CommandManager.js": "0600518322584495bbbfae76ed2bb39e416de3735ee65b12c63a2b3e6b3423ca",
267267
"command/Commands.js": "c95b1a34ca20736c3a37bb66b64a9b4085054dd1231007f6fd33262019a1ce02",
268-
"command/DefaultMenus.js": "b6f95a80b72e3bfff25325f29194a26d4ed6f9e05efa01763c102dda753a593a",
268+
"command/DefaultMenus.js": "d86c34427bb9369cfd231dcdefef9e736eab78ff94970ffbc317bb3b9318e1ba",
269269
"command/KeyBindingManager.js": "2f1c1f25e413cde7863bc0fbf58505e03f4aee31381838dbd70d0d4255e831e3",
270270
"command/KeyboardOverlayMode.js": "46a9aee18e36a7861fd0f0ae46d765cb30b079a6a5f00b21fbf1e3acd91dacee",
271271
"command/Keys.js": "31cd87a01ce41de28e56ccbdd4fa14866cccc2b7bcde61c5134095adaa5cb674",
272272
"command/Menus.js": "c31266bdd68f4c83e2aed71a6a89551d51bc63b3ed66e67dec94e1d9ae77859f",
273-
"config.json": "9cdf26d51ba1f07ba79d2c114a0d02023a81e28b65f71fe084d7d287229fd140",
273+
"config.json": "a148d4cf81b0f9ce83d149bdab7f19594fe0098512070a38e447a4a91da1d98c",
274274
"desktop-metrics.html": "ca46d36aec85f715746d1b90af09664c98e17b8262e5b141eee69bdb9d2b1c89",
275275
"devEnable.html": "44aa1a496a8be413299f651e6b0c3e62ac50cd5d40126ad1bb6b70b9b2b818c4",
276276
"document/ChangedDocumentTracker.js": "03b0eaf0995fee6d27c782a8028a1314f61214e383f5f5e198320b2faac4cf40",
277277
"document/Document.js": "e8d31eb2bdcbc72bf616e0add6f6372ab483a074d6b32c3d268fb431f1f86281",
278-
"document/DocumentCommandHandlers.js": "07049cb18f77f970664eb830f9704696935f9de1000f2a93aaaf259040293d3c",
278+
"document/DocumentCommandHandlers.js": "201bf25f246aa19b958f09ad91963cdde8dab659526ba169fd54cfe6941df5b9",
279279
"document/DocumentManager.js": "d010497d0e190b21fd0c66092e3997331ba58485992d32fd6a913632be8050eb",
280280
"document/InMemoryFile.js": "7ae9dbae506e8cfd8d6db74c3c65bf07e93779e8a5a503cb0031841209c15fda",
281281
"document/TextRange.js": "6e5312ca03ed80864092da7347de08a5db17b659ab08fab72cb4786c07abe157",
@@ -601,7 +601,7 @@
601601
"filesystem/FileSystemEntry.js": "2e0023069aac6f770311eb9ff669deabde6e964680cd3461c1d1fe73974b6749",
602602
"filesystem/FileSystemError.js": "fb54927e30b67482405b7ca39e8b2526323ca350122363ded676e96175738b00",
603603
"filesystem/FileSystemStats.js": "722a1a441321caaebc04e428a6072f4e89001f85abb533e4d8df0b5966c3688b",
604-
"filesystem/impls/appshell/AppshellFileSystem.js": "805dfd468fc72dc371a90b0e45310f9b335054551b4b075737e746b0099273da",
604+
"filesystem/impls/appshell/AppshellFileSystem.js": "93528b7e7abe6a50576d85f5125d62d5d94c41cfc633ff876571658d82f49079",
605605
"filesystem/RemoteFile.js": "adb09892d79a718426fc195c0b8f49194a3dd0dbe20784734e3817b05ead34dc",
606606
"filesystem/WatchedRoot.js": "f485954fe4333fb59cf194b55025cd331d0ca7d76fd23ad47e51ab46c6e3b9af",
607607
"help/HelpCommandHandlers.js": "2e6a83aee2c96925da389d43b1098acdb40adc3ef555c129e93e3df7f7585f1b",

command/DefaultMenus.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,15 @@ define(function (require, exports, module) {
122122
menu.addMenuDivider();
123123
menu.addMenuItem(Commands.FILE_SAVE);
124124
menu.addMenuItem(Commands.FILE_SAVE_ALL);
125+
if(Phoenix.isNativeApp){
126+
menu.addMenuItem(Commands.FILE_SAVE_AS);
127+
// save as is not yet supported in browser as in our vfs implements only open folder, so vfs needs to
128+
// be changed. Also, we dont know how the ux for save as will be in virtual paths.
129+
}
125130
menu.addMenuItem(Commands.FILE_DUPLICATE_FILE);
126131
menu.addMenuItem(Commands.FILE_DOWNLOAD_PROJECT, undefined, undefined, undefined, {
127132
hideWhenCommandDisabled: true
128133
});
129-
// menu.addMenuItem(Commands.FILE_SAVE_AS); not yet available in phoenix
130134
// menu.addMenuItem(Commands.FILE_PROJECT_SETTINGS); not yet available in phoenix
131135
menu.addMenuDivider();
132136
menu.addMenuItem(Commands.FILE_EXTENSION_MANAGER);

0 commit comments

Comments
 (0)