Skip to content

Commit 942e2bd

Browse files
committed
deploy: 606b7d0
1 parent fb5df5d commit 942e2bd

File tree

66 files changed

+360
-196
lines changed

Some content is hidden

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

66 files changed

+360
-196
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-17T05:07:29.526Z",
29+
"build_timestamp": "2025-01-17T08:57:08.086Z",
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-20827",
41+
"version": "4.0.0-20831",
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: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9982,11 +9982,19 @@ define("command/KeyBindingManager", function (require, exports, module) {
99829982
normalized,
99839983
normalizedDisplay,
99849984
explicitPlatform = keyBinding.platform || platform,
9985+
explicitBrowserOnly = keyBinding.browserOnly,
9986+
explicitNativeOnly = keyBinding.nativeOnly,
99859987
targetPlatform,
99869988
command,
99879989
bindingsToDelete = [],
99889990
existing;
99899991

9992+
if(Phoenix.isNativeApp && explicitBrowserOnly) {
9993+
return null;
9994+
}
9995+
if(!Phoenix.isNativeApp && explicitNativeOnly) {
9996+
return null;
9997+
}
99909998
// For platform: "all", use explicit current platform
99919999
if (explicitPlatform && explicitPlatform !== "all") {
999210000
targetPlatform = explicitPlatform;
@@ -10246,12 +10254,13 @@ define("command/KeyBindingManager", function (require, exports, module) {
1024610254
* Returns record(s) for valid key binding(s).
1024710255
*
1024810256
* @param {!string | Command} command - A command ID or command object
10249-
* @param {{key: string, displayKey:string, platform: string}} keyBindings
10257+
* @param {{key: string, displayKey:string, platform: string, browserOnly: boolean, nativeOnly:boolean}} keyBindings
1025010258
* A single key binding or an array of keybindings.
1025110259
* In an array of keybinding `platform` property is also available. Example:
1025210260
* "Shift-Cmd-F". Mac and Win key equivalents are automatically
1025310261
* mapped to each other. Use displayKey property to display a different
10254-
* string (e.g. "CMD+" instead of "CMD=").
10262+
* string (e.g. "CMD+" instead of "CMD="). if browserOnly is true, then the shortcut will only apply in browser
10263+
* if nativeOnly is set, the shortcut will only apply in native apps
1025510264
* @param {?string} platform The target OS of the keyBindings either
1025610265
* "mac", "win" or "linux". If undefined, all platforms not explicitly
1025710266
* defined will use the key binding.
@@ -10285,7 +10294,7 @@ define("command/KeyBindingManager", function (require, exports, module) {
1028510294
// process platform-specific bindings first
1028610295
keyBindings.sort(_sortByPlatform);
1028710296

10288-
keyBindings.forEach(function addSingleBinding(keyBindingRequest) {
10297+
keyBindings.forEach(function (keyBindingRequest) {
1028910298
// attempt to add keybinding
1029010299
keyBinding = _addBinding(commandID, keyBindingRequest, {
1029110300
platform: keyBindingRequest.platform,

cacheManifest.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "d6615411c0e3e3b82218a803ea8b5bf8d51560f78f722c28d2ed60b61bbcf04f",
3-
"assets/default-project/en.zip": "f6922f949abc67eb4f2eca531549ae2c1df11f81f95e26a5d21cba609851be8f",
2+
"appConfig.js": "e57e2f92b072f376473b7ca861b9b1bbbe575929d59a14e7c4b8bd96b64229aa",
3+
"assets/default-project/en.zip": "93102984c9a65483c79cd095d09a35b2e627122f8d06c7b8b1c3db314400551b",
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",
@@ -126,7 +126,7 @@
126126
"assets/pwa/32x32.png": "4f8f75bfcdb6efbbed1732f49edab4e292274cdeb1841e285ccc8194f4c9d8ac",
127127
"assets/pwa/phoenix.png": "d292bf76d6d61fdece2f97fb4cd71b8b0060d1058e9c1d02c94bfb20da8b7f0d",
128128
"assets/pwa/Square284x284Logo.png": "9887c2967039b4fae1214817925f1fb4f9227cba12d37612457c1c8ee1110c67",
129-
"assets/sample-projects/bootstrap-blog.zip": "7902a3511e4a5be04d5da627d0a7656e950075c5d014511c0661810850f5872c",
129+
"assets/sample-projects/bootstrap-blog.zip": "7345b78d46a8bbfbbfaa061c8cbf1f0275217b591428a9c55f72bc7dc7426b34",
130130
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
131131
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
132132
"assets/sample-projects/bootstrap-blog/assets/dist/css/bootstrap.min.css": "fb1763b59f9f5764294b5af9fa5250835ae608282fe6f2f2213a5952aacf1fbf",
@@ -136,7 +136,7 @@
136136
"assets/sample-projects/bootstrap-blog/blog.rtl.css": "33f49d02bbcb2e78f019b7582408fad2b5a76a2ecf79fe09d5b3c08c6ee3872b",
137137
"assets/sample-projects/bootstrap-blog/index-rtl.html": "c582278884060098ff51b9d350b0739e1a0396debdc76772c62b6ec375b6efcb",
138138
"assets/sample-projects/bootstrap-blog/index.html": "f4716c2affa299a27ab6f8c74c22fe67564f1b1d36ff2f0b322672bf0479d739",
139-
"assets/sample-projects/dashboard.zip": "f67dd5cba9f2771968d5c71112ca3979d8f247c7dfa209ebd9ba6ee2c2811c09",
139+
"assets/sample-projects/dashboard.zip": "9a434de514428d719cd50cb633f5b8ff872827782c4a42827c805778a253f97d",
140140
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo-white.svg": "203d56e7e5e15d8203e596d4a711cec986f6380064591de21850f4563fb840bf",
141141
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo.svg": "df11d37a123e36a768f2a6064973c4c6ab17d1e3c6501c8bf434ca5c0134c9a2",
142142
"assets/sample-projects/dashboard/assets/dist/css/bootstrap.min.css": "fb1763b59f9f5764294b5af9fa5250835ae608282fe6f2f2213a5952aacf1fbf",
@@ -148,7 +148,7 @@
148148
"assets/sample-projects/dashboard/index.html": "1fb0c934f816d728cad85e180f78369679dc9edb1eca2d5c625b9360e6264235",
149149
"assets/sample-projects/dashboard/signin.css": "083bef710a6170a5112ce257c2ecf8580ca97ce19136d770f10460e5b85862de",
150150
"assets/sample-projects/dashboard/signin.html": "8c602e656631aeee624673397c0dc00c339498914ed930ab177478c4662a8d26",
151-
"assets/sample-projects/explore.zip": "7c786691c9c76dedb8c624d98ff00177162cee687d002ca21838fbb4a70b5c73",
151+
"assets/sample-projects/explore.zip": "6256b2f4975eb56fe3484fc15d6ba1d7b60d54c0d0b82d833fa55324a968800f",
152152
"assets/sample-projects/explore/A-tribute-page.html": "bd510c60f444058b7fcb71d83841f32b1cb5193c1a39421d7739bd6af9fef248",
153153
"assets/sample-projects/explore/adjustable-fireworks.html": "11e69bb2dd8708ed8fbf1acc62b0aaaf88c7ffec859ee958dc1ae51cd53ddac8",
154154
"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": "2e130ffd6498ee9eb157d5cf5b66f832dd9a6f1e326efb75b48f6a01306a6921",
240+
"assets/sample-projects/home-pages.zip": "8fc2b98bb67883f64526df9226428a8a1602b781e3b1f4abc1d3f0811f1ba4e5",
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,28 +249,28 @@
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": "361dd88e159acb874c593d2a81082f89675b84dcd54db8c2e1df176d6beac0ba",
252+
"assets/sample-projects/HTML5.zip": "4e26684a902a5072f830d73262cf53cbbda57d54c9caaba31fcbc395a47352a6",
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": "32ab31d6aeda47bab8bcce276209ca017893f572cb4aa97655fb75baf1a9c123",
259259
"base-config/readme-keyboard.md": "27e98128176dbd060e93b1f321a4ddcd609571b7b8eb8c9112588f4767d08a03",
260-
"brackets-min.js": "f66bf15129539a6da807a1e3b0a2ea10669311c0961bf6d078c2f6a9f22a1fcf",
260+
"brackets-min.js": "8bffc994b7b8fba13d223d59ef9bee98c6857674d2528d4b4731a3ab3acbd226",
261261
"brackets.config.dist.json": "8faa5c0a82bb4f49784e93d1225dbd5e1fd8ec6ab07b95f5f874c7c7bd7bb234",
262262
"brackets.config.staging.json": "c0e1f22c772c80f4f5756ab947e40538bcaf7fb7f8925834cfd4ef57c55e477a",
263263
"brackets.js": "6dee2717d91f84c60a3afa8e6427a96fbcdba0363fbcd0a8d8baea74f13f20bc",
264-
"cacheManifest.json": "28717198a130784261bd120862aa29c901ca220c118b35df53f45d9c74be15e6",
264+
"cacheManifest.json": "7be05e7b51be3e852018cff1d670634960bb4e2d53540272e49dbde439d7e9f5",
265265
"command/ChangeShortcutTemplate.html": "345d682d8bde29380822824778cf09acc79affae6e82b9db00c6205b2b3dd2ee",
266266
"command/CommandManager.js": "10181902fc2e55a780981a17b95c7b579427fdfd12c92ed49df35d3b70f64c15",
267267
"command/Commands.js": "fe3a737121742810021247316080132732fb86c8874669f994b1765d91a15829",
268268
"command/DefaultMenus.js": "fbbb42816a0b5fe2242fb32ad62254eb6fbfa482065e2776eb453bf4ef6e8569",
269-
"command/KeyBindingManager.js": "0f66eac6b31f7aca5b48d07cc8403a554c89711eea7f96f126d00fd03dc5ebbe",
269+
"command/KeyBindingManager.js": "9cf6683e8402ca62769cf0696213a8ca8f7082bd440fb8dabeea3cae1a695ed0",
270270
"command/KeyboardOverlayMode.js": "7170dfcfca59b41252146ef8a5ca4f652c666e33b7a4b411e30e72951bd35b49",
271271
"command/Keys.js": "36545bbbca56d2a909779c5873fa860bf737977588ad61a398acb86f6bcbe4ee",
272272
"command/Menus.js": "8f45da169c25f227364a4a2f3d6b2080ed4e333fc9d2ec5fa0ab737d0a075d3a",
273-
"config.json": "a5d640dbb5359b12a0e6104cd6edc231a703ded8ba05672def26c7447cdadaf0",
273+
"config.json": "1420de0394c85fdfc642f0249c3ca17bdd2799ba4beb8f019c88e915229603e5",
274274
"desktop-metrics.html": "66f87550ddf04f284a6c1e81567b7dfbefb2b8007f48f0bad7d8f7aacdb11bac",
275275
"devEnable.html": "44aa1a496a8be413299f651e6b0c3e62ac50cd5d40126ad1bb6b70b9b2b818c4",
276276
"document/ChangedDocumentTracker.js": "03b0eaf0995fee6d27c782a8028a1314f61214e383f5f5e198320b2faac4cf40",
@@ -318,7 +318,7 @@
318318
"extensions/default/CodeFolding/foldhelpers/foldSelected.js": "7024b1e7ae888ebf5e0d91a710ff6f4ce04ec1c4a91d17317d4a49b1b2c00379",
319319
"extensions/default/CodeFolding/foldhelpers/handlebarsFold.js": "8e614de5881ab58d74b11e1ff4f576b8ebbb0dddc9e01ce640b8c74f5d34d7dd",
320320
"extensions/default/CodeFolding/foldhelpers/indentFold.js": "750c2e4ce1be13f4a982baf23ac1de6a62c74193c8be6220445286b06ea0df9d",
321-
"extensions/default/CodeFolding/main.js": "9c7c93faa932a9d2d8d077e5484139ea53d98a7892c5746a48fd067547e2fa28",
321+
"extensions/default/CodeFolding/main.js": "7e3444828fb1238465920f5aa98fd2028286633d49dba584c42a6bdcb334cfd3",
322322
"extensions/default/CodeFolding/main.less": "fd4b144af1adf4e00b9bfa48fdb31b02e76b9c3bca2ab5ee2beda461b10485dc",
323323
"extensions/default/CodeFolding/package.json": "038c7f62774f0c5811240a3ecfc89f982d5dd99a9dddc00c88a3b28961d12453",
324324
"extensions/default/CodeFolding/Prefs.js": "620741c563c2dbabc92bd67ad3366bb8fda237569b606bb1b6a3bbbc1708a887",
@@ -576,7 +576,7 @@
576576
"extensions/default/UrlCodeHints/requirejs-config.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
577577
"extensions/default/UrlCodeHints/unittests.js": "c60ecbe81555d435437dc5b7294f4e89b3befb7b34d60c44285c6009807c29c2",
578578
"extensions/dev/README.md": "3fd897e55e0e05e503c898555cfa3b20e820b32946fc7c426ea9bb2afbed449f",
579-
"extensions/registry/popularity.json": "fd807fc1cfb56ceeac038007834f57eddec62b6f58ea17b423257c8a6a349d0b",
579+
"extensions/registry/popularity.json": "15d234730497a407b6f3e19ed1e4a40909a908cf3555dd833411a969cbe98d4c",
580580
"extensions/registry/registry_version.json": "4ff4f7dd8c35cd0c4e7bbd041692abbb2a943c70ffad015b6296a5690b8b6c8c",
581581
"extensions/samples/BracketsConfigCentral/htmlContent/Config.html": "6ac3ce03e2fb8913ec5da3e8835c0646894f242600c64d95b77c7d7dc0a156f7",
582582
"extensions/samples/BracketsConfigCentral/htmlContent/logo-sm.png": "006f025fecd24c292e87a1eb0e123ee21178ec9c09517a1f16fe362fe2fbcbb5",
@@ -622,7 +622,7 @@
622622
"extensionsIntegrated/NavigationAndHistory/FileRecovery.js": "6c04da393d4c2fe7023ba0a4b88b1400ea7127f8b46ef32e3576c4b0f72aa626",
623623
"extensionsIntegrated/NavigationAndHistory/html/recentfiles-template.html": "90acb1b5d0c1b13482c332e05033f1e529f0c91f5385cf81a5aec8bf77057019",
624624
"extensionsIntegrated/NavigationAndHistory/html/recovery-template.html": "0c9b6e0a6284a9133141928773d0f27a91bf685414b3b36ebe8eb3a134e4709e",
625-
"extensionsIntegrated/NavigationAndHistory/keyboard.json": "722db5ebb04cd18e5a29be21b921c4b86f7b63d201ac18be20e08f220a4fcaf3",
625+
"extensionsIntegrated/NavigationAndHistory/keyboard.json": "5ef308a1cc31f9c232f8f9c51b6f9365e7ece3a2867f6daab83d22930c34663d",
626626
"extensionsIntegrated/NavigationAndHistory/main.js": "12879bdd81f42025aed883a27b3095d469145ff9655830e5093218a6fb7eb76f",
627627
"extensionsIntegrated/NavigationAndHistory/NavigationProvider.js": "991b3ebcc21898e78449f7384283b830ae759ae6ebfa59269dfc1191437d2d6b",
628628
"extensionsIntegrated/NoDistractions/main.js": "6ffd4b8be7c15d6d47b3d6743b1adefaa8b73e144083c213ca06b0c3440e601d",

command/KeyBindingManager.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,19 @@ define(function (require, exports, module) {
719719
normalized,
720720
normalizedDisplay,
721721
explicitPlatform = keyBinding.platform || platform,
722+
explicitBrowserOnly = keyBinding.browserOnly,
723+
explicitNativeOnly = keyBinding.nativeOnly,
722724
targetPlatform,
723725
command,
724726
bindingsToDelete = [],
725727
existing;
726728

729+
if(Phoenix.isNativeApp && explicitBrowserOnly) {
730+
return null;
731+
}
732+
if(!Phoenix.isNativeApp && explicitNativeOnly) {
733+
return null;
734+
}
727735
// For platform: "all", use explicit current platform
728736
if (explicitPlatform && explicitPlatform !== "all") {
729737
targetPlatform = explicitPlatform;
@@ -983,12 +991,13 @@ define(function (require, exports, module) {
983991
* Returns record(s) for valid key binding(s).
984992
*
985993
* @param {!string | Command} command - A command ID or command object
986-
* @param {{key: string, displayKey:string, platform: string}} keyBindings
994+
* @param {{key: string, displayKey:string, platform: string, browserOnly: boolean, nativeOnly:boolean}} keyBindings
987995
* A single key binding or an array of keybindings.
988996
* In an array of keybinding `platform` property is also available. Example:
989997
* "Shift-Cmd-F". Mac and Win key equivalents are automatically
990998
* mapped to each other. Use displayKey property to display a different
991-
* string (e.g. "CMD+" instead of "CMD=").
999+
* string (e.g. "CMD+" instead of "CMD="). if browserOnly is true, then the shortcut will only apply in browser
1000+
* if nativeOnly is set, the shortcut will only apply in native apps
9921001
* @param {?string} platform The target OS of the keyBindings either
9931002
* "mac", "win" or "linux". If undefined, all platforms not explicitly
9941003
* defined will use the key binding.
@@ -1022,7 +1031,7 @@ define(function (require, exports, module) {
10221031
// process platform-specific bindings first
10231032
keyBindings.sort(_sortByPlatform);
10241033

1025-
keyBindings.forEach(function addSingleBinding(keyBindingRequest) {
1034+
keyBindings.forEach(function (keyBindingRequest) {
10261035
// attempt to add keybinding
10271036
keyBinding = _addBinding(commandID, keyBindingRequest, {
10281037
platform: keyBindingRequest.platform,

0 commit comments

Comments
 (0)