diff --git a/schema/plugin.json b/schema/plugin.json index 7b19cab..d84e86b 100644 --- a/schema/plugin.json +++ b/schema/plugin.json @@ -6,7 +6,7 @@ "showInLauncher": { "title": "Show Datalayer Core in the launcher", "description": "Show Datalayer Core in the launcher", - "default": true, + "default": false, "type": "boolean" } }, diff --git a/src/jupyterlab/index.ts b/src/jupyterlab/index.ts index 257cd77..91ca9ff 100644 --- a/src/jupyterlab/index.ts +++ b/src/jupyterlab/index.ts @@ -15,15 +15,13 @@ namespace CommandIDs { export const create = 'datalayer:create-datalayer-widget'; } -export const PLUGIN_ID = '@datalayer/core:plugin'; - let tracker: WidgetTracker>; /** * Initialization data for the @datalayer/core extension. */ const plugin: JupyterFrontEndPlugin = { - id: PLUGIN_ID, + id: '@datalayer/core:plugin', autoStart: true, requires: [ICommandPalette], optional: [ISettingRegistry, ILauncher, ILayoutRestorer], @@ -35,7 +33,7 @@ const plugin: JupyterFrontEndPlugin = { restorer?: ILayoutRestorer, ) => { tracker.forEach(widget => widget.dispose()); - console.log(`${PLUGIN_ID} is deactivated`); + console.log(`${plugin.id} is deactivated`); }, activate: ( app: JupyterFrontEnd, @@ -86,12 +84,12 @@ const plugin: JupyterFrontEndPlugin = { settingRegistry .load(plugin.id) .then(settings => { - console.log(`${PLUGIN_ID} settings loaded:`, settings.composite); + console.log(`${plugin.id} settings loaded:`, settings.composite); settingsUpdated(settings); settings.changed.connect(settingsUpdated); }) .catch(reason => { - console.error(`Failed to load settings for ${PLUGIN_ID}`, reason); + console.error(`Failed to load settings for ${plugin.id}`, reason); }); } requestAPI('config') @@ -104,7 +102,7 @@ const plugin: JupyterFrontEndPlugin = { ); } ); - console.log(`JupyterLab plugin ${PLUGIN_ID} is activated.`); + console.log(`JupyterLab plugin ${plugin.id} is activated.`); } }; diff --git a/src/tabs/jupyterlab/Server.tsx b/src/tabs/jupyterlab/Server.tsx index 26b03b6..90061c4 100644 --- a/src/tabs/jupyterlab/Server.tsx +++ b/src/tabs/jupyterlab/Server.tsx @@ -1,4 +1,5 @@ -import { PageHeader, UnderlineNav } from '@primer/react/drafts'; +import { UnderlineNav } from '@primer/react'; +import { PageHeader } from '@primer/react/drafts'; import { PlusIcon, SettingsIcon } from '@datalayer/icons-react'; import { DatalayerProps } from '../../Datalayer';