jupyterlab_vscode_icons_extension 1.1.22 → 1.1.29
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/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +3 -7
package/lib/index.js
CHANGED
|
@@ -294,7 +294,7 @@ const fileTypeConfigs = [
|
|
|
294
294
|
group: 'enableConfigIcons'
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
|
-
pattern: '^requirements
|
|
297
|
+
pattern: '^requirements([_-].*?)?\\.txt$',
|
|
298
298
|
extensions: [],
|
|
299
299
|
iconName: 'file-type-python',
|
|
300
300
|
group: 'enableConfigIcons'
|
|
@@ -447,7 +447,7 @@ const plugin = {
|
|
|
447
447
|
const venvSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g transform="scale(-1,1) translate(-32,0)"><path d="M27.4,5.5H18.1L16,9.7H4.3V26.5H29.5V5.5Zm0,4.2H19.2l1.1-2.1h7.1Z" fill="#9575cd"/><g transform="translate(22,22) scale(1.25)" fill="#bababa"><path d="M-1.2,-6 L1.2,-6 L1.5,-4.5 L2.8,-4 L4,-5 L5.5,-3.5 L4.5,-2.3 L5,-1 L6.5,-0.8 L6.5,1.2 L5,1.5 L4.5,2.8 L5.5,4 L4,5.5 L2.8,4.5 L1.5,5 L1.2,6.5 L-1.2,6.5 L-1.5,5 L-2.8,4.5 L-4,5.5 L-5.5,4 L-4.5,2.8 L-5,1.5 L-6.5,1.2 L-6.5,-0.8 L-5,-1 L-4.5,-2.3 L-5.5,-3.5 L-4,-5 L-2.8,-4 L-1.5,-4.5 Z"/><circle cx="0" cy="0" r="2.5" fill="#9575cd"/></g></g></svg>';
|
|
448
448
|
const venvDataUri = `data:image/svg+xml;base64,${btoa(venvSvg)}`;
|
|
449
449
|
// Executable file icon - JupyterLab standard file icon with play triangle overlay
|
|
450
|
-
const executableSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="#
|
|
450
|
+
const executableSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="#909090" d="m19.3 8.2-5.5-5.5c-.3-.3-.7-.5-1.2-.5H3.9c-.8.1-1.6.9-1.6 1.8v14.1c0 .9.7 1.6 1.6 1.6h14.2c.9 0 1.6-.7 1.6-1.6V9.4c.1-.5-.1-.9-.4-1.2m-5.8-3.3 3.4 3.6h-3.4zm3.9 12.7H4.7c-.1 0-.2 0-.2-.2V4.7c0-.2.1-.3.2-.3h7.2v4.4s0 .8.3 1.1 1.1.3 1.1.3h4.3v7.2s-.1.2-.2.2"/><path fill="#00e676" stroke="#1b5e20" stroke-width="0.8" d="M12,12 L20,16 L12,20 Z"/></svg>';
|
|
451
451
|
const executableDataUri = `data:image/svg+xml;base64,${btoa(executableSvg)}`;
|
|
452
452
|
// Inject CSS that overrides icons for .py and .md files
|
|
453
453
|
// Note: Jupytext marks .py and .md files as type="notebook", so we need to
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -328,7 +328,7 @@ const fileTypeConfigs: IFileTypeConfig[] = [
|
|
|
328
328
|
group: 'enableConfigIcons'
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
|
-
pattern: '^requirements
|
|
331
|
+
pattern: '^requirements([_-].*?)?\\.txt$',
|
|
332
332
|
extensions: [],
|
|
333
333
|
iconName: 'file-type-python',
|
|
334
334
|
group: 'enableConfigIcons'
|
|
@@ -502,7 +502,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
502
502
|
const venvDataUri = `data:image/svg+xml;base64,${btoa(venvSvg)}`;
|
|
503
503
|
// Executable file icon - JupyterLab standard file icon with play triangle overlay
|
|
504
504
|
const executableSvg =
|
|
505
|
-
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="#
|
|
505
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><path fill="#909090" d="m19.3 8.2-5.5-5.5c-.3-.3-.7-.5-1.2-.5H3.9c-.8.1-1.6.9-1.6 1.8v14.1c0 .9.7 1.6 1.6 1.6h14.2c.9 0 1.6-.7 1.6-1.6V9.4c.1-.5-.1-.9-.4-1.2m-5.8-3.3 3.4 3.6h-3.4zm3.9 12.7H4.7c-.1 0-.2 0-.2-.2V4.7c0-.2.1-.3.2-.3h7.2v4.4s0 .8.3 1.1 1.1.3 1.1.3h4.3v7.2s-.1.2-.2.2"/><path fill="#00e676" stroke="#1b5e20" stroke-width="0.8" d="M12,12 L20,16 L12,20 Z"/></svg>';
|
|
506
506
|
const executableDataUri = `data:image/svg+xml;base64,${btoa(executableSvg)}`;
|
|
507
507
|
|
|
508
508
|
// Inject CSS that overrides icons for .py and .md files
|
|
@@ -838,11 +838,7 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
838
838
|
|
|
839
839
|
try {
|
|
840
840
|
const baseUrl = PageConfig.getBaseUrl();
|
|
841
|
-
const apiUrl = URLExt.join(
|
|
842
|
-
baseUrl,
|
|
843
|
-
'vscode-icons',
|
|
844
|
-
'executables'
|
|
845
|
-
);
|
|
841
|
+
const apiUrl = URLExt.join(baseUrl, 'vscode-icons', 'executables');
|
|
846
842
|
const response = await fetch(
|
|
847
843
|
`${apiUrl}?path=${encodeURIComponent(currentPath)}`
|
|
848
844
|
);
|