Browse Source

`IFileType.icon` now working in rendermime-interfaces;

- fully functional example of `icon: string | {name, svgstr}` interface
can be found in (the rendermime-interfaces based) vega5-extension pkg

- initial testing indicates that the rest of the icons in jlab also
made it through the recent changes mostly (completely?) unscathed

- there do seem to be some real CI failures in test-docregistry
telamonian 5 năm trước cách đây
mục cha
commit
cca887d763
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      packages/vega5-extension/src/index.ts

+ 3 - 3
packages/vega5-extension/src/index.ts

@@ -174,19 +174,19 @@ const extension: IRenderMime.IExtension = {
       mimeTypes: [VEGA_MIME_TYPE],
       name: 'vega5',
       extensions: ['.vg', '.vg.json', '.vega'],
-      iconClass: 'ui-components:vega'
+      icon: 'ui-components:vega'
     },
     {
       mimeTypes: [VEGALITE4_MIME_TYPE],
       name: 'vega-lite4',
       extensions: ['.vl', '.vl.json', '.vegalite'],
-      iconClass: 'ui-components:vega'
+      icon: 'ui-components:vega'
     },
     {
       mimeTypes: [VEGALITE3_MIME_TYPE],
       name: 'vega-lite3',
       extensions: [],
-      iconClass: 'ui-components:vega'
+      icon: 'ui-components:vega'
     }
   ]
 };