@opensumi/ide-startup 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.
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/startup.contribution.js.map +1 -1
- package/package.json +57 -77
- package/src/browser/common-modules.ts +92 -0
- package/src/browser/editor-bottom-example.tsx +14 -0
- package/src/browser/exmaple-popover.tsx +38 -0
- package/src/browser/index.ts +9 -0
- package/src/browser/startup.contribution.ts +262 -0
- package/src/node/common-modules.ts +26 -0
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,iEAA6D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;AAAA,qCAAoD;AACpD,iEAA2D;AAE3D,iEAA6D;AAGtD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,gCAAa;IAAzC;;QACL,cAAS,GAAe,CAAC,0CAAmB,CAAC,CAAC;IAChD,CAAC;CAAA,CAAA;AAFY,aAAa;IADzB,IAAA,eAAU,GAAE;GACA,aAAa,CAEzB;AAFY,sCAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup.contribution.js","sourceRoot":"","sources":["../../src/browser/startup.contribution.ts"],"names":[],"mappings":";;;;AAAA,+BAA+B;AAC/B,qCAAyC;AACzC,iEASoC;AACpC,iEAAqD;AACrD,kEAAiG;AACjG,mEAAmG;AACnG,sEAA4E;AAC5E,+DAAqH;AACrH,uEAAiE;AACjE,8DAAsG;AACtG,oFAAgF;AAGhF,mEAAoE;AACpE,uDAAmD;
|
|
1
|
+
{"version":3,"file":"startup.contribution.js","sourceRoot":"","sources":["../../src/browser/startup.contribution.ts"],"names":[],"mappings":";;;;AAAA,+BAA+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/B,IAAA,kBAAM,EACL,wCAAqB,EACrB,qCAAmB,EACnB,yCAAsB,EACtB,8BAAqB,EACrB,4CAAyB,EACzB,uBAAgB,EAChB,mCAAyB,CAC1B;GACY,mBAAmB,CAmO/B;AAnOY,kDAAmB"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-startup",
|
|
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
|
"start:lite": "webpack-dev-server --config ./webpack.lite.config.js",
|
|
13
14
|
"start": "run-p start:client:open start:server start:webview",
|
|
14
15
|
"start:webview": "webpack-dev-server --config ./webpack.webview.js",
|
|
@@ -20,10 +21,10 @@
|
|
|
20
21
|
"start:server:extjs": "cross-env EXT_MODE=js NODE_ENV=development KTLOG_SHOW_DEBUG=1 node --inspect=9999 -r ts-node/register ./entry/web/server.ts",
|
|
21
22
|
"build": "tsc --build ../../configs/ts/references/tsconfig.startup.json",
|
|
22
23
|
"bundle:standard": "cross-env NODE_ENV=production webpack --config webpack.standard.config.js",
|
|
23
|
-
"bundle:standard:analysis": "cross-env analysis=1
|
|
24
|
+
"bundle:standard:analysis": "cross-env analysis=1 yarn run bundle:standard",
|
|
24
25
|
"bundle:lite": "cross-env NODE_ENV=production webpack --config webpack.lite.config.js",
|
|
25
26
|
"bundle:lite:stats": "cross-env NODE_ENV=production webpack --profile --config webpack.lite.config.js --json > stats.json",
|
|
26
|
-
"bundle:lite:analysis": "cross-env analysis=1
|
|
27
|
+
"bundle:lite:analysis": "cross-env analysis=1 yarn run bundle:lite"
|
|
27
28
|
},
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|
|
@@ -58,91 +59,70 @@
|
|
|
58
59
|
"delay": "2000"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@opensumi/ide-addons": "2.
|
|
62
|
-
"@opensumi/ide-collaboration": "2.
|
|
63
|
-
"@opensumi/ide-comments": "2.
|
|
64
|
-
"@opensumi/ide-core-browser": "2.
|
|
65
|
-
"@opensumi/ide-core-common": "2.
|
|
66
|
-
"@opensumi/ide-core-node": "2.
|
|
67
|
-
"@opensumi/ide-debug": "2.
|
|
68
|
-
"@opensumi/ide-decoration": "2.
|
|
69
|
-
"@opensumi/ide-editor": "2.
|
|
70
|
-
"@opensumi/ide-explorer": "2.
|
|
71
|
-
"@opensumi/ide-extension": "2.
|
|
72
|
-
"@opensumi/ide-extension-manager": "2.
|
|
73
|
-
"@opensumi/ide-extension-storage": "2.
|
|
74
|
-
"@opensumi/ide-file-scheme": "2.
|
|
75
|
-
"@opensumi/ide-file-search": "2.
|
|
76
|
-
"@opensumi/ide-file-service": "2.
|
|
77
|
-
"@opensumi/ide-file-tree-next": "2.
|
|
78
|
-
"@opensumi/ide-i18n": "2.
|
|
79
|
-
"@opensumi/ide-keymaps": "2.
|
|
80
|
-
"@opensumi/ide-logs": "2.
|
|
81
|
-
"@opensumi/ide-main-layout": "2.
|
|
82
|
-
"@opensumi/ide-markdown": "2.
|
|
83
|
-
"@opensumi/ide-markers": "2.
|
|
84
|
-
"@opensumi/ide-menu-bar": "2.
|
|
85
|
-
"@opensumi/ide-monaco": "2.
|
|
86
|
-
"@opensumi/ide-monaco-enhance": "2.
|
|
87
|
-
"@opensumi/ide-opened-editor": "2.
|
|
88
|
-
"@opensumi/ide-outline": "2.
|
|
89
|
-
"@opensumi/ide-output": "2.
|
|
90
|
-
"@opensumi/ide-overlay": "2.
|
|
91
|
-
"@opensumi/ide-preferences": "2.
|
|
92
|
-
"@opensumi/ide-process": "2.
|
|
93
|
-
"@opensumi/ide-quick-open": "2.
|
|
94
|
-
"@opensumi/ide-remote-opener": "2.
|
|
95
|
-
"@opensumi/ide-scm": "2.
|
|
96
|
-
"@opensumi/ide-search": "2.
|
|
97
|
-
"@opensumi/ide-static-resource": "2.
|
|
98
|
-
"@opensumi/ide-status-bar": "2.
|
|
99
|
-
"@opensumi/ide-storage": "2.
|
|
100
|
-
"@opensumi/ide-task": "2.
|
|
101
|
-
"@opensumi/ide-terminal-next": "2.
|
|
102
|
-
"@opensumi/ide-testing": "2.
|
|
103
|
-
"@opensumi/ide-theme": "2.
|
|
104
|
-
"@opensumi/ide-toolbar": "2.
|
|
105
|
-
"@opensumi/ide-userstorage": "2.
|
|
106
|
-
"@opensumi/ide-variable": "2.
|
|
107
|
-
"@opensumi/ide-webview": "2.
|
|
108
|
-
"@opensumi/ide-workspace": "2.
|
|
109
|
-
"@opensumi/ide-workspace-edit": "2.
|
|
62
|
+
"@opensumi/ide-addons": "2.22.0",
|
|
63
|
+
"@opensumi/ide-collaboration": "2.22.0",
|
|
64
|
+
"@opensumi/ide-comments": "2.22.0",
|
|
65
|
+
"@opensumi/ide-core-browser": "2.22.0",
|
|
66
|
+
"@opensumi/ide-core-common": "2.22.0",
|
|
67
|
+
"@opensumi/ide-core-node": "2.22.0",
|
|
68
|
+
"@opensumi/ide-debug": "2.22.0",
|
|
69
|
+
"@opensumi/ide-decoration": "2.22.0",
|
|
70
|
+
"@opensumi/ide-editor": "2.22.0",
|
|
71
|
+
"@opensumi/ide-explorer": "2.22.0",
|
|
72
|
+
"@opensumi/ide-extension": "2.22.0",
|
|
73
|
+
"@opensumi/ide-extension-manager": "2.22.0",
|
|
74
|
+
"@opensumi/ide-extension-storage": "2.22.0",
|
|
75
|
+
"@opensumi/ide-file-scheme": "2.22.0",
|
|
76
|
+
"@opensumi/ide-file-search": "2.22.0",
|
|
77
|
+
"@opensumi/ide-file-service": "2.22.0",
|
|
78
|
+
"@opensumi/ide-file-tree-next": "2.22.0",
|
|
79
|
+
"@opensumi/ide-i18n": "2.22.0",
|
|
80
|
+
"@opensumi/ide-keymaps": "2.22.0",
|
|
81
|
+
"@opensumi/ide-logs": "2.22.0",
|
|
82
|
+
"@opensumi/ide-main-layout": "2.22.0",
|
|
83
|
+
"@opensumi/ide-markdown": "2.22.0",
|
|
84
|
+
"@opensumi/ide-markers": "2.22.0",
|
|
85
|
+
"@opensumi/ide-menu-bar": "2.22.0",
|
|
86
|
+
"@opensumi/ide-monaco": "2.22.0",
|
|
87
|
+
"@opensumi/ide-monaco-enhance": "2.22.0",
|
|
88
|
+
"@opensumi/ide-opened-editor": "2.22.0",
|
|
89
|
+
"@opensumi/ide-outline": "2.22.0",
|
|
90
|
+
"@opensumi/ide-output": "2.22.0",
|
|
91
|
+
"@opensumi/ide-overlay": "2.22.0",
|
|
92
|
+
"@opensumi/ide-preferences": "2.22.0",
|
|
93
|
+
"@opensumi/ide-process": "2.22.0",
|
|
94
|
+
"@opensumi/ide-quick-open": "2.22.0",
|
|
95
|
+
"@opensumi/ide-remote-opener": "2.22.0",
|
|
96
|
+
"@opensumi/ide-scm": "2.22.0",
|
|
97
|
+
"@opensumi/ide-search": "2.22.0",
|
|
98
|
+
"@opensumi/ide-static-resource": "2.22.0",
|
|
99
|
+
"@opensumi/ide-status-bar": "2.22.0",
|
|
100
|
+
"@opensumi/ide-storage": "2.22.0",
|
|
101
|
+
"@opensumi/ide-task": "2.22.0",
|
|
102
|
+
"@opensumi/ide-terminal-next": "2.22.0",
|
|
103
|
+
"@opensumi/ide-testing": "2.22.0",
|
|
104
|
+
"@opensumi/ide-theme": "2.22.0",
|
|
105
|
+
"@opensumi/ide-toolbar": "2.22.0",
|
|
106
|
+
"@opensumi/ide-userstorage": "2.22.0",
|
|
107
|
+
"@opensumi/ide-variable": "2.22.0",
|
|
108
|
+
"@opensumi/ide-webview": "2.22.0",
|
|
109
|
+
"@opensumi/ide-workspace": "2.22.0",
|
|
110
|
+
"@opensumi/ide-workspace-edit": "2.22.0",
|
|
110
111
|
"@opensumi/textmate-languages": "^2.6.1"
|
|
111
112
|
},
|
|
112
113
|
"devDependencies": {
|
|
113
|
-
"@opensumi/ide-dev-tool": "
|
|
114
|
+
"@opensumi/ide-dev-tool": "1.3.1",
|
|
114
115
|
"browserfs": "^1.4.3",
|
|
115
|
-
"clean-webpack-plugin": "^3.0.0",
|
|
116
|
-
"compression": "^1.7.4",
|
|
117
|
-
"cross-env": "^7.0.3",
|
|
118
116
|
"css-loader": "^2.1.1",
|
|
119
117
|
"electron": "^18.3.0",
|
|
120
118
|
"file-loader": "^3.0.1",
|
|
121
|
-
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
122
|
-
"html-webpack-plugin": "^3.2.0",
|
|
123
|
-
"http-proxy-middleware": "^1.0.4",
|
|
124
|
-
"koa": "^2.13.4",
|
|
125
|
-
"koa-bodyparser": "^4.3.0",
|
|
126
|
-
"less": "^3.9.0",
|
|
127
119
|
"less-loader": "^6.0.0",
|
|
128
|
-
"mini-css-extract-plugin": "^0.6.0",
|
|
129
|
-
"mobx": "^5.9.4",
|
|
130
|
-
"mobx-react-lite": "^1.3.1",
|
|
131
120
|
"nodemon": "^2.0.15",
|
|
132
121
|
"npm-run": "^5.0.1",
|
|
133
122
|
"npm-run-all": "^4.1.5",
|
|
134
123
|
"react-dom": "^16.8.6",
|
|
135
|
-
"serviceworker-webpack-plugin": "^1.0.1",
|
|
136
|
-
"style-loader": "^0.23.1",
|
|
137
|
-
"style-resources-loader": "^1.2.1",
|
|
138
|
-
"ts-loader": "^6.0.1",
|
|
139
|
-
"ts-node": "^10.0.0",
|
|
140
|
-
"tsconfig-paths": "^3.8.0",
|
|
141
|
-
"tsconfig-paths-webpack-plugin": "^3.2.0",
|
|
142
|
-
"webpack": "^4.39.3",
|
|
143
124
|
"webpack-bundle-analyzer": "^3.8.0",
|
|
144
|
-
"webpack-cli": "^3.3.1",
|
|
145
125
|
"webpack-dev-server": "3.8.0"
|
|
146
126
|
},
|
|
147
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "927717e1c60f9cf5f01622fd51085b318a175eeb"
|
|
148
128
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ClientAddonModule } from '@opensumi/ide-addons/lib/browser';
|
|
2
|
+
import { CommentsModule } from '@opensumi/ide-comments/lib/browser';
|
|
3
|
+
import { ClientCommonModule, BrowserModule, ConstructorOf } from '@opensumi/ide-core-browser';
|
|
4
|
+
import { DebugModule } from '@opensumi/ide-debug/lib/browser';
|
|
5
|
+
import { DecorationModule } from '@opensumi/ide-decoration/lib/browser';
|
|
6
|
+
import { EditorModule } from '@opensumi/ide-editor/lib/browser';
|
|
7
|
+
import { ExplorerModule } from '@opensumi/ide-explorer/lib/browser';
|
|
8
|
+
import { OpenVsxExtensionManagerModule } from '@opensumi/ide-extension-manager/lib/browser';
|
|
9
|
+
import { ExtensionStorageModule } from '@opensumi/ide-extension-storage/lib/browser';
|
|
10
|
+
import { ExtensionModule } from '@opensumi/ide-extension/lib/browser';
|
|
11
|
+
import { FileSchemeModule } from '@opensumi/ide-file-scheme/lib/browser';
|
|
12
|
+
import { FileServiceClientModule } from '@opensumi/ide-file-service/lib/browser';
|
|
13
|
+
import { FileTreeNextModule } from '@opensumi/ide-file-tree-next/lib/browser';
|
|
14
|
+
import { KeymapsModule } from '@opensumi/ide-keymaps/lib/browser';
|
|
15
|
+
import { LogModule } from '@opensumi/ide-logs/lib/browser';
|
|
16
|
+
import { MainLayoutModule } from '@opensumi/ide-main-layout/lib/browser';
|
|
17
|
+
// import { Terminal2Module } from '@opensumi/ide-terminal2/lib/browser';
|
|
18
|
+
import { MarkdownModule } from '@opensumi/ide-markdown';
|
|
19
|
+
import { MarkersModule } from '@opensumi/ide-markers/lib/browser';
|
|
20
|
+
import { MenuBarModule } from '@opensumi/ide-menu-bar/lib/browser';
|
|
21
|
+
import { MonacoEnhanceModule } from '@opensumi/ide-monaco-enhance/lib/browser/module';
|
|
22
|
+
import { MonacoModule } from '@opensumi/ide-monaco/lib/browser';
|
|
23
|
+
import { OpenedEditorModule } from '@opensumi/ide-opened-editor/lib/browser';
|
|
24
|
+
import { OutlineModule } from '@opensumi/ide-outline/lib/browser';
|
|
25
|
+
import { OutputModule } from '@opensumi/ide-output/lib/browser';
|
|
26
|
+
import { OverlayModule } from '@opensumi/ide-overlay/lib/browser';
|
|
27
|
+
import { PreferencesModule } from '@opensumi/ide-preferences/lib/browser';
|
|
28
|
+
import { QuickOpenModule } from '@opensumi/ide-quick-open/lib/browser';
|
|
29
|
+
import { SCMModule } from '@opensumi/ide-scm/lib/browser';
|
|
30
|
+
import { SearchModule } from '@opensumi/ide-search/lib/browser';
|
|
31
|
+
import { StaticResourceModule } from '@opensumi/ide-static-resource/lib/browser';
|
|
32
|
+
import { StatusBarModule } from '@opensumi/ide-status-bar/lib/browser';
|
|
33
|
+
import { StorageModule } from '@opensumi/ide-storage/lib/browser';
|
|
34
|
+
import { TaskModule } from '@opensumi/ide-task/lib/browser';
|
|
35
|
+
import { TerminalNextModule } from '@opensumi/ide-terminal-next/lib/browser';
|
|
36
|
+
import { TestingModule } from '@opensumi/ide-testing/lib/browser';
|
|
37
|
+
import { ThemeModule } from '@opensumi/ide-theme/lib/browser';
|
|
38
|
+
import { ToolbarModule } from '@opensumi/ide-toolbar/lib/browser';
|
|
39
|
+
import { VariableModule } from '@opensumi/ide-variable/lib/browser';
|
|
40
|
+
import { WebviewModule } from '@opensumi/ide-webview';
|
|
41
|
+
import { WorkspaceEditModule } from '@opensumi/ide-workspace-edit/lib/browser';
|
|
42
|
+
import { WorkspaceModule } from '@opensumi/ide-workspace/lib/browser';
|
|
43
|
+
|
|
44
|
+
export const CommonBrowserModules: ConstructorOf<BrowserModule>[] = [
|
|
45
|
+
MainLayoutModule,
|
|
46
|
+
OverlayModule,
|
|
47
|
+
LogModule,
|
|
48
|
+
ClientCommonModule,
|
|
49
|
+
MenuBarModule,
|
|
50
|
+
MonacoModule,
|
|
51
|
+
StatusBarModule,
|
|
52
|
+
EditorModule,
|
|
53
|
+
ExplorerModule,
|
|
54
|
+
FileTreeNextModule,
|
|
55
|
+
FileServiceClientModule,
|
|
56
|
+
StaticResourceModule,
|
|
57
|
+
SearchModule,
|
|
58
|
+
FileSchemeModule,
|
|
59
|
+
OutputModule,
|
|
60
|
+
QuickOpenModule,
|
|
61
|
+
MarkersModule,
|
|
62
|
+
|
|
63
|
+
ThemeModule,
|
|
64
|
+
WorkspaceModule,
|
|
65
|
+
ExtensionStorageModule,
|
|
66
|
+
StorageModule,
|
|
67
|
+
OpenedEditorModule,
|
|
68
|
+
OutlineModule,
|
|
69
|
+
PreferencesModule,
|
|
70
|
+
ToolbarModule,
|
|
71
|
+
WebviewModule,
|
|
72
|
+
MarkdownModule,
|
|
73
|
+
WorkspaceEditModule,
|
|
74
|
+
SCMModule,
|
|
75
|
+
DecorationModule,
|
|
76
|
+
DebugModule,
|
|
77
|
+
VariableModule,
|
|
78
|
+
KeymapsModule,
|
|
79
|
+
TerminalNextModule,
|
|
80
|
+
|
|
81
|
+
// Extension Modules
|
|
82
|
+
ExtensionModule,
|
|
83
|
+
// FeatureExtensionModule,
|
|
84
|
+
OpenVsxExtensionManagerModule,
|
|
85
|
+
MonacoEnhanceModule,
|
|
86
|
+
|
|
87
|
+
// addons
|
|
88
|
+
ClientAddonModule,
|
|
89
|
+
CommentsModule,
|
|
90
|
+
TaskModule,
|
|
91
|
+
TestingModule,
|
|
92
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { ReactEditorComponent } from '@opensumi/ide-editor/lib/browser';
|
|
4
|
+
|
|
5
|
+
export const ExampleEditorBottomWidget: ReactEditorComponent<any> = ({ resource }) => (
|
|
6
|
+
<div
|
|
7
|
+
style={{
|
|
8
|
+
border: '1px solid var(--foreground)',
|
|
9
|
+
padding: '5px 10px',
|
|
10
|
+
}}
|
|
11
|
+
>
|
|
12
|
+
Example Bottom Widget for File Uri: {resource.uri.toString()}
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const ExamplePopover = () => {
|
|
4
|
+
const imgUrl = 'https://gw-office.alipayobjects.com/bmw-prod/f81b277b-5227-483d-9c1c-43f105bcf048.png';
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<div
|
|
8
|
+
style={{
|
|
9
|
+
width: '200px',
|
|
10
|
+
height: '200px',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
}}
|
|
15
|
+
onContextMenu={(e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
navigator.clipboard.writeText(imgUrl).then(
|
|
18
|
+
function () {
|
|
19
|
+
/* clipboard successfully set */
|
|
20
|
+
alert('图片地址已复制');
|
|
21
|
+
},
|
|
22
|
+
function () {
|
|
23
|
+
/* clipboard write failed */
|
|
24
|
+
},
|
|
25
|
+
);
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
28
|
+
<img
|
|
29
|
+
style={{
|
|
30
|
+
width: '150px',
|
|
31
|
+
height: '150px',
|
|
32
|
+
display: 'block',
|
|
33
|
+
}}
|
|
34
|
+
src={imgUrl}
|
|
35
|
+
></img>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Provider, Injectable } from '@opensumi/di';
|
|
2
|
+
import { BrowserModule } from '@opensumi/ide-core-browser';
|
|
3
|
+
|
|
4
|
+
import { StartupContribution } from './startup.contribution';
|
|
5
|
+
|
|
6
|
+
@Injectable()
|
|
7
|
+
export class StartupModule extends BrowserModule {
|
|
8
|
+
providers: Provider[] = [StartupContribution];
|
|
9
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Autowired } from '@opensumi/di';
|
|
3
|
+
import {
|
|
4
|
+
KeybindingContribution,
|
|
5
|
+
KeybindingRegistry,
|
|
6
|
+
Logger,
|
|
7
|
+
ClientAppContribution,
|
|
8
|
+
IToolbarRegistry,
|
|
9
|
+
ToolBarActionContribution,
|
|
10
|
+
createToolbarActionBtn,
|
|
11
|
+
createToolbarActionSelect,
|
|
12
|
+
} from '@opensumi/ide-core-browser';
|
|
13
|
+
import { getIcon } from '@opensumi/ide-core-browser';
|
|
14
|
+
import { ComponentContribution, ComponentRegistry } from '@opensumi/ide-core-browser/lib/layout';
|
|
15
|
+
import { MenuContribution, IMenuRegistry, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
16
|
+
import { IStatusBarService } from '@opensumi/ide-core-browser/lib/services';
|
|
17
|
+
import { CommandContribution, CommandRegistry, IEventBus, CommandService, Schemes } from '@opensumi/ide-core-common';
|
|
18
|
+
import { Domain } from '@opensumi/ide-core-common/lib/di-helper';
|
|
19
|
+
import { BrowserEditorContribution, EditorComponentRegistry } from '@opensumi/ide-editor/lib/browser';
|
|
20
|
+
import { OutputService } from '@opensumi/ide-output/lib/browser/output.service';
|
|
21
|
+
import { ISCMProvider } from '@opensumi/ide-scm';
|
|
22
|
+
|
|
23
|
+
import { ExampleEditorBottomWidget } from './editor-bottom-example';
|
|
24
|
+
import { ExamplePopover } from './exmaple-popover';
|
|
25
|
+
|
|
26
|
+
@Domain(
|
|
27
|
+
ClientAppContribution,
|
|
28
|
+
CommandContribution,
|
|
29
|
+
KeybindingContribution,
|
|
30
|
+
ComponentContribution,
|
|
31
|
+
ToolBarActionContribution,
|
|
32
|
+
MenuContribution,
|
|
33
|
+
BrowserEditorContribution,
|
|
34
|
+
)
|
|
35
|
+
export class StartupContribution
|
|
36
|
+
implements
|
|
37
|
+
CommandContribution,
|
|
38
|
+
KeybindingContribution,
|
|
39
|
+
ClientAppContribution,
|
|
40
|
+
ComponentContribution,
|
|
41
|
+
ToolBarActionContribution,
|
|
42
|
+
MenuContribution,
|
|
43
|
+
BrowserEditorContribution
|
|
44
|
+
{
|
|
45
|
+
@Autowired(IEventBus)
|
|
46
|
+
eventBus: IEventBus;
|
|
47
|
+
|
|
48
|
+
@Autowired(IStatusBarService)
|
|
49
|
+
statusBar: IStatusBarService;
|
|
50
|
+
|
|
51
|
+
@Autowired(OutputService)
|
|
52
|
+
outputService: OutputService;
|
|
53
|
+
|
|
54
|
+
@Autowired()
|
|
55
|
+
logger: Logger;
|
|
56
|
+
|
|
57
|
+
@Autowired(IToolbarRegistry)
|
|
58
|
+
toolbarRegistry: IToolbarRegistry;
|
|
59
|
+
|
|
60
|
+
@Autowired(CommandService)
|
|
61
|
+
private readonly commandService: CommandService;
|
|
62
|
+
|
|
63
|
+
onStart() {}
|
|
64
|
+
|
|
65
|
+
registerEditorComponent(registry: EditorComponentRegistry) {
|
|
66
|
+
registry.registerEditorSideWidget({
|
|
67
|
+
id: 'example-bottom',
|
|
68
|
+
component: ExampleEditorBottomWidget,
|
|
69
|
+
displaysOnResource: (r) => r.uri.scheme === Schemes.file,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
registerComponent(registry: ComponentRegistry) {}
|
|
74
|
+
|
|
75
|
+
registerCommands(commands: CommandRegistry): void {
|
|
76
|
+
commands.registerCommand(
|
|
77
|
+
{
|
|
78
|
+
id: 'gitCommitAndPush',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
execute: async (provider: ISCMProvider, commitMsg: string) => {
|
|
82
|
+
// 强依赖了 git 插件的命令
|
|
83
|
+
const mergeChanges = provider.groups.elements.filter((n) => n.id === 'merge');
|
|
84
|
+
if (mergeChanges.length > 0) {
|
|
85
|
+
// console.log('有冲突尚未解决,请先解决');
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
await this.commandService.executeCommand('git.stageAll', provider);
|
|
89
|
+
await this.commandService.executeCommand('git.commit', provider);
|
|
90
|
+
await this.commandService.executeCommand('git.push', provider);
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
registerKeybindings(keybindings: KeybindingRegistry): void {}
|
|
97
|
+
|
|
98
|
+
registerToolbarActions(registry: IToolbarRegistry) {
|
|
99
|
+
registry.addLocation('menu-left');
|
|
100
|
+
registry.registerToolbarActionGroup({
|
|
101
|
+
id: 'test-compact',
|
|
102
|
+
compact: true,
|
|
103
|
+
preferredLocation: 'menu-right',
|
|
104
|
+
});
|
|
105
|
+
for (let i = 0; i < 6; i++) {
|
|
106
|
+
registry.registerToolbarAction({
|
|
107
|
+
id: 'test-' + i,
|
|
108
|
+
description: 'test-' + i + '按钮',
|
|
109
|
+
component: createToolbarActionBtn({
|
|
110
|
+
id: 'test-' + i,
|
|
111
|
+
title: 'test-' + i,
|
|
112
|
+
iconClass: getIcon('open'),
|
|
113
|
+
defaultStyle: {
|
|
114
|
+
btnStyle: i > 3 ? 'button' : 'inline',
|
|
115
|
+
background: i > 4 ? 'red' : undefined,
|
|
116
|
+
},
|
|
117
|
+
popoverComponent: ExamplePopover,
|
|
118
|
+
popoverStyle: {
|
|
119
|
+
noContainerStyle: i % 2 === 0,
|
|
120
|
+
},
|
|
121
|
+
delegate: (d) => {
|
|
122
|
+
d?.onClick(() => {
|
|
123
|
+
console.log('test ' + i + ' clicked');
|
|
124
|
+
d.showPopOver({
|
|
125
|
+
horizontalOffset: i * 10,
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
}),
|
|
130
|
+
neverCollapse: i > 4,
|
|
131
|
+
preferredPosition: {
|
|
132
|
+
location: 'menu-right',
|
|
133
|
+
group: i === 1 || i === 2 || i === 3 ? 'test-compact' : undefined,
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
for (let i = 7; i < 10; i++) {
|
|
138
|
+
registry.registerToolbarAction({
|
|
139
|
+
id: 'test-' + i,
|
|
140
|
+
description: 'test-' + i + '按钮',
|
|
141
|
+
component: createToolbarActionBtn({
|
|
142
|
+
id: 'test-' + i,
|
|
143
|
+
title: 'test-' + i,
|
|
144
|
+
iconClass: getIcon('open'),
|
|
145
|
+
defaultStyle: {
|
|
146
|
+
btnStyle: i > 3 ? 'button' : 'inline',
|
|
147
|
+
},
|
|
148
|
+
delegate: (d) => {
|
|
149
|
+
d?.onClick(() => {
|
|
150
|
+
console.log('test ' + i + ' clicked');
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
}),
|
|
154
|
+
preferredPosition: {
|
|
155
|
+
location: 'menu-left',
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
registry.registerToolbarAction({
|
|
160
|
+
id: 'test-select-1',
|
|
161
|
+
description: '选项框1',
|
|
162
|
+
weight: 11,
|
|
163
|
+
component: createToolbarActionSelect({
|
|
164
|
+
name: 'test-1',
|
|
165
|
+
delegate: (d) => {
|
|
166
|
+
d?.onSelect((value) => {
|
|
167
|
+
console.log('value ' + value + ' selected');
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
options: [
|
|
171
|
+
{
|
|
172
|
+
label: '选项a',
|
|
173
|
+
value: 'a',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: '选项b',
|
|
177
|
+
value: 'b',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
label: '选项c',
|
|
181
|
+
value: 'c',
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
defaultValue: 'b',
|
|
185
|
+
}),
|
|
186
|
+
});
|
|
187
|
+
registry.registerToolbarAction({
|
|
188
|
+
id: 'test-select-2',
|
|
189
|
+
weight: 11,
|
|
190
|
+
description: '选项框2',
|
|
191
|
+
component: createToolbarActionSelect({
|
|
192
|
+
name: 'test-2',
|
|
193
|
+
delegate: (d) => {
|
|
194
|
+
d?.onSelect((value) => {
|
|
195
|
+
console.log('value ' + value + ' selected');
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
options: [
|
|
199
|
+
{
|
|
200
|
+
groupName: 'TestGroup1',
|
|
201
|
+
options: [
|
|
202
|
+
{
|
|
203
|
+
label: '选项a',
|
|
204
|
+
value: 'a',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: '选项b',
|
|
208
|
+
value: 'b',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: '选项c',
|
|
212
|
+
value: 'c',
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
iconClass: getIcon('open'),
|
|
218
|
+
groupName: 'TestGroup2',
|
|
219
|
+
options: [
|
|
220
|
+
{
|
|
221
|
+
label: '选项aa',
|
|
222
|
+
value: 'ab',
|
|
223
|
+
iconClass: getIcon('open'),
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
label: '选项bb',
|
|
227
|
+
value: 'bb',
|
|
228
|
+
iconClass: getIcon('open'),
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: '选项cc',
|
|
232
|
+
value: 'cc',
|
|
233
|
+
iconClass: getIcon('open'),
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
defaultValue: 'cc',
|
|
239
|
+
}),
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
registerMenus(menuRegistry: IMenuRegistry) {
|
|
244
|
+
menuRegistry.registerMenuItem(MenuId.SCMInput, {
|
|
245
|
+
command: {
|
|
246
|
+
id: 'gitCommitAndPush',
|
|
247
|
+
label: '提交并推送',
|
|
248
|
+
},
|
|
249
|
+
group: 'navigation',
|
|
250
|
+
type: 'primary',
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
menuRegistry.registerMenuItem(MenuId.SCMInput, {
|
|
254
|
+
command: {
|
|
255
|
+
id: 'editor.action.quickCommand',
|
|
256
|
+
label: '打开 quick open',
|
|
257
|
+
},
|
|
258
|
+
group: 'navigation',
|
|
259
|
+
type: 'primary',
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AddonsModule } from '@opensumi/ide-addons/lib/node';
|
|
2
|
+
import { NodeModule, ConstructorOf } from '@opensumi/ide-core-node';
|
|
3
|
+
import { ServerCommonModule } from '@opensumi/ide-core-node';
|
|
4
|
+
import { OpenVsxExtensionManagerModule } from '@opensumi/ide-extension-manager/lib/node';
|
|
5
|
+
import { ExtensionModule } from '@opensumi/ide-extension/lib/node';
|
|
6
|
+
import { FileSchemeNodeModule } from '@opensumi/ide-file-scheme/lib/node';
|
|
7
|
+
import { FileSearchModule } from '@opensumi/ide-file-search/lib/node';
|
|
8
|
+
import { FileServiceModule } from '@opensumi/ide-file-service/lib/node';
|
|
9
|
+
import { LogServiceModule } from '@opensumi/ide-logs/lib/node';
|
|
10
|
+
import { ProcessModule } from '@opensumi/ide-process/lib/node';
|
|
11
|
+
import { SearchModule } from '@opensumi/ide-search/lib/node';
|
|
12
|
+
import { TerminalNodePtyModule } from '@opensumi/ide-terminal-next/lib/node';
|
|
13
|
+
|
|
14
|
+
export const CommonNodeModules: ConstructorOf<NodeModule>[] = [
|
|
15
|
+
ServerCommonModule,
|
|
16
|
+
LogServiceModule,
|
|
17
|
+
FileServiceModule,
|
|
18
|
+
ProcessModule,
|
|
19
|
+
FileSearchModule,
|
|
20
|
+
SearchModule,
|
|
21
|
+
TerminalNodePtyModule,
|
|
22
|
+
ExtensionModule,
|
|
23
|
+
OpenVsxExtensionManagerModule,
|
|
24
|
+
FileSchemeNodeModule,
|
|
25
|
+
AddonsModule,
|
|
26
|
+
];
|