jupyterlab_vscode_icons_extension 1.1.27 → 1.1.38
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/README.md +3 -0
- package/lib/index.js +13 -2
- package/package.json +1 -1
- package/src/index.ts +14 -7
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
[](https://kolomolo.com)
|
|
9
9
|
[](https://www.paypal.com/donate/?hosted_button_id=B4KPBJDLLXTSA)
|
|
10
10
|
|
|
11
|
+
> [!TIP]
|
|
12
|
+
> This extension is part of the [stellars_jupyterlab_extensions](https://github.com/stellarshenson/stellars_jupyterlab_extensions) metapackage. Install all Stellars extensions at once: `pip install stellars_jupyterlab_extensions`
|
|
13
|
+
|
|
11
14
|
A shameless, unapologetic, and utterly brazen ripoff of the excellent VSCode file icons for JupyterLab. Because why should VS Code users have all the fun?
|
|
12
15
|
|
|
13
16
|
This extension brings 1414 beautiful file type icons from the vscode-icons project directly into your JupyterLab file browser. We saw those pretty icons, we wanted them, and now you can have them too - no permission asked, no apologies given (well, we did use the MIT license, so it's all legally kosher)
|
package/lib/index.js
CHANGED
|
@@ -183,6 +183,11 @@ const fileTypeConfigs = [
|
|
|
183
183
|
group: 'enableWebIcons'
|
|
184
184
|
},
|
|
185
185
|
// Data Formats
|
|
186
|
+
{
|
|
187
|
+
extensions: ['.json'],
|
|
188
|
+
iconName: 'file-type-json',
|
|
189
|
+
group: 'enableDataIcons'
|
|
190
|
+
},
|
|
186
191
|
{
|
|
187
192
|
extensions: ['.toml'],
|
|
188
193
|
iconName: 'file-type-toml',
|
|
@@ -242,7 +247,7 @@ const fileTypeConfigs = [
|
|
|
242
247
|
// Config Files
|
|
243
248
|
{
|
|
244
249
|
extensions: ['.env'],
|
|
245
|
-
pattern: '^(\\.env\\.(?!zip|tar|gz|bz2|xz|7z|rar)[^.]+|[^.]+\\.env)$',
|
|
250
|
+
pattern: '^(\\.env|\\.env\\.(?!zip|tar|gz|bz2|xz|7z|rar)[^.]+|[^.]+\\.env)$',
|
|
246
251
|
iconName: 'file-type-dotenv',
|
|
247
252
|
mimeTypes: ['text/x-sh'],
|
|
248
253
|
group: 'enableConfigIcons'
|
|
@@ -287,6 +292,12 @@ const fileTypeConfigs = [
|
|
|
287
292
|
iconName: 'file-type-npm',
|
|
288
293
|
group: 'enableConfigIcons'
|
|
289
294
|
},
|
|
295
|
+
{
|
|
296
|
+
pattern: '^tsconfig(\\..*)?\\.json$',
|
|
297
|
+
extensions: [],
|
|
298
|
+
iconName: 'file-type-tsconfig-official',
|
|
299
|
+
group: 'enableConfigIcons'
|
|
300
|
+
},
|
|
290
301
|
{
|
|
291
302
|
pattern: '^yarn\\.lock$',
|
|
292
303
|
extensions: [],
|
|
@@ -294,7 +305,7 @@ const fileTypeConfigs = [
|
|
|
294
305
|
group: 'enableConfigIcons'
|
|
295
306
|
},
|
|
296
307
|
{
|
|
297
|
-
pattern: '^requirements
|
|
308
|
+
pattern: '^requirements([_-].*?)?\\.txt$',
|
|
298
309
|
extensions: [],
|
|
299
310
|
iconName: 'file-type-python',
|
|
300
311
|
group: 'enableConfigIcons'
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -215,6 +215,11 @@ const fileTypeConfigs: IFileTypeConfig[] = [
|
|
|
215
215
|
},
|
|
216
216
|
|
|
217
217
|
// Data Formats
|
|
218
|
+
{
|
|
219
|
+
extensions: ['.json'],
|
|
220
|
+
iconName: 'file-type-json',
|
|
221
|
+
group: 'enableDataIcons'
|
|
222
|
+
},
|
|
218
223
|
{
|
|
219
224
|
extensions: ['.toml'],
|
|
220
225
|
iconName: 'file-type-toml',
|
|
@@ -276,7 +281,7 @@ const fileTypeConfigs: IFileTypeConfig[] = [
|
|
|
276
281
|
// Config Files
|
|
277
282
|
{
|
|
278
283
|
extensions: ['.env'],
|
|
279
|
-
pattern: '^(\\.env\\.(?!zip|tar|gz|bz2|xz|7z|rar)[^.]+|[^.]+\\.env)$',
|
|
284
|
+
pattern: '^(\\.env|\\.env\\.(?!zip|tar|gz|bz2|xz|7z|rar)[^.]+|[^.]+\\.env)$',
|
|
280
285
|
iconName: 'file-type-dotenv',
|
|
281
286
|
mimeTypes: ['text/x-sh'],
|
|
282
287
|
group: 'enableConfigIcons'
|
|
@@ -321,6 +326,12 @@ const fileTypeConfigs: IFileTypeConfig[] = [
|
|
|
321
326
|
iconName: 'file-type-npm',
|
|
322
327
|
group: 'enableConfigIcons'
|
|
323
328
|
},
|
|
329
|
+
{
|
|
330
|
+
pattern: '^tsconfig(\\..*)?\\.json$',
|
|
331
|
+
extensions: [],
|
|
332
|
+
iconName: 'file-type-tsconfig-official',
|
|
333
|
+
group: 'enableConfigIcons'
|
|
334
|
+
},
|
|
324
335
|
{
|
|
325
336
|
pattern: '^yarn\\.lock$',
|
|
326
337
|
extensions: [],
|
|
@@ -328,7 +339,7 @@ const fileTypeConfigs: IFileTypeConfig[] = [
|
|
|
328
339
|
group: 'enableConfigIcons'
|
|
329
340
|
},
|
|
330
341
|
{
|
|
331
|
-
pattern: '^requirements
|
|
342
|
+
pattern: '^requirements([_-].*?)?\\.txt$',
|
|
332
343
|
extensions: [],
|
|
333
344
|
iconName: 'file-type-python',
|
|
334
345
|
group: 'enableConfigIcons'
|
|
@@ -838,11 +849,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
838
849
|
|
|
839
850
|
try {
|
|
840
851
|
const baseUrl = PageConfig.getBaseUrl();
|
|
841
|
-
const apiUrl = URLExt.join(
|
|
842
|
-
baseUrl,
|
|
843
|
-
'vscode-icons',
|
|
844
|
-
'executables'
|
|
845
|
-
);
|
|
852
|
+
const apiUrl = URLExt.join(baseUrl, 'vscode-icons', 'executables');
|
|
846
853
|
const response = await fetch(
|
|
847
854
|
`${apiUrl}?path=${encodeURIComponent(currentPath)}`
|
|
848
855
|
);
|