Skip to content

Commit d1d4226

Browse files
committed
refactor: pro into integrated extension with kernal mode trust access
1 parent eedcaec commit d1d4226

File tree

10 files changed

+10
-31
lines changed

10 files changed

+10
-31
lines changed

gulpfile.js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ function _renameExtensionConcatAsExtensionJSInDist(extensionName) {
789789
}
790790

791791
const minifyableExtensions = ["CloseOthers", "CodeFolding", "DebugCommands", "Git",
792-
"HealthData", "JavaScriptCodeHints", "JavaScriptRefactoring", "QuickView", "phoenix-pro"];
792+
"HealthData", "JavaScriptCodeHints", "JavaScriptRefactoring", "QuickView"];
793793
// extensions that nned not be minified either coz they are single file extensions or some other reason.
794794
const nonMinifyExtensions = ["CSSAtRuleCodeHints", "CSSCodeHints",
795795
"CSSPseudoSelectorHints", "DarkTheme", "HandlebarsSupport", "HTMLCodeHints", "HtmlEntityCodeHints",

src/extensions/default/DefaultExtensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"QuickView",
2424
"SVGCodeHints",
2525
"UrlCodeHints",
26-
"HealthData",
27-
"phoenix-pro"
26+
"HealthData"
2827
],
2928
"desktopOnly": [
3029
"Git"

src/extensions/default/phoenix-pro/package.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/extensions/default/phoenix-pro/requirejs-config.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/extensions/default/phoenix-pro/unittests.js

Whitespace-only changes.

src/extensionsIntegrated/loader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ define(function (require, exports, module) {
4646
require("./TabBar/main");
4747
require("./CustomSnippets/main");
4848
require("./CollapseFolders/main");
49+
require("./phoenix-pro/main");
4950
});

src/LiveDevelopment/LivePreviewEdit.js renamed to src/extensionsIntegrated/phoenix-pro/LivePreviewEdit.js

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
/*
2-
* GNU AGPL-3.0 License
3-
*
42
* Copyright (c) 2021 - present core.ai . All rights reserved.
5-
* Original work Copyright (c) 2012 - 2021 Adobe Systems Incorporated. All rights reserved.
6-
*
7-
* This program is free software: you can redistribute it and/or modify it
8-
* under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful, but WITHOUT
13-
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14-
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
15-
* for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see https://opensource.org/licenses/AGPL-3.0.
19-
*
3+
* Proprietary code, all rights reserved.
204
*/
215

226
/*
@@ -41,7 +25,7 @@ define(function (require, exports, module) {
4125
const ProDialogs = require("services/pro-dialogs");
4226
const Mustache = require("thirdparty/mustache/mustache");
4327
const Strings = require("strings");
44-
const ImageFolderDialogTemplate = require("text!htmlContent/image-folder-dialog.html"); // todo move to extension
28+
const ImageFolderDialogTemplate = require("text!./html/image-folder-dialog.html");
4529
const LiveDevProtocol = require("LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol");
4630

4731
// state manager key, to save the download location of the image

src/extensions/default/phoenix-pro/browser-context/sample-remore-fn.js renamed to src/extensionsIntegrated/phoenix-pro/browser-context/sample-remore-fn.js

File renamed without changes.

src/htmlContent/image-folder-dialog.html renamed to src/extensionsIntegrated/phoenix-pro/html/image-folder-dialog.html

File renamed without changes.

src/extensions/default/phoenix-pro/main.js renamed to src/extensionsIntegrated/phoenix-pro/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
*/
55

66
define(function (require, exports, module) {
7-
const AppInit = brackets.getModule("utils/AppInit"),
8-
Strings = brackets.getModule("strings");
7+
require("./LivePreviewEdit");
8+
9+
const AppInit = require("utils/AppInit"),
10+
Strings = require("strings");
911

1012
const sampleFnText = require("text!./browser-context/sample-remore-fn.js");
11-
const LiveDevProtocol = brackets.getModule("LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol");
13+
const LiveDevProtocol = require("LiveDevelopment/MultiBrowserImpl/protocol/LiveDevProtocol");
1214
LiveDevProtocol.addRemoteFunctionScript("sampleFn", sampleFnText);
1315

1416
AppInit.appReady(function () {

0 commit comments

Comments
 (0)