Browse Source

Simplify the theme extension implementations

Steven Silvester 7 years ago
parent
commit
2a47ceea36

+ 2 - 0
packages/theme-dark-extension/index.js

@@ -0,0 +1,2 @@
+
+import '@jupyterlab/theming/style/variables-dark.css';

+ 1 - 16
packages/theme-dark-extension/package.json

@@ -2,30 +2,15 @@
   "name": "@jupyterlab/theme-dark-extension",
   "version": "0.9.0",
   "description": "JupyterLab - Default Dark Theme",
-  "main": "lib/index.js",
-  "types": "lib/index.d.ts",
-  "files": [
-    "lib/*.d.ts",
-    "lib/*.js",
-    "style/*.css"
-  ],
-  "directories": {
-    "lib": "lib/"
-  },
   "dependencies": {
-    "@jupyterlab/application": "^0.9.0",
     "@jupyterlab/theming": "^0.9.0"
   },
-  "devDependencies": {
-    "rimraf": "^2.5.2",
-    "typescript": "~2.4.1"
-  },
   "repository": {
     "type": "git",
     "url": "https://github.com/jupyterlab/jupyterlab.git"
   },
   "jupyterlab": {
-    "extension": true
+    "themeExtension": true
   },
   "author": "Project Jupyter",
   "license": "BSD-3-Clause",

+ 0 - 20
packages/theme-dark-extension/src/index.ts

@@ -1,20 +0,0 @@
-import {
-  JupyterLabPlugin
-} from '@jupyterlab/application';
-
-
-import '@jupyterlab/theming/style/variables-dark.css';
-
-
-/**
- * Initialization data for the dark theme extension.
- */
-const extension: JupyterLabPlugin<void> = {
-  id: 'jupyter.themes.dark',
-  autoStart: true,
-  activate: (app) => {
-    // No-op
-  }
-};
-
-export default extension;

+ 3 - 0
packages/theme-light-extension/index.js

@@ -0,0 +1,3 @@
+
+
+import '@jupyterlab/theming/style/variables-light.css';

+ 1 - 16
packages/theme-light-extension/package.json

@@ -2,30 +2,15 @@
   "name": "@jupyterlab/theme-light-extension",
   "version": "0.9.0",
   "description": "JupyterLab - Default Light Theme",
-  "main": "lib/index.js",
-  "types": "lib/index.d.ts",
-  "files": [
-    "lib/*.d.ts",
-    "lib/*.js",
-    "style/*.css"
-  ],
-  "directories": {
-    "lib": "lib/"
-  },
   "dependencies": {
-    "@jupyterlab/application": "^0.9.0",
     "@jupyterlab/theming": "^0.9.0"
   },
-  "devDependencies": {
-    "rimraf": "^2.5.2",
-    "typescript": "~2.4.1"
-  },
   "repository": {
     "type": "git",
     "url": "https://github.com/jupyterlab/jupyterlab.git"
   },
   "jupyterlab": {
-    "extension": true
+    "themeExtension": true
   },
   "author": "Project Jupyter",
   "license": "BSD-3-Clause",

+ 0 - 19
packages/theme-light-extension/src/index.ts

@@ -1,19 +0,0 @@
-import {
-  JupyterLabPlugin
-} from '@jupyterlab/application';
-
-import '@jupyterlab/theming/style/variables-light.css';
-
-
-/**
- * Initialization data for the light theme extension.
- */
-const extension: JupyterLabPlugin<void> = {
-  id: 'jupyter.themes.light',
-  autoStart: true,
-  activate: (app) => {
-    // No-op.
-  }
-};
-
-export default extension;