@opensumi/ide-menu-bar 2.13.9 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentContribution, ComponentRegistry } from '@opensumi/ide-core-browser/lib/layout';
|
|
2
2
|
import { ToolBarActionContribution, IToolbarRegistry } from '@opensumi/ide-core-browser';
|
|
3
3
|
export declare class MenuBarContribution implements ComponentContribution, ToolBarActionContribution {
|
|
4
|
+
private readonly appConfig;
|
|
4
5
|
registerComponent(registry: ComponentRegistry): void;
|
|
5
6
|
registerToolbarActions(registry: IToolbarRegistry): void;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/menu-bar.contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu-bar.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/menu-bar.contribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAIjG,OAAO,EAAE,yBAAyB,EAAa,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEpG,qBACa,mBAAoB,YAAW,qBAAqB,EAAE,yBAAyB;IAE1F,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IAEtC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB;IAoB7C,sBAAsB,CAAC,QAAQ,EAAE,gBAAgB;CAMlD"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MenuBarContribution = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
5
6
|
const di_helper_1 = require("@opensumi/ide-core-common/lib/di-helper");
|
|
6
7
|
const layout_1 = require("@opensumi/ide-core-browser/lib/layout");
|
|
7
8
|
const menu_bar_view_1 = require("./menu-bar.view");
|
|
@@ -15,7 +16,7 @@ let MenuBarContribution = class MenuBarContribution {
|
|
|
15
16
|
}, {
|
|
16
17
|
size: 27,
|
|
17
18
|
});
|
|
18
|
-
if (!
|
|
19
|
+
if (!this.appConfig.isElectronRenderer) {
|
|
19
20
|
registry.register('@opensumi/ide-toolbar-action', {
|
|
20
21
|
id: 'ide-toolbar-action',
|
|
21
22
|
component: toolbar_action_view_1.ToolbarAction,
|
|
@@ -23,12 +24,16 @@ let MenuBarContribution = class MenuBarContribution {
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
registerToolbarActions(registry) {
|
|
26
|
-
if (!
|
|
27
|
+
if (!this.appConfig.isElectronRenderer) {
|
|
27
28
|
registry.addLocation('menu-right');
|
|
28
29
|
registry.addLocation('menu-left');
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
};
|
|
33
|
+
(0, tslib_1.__decorate)([
|
|
34
|
+
(0, di_1.Autowired)(ide_core_browser_1.AppConfig),
|
|
35
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
36
|
+
], MenuBarContribution.prototype, "appConfig", void 0);
|
|
32
37
|
MenuBarContribution = (0, tslib_1.__decorate)([
|
|
33
38
|
(0, di_helper_1.Domain)(layout_1.ComponentContribution, ide_core_browser_1.ToolBarActionContribution)
|
|
34
39
|
], MenuBarContribution);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar.contribution.js","sourceRoot":"","sources":["../../src/browser/menu-bar.contribution.ts"],"names":[],"mappings":";;;;AAAA,uEAAiE;AACjE,kEAAiG;AAEjG,mDAA0D;AAC1D,+DAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"menu-bar.contribution.js","sourceRoot":"","sources":["../../src/browser/menu-bar.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,uEAAiE;AACjE,kEAAiG;AAEjG,mDAA0D;AAC1D,+DAAsD;AACtD,iEAAoG;AAGpG,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI9B,iBAAiB,CAAC,QAA2B;QAC3C,QAAQ,CAAC,QAAQ,CACf,wBAAwB,EACxB;YACE,EAAE,EAAE,cAAc;YAClB,SAAS,EAAE,uCAAuB;SACnC,EACD;YACE,IAAI,EAAE,EAAE;SACT,CACF,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE;YACtC,QAAQ,CAAC,QAAQ,CAAC,8BAA8B,EAAE;gBAChD,EAAE,EAAE,oBAAoB;gBACxB,SAAS,EAAE,mCAAa;aACzB,CAAC,CAAC;SACJ;IACH,CAAC;IAED,sBAAsB,CAAC,QAA0B;QAC/C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE;YACtC,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;YACnC,QAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;SACnC;IACH,CAAC;CACF,CAAA;AA5BC;IADC,IAAA,cAAS,EAAC,4BAAS,CAAC;;sDACiB;AAF3B,mBAAmB;IAD/B,IAAA,kBAAM,EAAC,8BAAqB,EAAE,4CAAyB,CAAC;GAC5C,mBAAmB,CA8B/B;AA9BY,kDAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-menu-bar",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"description": "@opensumi/ide-menu-bar",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"url": "git@github.com:opensumi/core.git"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@opensumi/ide-
|
|
21
|
-
"@opensumi/ide-core-
|
|
22
|
-
"@opensumi/ide-
|
|
20
|
+
"@opensumi/ide-components": "2.14.1",
|
|
21
|
+
"@opensumi/ide-core-browser": "2.14.1",
|
|
22
|
+
"@opensumi/ide-core-common": "2.14.1",
|
|
23
|
+
"@opensumi/ide-core-node": "2.14.1"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@opensumi/ide-core-browser": "2.13.9",
|
|
26
26
|
"@opensumi/ide-dev-tool": "^1.3.1"
|
|
27
27
|
}
|
|
28
28
|
}
|