|
@@ -21,6 +21,10 @@ import {
|
|
|
IFrameWidget
|
|
|
} from '../apputils';
|
|
|
|
|
|
+import {
|
|
|
+ URLExt
|
|
|
+} from '../coreutils';
|
|
|
+
|
|
|
import {
|
|
|
ICommandPalette
|
|
|
} from '../commandpalette';
|
|
@@ -37,9 +41,32 @@ import {
|
|
|
CommandIDs as StateDBCommandIDs
|
|
|
} from '../statedb';
|
|
|
|
|
|
-import {
|
|
|
- CommandIDs
|
|
|
-} from './';
|
|
|
+
|
|
|
+/**
|
|
|
+ * The command IDs used by the help plugin.
|
|
|
+ */
|
|
|
+namespace CommandIDs {
|
|
|
+ export
|
|
|
+ const open: string = 'help-jupyterlab:open';
|
|
|
+
|
|
|
+ export
|
|
|
+ const activate: string = 'help-jupyterlab:activate';
|
|
|
+
|
|
|
+ export
|
|
|
+ const close: string = 'help-jupyterlab:close';
|
|
|
+
|
|
|
+ export
|
|
|
+ const show: string = 'help-jupyterlab:show';
|
|
|
+
|
|
|
+ export
|
|
|
+ const hide: string = 'help-jupyterlab:hide';
|
|
|
+
|
|
|
+ export
|
|
|
+ const toggle: string = 'help-jupyterlab:toggle';
|
|
|
+
|
|
|
+ export
|
|
|
+ const launchClassic: string = 'classic-notebook:launchClassic';
|
|
|
+};
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -201,7 +228,7 @@ function activate(app: JupyterLab, mainMenu: IMainMenu, palette: ICommandPalette
|
|
|
const text = args['text'] as string;
|
|
|
|
|
|
// If help resource will generate a mixed content error, load externally.
|
|
|
- if (LAB_IS_SECURE && utils.urlParse(url).protocol !== 'https:') {
|
|
|
+ if (LAB_IS_SECURE && URLExt.parse(url).protocol !== 'https:') {
|
|
|
window.open(url);
|
|
|
return;
|
|
|
}
|