super-nvm 0.0.0-stage → 1.0.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/LICENSE +27 -0
- package/README.md +221 -2
- package/bin/install-editors.ps1 +81 -0
- package/bin/nvm-ui.js +13 -0
- package/bin/super-nvm.js +13 -0
- package/out/core/nvm.js +802 -0
- package/out/core/nvm.js.map +1 -0
- package/out/core/types.js +3 -0
- package/out/core/types.js.map +1 -0
- package/out/server/cli.js +56 -0
- package/out/server/cli.js.map +1 -0
- package/out/server/standaloneServer.js +346 -0
- package/out/server/standaloneServer.js.map +1 -0
- package/out/ui/app.js +929 -0
- package/out/ui/index.html +374 -0
- package/out/ui/style.css +932 -0
- package/out/vscode/extension.js +282 -0
- package/out/vscode/extension.js.map +1 -0
- package/out/vscode/statusBar.js +74 -0
- package/out/vscode/statusBar.js.map +1 -0
- package/out/vscode/treeDataProvider.js +118 -0
- package/out/vscode/treeDataProvider.js.map +1 -0
- package/out/vscode/webviewPanel.js +307 -0
- package/out/vscode/webviewPanel.js.map +1 -0
- package/package.json +205 -3
- package/resources/nvm-icon.png +0 -0
- package/resources/nvm-icon.svg +69 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.NvmWebviewManager = void 0;
|
|
37
|
+
const vscode = __importStar(require("vscode"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const fs = __importStar(require("fs"));
|
|
40
|
+
class NvmWebviewManager {
|
|
41
|
+
static currentPanel;
|
|
42
|
+
panel;
|
|
43
|
+
extensionUri;
|
|
44
|
+
nvm;
|
|
45
|
+
disposables = [];
|
|
46
|
+
onStateChanged;
|
|
47
|
+
static createOrShow(extensionUri, nvm, onStateChanged) {
|
|
48
|
+
const column = vscode.window.activeTextEditor
|
|
49
|
+
? vscode.window.activeTextEditor.viewColumn
|
|
50
|
+
: undefined;
|
|
51
|
+
if (NvmWebviewManager.currentPanel) {
|
|
52
|
+
NvmWebviewManager.currentPanel.panel.reveal(column);
|
|
53
|
+
NvmWebviewManager.currentPanel.refresh();
|
|
54
|
+
return NvmWebviewManager.currentPanel;
|
|
55
|
+
}
|
|
56
|
+
const panel = vscode.window.createWebviewPanel('superNvmDashboard', 'Super NVM', column || vscode.ViewColumn.One, {
|
|
57
|
+
enableScripts: true,
|
|
58
|
+
retainContextWhenHidden: true,
|
|
59
|
+
localResourceRoots: [
|
|
60
|
+
vscode.Uri.file(path.join(extensionUri.fsPath, 'src', 'ui')),
|
|
61
|
+
vscode.Uri.file(path.join(extensionUri.fsPath, 'out', 'ui')),
|
|
62
|
+
vscode.Uri.file(path.join(extensionUri.fsPath, 'resources'))
|
|
63
|
+
]
|
|
64
|
+
});
|
|
65
|
+
NvmWebviewManager.currentPanel = new NvmWebviewManager(panel, extensionUri, nvm, onStateChanged);
|
|
66
|
+
return NvmWebviewManager.currentPanel;
|
|
67
|
+
}
|
|
68
|
+
constructor(panel, extensionUri, nvm, onStateChanged) {
|
|
69
|
+
this.panel = panel;
|
|
70
|
+
this.extensionUri = extensionUri;
|
|
71
|
+
this.nvm = nvm;
|
|
72
|
+
this.onStateChanged = onStateChanged;
|
|
73
|
+
// Set panel icon
|
|
74
|
+
this.panel.iconPath = vscode.Uri.file(path.join(extensionUri.fsPath, 'resources', 'nvm-icon.svg'));
|
|
75
|
+
this.panel.webview.html = this.getHtmlForWebview(this.panel.webview);
|
|
76
|
+
this.panel.onDidDispose(() => this.dispose(), null, this.disposables);
|
|
77
|
+
this.panel.webview.onDidReceiveMessage(async (message) => {
|
|
78
|
+
await this.handleMessage(message);
|
|
79
|
+
}, null, this.disposables);
|
|
80
|
+
}
|
|
81
|
+
async refresh() {
|
|
82
|
+
const info = await this.nvm.getNvmInfo();
|
|
83
|
+
const workspaceFolder = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath;
|
|
84
|
+
const projectInfo = this.nvm.detectProjectVersion(workspaceFolder);
|
|
85
|
+
this.postMessage({
|
|
86
|
+
type: 'status',
|
|
87
|
+
data: {
|
|
88
|
+
...info,
|
|
89
|
+
projectVersionInfo: projectInfo
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
async handleMessage(message) {
|
|
94
|
+
switch (message.command) {
|
|
95
|
+
case 'ready':
|
|
96
|
+
case 'getStatus': {
|
|
97
|
+
await this.refresh();
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case 'getReleases': {
|
|
101
|
+
const installed = await this.nvm.getInstalledVersions();
|
|
102
|
+
const releases = await this.nvm.fetchRemoteReleases(installed.map(i => i.version));
|
|
103
|
+
this.postMessage({
|
|
104
|
+
type: 'releases',
|
|
105
|
+
data: releases
|
|
106
|
+
});
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case 'useVersion': {
|
|
110
|
+
const { version } = message;
|
|
111
|
+
const result = await this.nvm.use(version);
|
|
112
|
+
if (result.success) {
|
|
113
|
+
vscode.window.showInformationMessage(`NVM: Switched to Node.js v${version}`);
|
|
114
|
+
this.postMessage({
|
|
115
|
+
type: 'operationComplete',
|
|
116
|
+
success: true,
|
|
117
|
+
message: result.message
|
|
118
|
+
});
|
|
119
|
+
if (this.onStateChanged)
|
|
120
|
+
this.onStateChanged();
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
vscode.window.showErrorMessage(`NVM: ${result.message}`);
|
|
124
|
+
this.postMessage({
|
|
125
|
+
type: 'operationComplete',
|
|
126
|
+
success: false,
|
|
127
|
+
message: result.message
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
await this.refresh();
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
case 'installVersion': {
|
|
134
|
+
const { version } = message;
|
|
135
|
+
this.postMessage({
|
|
136
|
+
type: 'log',
|
|
137
|
+
message: `\n[NVM] Installing Node.js v${version}...`
|
|
138
|
+
});
|
|
139
|
+
this.nvm.install(version, (data) => {
|
|
140
|
+
this.postMessage({ type: 'log', message: data });
|
|
141
|
+
}, async (code) => {
|
|
142
|
+
const success = code === 0;
|
|
143
|
+
if (success) {
|
|
144
|
+
vscode.window.showInformationMessage(`NVM: Successfully installed Node.js v${version}`);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
vscode.window.showErrorMessage(`NVM: Failed to install Node.js v${version}`);
|
|
148
|
+
}
|
|
149
|
+
this.postMessage({
|
|
150
|
+
type: 'operationComplete',
|
|
151
|
+
success,
|
|
152
|
+
message: success
|
|
153
|
+
? `Node.js v${version} installed successfully!`
|
|
154
|
+
: `Installation exited with error code ${code}`
|
|
155
|
+
});
|
|
156
|
+
if (this.onStateChanged)
|
|
157
|
+
this.onStateChanged();
|
|
158
|
+
await this.refresh();
|
|
159
|
+
});
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
case 'uninstallVersion': {
|
|
163
|
+
const { version } = message;
|
|
164
|
+
this.postMessage({
|
|
165
|
+
type: 'log',
|
|
166
|
+
message: `\n[NVM] Uninstalling Node.js v${version}...`
|
|
167
|
+
});
|
|
168
|
+
this.nvm.uninstall(version, (data) => {
|
|
169
|
+
this.postMessage({ type: 'log', message: data });
|
|
170
|
+
}, async (code) => {
|
|
171
|
+
const success = code === 0;
|
|
172
|
+
if (success) {
|
|
173
|
+
vscode.window.showInformationMessage(`NVM: Successfully uninstalled Node.js v${version}`);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
vscode.window.showErrorMessage(`NVM: Failed to uninstall Node.js v${version}`);
|
|
177
|
+
}
|
|
178
|
+
this.postMessage({
|
|
179
|
+
type: 'operationComplete',
|
|
180
|
+
success,
|
|
181
|
+
message: success
|
|
182
|
+
? `Node.js v${version} uninstalled.`
|
|
183
|
+
: `Uninstall failed with code ${code}`
|
|
184
|
+
});
|
|
185
|
+
if (this.onStateChanged)
|
|
186
|
+
this.onStateChanged();
|
|
187
|
+
await this.refresh();
|
|
188
|
+
});
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
case 'pinProject': {
|
|
192
|
+
const { version } = message;
|
|
193
|
+
const workspaceFolder = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath;
|
|
194
|
+
if (!workspaceFolder) {
|
|
195
|
+
vscode.window.showWarningMessage('No workspace folder open to pin .nvmrc');
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
const ok = this.nvm.pinProjectVersion(version, workspaceFolder);
|
|
199
|
+
if (ok) {
|
|
200
|
+
vscode.window.showInformationMessage(`NVM: Pinned project to Node.js v${version} (.nvmrc created)`);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
vscode.window.showErrorMessage('NVM: Failed to create .nvmrc');
|
|
204
|
+
}
|
|
205
|
+
await this.refresh();
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
case 'runDoctor': {
|
|
209
|
+
this.postMessage({ type: 'log', message: '\n[NVM] Running nvm doctor...\n' });
|
|
210
|
+
try {
|
|
211
|
+
const out = await this.nvm.execCmd('nvm doctor');
|
|
212
|
+
this.postMessage({ type: 'log', message: out });
|
|
213
|
+
}
|
|
214
|
+
catch (e) {
|
|
215
|
+
this.postMessage({ type: 'log', message: `Error running doctor: ${e.message}` });
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
case 'getGlobalPackages': {
|
|
220
|
+
const pkgs = await this.nvm.getGlobalPackages(message.version);
|
|
221
|
+
this.postMessage({
|
|
222
|
+
type: 'globalPackages',
|
|
223
|
+
version: message.version,
|
|
224
|
+
data: pkgs
|
|
225
|
+
});
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
case 'migratePackages': {
|
|
229
|
+
const { packages } = message;
|
|
230
|
+
this.postMessage({
|
|
231
|
+
type: 'log',
|
|
232
|
+
message: `\n[Super NVM] Migrating ${packages.length} global packages: ${packages.join(', ')}...`
|
|
233
|
+
});
|
|
234
|
+
this.nvm.migrateGlobalPackages(packages, (data) => {
|
|
235
|
+
this.postMessage({ type: 'log', message: data });
|
|
236
|
+
}, async (code) => {
|
|
237
|
+
const success = code === 0;
|
|
238
|
+
if (success) {
|
|
239
|
+
vscode.window.showInformationMessage('Super NVM: Global packages migrated successfully!');
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
vscode.window.showErrorMessage('Super NVM: Package migration encountered issues');
|
|
243
|
+
}
|
|
244
|
+
this.postMessage({
|
|
245
|
+
type: 'operationComplete',
|
|
246
|
+
success,
|
|
247
|
+
message: success ? 'Global packages migrated!' : `Migration exited with code ${code}`
|
|
248
|
+
});
|
|
249
|
+
await this.refresh();
|
|
250
|
+
});
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
case 'getStorage': {
|
|
254
|
+
const storage = await this.nvm.getStorageInfo();
|
|
255
|
+
this.postMessage({
|
|
256
|
+
type: 'storage',
|
|
257
|
+
data: storage
|
|
258
|
+
});
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
case 'cleanCache': {
|
|
262
|
+
this.postMessage({ type: 'log', message: '\n[Super NVM] Cleaning cache...' });
|
|
263
|
+
const res = await this.nvm.cleanCache();
|
|
264
|
+
this.postMessage({ type: 'log', message: res.message });
|
|
265
|
+
if (res.success) {
|
|
266
|
+
vscode.window.showInformationMessage(res.message);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
vscode.window.showErrorMessage(res.message);
|
|
270
|
+
}
|
|
271
|
+
const updatedStorage = await this.nvm.getStorageInfo();
|
|
272
|
+
this.postMessage({ type: 'storage', data: updatedStorage });
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
case 'openExternal': {
|
|
276
|
+
if (message.url) {
|
|
277
|
+
vscode.env.openExternal(vscode.Uri.parse(message.url));
|
|
278
|
+
}
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
postMessage(msg) {
|
|
284
|
+
this.panel.webview.postMessage(msg);
|
|
285
|
+
}
|
|
286
|
+
getHtmlForWebview(webview) {
|
|
287
|
+
const uiDir = path.join(this.extensionUri.fsPath, 'src', 'ui');
|
|
288
|
+
const htmlPath = path.join(uiDir, 'index.html');
|
|
289
|
+
let html = fs.readFileSync(htmlPath, 'utf8');
|
|
290
|
+
const styleUri = webview.asWebviewUri(vscode.Uri.file(path.join(uiDir, 'style.css')));
|
|
291
|
+
const scriptUri = webview.asWebviewUri(vscode.Uri.file(path.join(uiDir, 'app.js')));
|
|
292
|
+
html = html.replace('href="style.css"', `href="${styleUri}"`);
|
|
293
|
+
html = html.replace('src="app.js"', `src="${scriptUri}"`);
|
|
294
|
+
return html;
|
|
295
|
+
}
|
|
296
|
+
dispose() {
|
|
297
|
+
NvmWebviewManager.currentPanel = undefined;
|
|
298
|
+
this.panel.dispose();
|
|
299
|
+
while (this.disposables.length) {
|
|
300
|
+
const d = this.disposables.pop();
|
|
301
|
+
if (d)
|
|
302
|
+
d.dispose();
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.NvmWebviewManager = NvmWebviewManager;
|
|
307
|
+
//# sourceMappingURL=webviewPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webviewPanel.js","sourceRoot":"","sources":["../../src/vscode/webviewPanel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,2CAA6B;AAC7B,uCAAyB;AAGzB,MAAa,iBAAiB;IACrB,MAAM,CAAC,YAAY,CAAgC;IACzC,KAAK,CAAsB;IAC3B,YAAY,CAAa;IACzB,GAAG,CAAU;IACtB,WAAW,GAAwB,EAAE,CAAC;IACtC,cAAc,CAAc;IAE7B,MAAM,CAAC,YAAY,CACxB,YAAwB,EACxB,GAAY,EACZ,cAA2B;QAE3B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB;YAC3C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU;YAC3C,CAAC,CAAC,SAAS,CAAC;QAEd,IAAI,iBAAiB,CAAC,YAAY,EAAE,CAAC;YACnC,iBAAiB,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM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AAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CACnC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAC/C,CAAC;QACF,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,CACpC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAC5C,CAAC;QAEF,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,SAAS,QAAQ,GAAG,CAAC,CAAC;QAC9D,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,QAAQ,SAAS,GAAG,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,OAAO;QACZ,iBAAiB,CAAC,YAAY,GAAG,SAAS,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;YACjC,IAAI,CAAC;gBAAE,CAAC,CAAC,OAAO,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;CACF;AAjVD,8CAiVC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,208 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-nvm",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"displayName": "Super NVM - Visual Node Version Manager",
|
|
4
|
+
"description": "Visual Manager for Node.js versions with NVM on Windows — use inside VS Code, Cursor, WebStorm, or standalone in any browser/desktop.",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"icon": "resources/nvm-icon.png",
|
|
7
|
+
"publisher": "super-nvm",
|
|
8
|
+
"author": "Pratik Maurya",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"files": [
|
|
11
|
+
"out",
|
|
12
|
+
"bin",
|
|
13
|
+
"resources",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/pratik-maurya/Super-nvm"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"vscode": "^1.80.0",
|
|
23
|
+
"node": ">=16.0.0"
|
|
24
|
+
},
|
|
25
|
+
"categories": [
|
|
26
|
+
"Programming Languages",
|
|
27
|
+
"Other"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"super-nvm",
|
|
31
|
+
"nvm",
|
|
32
|
+
"nvm-windows",
|
|
33
|
+
"node",
|
|
34
|
+
"nodejs",
|
|
35
|
+
"version manager",
|
|
36
|
+
"gui",
|
|
37
|
+
"switcher"
|
|
38
|
+
],
|
|
39
|
+
"main": "./out/vscode/extension.js",
|
|
40
|
+
"bin": {
|
|
41
|
+
"super-nvm": "./bin/super-nvm.js",
|
|
42
|
+
"nvm-ui": "./bin/super-nvm.js"
|
|
43
|
+
},
|
|
44
|
+
"activationEvents": [
|
|
45
|
+
"onStartupFinished",
|
|
46
|
+
"onView:super-nvm-tree",
|
|
47
|
+
"onCommand:super-nvm.openDashboard",
|
|
48
|
+
"onCommand:super-nvm.switchVersion",
|
|
49
|
+
"onCommand:super-nvm.installVersion",
|
|
50
|
+
"onCommand:super-nvm.refresh",
|
|
51
|
+
"onCommand:super-nvm.openStandalone",
|
|
52
|
+
"onCommand:super-nvm.useFromTree",
|
|
53
|
+
"onCommand:super-nvm.uninstallFromTree",
|
|
54
|
+
"onCommand:super-nvm.pinProject",
|
|
55
|
+
"*"
|
|
56
|
+
],
|
|
57
|
+
"contributes": {
|
|
58
|
+
"viewsContainers": {
|
|
59
|
+
"activitybar": [
|
|
60
|
+
{
|
|
61
|
+
"id": "super-nvm-container",
|
|
62
|
+
"title": "Super NVM",
|
|
63
|
+
"icon": "resources/nvm-icon.svg"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"views": {
|
|
68
|
+
"super-nvm-container": [
|
|
69
|
+
{
|
|
70
|
+
"id": "super-nvm-tree",
|
|
71
|
+
"name": "Installed Versions"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"keybindings": [
|
|
76
|
+
{
|
|
77
|
+
"command": "super-nvm.openDashboard",
|
|
78
|
+
"key": "ctrl+shift+s n",
|
|
79
|
+
"mac": "cmd+shift+s n",
|
|
80
|
+
"when": "!terminalFocus"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"command": "super-nvm.switchVersion",
|
|
84
|
+
"key": "ctrl+shift+s v",
|
|
85
|
+
"mac": "cmd+shift+s v",
|
|
86
|
+
"when": "!terminalFocus"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"commands": [
|
|
90
|
+
{
|
|
91
|
+
"command": "super-nvm.openDashboard",
|
|
92
|
+
"title": "Open Version Manager Dashboard",
|
|
93
|
+
"category": "Super NVM",
|
|
94
|
+
"icon": "$(dashboard)"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"command": "super-nvm.switchVersion",
|
|
98
|
+
"title": "Switch Node Version",
|
|
99
|
+
"category": "Super NVM",
|
|
100
|
+
"icon": "$(arrow-swap)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"command": "super-nvm.installVersion",
|
|
104
|
+
"title": "Install Node Version",
|
|
105
|
+
"category": "Super NVM",
|
|
106
|
+
"icon": "$(cloud-download)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"command": "super-nvm.refresh",
|
|
110
|
+
"title": "Refresh Versions",
|
|
111
|
+
"category": "Super NVM",
|
|
112
|
+
"icon": "$(refresh)"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"command": "super-nvm.openStandalone",
|
|
116
|
+
"title": "Open Standalone GUI in Browser",
|
|
117
|
+
"category": "Super NVM",
|
|
118
|
+
"icon": "$(browser)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"command": "super-nvm.useFromTree",
|
|
122
|
+
"title": "Activate This Version",
|
|
123
|
+
"icon": "$(check)"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"command": "super-nvm.uninstallFromTree",
|
|
127
|
+
"title": "Uninstall Version",
|
|
128
|
+
"icon": "$(trash)"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"command": "super-nvm.pinProject",
|
|
132
|
+
"title": "Pin Current Workspace (.nvmrc)",
|
|
133
|
+
"category": "Super NVM",
|
|
134
|
+
"icon": "$(pin)"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"menus": {
|
|
138
|
+
"view/title": [
|
|
139
|
+
{
|
|
140
|
+
"command": "super-nvm.openDashboard",
|
|
141
|
+
"when": "view == super-nvm-tree",
|
|
142
|
+
"group": "navigation@1"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"command": "super-nvm.refresh",
|
|
146
|
+
"when": "view == super-nvm-tree",
|
|
147
|
+
"group": "navigation@2"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"command": "super-nvm.openStandalone",
|
|
151
|
+
"when": "view == super-nvm-tree",
|
|
152
|
+
"group": "navigation@3"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"view/item/context": [
|
|
156
|
+
{
|
|
157
|
+
"command": "super-nvm.useFromTree",
|
|
158
|
+
"when": "view == super-nvm-tree && viewItem == inactiveVersion",
|
|
159
|
+
"group": "inline@1"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"command": "super-nvm.uninstallFromTree",
|
|
163
|
+
"when": "view == super-nvm-tree && viewItem != activeVersion",
|
|
164
|
+
"group": "inline@2"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"configuration": {
|
|
169
|
+
"title": "Super NVM",
|
|
170
|
+
"properties": {
|
|
171
|
+
"superNVM.standalonePort": {
|
|
172
|
+
"type": "number",
|
|
173
|
+
"default": 4321,
|
|
174
|
+
"description": "Port to run the standalone Super NVM web server on."
|
|
175
|
+
},
|
|
176
|
+
"superNVM.showStatusBar": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"default": true,
|
|
179
|
+
"description": "Show the active Node.js version in the status bar."
|
|
180
|
+
},
|
|
181
|
+
"superNVM.autoDetectProjectVersion": {
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"default": true,
|
|
184
|
+
"description": "Detect .nvmrc or package.json engines in workspace and suggest switching version."
|
|
185
|
+
},
|
|
186
|
+
"superNVM.autoSwitchSilently": {
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"default": false,
|
|
189
|
+
"description": "Automatically switch Node.js version when workspace .nvmrc is detected without asking for confirmation."
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"scripts": {
|
|
195
|
+
"vscode:prepublish": "npm run compile",
|
|
196
|
+
"compile": "tsc -p ./ && node -e \"const fs=require('fs'); fs.cpSync('src/ui', 'out/ui', {recursive:true});\"",
|
|
197
|
+
"build": "npm run compile",
|
|
198
|
+
"watch": "tsc -watch -p ./",
|
|
199
|
+
"start": "node ./bin/super-nvm.js",
|
|
200
|
+
"package": "vsce package --no-dependencies"
|
|
201
|
+
},
|
|
202
|
+
"devDependencies": {
|
|
203
|
+
"@types/node": "^20.11.0",
|
|
204
|
+
"@types/vscode": "^1.80.0",
|
|
205
|
+
"@vscode/vsce": "^2.24.0",
|
|
206
|
+
"typescript": "^5.3.3"
|
|
207
|
+
}
|
|
6
208
|
}
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100%" height="100%">
|
|
2
|
+
<defs>
|
|
3
|
+
<!-- Background Radial Glow -->
|
|
4
|
+
<radialGradient id="hexRadial" cx="50%" cy="35%" r="65%">
|
|
5
|
+
<stop offset="0%" stop-color="#0f3d24" />
|
|
6
|
+
<stop offset="60%" stop-color="#051f12" />
|
|
7
|
+
<stop offset="100%" stop-color="#020d08" />
|
|
8
|
+
</radialGradient>
|
|
9
|
+
|
|
10
|
+
<!-- Glowing Border -->
|
|
11
|
+
<linearGradient id="hexBorder" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
12
|
+
<stop offset="0%" stop-color="#bbf7d0" />
|
|
13
|
+
<stop offset="30%" stop-color="#4ade80" />
|
|
14
|
+
<stop offset="75%" stop-color="#22c55e" />
|
|
15
|
+
<stop offset="100%" stop-color="#15803d" />
|
|
16
|
+
</linearGradient>
|
|
17
|
+
|
|
18
|
+
<!-- Dynamic Super S Metallic Gradient -->
|
|
19
|
+
<linearGradient id="superGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
20
|
+
<stop offset="0%" stop-color="#fef9c3" />
|
|
21
|
+
<stop offset="25%" stop-color="#86efac" />
|
|
22
|
+
<stop offset="65%" stop-color="#22c55e" />
|
|
23
|
+
<stop offset="100%" stop-color="#15803d" />
|
|
24
|
+
</linearGradient>
|
|
25
|
+
|
|
26
|
+
<!-- Ambient Shadow Filter -->
|
|
27
|
+
<filter id="logoGlow" x="-20%" y="-20%" width="140%" height="140%">
|
|
28
|
+
<feDropShadow dx="0" dy="2" stdDeviation="4" flood-color="#22c55e" flood-opacity="0.45" />
|
|
29
|
+
</filter>
|
|
30
|
+
</defs>
|
|
31
|
+
|
|
32
|
+
<!-- Node.js Hexagon Shield -->
|
|
33
|
+
<polygon points="50,4 92,26 92,74 50,96 8,74 8,26"
|
|
34
|
+
fill="url(#hexRadial)"
|
|
35
|
+
stroke="url(#hexBorder)"
|
|
36
|
+
stroke-width="5"
|
|
37
|
+
stroke-linejoin="round"
|
|
38
|
+
filter="url(#logoGlow)" />
|
|
39
|
+
|
|
40
|
+
<!-- Inner Tech Inset Ring -->
|
|
41
|
+
<polygon points="50,11 85,29 85,71 50,89 15,71 15,29"
|
|
42
|
+
fill="none"
|
|
43
|
+
stroke="url(#hexBorder)"
|
|
44
|
+
stroke-width="1.6"
|
|
45
|
+
stroke-opacity="0.35"
|
|
46
|
+
stroke-linejoin="round" />
|
|
47
|
+
|
|
48
|
+
<!-- High-Voltage Aerodynamic Super 'S' Crest -->
|
|
49
|
+
<path d="M 74,23
|
|
50
|
+
L 34,23
|
|
51
|
+
C 22,23 16,33 22,43
|
|
52
|
+
L 46,43
|
|
53
|
+
C 52,43 55,47 50,53
|
|
54
|
+
L 26,77
|
|
55
|
+
L 68,77
|
|
56
|
+
C 80,77 86,67 80,57
|
|
57
|
+
L 56,57
|
|
58
|
+
C 50,57 47,53 52,47
|
|
59
|
+
L 74,23 Z"
|
|
60
|
+
fill="url(#superGrad)"
|
|
61
|
+
stroke="#042010"
|
|
62
|
+
stroke-width="1.5"
|
|
63
|
+
stroke-linejoin="round" />
|
|
64
|
+
|
|
65
|
+
<!-- Center Lightning Spark -->
|
|
66
|
+
<path d="M 49,43 L 57,43 L 43,61 L 53,61 L 35,77 L 41,56 L 33,56 Z"
|
|
67
|
+
fill="#fef08a"
|
|
68
|
+
opacity="0.95" />
|
|
69
|
+
</svg>
|