浏览代码

IApplicationStatus => ILabStatus

Afshin Darian 6 年之前
父节点
当前提交
b1f56a5073

+ 3 - 3
packages/application-extension/src/index.tsx

@@ -3,7 +3,7 @@
 
 import {
   ILabShell,
-  IApplicationStatus,
+  ILabStatus,
   ILayoutRestorer,
   IRouter,
   JupyterClient,
@@ -558,7 +558,7 @@ const shell: JupyterLabPlugin<ILabShell> = {
 /**
  * The default JupyterLab application status provider.
  */
-const status: JupyterLabPlugin<IApplicationStatus> = {
+const status: JupyterLabPlugin<ILabStatus> = {
   id: '@jupyterlab/application-extension:status',
   activate: (app: JupyterClient) => {
     if (app instanceof JupyterLab) {
@@ -567,7 +567,7 @@ const status: JupyterLabPlugin<IApplicationStatus> = {
     throw new Error(`${status.id} must be activated in JupyterLab.`);
   },
   autoStart: true,
-  provides: IApplicationStatus
+  provides: ILabStatus
 };
 
 /**

+ 5 - 5
packages/application/src/index.ts

@@ -42,15 +42,15 @@ export { ApplicationShell, ILabShell } from './shell';
 /**
  * The application status token.
  */
-export const IApplicationStatus = new Token<IApplicationStatus>(
-  '@jupyterlab/application:IApplicationStatus'
+export const ILabStatus = new Token<ILabStatus>(
+  '@jupyterlab/application:ILabStatus'
 );
 /* tslint:enable */
 
 /**
- * An interface for application status functionality.
+ * An interface for JupyterLab-like application status functionality.
  */
-export interface IApplicationStatus {
+export interface ILabStatus {
   /**
    * A signal for when application changes its busy status.
    */
@@ -239,7 +239,7 @@ export type JupyterLabPlugin<T> = IPlugin<JupyterClient, T>;
  */
 export class JupyterLab
   extends JupyterClient<ApplicationShell, ILabShell.ILayout>
-  implements IApplicationStatus {
+  implements ILabStatus {
   /**
    * Construct a new JupyterLab object.
    */

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

@@ -2,7 +2,7 @@
 // Distributed under the terms of the Modified BSD License.
 
 import {
-  IApplicationStatus,
+  ILabStatus,
   ILayoutRestorer,
   JupyterClient,
   JupyterLabPlugin,
@@ -98,7 +98,7 @@ const tracker: JupyterLabPlugin<IConsoleTracker> = {
     ISettingRegistry,
     ILabShell
   ],
-  optional: [ILauncher, IApplicationStatus],
+  optional: [ILauncher, ILabStatus],
   activate: activateConsole,
   autoStart: true
 };
@@ -138,7 +138,7 @@ async function activateConsole(
   settingRegistry: ISettingRegistry,
   shell: ILabShell,
   launcher: ILauncher | null,
-  status: IApplicationStatus | null
+  status: ILabStatus | null
 ): Promise<IConsoleTracker> {
   const manager = app.serviceManager;
   const { commands } = app;