kopia lustrzana https://github.com/deathbeds/ipydrawio
commit
16bb09d22e
|
@ -3,3 +3,4 @@ lib/
|
|||
node_modules/
|
||||
*.egg-info/
|
||||
.ipynb_checkpoints
|
||||
tsconfig.tsbuildinfo
|
20
package.json
20
package.json
|
@ -26,23 +26,23 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "node scripts/copyfiles.js && tsc",
|
||||
"clean": "rimraf lib",
|
||||
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
|
||||
"watch": "tsc -w",
|
||||
"prepublish": "npm run clean && npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jupyterlab/application": "^0.19.1",
|
||||
"@jupyterlab/apputils": "^0.19.1",
|
||||
"@jupyterlab/coreutils": "^2.0.2",
|
||||
"@jupyterlab/docregistry": "^0.19.1",
|
||||
"@jupyterlab/filebrowser": "^0.19.1",
|
||||
"@jupyterlab/launcher": "^0.19.1",
|
||||
"@jupyterlab/mainmenu": "^0.8.1"
|
||||
"@jupyterlab/application": "^1.0.0",
|
||||
"@jupyterlab/apputils": "^1.0.0",
|
||||
"@jupyterlab/coreutils": "^3.0.0",
|
||||
"@jupyterlab/docregistry": "^1.0.0",
|
||||
"@jupyterlab/filebrowser": "^1.0.0",
|
||||
"@jupyterlab/launcher": "^1.0.0",
|
||||
"@jupyterlab/mainmenu": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^2.6.1",
|
||||
"typescript": "~3.1.1",
|
||||
"fs-extra": "^0.30.0",
|
||||
"typescript": "~3.5.2",
|
||||
"fs-extra": "^8.1.0",
|
||||
"@phosphor/messaging": "^1.1.0"
|
||||
},
|
||||
"jupyterlab": {
|
||||
|
|
10
src/index.ts
10
src/index.ts
|
@ -13,11 +13,11 @@
|
|||
// limitations under the License.
|
||||
|
||||
import {
|
||||
ILayoutRestorer, JupyterLab, JupyterLabPlugin
|
||||
ILayoutRestorer, JupyterLab, JupyterFrontEndPlugin
|
||||
} from '@jupyterlab/application';
|
||||
|
||||
import {
|
||||
ICommandPalette, InstanceTracker, IInstanceTracker
|
||||
ICommandPalette, WidgetTracker, IWidgetTracker
|
||||
} from '@jupyterlab/apputils';
|
||||
|
||||
import {
|
||||
|
@ -45,7 +45,7 @@ import {
|
|||
*/
|
||||
const FACTORY = 'Drawio';
|
||||
|
||||
interface IDrawioTracker extends IInstanceTracker<DrawioWidget> {}
|
||||
interface IDrawioTracker extends IWidgetTracker<DrawioWidget> {}
|
||||
|
||||
export
|
||||
const IDrawioTracker = new Token<IDrawioTracker>('drawio/tracki');
|
||||
|
@ -53,7 +53,7 @@ const IDrawioTracker = new Token<IDrawioTracker>('drawio/tracki');
|
|||
/**
|
||||
* The editor tracker extension.
|
||||
*/
|
||||
const plugin: JupyterLabPlugin<IDrawioTracker> = {
|
||||
const plugin: JupyterFrontEndPlugin<IDrawioTracker> = {
|
||||
activate,
|
||||
id: '@jupyterlab/drawio-extension:plugin',
|
||||
requires: [IFileBrowserFactory, ILayoutRestorer, IMainMenu, ICommandPalette],
|
||||
|
@ -74,7 +74,7 @@ function activate(app: JupyterLab,
|
|||
const namespace = 'drawio';
|
||||
const factory = new DrawioFactory({ name: FACTORY, fileTypes: ['dio'], defaultFor: ['dio'] });
|
||||
const { commands } = app;
|
||||
const tracker = new InstanceTracker<DrawioWidget>({ namespace });
|
||||
const tracker = new WidgetTracker<DrawioWidget>({ namespace });
|
||||
|
||||
/**
|
||||
* Whether there is an active DrawIO editor.
|
||||
|
|
|
@ -5,12 +5,15 @@
|
|||
"noEmitOnError": true,
|
||||
"noUnusedLocals": true,
|
||||
"allowJs": true,
|
||||
"module": "commonjs",
|
||||
"module": "esnext",
|
||||
"esModuleInterop": true,
|
||||
"incremental": true,
|
||||
"jsx": "react",
|
||||
"moduleResolution": "node",
|
||||
"target": "ES2015",
|
||||
"target": "es2017",
|
||||
"outDir": "./lib",
|
||||
"lib": ["ES2015", "ES2015.Promise", "DOM", "ES2015.Collection"],
|
||||
"types": []
|
||||
"types": [],
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": ["src/*"]
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue