Skip to content

Commit fc51e32

Browse files
committed
deploy: 606b7d0
1 parent 67a8308 commit fc51e32

File tree

57 files changed

+720
-368
lines changed

Some content is hidden

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

57 files changed

+720
-368
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-30T10:46:51.969Z",
29+
"build_timestamp": "2024-11-30T18:34:29.300Z",
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.11.0-20698",
41+
"version": "3.11.0-20699",
4242
"apiVersion": "3.11.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: 79 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33146,6 +33146,7 @@ define("extensionsIntegrated/CSSColorPreview/main", function (require, exports,
3314633146
ColorUtils = require('utils/ColorUtils'),
3314733147
AppInit = require("utils/AppInit"),
3314833148
PreferencesManager = require("preferences/PreferencesManager"),
33149+
MainViewManager = require("view/MainViewManager"),
3314933150
Strings = require("strings");
3315033151

3315133152
// Extension variables.
@@ -33161,6 +33162,46 @@ define("extensionsIntegrated/CSSColorPreview/main", function (require, exports,
3316133162
description: Strings.DESCRIPTION_CSS_COLOR_PREVIEW
3316233163
});
3316333164

33165+
/**
33166+
* Responsible to get all the colors and their respective line numbers.
33167+
*
33168+
* @param {Editor} editor
33169+
* @return {Array.<Object>} an array of objects with all the line nos and,
33170+
* the colors to be added on those lines
33171+
*/
33172+
function _getAllColorsAndLineNums(editor) {
33173+
33174+
const cm = editor._codeMirror;
33175+
const nLen = cm.lineCount();
33176+
const aColors = [];
33177+
33178+
// match colors and push into an array
33179+
for (let i = 0; i < nLen; i++) {
33180+
let lineText = cm.getLine(i);
33181+
33182+
if ((lineText.indexOf('/*') !== -1) || (lineText.indexOf('*/') !== -1)) {
33183+
continue;
33184+
} else {
33185+
let regx = /:[^;]*;/g;
33186+
33187+
lineText = lineText.match(regx);
33188+
if (lineText) {
33189+
let tempColors = lineText[0].match(COLOR_REGEX);
33190+
// Support up to 4 colors
33191+
if (tempColors && tempColors.length > 0) {
33192+
let colors = tempColors.slice(0, 4);
33193+
aColors.push({
33194+
lineNumber: i,
33195+
colorValues: colors
33196+
});
33197+
}
33198+
}
33199+
}
33200+
}
33201+
33202+
return aColors;
33203+
}
33204+
3316433205
/**
3316533206
* Gets all the colors that are to be displayed
3316633207
*
@@ -33176,47 +33217,47 @@ define("extensionsIntegrated/CSSColorPreview/main", function (require, exports,
3317633217
const editor = EditorManager.getActiveEditor();
3317733218
if (editor) {
3317833219

33179-
const cm = editor._codeMirror;
33180-
const nLen = cm.lineCount();
33181-
const aColors = [];
33220+
const aColors = _getAllColorsAndLineNums(editor);
33221+
showGutters(editor, aColors);
3318233222

33183-
// match colors and push into an array
33184-
for (let i = 0; i < nLen; i++) {
33185-
let lineText = cm.getLine(i);
33223+
}
33224+
}
3318633225

33187-
if ((lineText.indexOf('/*') !== -1) || (lineText.indexOf('*/') !== -1)) {
33188-
continue;
33189-
} else {
33190-
let regx = /:[^;]*;/g;
33191-
33192-
lineText = lineText.match(regx);
33193-
if (lineText) {
33194-
let tempColors = lineText[0].match(COLOR_REGEX);
33195-
// Support up to 4 colors
33196-
if (tempColors && tempColors.length > 0) {
33197-
let colors = tempColors.slice(0, 4);
33198-
aColors.push({
33199-
lineNumber: i,
33200-
colorValues: colors
33201-
});
33202-
}
33203-
}
33204-
}
33205-
}
3320633226

33207-
showGutters(editor, aColors);
33208-
}
33227+
/**
33228+
* To add the color marks on the gutter of all the active editors
33229+
* This function is called when the user toggles the
33230+
* CssColorPreview preference and set it to true
33231+
*/
33232+
function addColorMarksToAllEditors() {
33233+
33234+
const allActiveEditors = MainViewManager.getAllViewedEditors();
33235+
33236+
allActiveEditors.forEach((activeEditor) => {
33237+
const currEditor = activeEditor.editor;
33238+
if(currEditor) {
33239+
33240+
const aColors = _getAllColorsAndLineNums(currEditor);
33241+
showGutters(currEditor, aColors);
33242+
33243+
}
33244+
});
3320933245
}
3321033246

3321133247
/**
33212-
* To remove the color marks from the gutter
33248+
* To remove the color marks from the gutter of all the active editors
3321333249
*/
3321433250
function removeColorMarks() {
33215-
const editor = EditorManager.getActiveEditor();
33216-
if (editor) {
33217-
const cm = editor._codeMirror;
33218-
cm.clearGutter(gutterName);
33219-
}
33251+
33252+
const allActiveEditors = MainViewManager.getAllViewedEditors();
33253+
33254+
allActiveEditors.forEach((activeEditor) => {
33255+
const currEditor = activeEditor.editor;
33256+
if(currEditor) {
33257+
const cm = currEditor._codeMirror;
33258+
cm.clearGutter(gutterName);
33259+
}
33260+
});
3322033261
}
3322133262

3322233263
/**
@@ -33340,9 +33381,11 @@ define("extensionsIntegrated/CSSColorPreview/main", function (require, exports,
3334033381
const value = PreferencesManager.get(PREFERENCES_CSS_COLOR_PREVIEW);
3334133382
enabled = value;
3334233383
if (!value) {
33384+
// to dynamically remove color to all active editors
3334333385
removeColorMarks();
3334433386
} else {
33345-
showColorMarks();
33387+
// to dynamically add color to all active editors
33388+
addColorMarksToAllEditors();
3334633389
}
3334733390
}
3334833391

@@ -33357,7 +33400,8 @@ define("extensionsIntegrated/CSSColorPreview/main", function (require, exports,
3335733400
* Driver function, runs at the start of the program
3335833401
*/
3335933402
function init() {
33360-
showColorMarks();
33403+
// preferenceChanged calls 'showColorMarks' or 'removeColorMarks'
33404+
preferenceChanged();
3336133405
registerHandlers();
3336233406
}
3336333407

cacheManifest.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "050aac23e1df62b33f0a9416760f57f04293f5fb5c5afa3a8af10391c39bcc9c",
3-
"assets/default-project/en.zip": "bcdae8a5fc723c2a8f4971708a378c9dc56120812c598d4bec88a3c227f1f819",
2+
"appConfig.js": "20ca98e5c686bccbe5398038dbb20d7fd5f6d74a9b13f646703f2244b3f69127",
3+
"assets/default-project/en.zip": "88c14ee032df2dd351c2e5571b4e288f59df74869145344f97c959e9b20ed3c0",
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": "97cf258e9dc46a4e65a78c88741c7f63759a68d0d2e581a285d6ea41837664a0",
128+
"assets/sample-projects/bootstrap-blog.zip": "75749762dec16406f6f1e2b9d0a9cd3c7cad865d18d704b7d4ed18a396adbbbd",
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": "b04ee7c3d556e215fd654d6663e25d141966b54f4e9cd6d8e113a28dbcc1d8ff",
138+
"assets/sample-projects/dashboard.zip": "cc01542bddddb33446ab504edc4251d1d67a2505de030a407996a26d0450073e",
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": "efe16076d1d1061a762dd49bfa1f35ac74c3f751ac605682fb200b2dc8a0dd90",
150+
"assets/sample-projects/explore.zip": "fb0a02758d77158c5417c8c18c454d2da403784596a4f91bee22d81dff0c56eb",
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": "246d9540a868076f9409f627f8925f55bc91512b0d66d2e01f2cc75d98617227",
239+
"assets/sample-projects/home-pages.zip": "bcd4e1f18989688a8f958342285a55554d7f72a620d91439b7e2bf0543807607",
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": "148054885441bd59830503c6b1da10776b430e048fc1f929918e7ed00cad067a",
251+
"assets/sample-projects/HTML5.zip": "888921459e33239f490341ab14bb13d88a7d833bd4c42e8f2d6e051a491c7116",
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": "2af3a205061a7f45a2c3938c89742b3692dddada9daa36a93259c43bd331df62",
259+
"brackets-min.js": "b8e6749da03f4216c070da85526602d63425cf46a308d073a1642554d7dd0a7a",
260260
"brackets.config.dist.json": "8faa5c0a82bb4f49784e93d1225dbd5e1fd8ec6ab07b95f5f874c7c7bd7bb234",
261261
"brackets.config.staging.json": "c0e1f22c772c80f4f5756ab947e40538bcaf7fb7f8925834cfd4ef57c55e477a",
262262
"brackets.js": "f7a3164510e76e012591c9758acb47f2445526642503180c57209d30faa24d69",
263-
"cacheManifest.json": "4dbb7e097ca460ad3f81ac27e7146a5b56658658f1fc0a50c08a971dce29abb4",
263+
"cacheManifest.json": "ad47a7f3f5725d1a44afef51dd4ff0f7efbf8e68610a6b0db98cdcd19a581d00",
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": "85dbf0b952cc7ff96289797706441c898995588f336f211f32b920ac24204c16",
272+
"config.json": "37d1971d40a952856981142dbd3a18aca46940abfbc4b4ab2824cf97c0fda37f",
273273
"desktop-metrics.html": "66f87550ddf04f284a6c1e81567b7dfbefb2b8007f48f0bad7d8f7aacdb11bac",
274274
"devEnable.html": "44aa1a496a8be413299f651e6b0c3e62ac50cd5d40126ad1bb6b70b9b2b818c4",
275275
"document/ChangedDocumentTracker.js": "03b0eaf0995fee6d27c782a8028a1314f61214e383f5f5e198320b2faac4cf40",
@@ -516,9 +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": "26aabb1c37c10fb4c8424f8469e4aefb161bc64e37d12c16c8516ffbaa4d906b",
520-
"extensions/registry/registry_version.json": "1ba46f3148d4541cd00181f87b7b0c132ad39e87c282e4b31db1fb8a12a11828",
521-
"extensions/registry/registry.json": "02380cf3d3d661043441f02f38de158d0f0eef598dffd78f51bca893fa13e2ce",
519+
"extensions/registry/popularity.json": "344eaeece190fa1c2457fe84db6293b36b1ecc8c38dbbebde63aa0c323d97729",
520+
"extensions/registry/registry_version.json": "2510e54de8cd624ef5adebb11e714315de6f2bc29c17e4b6a6eac1521c80711d",
521+
"extensions/registry/registry.json": "4ed11aeb01bb6ba22f6e76020401ba28cef39e26cd477b69f1420b8f0fb41651",
522522
"extensions/samples/BracketsConfigCentral/htmlContent/Config.html": "6ac3ce03e2fb8913ec5da3e8835c0646894f242600c64d95b77c7d7dc0a156f7",
523523
"extensions/samples/BracketsConfigCentral/htmlContent/logo-sm.png": "006f025fecd24c292e87a1eb0e123ee21178ec9c09517a1f16fe362fe2fbcbb5",
524524
"extensions/samples/BracketsConfigCentral/main.js": "f2c36decadb7d98e2a89cfdb9aff8a74cc130ea8c3ad084b7af62ee21e3a8181",
@@ -542,7 +542,7 @@
542542
"extensions/samples/README.md": "381c6647cc6f90bd8c609b5896cfcdf78bcae2b3a9660c204d8b744a21436df6",
543543
"extensions/samples/TypingSpeedLogger/main.js": "87327584d6ebaa4e69ee7a8b4972951baeb01869f22b7c971736524cecd3137f",
544544
"extensionsIntegrated/appUpdater/main.js": "1d0c06f3bfb951d6293e0a69ea10def6d4f3addec459e8df78f3c88ea0a26fb6",
545-
"extensionsIntegrated/CSSColorPreview/main.js": "7c39eb0e31545c2519de910e825e4c96191d570035d4f00670ee6b9a56c349c4",
545+
"extensionsIntegrated/CSSColorPreview/main.js": "319e42ea8ec9af72a68e2f58748a91b590e2bcbffd3efeea3ae25d9ba80e785d",
546546
"extensionsIntegrated/DisplayShortcuts/main.js": "1f03c6526af816a730f4a72d596a8b3db7294de8c8c26756e331aa442b0e91a6",
547547
"extensionsIntegrated/DisplayShortcuts/package.json": "385efa285cafdd7695557c66ac1d7a925aab824362a2a8f6e60dbf195d3239dd",
548548
"extensionsIntegrated/DisplayShortcuts/templates/bottom-panel.html": "1687fe6eb9d71c808d34745a7c68b235d1aa8c948339a17ce0d98aa8654fd280",

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-30T10:46:51.969Z",
28+
"build_timestamp": "2024-11-30T18:34:29.300Z",
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.11.0-20698",
40+
"version": "3.11.0-20699",
4141
"apiVersion": "3.11.0",
4242
"homepage": "https://core.ai",
4343
"issues": {

0 commit comments

Comments
 (0)