Skip to content

Commit

Permalink
Use lumino application directly
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Jan 27, 2022
1 parent a199a2f commit 424d1c3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 590 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quetz-theme",
"version": "0.1.2",
"version": "0.2.0",
"description": "A dark-yellow theme for Quetz.",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -42,9 +42,8 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyterlab/application": "^3.0.0",
"@jupyterlab/apputils": "^3.0.0"

"@jupyterlab/apputils": "^3.0.0",
"@lumino/application": "^1.25.0"
},
"devDependencies": {
"@jupyterlab/builder": "^3.0.0",
Expand Down
11 changes: 4 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import type {
JupyterFrontEnd,
JupyterFrontEndPlugin,
} from '@jupyterlab/application';
import type { IPlugin } from '@lumino/application';

import { IThemeManager } from '@jupyterlab/apputils';

/**
* Initialization data for the quetz-theme extension.
*/
const extension: JupyterFrontEndPlugin<void> = {
const extension: IPlugin<any, void> = {
id: 'quetz-theme',
requires: [IThemeManager],
autoStart: true,
activate: (app: JupyterFrontEnd, manager: IThemeManager) => {
activate: (app: any, manager: IThemeManager) => {
const style = 'quetz-theme/index.css';

manager.register({
name: 'Quetz',
isLight: false,
load: () => manager.loadCSS(style),
unload: () => Promise.resolve(undefined),
unload: () => Promise.resolve(),
});
},
};
Expand Down
Loading

0 comments on commit 424d1c3

Please sign in to comment.