瀏覽代碼

Remove recovery theme.

Afshin Darian 7 年之前
父節點
當前提交
1c52e63efd

+ 0 - 14
packages/apputils/src/thememanager.ts

@@ -31,20 +31,6 @@ import {
 
 
 /* tslint:disable */
-/**
- * The application recovery theme token.
- */
-export
-const IRecoveryTheme = new Token('@jupyterlab/apputils:IRecoveryTheme');
-
-
-/**
- * The application recovery theme interface.
- */
-export
-interface IRecoveryTheme {}
-
-
 /**
  * The theme manager token.
  */

+ 3 - 1
packages/theme-dark-extension/src/index.ts

@@ -17,9 +17,11 @@ const plugin: JupyterLabPlugin<void> = {
   id: '@jupyterlab/theme-dark-extension:plugin',
   requires: [IThemeManager],
   activate: (app: JupyterLab, manager: IThemeManager) => {
+    const style = '@jupyterlab/theme-dark-extension/index.css';
+
     manager.register({
       name: 'JupyterLab Dark',
-      load: () => manager.loadCSS('@jupyterlab/theme-dark-extension/index.css'),
+      load: () => manager.loadCSS(style),
       unload: () => Promise.resolve(undefined)
     });
   },

+ 5 - 25
packages/theme-light-extension/src/index.ts

@@ -6,23 +6,19 @@ import {
 } from '@jupyterlab/application';
 
 import {
-  IRecoveryTheme, IThemeManager
+  IThemeManager
 } from '@jupyterlab/apputils';
 
 
-/**
- * The Jupyter Light Theme stylesheet.
- */
-const style = '@jupyterlab/theme-light-extension/index.css';
-
-
 /**
  * A plugin for the Jupyter Light Theme.
  */
-const theme: JupyterLabPlugin<void> = {
+const plugin: JupyterLabPlugin<void> = {
   id: '@jupyterlab/theme-light-extension:plugin',
   requires: [IThemeManager],
   activate: function(app: JupyterLab, manager: IThemeManager) {
+    const style = '@jupyterlab/theme-light-extension/index.css';
+
     manager.register({
       name: 'JupyterLab Light',
       load: () => manager.loadCSS(style),
@@ -33,20 +29,4 @@ const theme: JupyterLabPlugin<void> = {
 };
 
 
-/**
- * A plugin for the Jupyter Light Theme.
- */
-const recoveryTheme: JupyterLabPlugin<IRecoveryTheme> = {
-  id: '@jupyterlab/theme-light-extension:recovery',
-  requires: [IThemeManager],
-  activate: (app: JupyterLab, manager: IThemeManager) => manager.loadCSS(style),
-  autoStart: true,
-  provides: IRecoveryTheme
-};
-
-
-/**
- * Export the plugins as default.
- */
-const plugins: JupyterLabPlugin<any>[] = [theme, recoveryTheme];
-export default plugins;
+export default plugin;