@jupyterlab/application 0.19.1-alpha.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +34 -0
- package/lib/index.d.ts +241 -241
- package/lib/index.js +283 -283
- package/lib/layoutrestorer.d.ts +205 -205
- package/lib/layoutrestorer.js +423 -423
- package/lib/mimerenderers.d.ts +22 -22
- package/lib/mimerenderers.js +137 -134
- package/lib/router.d.ts +204 -204
- package/lib/router.js +145 -145
- package/lib/shell.d.ts +277 -277
- package/lib/shell.js +857 -854
- package/package.json +13 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Copyright (c) 2015 Project Jupyter Contributors
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
|
|
29
|
+
Semver File License
|
|
30
|
+
===================
|
|
31
|
+
|
|
32
|
+
The semver.py file is from https://github.com/podhmo/python-semver
|
|
33
|
+
which is licensed under the "MIT" license. See the semver.py file for details.
|
|
34
|
+
|
package/lib/index.d.ts
CHANGED
|
@@ -1,241 +1,241 @@
|
|
|
1
|
-
import '../style/index.css';
|
|
2
|
-
import { CommandLinker } from '@jupyterlab/apputils';
|
|
3
|
-
import { DocumentRegistry } from '@jupyterlab/docregistry';
|
|
4
|
-
import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
|
|
5
|
-
import { ServiceManager } from '@jupyterlab/services';
|
|
6
|
-
import { Application, IPlugin } from '@phosphor/application';
|
|
7
|
-
import { IDisposable } from '@phosphor/disposable';
|
|
8
|
-
import { ApplicationShell } from './shell';
|
|
9
|
-
import { ISignal } from '@phosphor/signaling';
|
|
10
|
-
export { ILayoutRestorer, LayoutRestorer } from './layoutrestorer';
|
|
11
|
-
export { IMimeDocumentTracker } from './mimerenderers';
|
|
12
|
-
export { IRouter, Router } from './router';
|
|
13
|
-
export { ApplicationShell } from './shell';
|
|
14
|
-
/**
|
|
15
|
-
* The type for all JupyterLab plugins.
|
|
16
|
-
*/
|
|
17
|
-
export declare type JupyterLabPlugin<T> = IPlugin<JupyterLab, T>;
|
|
18
|
-
/**
|
|
19
|
-
* JupyterLab is the main application class. It is instantiated once and shared.
|
|
20
|
-
*/
|
|
21
|
-
export declare class JupyterLab extends Application<ApplicationShell> {
|
|
22
|
-
/**
|
|
23
|
-
* Construct a new JupyterLab object.
|
|
24
|
-
*/
|
|
25
|
-
constructor(options?: JupyterLab.IOptions);
|
|
26
|
-
/**
|
|
27
|
-
* The document registry instance used by the application.
|
|
28
|
-
*/
|
|
29
|
-
readonly docRegistry: DocumentRegistry;
|
|
30
|
-
/**
|
|
31
|
-
* The command linker used by the application.
|
|
32
|
-
*/
|
|
33
|
-
readonly commandLinker: CommandLinker;
|
|
34
|
-
/**
|
|
35
|
-
* The service manager used by the application.
|
|
36
|
-
*/
|
|
37
|
-
readonly serviceManager: ServiceManager;
|
|
38
|
-
/**
|
|
39
|
-
* A list of all errors encountered when registering plugins.
|
|
40
|
-
*/
|
|
41
|
-
readonly registerPluginErrors: Array<Error>;
|
|
42
|
-
/**
|
|
43
|
-
* A method invoked on a document `'contextmenu'` event.
|
|
44
|
-
*
|
|
45
|
-
* #### Notes
|
|
46
|
-
* The default implementation of this method opens the application
|
|
47
|
-
* `contextMenu` at the current mouse position.
|
|
48
|
-
*
|
|
49
|
-
* If the application context menu has no matching content *or* if
|
|
50
|
-
* the shift key is pressed, the default browser context menu will
|
|
51
|
-
* be opened instead.
|
|
52
|
-
*
|
|
53
|
-
* A subclass may reimplement this method as needed.
|
|
54
|
-
*/
|
|
55
|
-
protected evtContextMenu(event: MouseEvent): void;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the application is dirty.
|
|
58
|
-
*/
|
|
59
|
-
readonly isDirty: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the application is busy.
|
|
62
|
-
*/
|
|
63
|
-
readonly isBusy: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Returns a signal for when application changes its busy status.
|
|
66
|
-
*/
|
|
67
|
-
readonly busySignal: ISignal<JupyterLab, boolean>;
|
|
68
|
-
/**
|
|
69
|
-
* Returns a signal for when application changes its dirty status.
|
|
70
|
-
*/
|
|
71
|
-
readonly dirtySignal: ISignal<JupyterLab, boolean>;
|
|
72
|
-
/**
|
|
73
|
-
* The information about the application.
|
|
74
|
-
*/
|
|
75
|
-
readonly info: JupyterLab.IInfo;
|
|
76
|
-
/**
|
|
77
|
-
* Promise that resolves when state is first restored, returning layout description.
|
|
78
|
-
*
|
|
79
|
-
* #### Notes
|
|
80
|
-
* This is just a reference to `shell.restored`.
|
|
81
|
-
*/
|
|
82
|
-
readonly restored: Promise<ApplicationShell.ILayout>;
|
|
83
|
-
/**
|
|
84
|
-
* Walks up the DOM hierarchy of the target of the active `contextmenu`
|
|
85
|
-
* event, testing the nodes for a user-supplied funcion. This can
|
|
86
|
-
* be used to find a node on which to operate, given a context menu click.
|
|
87
|
-
*
|
|
88
|
-
* @param test - a function that takes an `HTMLElement` and returns a
|
|
89
|
-
* boolean for whether it is the element the requester is seeking.
|
|
90
|
-
*
|
|
91
|
-
* @returns an HTMLElement or undefined, if none is found.
|
|
92
|
-
*/
|
|
93
|
-
contextMenuFirst(test: (node: HTMLElement) => boolean): HTMLElement | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Set the application state to dirty.
|
|
96
|
-
*
|
|
97
|
-
* @returns A disposable used to clear the dirty state for the caller.
|
|
98
|
-
*/
|
|
99
|
-
setDirty(): IDisposable;
|
|
100
|
-
/**
|
|
101
|
-
* Set the application state to busy.
|
|
102
|
-
*
|
|
103
|
-
* @returns A disposable used to clear the busy state for the caller.
|
|
104
|
-
*/
|
|
105
|
-
setBusy(): IDisposable;
|
|
106
|
-
/**
|
|
107
|
-
* Register plugins from a plugin module.
|
|
108
|
-
*
|
|
109
|
-
* @param mod - The plugin module to register.
|
|
110
|
-
*/
|
|
111
|
-
registerPluginModule(mod: JupyterLab.IPluginModule): void;
|
|
112
|
-
/**
|
|
113
|
-
* Register the plugins from multiple plugin modules.
|
|
114
|
-
*
|
|
115
|
-
* @param mods - The plugin modules to register.
|
|
116
|
-
*/
|
|
117
|
-
registerPluginModules(mods: JupyterLab.IPluginModule[]): void;
|
|
118
|
-
/**
|
|
119
|
-
* Gets the hierarchy of html nodes that was under the cursor
|
|
120
|
-
* when the most recent contextmenu event was issued
|
|
121
|
-
*/
|
|
122
|
-
private _getContextMenuNodes;
|
|
123
|
-
private _contextMenuEvent;
|
|
124
|
-
private _info;
|
|
125
|
-
private _dirtyCount;
|
|
126
|
-
private _busyCount;
|
|
127
|
-
private _busySignal;
|
|
128
|
-
private _dirtySignal;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* The namespace for `JupyterLab` class statics.
|
|
132
|
-
*/
|
|
133
|
-
export declare namespace JupyterLab {
|
|
134
|
-
/**
|
|
135
|
-
* The options used to initialize a JupyterLab object.
|
|
136
|
-
*/
|
|
137
|
-
interface IOptions extends Partial<IInfo> {
|
|
138
|
-
/**
|
|
139
|
-
* The document registry instance used by the application.
|
|
140
|
-
*/
|
|
141
|
-
docRegistry?: DocumentRegistry;
|
|
142
|
-
/**
|
|
143
|
-
* The command linker used by the application.
|
|
144
|
-
*/
|
|
145
|
-
commandLinker?: CommandLinker;
|
|
146
|
-
/**
|
|
147
|
-
* The service manager used by the application.
|
|
148
|
-
*/
|
|
149
|
-
serviceManager?: ServiceManager;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The information about a JupyterLab application.
|
|
153
|
-
*/
|
|
154
|
-
interface IInfo {
|
|
155
|
-
/**
|
|
156
|
-
* The name of the JupyterLab application.
|
|
157
|
-
*/
|
|
158
|
-
readonly name: string;
|
|
159
|
-
/**
|
|
160
|
-
* The version of the JupyterLab application.
|
|
161
|
-
*/
|
|
162
|
-
readonly version: string;
|
|
163
|
-
/**
|
|
164
|
-
* The namespace/prefix plugins may use to denote their origin.
|
|
165
|
-
*/
|
|
166
|
-
readonly namespace: string;
|
|
167
|
-
/**
|
|
168
|
-
* Whether the application is in dev mode.
|
|
169
|
-
*/
|
|
170
|
-
readonly devMode: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* The collection of deferred extension patterns and matched extensions.
|
|
173
|
-
*/
|
|
174
|
-
readonly deferred: {
|
|
175
|
-
patterns: string[];
|
|
176
|
-
matches: string[];
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* The collection of disabled extension patterns and matched extensions.
|
|
180
|
-
*/
|
|
181
|
-
readonly disabled: {
|
|
182
|
-
patterns: string[];
|
|
183
|
-
matches: string[];
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* The mime renderer extensions.
|
|
187
|
-
*/
|
|
188
|
-
readonly mimeExtensions: IRenderMime.IExtensionModule[];
|
|
189
|
-
/**
|
|
190
|
-
* The urls used by the application.
|
|
191
|
-
*/
|
|
192
|
-
readonly urls: {
|
|
193
|
-
readonly base: string;
|
|
194
|
-
readonly page: string;
|
|
195
|
-
readonly public: string;
|
|
196
|
-
readonly settings: string;
|
|
197
|
-
readonly themes: string;
|
|
198
|
-
readonly tree: string;
|
|
199
|
-
readonly workspaces: string;
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* The local directories used by the application.
|
|
203
|
-
*/
|
|
204
|
-
readonly directories: {
|
|
205
|
-
readonly appSettings: string;
|
|
206
|
-
readonly schemas: string;
|
|
207
|
-
readonly static: string;
|
|
208
|
-
readonly templates: string;
|
|
209
|
-
readonly themes: string;
|
|
210
|
-
readonly userSettings: string;
|
|
211
|
-
readonly serverRoot: string;
|
|
212
|
-
readonly workspaces: string;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Whether files are cached on the server.
|
|
216
|
-
*/
|
|
217
|
-
readonly filesCached: boolean;
|
|
218
|
-
/**
|
|
219
|
-
* The name of the current workspace.
|
|
220
|
-
*/
|
|
221
|
-
readonly workspace: string;
|
|
222
|
-
/**
|
|
223
|
-
* The name of the default workspace.
|
|
224
|
-
*/
|
|
225
|
-
readonly defaultWorkspace: string;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* The default application info.
|
|
229
|
-
*/
|
|
230
|
-
const defaultInfo: IInfo;
|
|
231
|
-
/**
|
|
232
|
-
* The interface for a module that exports a plugin or plugins as
|
|
233
|
-
* the default value.
|
|
234
|
-
*/
|
|
235
|
-
interface IPluginModule {
|
|
236
|
-
/**
|
|
237
|
-
* The default export.
|
|
238
|
-
*/
|
|
239
|
-
default: JupyterLabPlugin<any> | JupyterLabPlugin<any>[];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
1
|
+
import '../style/index.css';
|
|
2
|
+
import { CommandLinker } from '@jupyterlab/apputils';
|
|
3
|
+
import { DocumentRegistry } from '@jupyterlab/docregistry';
|
|
4
|
+
import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
|
|
5
|
+
import { ServiceManager } from '@jupyterlab/services';
|
|
6
|
+
import { Application, IPlugin } from '@phosphor/application';
|
|
7
|
+
import { IDisposable } from '@phosphor/disposable';
|
|
8
|
+
import { ApplicationShell } from './shell';
|
|
9
|
+
import { ISignal } from '@phosphor/signaling';
|
|
10
|
+
export { ILayoutRestorer, LayoutRestorer } from './layoutrestorer';
|
|
11
|
+
export { IMimeDocumentTracker } from './mimerenderers';
|
|
12
|
+
export { IRouter, Router } from './router';
|
|
13
|
+
export { ApplicationShell } from './shell';
|
|
14
|
+
/**
|
|
15
|
+
* The type for all JupyterLab plugins.
|
|
16
|
+
*/
|
|
17
|
+
export declare type JupyterLabPlugin<T> = IPlugin<JupyterLab, T>;
|
|
18
|
+
/**
|
|
19
|
+
* JupyterLab is the main application class. It is instantiated once and shared.
|
|
20
|
+
*/
|
|
21
|
+
export declare class JupyterLab extends Application<ApplicationShell> {
|
|
22
|
+
/**
|
|
23
|
+
* Construct a new JupyterLab object.
|
|
24
|
+
*/
|
|
25
|
+
constructor(options?: JupyterLab.IOptions);
|
|
26
|
+
/**
|
|
27
|
+
* The document registry instance used by the application.
|
|
28
|
+
*/
|
|
29
|
+
readonly docRegistry: DocumentRegistry;
|
|
30
|
+
/**
|
|
31
|
+
* The command linker used by the application.
|
|
32
|
+
*/
|
|
33
|
+
readonly commandLinker: CommandLinker;
|
|
34
|
+
/**
|
|
35
|
+
* The service manager used by the application.
|
|
36
|
+
*/
|
|
37
|
+
readonly serviceManager: ServiceManager;
|
|
38
|
+
/**
|
|
39
|
+
* A list of all errors encountered when registering plugins.
|
|
40
|
+
*/
|
|
41
|
+
readonly registerPluginErrors: Array<Error>;
|
|
42
|
+
/**
|
|
43
|
+
* A method invoked on a document `'contextmenu'` event.
|
|
44
|
+
*
|
|
45
|
+
* #### Notes
|
|
46
|
+
* The default implementation of this method opens the application
|
|
47
|
+
* `contextMenu` at the current mouse position.
|
|
48
|
+
*
|
|
49
|
+
* If the application context menu has no matching content *or* if
|
|
50
|
+
* the shift key is pressed, the default browser context menu will
|
|
51
|
+
* be opened instead.
|
|
52
|
+
*
|
|
53
|
+
* A subclass may reimplement this method as needed.
|
|
54
|
+
*/
|
|
55
|
+
protected evtContextMenu(event: MouseEvent): void;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the application is dirty.
|
|
58
|
+
*/
|
|
59
|
+
readonly isDirty: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the application is busy.
|
|
62
|
+
*/
|
|
63
|
+
readonly isBusy: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a signal for when application changes its busy status.
|
|
66
|
+
*/
|
|
67
|
+
readonly busySignal: ISignal<JupyterLab, boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a signal for when application changes its dirty status.
|
|
70
|
+
*/
|
|
71
|
+
readonly dirtySignal: ISignal<JupyterLab, boolean>;
|
|
72
|
+
/**
|
|
73
|
+
* The information about the application.
|
|
74
|
+
*/
|
|
75
|
+
readonly info: JupyterLab.IInfo;
|
|
76
|
+
/**
|
|
77
|
+
* Promise that resolves when state is first restored, returning layout description.
|
|
78
|
+
*
|
|
79
|
+
* #### Notes
|
|
80
|
+
* This is just a reference to `shell.restored`.
|
|
81
|
+
*/
|
|
82
|
+
readonly restored: Promise<ApplicationShell.ILayout>;
|
|
83
|
+
/**
|
|
84
|
+
* Walks up the DOM hierarchy of the target of the active `contextmenu`
|
|
85
|
+
* event, testing the nodes for a user-supplied funcion. This can
|
|
86
|
+
* be used to find a node on which to operate, given a context menu click.
|
|
87
|
+
*
|
|
88
|
+
* @param test - a function that takes an `HTMLElement` and returns a
|
|
89
|
+
* boolean for whether it is the element the requester is seeking.
|
|
90
|
+
*
|
|
91
|
+
* @returns an HTMLElement or undefined, if none is found.
|
|
92
|
+
*/
|
|
93
|
+
contextMenuFirst(test: (node: HTMLElement) => boolean): HTMLElement | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Set the application state to dirty.
|
|
96
|
+
*
|
|
97
|
+
* @returns A disposable used to clear the dirty state for the caller.
|
|
98
|
+
*/
|
|
99
|
+
setDirty(): IDisposable;
|
|
100
|
+
/**
|
|
101
|
+
* Set the application state to busy.
|
|
102
|
+
*
|
|
103
|
+
* @returns A disposable used to clear the busy state for the caller.
|
|
104
|
+
*/
|
|
105
|
+
setBusy(): IDisposable;
|
|
106
|
+
/**
|
|
107
|
+
* Register plugins from a plugin module.
|
|
108
|
+
*
|
|
109
|
+
* @param mod - The plugin module to register.
|
|
110
|
+
*/
|
|
111
|
+
registerPluginModule(mod: JupyterLab.IPluginModule): void;
|
|
112
|
+
/**
|
|
113
|
+
* Register the plugins from multiple plugin modules.
|
|
114
|
+
*
|
|
115
|
+
* @param mods - The plugin modules to register.
|
|
116
|
+
*/
|
|
117
|
+
registerPluginModules(mods: JupyterLab.IPluginModule[]): void;
|
|
118
|
+
/**
|
|
119
|
+
* Gets the hierarchy of html nodes that was under the cursor
|
|
120
|
+
* when the most recent contextmenu event was issued
|
|
121
|
+
*/
|
|
122
|
+
private _getContextMenuNodes;
|
|
123
|
+
private _contextMenuEvent;
|
|
124
|
+
private _info;
|
|
125
|
+
private _dirtyCount;
|
|
126
|
+
private _busyCount;
|
|
127
|
+
private _busySignal;
|
|
128
|
+
private _dirtySignal;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The namespace for `JupyterLab` class statics.
|
|
132
|
+
*/
|
|
133
|
+
export declare namespace JupyterLab {
|
|
134
|
+
/**
|
|
135
|
+
* The options used to initialize a JupyterLab object.
|
|
136
|
+
*/
|
|
137
|
+
interface IOptions extends Partial<IInfo> {
|
|
138
|
+
/**
|
|
139
|
+
* The document registry instance used by the application.
|
|
140
|
+
*/
|
|
141
|
+
docRegistry?: DocumentRegistry;
|
|
142
|
+
/**
|
|
143
|
+
* The command linker used by the application.
|
|
144
|
+
*/
|
|
145
|
+
commandLinker?: CommandLinker;
|
|
146
|
+
/**
|
|
147
|
+
* The service manager used by the application.
|
|
148
|
+
*/
|
|
149
|
+
serviceManager?: ServiceManager;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The information about a JupyterLab application.
|
|
153
|
+
*/
|
|
154
|
+
interface IInfo {
|
|
155
|
+
/**
|
|
156
|
+
* The name of the JupyterLab application.
|
|
157
|
+
*/
|
|
158
|
+
readonly name: string;
|
|
159
|
+
/**
|
|
160
|
+
* The version of the JupyterLab application.
|
|
161
|
+
*/
|
|
162
|
+
readonly version: string;
|
|
163
|
+
/**
|
|
164
|
+
* The namespace/prefix plugins may use to denote their origin.
|
|
165
|
+
*/
|
|
166
|
+
readonly namespace: string;
|
|
167
|
+
/**
|
|
168
|
+
* Whether the application is in dev mode.
|
|
169
|
+
*/
|
|
170
|
+
readonly devMode: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* The collection of deferred extension patterns and matched extensions.
|
|
173
|
+
*/
|
|
174
|
+
readonly deferred: {
|
|
175
|
+
patterns: string[];
|
|
176
|
+
matches: string[];
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* The collection of disabled extension patterns and matched extensions.
|
|
180
|
+
*/
|
|
181
|
+
readonly disabled: {
|
|
182
|
+
patterns: string[];
|
|
183
|
+
matches: string[];
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* The mime renderer extensions.
|
|
187
|
+
*/
|
|
188
|
+
readonly mimeExtensions: IRenderMime.IExtensionModule[];
|
|
189
|
+
/**
|
|
190
|
+
* The urls used by the application.
|
|
191
|
+
*/
|
|
192
|
+
readonly urls: {
|
|
193
|
+
readonly base: string;
|
|
194
|
+
readonly page: string;
|
|
195
|
+
readonly public: string;
|
|
196
|
+
readonly settings: string;
|
|
197
|
+
readonly themes: string;
|
|
198
|
+
readonly tree: string;
|
|
199
|
+
readonly workspaces: string;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* The local directories used by the application.
|
|
203
|
+
*/
|
|
204
|
+
readonly directories: {
|
|
205
|
+
readonly appSettings: string;
|
|
206
|
+
readonly schemas: string;
|
|
207
|
+
readonly static: string;
|
|
208
|
+
readonly templates: string;
|
|
209
|
+
readonly themes: string;
|
|
210
|
+
readonly userSettings: string;
|
|
211
|
+
readonly serverRoot: string;
|
|
212
|
+
readonly workspaces: string;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Whether files are cached on the server.
|
|
216
|
+
*/
|
|
217
|
+
readonly filesCached: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The name of the current workspace.
|
|
220
|
+
*/
|
|
221
|
+
readonly workspace: string;
|
|
222
|
+
/**
|
|
223
|
+
* The name of the default workspace.
|
|
224
|
+
*/
|
|
225
|
+
readonly defaultWorkspace: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The default application info.
|
|
229
|
+
*/
|
|
230
|
+
const defaultInfo: IInfo;
|
|
231
|
+
/**
|
|
232
|
+
* The interface for a module that exports a plugin or plugins as
|
|
233
|
+
* the default value.
|
|
234
|
+
*/
|
|
235
|
+
interface IPluginModule {
|
|
236
|
+
/**
|
|
237
|
+
* The default export.
|
|
238
|
+
*/
|
|
239
|
+
default: JupyterLabPlugin<any> | JupyterLabPlugin<any>[];
|
|
240
|
+
}
|
|
241
|
+
}
|