浏览代码

Update landing plugin commands.

Afshin Darian 8 年之前
父节点
当前提交
9549bf46e9
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 4 3
      src/landing/index.ts
  2. 2 2
      src/landing/plugin.ts

+ 4 - 3
src/landing/index.ts

@@ -5,9 +5,10 @@ export * from './widget';
 
 
 /**
- * The map of command ids used by the landing plugin.
+ * The command IDs used by the landing plugin.
  */
 export
-const cmdIds = {
-  open: 'landing-jupyterlab:open',
+namespace CommandIDs {
+  export
+  const open = 'landing-jupyterlab:open';
 };

+ 2 - 2
src/landing/plugin.ts

@@ -26,7 +26,7 @@ import {
 } from '../services';
 
 import {
-  LandingModel, LandingWidget, cmdIds
+  CommandIDs, LandingModel, LandingWidget
 } from './';
 
 /**
@@ -56,7 +56,7 @@ export default plugin;
  */
 function activate(app: JupyterLab, pathTracker: IPathTracker, palette: ICommandPalette, services: IServiceManager, restorer: IInstanceRestorer): void {
   const category = 'Help';
-  const command = cmdIds.open;
+  const command = CommandIDs.open;
   const model = new LandingModel(services.terminals.isAvailable());
   const tracker = new InstanceTracker<LandingWidget>({ namespace: 'landing' });