@opensumi/ide-explorer 2.21.13 → 2.22.0
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explorer-contribution.js","sourceRoot":"","sources":["../../src/browser/explorer-contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAA8G;AAC9G,qFAA2F;AAKlF,sGALA,oCAAqB,OAKA;AAJ9B,gGAA6F;AAC7F,kEAAiG;AACjG,+DAAqE;
|
|
1
|
+
{"version":3,"file":"explorer-contribution.js","sourceRoot":"","sources":["../../src/browser/explorer-contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAA8G;AAC9G,qFAA2F;AAKlF,sGALA,oCAAqB,OAKA;AAJ9B,gGAA6F;AAC7F,kEAAiG;AACjG,+DAAqE;AAK9D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAI/B,iBAAiB;IACjB,iBAAiB,CAAC,QAA2B;QAC3C,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,EAAE,EAAE,EAAE;YAC9C,SAAS,EAAE,IAAA,0BAAO,EAAC,UAAU,CAAC;YAC9B,KAAK,EAAE,IAAA,2BAAQ,EAAC,gBAAgB,CAAC;YACjC,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,oCAAqB;SACnC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,IAAI,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE;YAChF,cAAc,EAAE,oCAAqB;YACrC,aAAa,EAAE,CAAC,UAAU,CAAC;YAC3B,UAAU,kCACL,2BAAY,CAAC,UAAU,KAC1B,WAAW,EAAE,IAAA,iCAAc,EAAC,8CAA8C,EAAE,IAAA,2BAAQ,EAAC,gBAAgB,CAAC,CAAC,GACxG;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAvBC;IAAC,IAAA,cAAS,EAAC,0CAAwB,CAAC;;qEACiC;AAF1D,oBAAoB;IADhC,IAAA,yBAAM,EAAC,wCAAqB,EAAE,8BAAqB,CAAC;GACxC,oBAAoB,CAwBhC;AAxBY,oDAAoB"}
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,iEAA2D;AAE3D,mEAA+D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,iEAA2D;AAE3D,mEAA+D;AAGxD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,gCAAa;IAA1C;;QACL,cAAS,GAAe,CAAC,4CAAoB,CAAC,CAAC;IACjD,CAAC;CAAA,CAAA;AAFY,cAAc;IAD1B,IAAA,eAAU,GAAE;GACA,cAAc,CAE1B;AAFY,wCAAc"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-explorer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"files": [
|
|
5
|
-
"lib"
|
|
5
|
+
"lib",
|
|
6
|
+
"src"
|
|
6
7
|
],
|
|
7
8
|
"license": "MIT",
|
|
8
9
|
"main": "lib/index.js",
|
|
9
10
|
"typings": "lib/index.d.ts",
|
|
10
11
|
"scripts": {
|
|
11
|
-
"prepublishOnly": "
|
|
12
|
+
"prepublishOnly": "yarn run build",
|
|
12
13
|
"build": "tsc --build ../../configs/ts/references/tsconfig.explorer.json"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
@@ -16,12 +17,12 @@
|
|
|
16
17
|
"url": "git@github.com:opensumi/core.git"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@opensumi/ide-core-common": "2.
|
|
20
|
-
"@opensumi/ide-core-node": "2.
|
|
20
|
+
"@opensumi/ide-core-common": "2.22.0",
|
|
21
|
+
"@opensumi/ide-core-node": "2.22.0"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@opensumi/ide-core-browser": "2.
|
|
24
|
-
"@opensumi/ide-dev-tool": "
|
|
24
|
+
"@opensumi/ide-core-browser": "2.22.0",
|
|
25
|
+
"@opensumi/ide-dev-tool": "1.3.1"
|
|
25
26
|
},
|
|
26
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "927717e1c60f9cf5f01622fd51085b318a175eeb"
|
|
27
28
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Autowired } from '@opensumi/di';
|
|
2
|
+
import { localize, Domain, getIcon, formatLocalize, ClientAppContribution } from '@opensumi/ide-core-browser';
|
|
3
|
+
import { EXPLORER_CONTAINER_ID } from '@opensumi/ide-core-browser/lib/common/container-id';
|
|
4
|
+
import { browserViews } from '@opensumi/ide-core-browser/lib/extensions/schema/browserViews';
|
|
5
|
+
import { ComponentContribution, ComponentRegistry } from '@opensumi/ide-core-browser/lib/layout';
|
|
6
|
+
import { IExtensionsSchemaService } from '@opensumi/ide-core-common';
|
|
7
|
+
|
|
8
|
+
export { EXPLORER_CONTAINER_ID };
|
|
9
|
+
|
|
10
|
+
@Domain(ClientAppContribution, ComponentContribution)
|
|
11
|
+
export class ExplorerContribution implements ClientAppContribution, ComponentContribution {
|
|
12
|
+
@Autowired(IExtensionsSchemaService)
|
|
13
|
+
protected readonly extensionsSchemaService: IExtensionsSchemaService;
|
|
14
|
+
|
|
15
|
+
// Explorer 只注册容器
|
|
16
|
+
registerComponent(registry: ComponentRegistry) {
|
|
17
|
+
registry.register('@opensumi/ide-explorer', [], {
|
|
18
|
+
iconClass: getIcon('explorer'),
|
|
19
|
+
title: localize('explorer.title'),
|
|
20
|
+
priority: 10,
|
|
21
|
+
containerId: EXPLORER_CONTAINER_ID,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onStart() {
|
|
26
|
+
this.extensionsSchemaService.appendExtensionPoint(['browserViews', 'properties'], {
|
|
27
|
+
extensionPoint: EXPLORER_CONTAINER_ID,
|
|
28
|
+
frameworkKind: ['opensumi'],
|
|
29
|
+
jsonSchema: {
|
|
30
|
+
...browserViews.properties,
|
|
31
|
+
description: formatLocalize('sumiContributes.browserViews.location.custom', localize('explorer.title')),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Provider, Injectable } from '@opensumi/di';
|
|
2
|
+
import { BrowserModule } from '@opensumi/ide-core-browser';
|
|
3
|
+
|
|
4
|
+
import { ExplorerContribution } from './explorer-contribution';
|
|
5
|
+
|
|
6
|
+
@Injectable()
|
|
7
|
+
export class ExplorerModule extends BrowserModule {
|
|
8
|
+
providers: Provider[] = [ExplorerContribution];
|
|
9
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './browser';
|