Prechádzať zdrojové kódy

Add notebook package

Steven Silvester 8 rokov pred
rodič
commit
8e1d3e3e96

+ 52 - 0
src/notebook/package.json

@@ -0,0 +1,52 @@
+{
+  "name": "@jupyterlab/notebook",
+  "version": "0.1.0",
+  "description": "JupyterLab - Notebook",
+  "main": "lib/index.js",
+  "types": "lib/index.d.ts",
+  "files": [
+    "lib/*.d.ts",
+    "lib/*.js"
+  ],
+  "directories": {
+    "lib": "lib/"
+  },
+  "dependencies": {
+    "@jupyterlab/apputils": "^0.1.0",
+    "@jupyterlab/cells": "^0.1.0",
+    "@jupyterlab/cells/model": "^0.1.0",
+    "@jupyterlab/codeeditor": "^0.1.0",
+    "@jupyterlab/coreutils": "^0.1.0",
+    "@jupyterlab/docregistry": "^0.1.0",
+    "@jupyterlab/outputarea": "^0.1.0",
+    "@jupyterlab/rendermime": "^0.1.0",
+    "@jupyterlab/services": "^0.40.1",
+    "@phosphor/algorithm": "^0.1.1",
+    "@phosphor/coreutils": "^0.1.5",
+    "@phosphor/domutils": "^0.1.2",
+    "@phosphor/dragdrop": "^0.1.4",
+    "@phosphor/messaging": "^0.1.2",
+    "@phosphor/properties": "^0.1.1",
+    "@phosphor/signaling": "^0.1.2",
+    "@phosphor/virtualdom": "^0.1.1",
+    "@phosphor/widgets": "^0.3.0"
+  },
+  "devDependencies": {
+    "rimraf": "^2.5.2",
+    "typescript": "^2.2.1"
+  },
+  "scripts": {
+    "build": "tsc",
+    "clean": "rimraf lib"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jupyterlab/jupyterlab.git"
+  },
+  "author": "Project Jupyter",
+  "license": "BSD-3-Clause",
+  "bugs": {
+    "url": "https://github.com/jupyterlab/jupyterlab/issues"
+  },
+  "homepage": "https://github.com/jupyterlab/jupyterlab"
+}

+ 3 - 3
src/notebook/actions.ts → src/notebook/src/actions.ts

@@ -11,16 +11,16 @@ import {
 
 import {
   Clipboard
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   nbformat
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 import {
   ICellModel, ICodeCellModel,
   CodeCellWidget, BaseCellWidget, MarkdownCellWidget
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   INotebookModel

+ 4 - 4
src/notebook/celltools.ts → src/notebook/src/celltools.ts

@@ -23,19 +23,19 @@ import {
 
 import {
   JSONEditorWidget, Styling
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   BaseCellWidget, ICellModel
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   CodeEditor, CodeEditorWidget
-} from '../codeeditor';
+} from '@jupyterlab/codeeditor';
 
 import {
   IObservableMap, nbformat, ObservableJSON, ObservableMap
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 import {
   INotebookTracker

+ 2 - 2
src/notebook/default-toolbar.ts → src/notebook/src/default-toolbar.ts

@@ -15,11 +15,11 @@ import {
 
 import {
   Styling, Toolbar, ToolbarButton
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   nbformat
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 import {
   NotebookPanel

+ 0 - 0
src/notebook/index.ts → src/notebook/src/index.ts


+ 3 - 3
src/notebook/model.ts → src/notebook/src/model.ts

@@ -7,17 +7,17 @@ import {
 
 import {
   DocumentModel, DocumentRegistry
-} from '../docregistry';
+} from '@jupyterlab/docregistry';
 
 import {
   ICellModel, ICodeCellModel, IRawCellModel, IMarkdownCellModel,
   CodeCellModel, RawCellModel, MarkdownCellModel, CellModel
-} from '../cells/model';
+} from '@jupyterlab/cells/model';
 
 import {
   IChangedArgs, IObservableJSON, ObservableJSON, IObservableUndoableVector,
   ObservableUndoableVector, IObservableVector, ObservableVector, nbformat
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 
 /**

+ 2 - 2
src/notebook/modelfactory.ts → src/notebook/src/modelfactory.ts

@@ -7,11 +7,11 @@ import {
 
 import {
   DocumentRegistry
-} from '../docregistry';
+} from '@jupyterlab/docregistry';
 
 import {
   CodeCellModel
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   INotebookModel, NotebookModel

+ 7 - 7
src/notebook/panel.ts → src/notebook/src/panel.ts

@@ -28,31 +28,31 @@ import {
 
 import {
   Toolbar
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   BaseCellWidget, CodeCellWidget
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   IEditorMimeTypeService, CodeEditor
-} from '../codeeditor';
+} from '@jupyterlab/codeeditor';
 
 import {
   IChangedArgs
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 import {
   DocumentRegistry
-} from '../docregistry';
+} from '@jupyterlab/docregistry';
 
 import {
   OutputAreaWidget
-} from '../outputarea';
+} from '@jupyterlab/outputarea';
 
 import {
   RenderMime
-} from '../rendermime';
+} from '@jupyterlab/rendermime';
 
 import {
   INotebookModel

+ 2 - 2
src/notebook/tracker.ts → src/notebook/src/tracker.ts

@@ -11,11 +11,11 @@ import {
 
 import {
   IInstanceTracker, InstanceTracker
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   BaseCellWidget
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   NotebookPanel, Notebook

+ 1 - 1
src/notebook/trust.ts → src/notebook/src/trust.ts

@@ -3,7 +3,7 @@
 
 import {
   Dialog, showDialog
-} from '../apputils';
+} from '@jupyterlab/apputils';
 
 import {
   INotebookModel

+ 5 - 5
src/notebook/widget.ts → src/notebook/src/widget.ts

@@ -45,24 +45,24 @@ import {
   ICellModel, BaseCellWidget, IMarkdownCellModel,
   CodeCellWidget, MarkdownCellWidget,
   ICodeCellModel, RawCellWidget, IRawCellModel,
-} from '../cells';
+} from '@jupyterlab/cells';
 
 import {
   IEditorMimeTypeService, CodeEditor
-} from '../codeeditor';
+} from '@jupyterlab/codeeditor';
 
 import {
   IChangedArgs, IObservableMap, ObservableMap, IObservableVector,
   ObservableVector, nbformat
-} from '../coreutils';
+} from '@jupyterlab/coreutils';
 
 import {
   RenderMime
-} from '../rendermime';
+} from '@jupyterlab/rendermime';
 
 import {
   OutputAreaWidget
-} from '../outputarea';
+} from '@jupyterlab/outputarea';
 
 import {
   INotebookModel

+ 3 - 3
src/notebook/widgetfactory.ts → src/notebook/src/widgetfactory.ts

@@ -3,15 +3,15 @@
 
 import {
   IEditorMimeTypeService
-} from '../codeeditor';
+} from '@jupyterlab/codeeditor';
 
 import {
   ABCWidgetFactory, DocumentRegistry
-} from '../docregistry';
+} from '@jupyterlab/docregistry';
 
 import {
   RenderMime
-} from '../rendermime';
+} from '@jupyterlab/rendermime';
 
 import {
   ToolbarItems

+ 0 - 0
src/notebook/index.css → src/notebook/style/index.css


+ 0 - 0
src/notebook/toolbar.css → src/notebook/style/toolbar.css


+ 15 - 0
src/notebook/tsconfig.json

@@ -0,0 +1,15 @@
+{
+  "compilerOptions": {
+    "declaration": true,
+    "noImplicitAny": true,
+    "noEmitOnError": true,
+    "noUnusedLocals": true,
+    "module": "commonjs",
+    "moduleResolution": "node",
+    "target": "ES5",
+    "outDir": "./lib",
+    "lib": ["ES5", "ES2015.Promise", "DOM", "ES2015.Collection"],
+    "types": []
+  },
+  "include": ["src/*"]
+}