@jupyterlab/workspaces-extension 4.2.0-alpha.2
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/lib/commands.d.ts +7 -0
- package/lib/commands.js +475 -0
- package/lib/commands.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +40 -0
- package/lib/index.js.map +1 -0
- package/lib/sidebar.d.ts +5 -0
- package/lib/sidebar.js +75 -0
- package/lib/sidebar.js.map +1 -0
- package/package.json +62 -0
- package/schema/menu.json +70 -0
- package/schema/sidebar.json +51 -0
- package/src/commands.ts +597 -0
- package/src/index.ts +58 -0
- package/src/sidebar.ts +106 -0
- package/style/index.css +11 -0
- package/style/index.js +11 -0
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jupyterlab/workspaces-extension",
|
|
3
|
+
"version": "4.2.0-alpha.2",
|
|
4
|
+
"description": "JupyterLab Extension providing UI for workspace management",
|
|
5
|
+
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/jupyterlab/jupyterlab/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/jupyterlab/jupyterlab.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "BSD-3-Clause",
|
|
14
|
+
"author": "Project Jupyter",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"style/**/*"
|
|
17
|
+
],
|
|
18
|
+
"main": "lib/index.js",
|
|
19
|
+
"types": "lib/index.d.ts",
|
|
20
|
+
"style": "style/index.css",
|
|
21
|
+
"directories": {
|
|
22
|
+
"lib": "lib/"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
|
|
26
|
+
"schema/*.json",
|
|
27
|
+
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
|
|
28
|
+
"src/**/*.{ts,tsx}",
|
|
29
|
+
"style/index.js"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -b",
|
|
33
|
+
"build:test": "tsc --build tsconfig.test.json",
|
|
34
|
+
"clean": "rimraf lib tsconfig.tsbuildinfo",
|
|
35
|
+
"watch": "tsc -b --watch"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@jupyterlab/application": "^4.2.0-alpha.2",
|
|
39
|
+
"@jupyterlab/apputils": "^4.3.0-alpha.2",
|
|
40
|
+
"@jupyterlab/coreutils": "^6.2.0-alpha.2",
|
|
41
|
+
"@jupyterlab/filebrowser": "^4.2.0-alpha.2",
|
|
42
|
+
"@jupyterlab/running": "^4.2.0-alpha.2",
|
|
43
|
+
"@jupyterlab/services": "^7.2.0-alpha.2",
|
|
44
|
+
"@jupyterlab/statedb": "^4.2.0-alpha.2",
|
|
45
|
+
"@jupyterlab/translation": "^4.2.0-alpha.2",
|
|
46
|
+
"@jupyterlab/ui-components": "^4.2.0-alpha.2",
|
|
47
|
+
"@jupyterlab/workspaces": "^4.2.0-alpha.2"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/jest": "^29.2.0",
|
|
51
|
+
"rimraf": "~5.0.5",
|
|
52
|
+
"typescript": "~5.1.6"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"jupyterlab": {
|
|
58
|
+
"extension": true,
|
|
59
|
+
"schemaDir": "schema"
|
|
60
|
+
},
|
|
61
|
+
"styleModule": "style/index.js"
|
|
62
|
+
}
|
package/schema/menu.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Workspaces Menu",
|
|
3
|
+
"description": "Workspaces Menu",
|
|
4
|
+
"jupyter.lab.menus": {
|
|
5
|
+
"main": [
|
|
6
|
+
{
|
|
7
|
+
"id": "jp-mainmenu-file",
|
|
8
|
+
"items": [
|
|
9
|
+
{
|
|
10
|
+
"type": "submenu",
|
|
11
|
+
"rank": 10,
|
|
12
|
+
"submenu": {
|
|
13
|
+
"id": "jp-mainmenu-file-workspaces",
|
|
14
|
+
"label": "Workspaces",
|
|
15
|
+
"items": [
|
|
16
|
+
{
|
|
17
|
+
"command": "workspace-ui:open",
|
|
18
|
+
"rank": 0
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"command": "workspace-ui:create-new",
|
|
22
|
+
"rank": 1
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"command": "workspace-ui:clone",
|
|
26
|
+
"rank": 2
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"command": "workspace-ui:rename",
|
|
30
|
+
"rank": 3
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"command": "workspace-ui:save",
|
|
34
|
+
"rank": 4
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"command": "workspace-ui:save-as",
|
|
38
|
+
"rank": 5
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"command": "workspace-ui:import",
|
|
42
|
+
"rank": 6
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"command": "workspace-ui:export",
|
|
46
|
+
"rank": 7
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "separator",
|
|
50
|
+
"rank": 8
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"command": "workspace-ui:reset",
|
|
54
|
+
"rank": 9
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"command": "workspace-ui:delete",
|
|
58
|
+
"rank": 10
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"properties": {},
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"type": "object"
|
|
70
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Workspaces Sidebar",
|
|
3
|
+
"description": "Workspaces Sidebar",
|
|
4
|
+
"jupyter.lab.menus": {
|
|
5
|
+
"context": [
|
|
6
|
+
{
|
|
7
|
+
"command": "workspace-ui:clone",
|
|
8
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
9
|
+
"rank": 0
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"command": "workspace-ui:rename",
|
|
13
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
14
|
+
"rank": 1
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"command": "workspace-ui:reset",
|
|
18
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
19
|
+
"rank": 2
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"command": "workspace-ui:delete",
|
|
23
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
24
|
+
"rank": 3
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"command": "workspace-ui:export",
|
|
28
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
29
|
+
"rank": 4
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "separator",
|
|
33
|
+
"selector": ".jp-RunningSessions-item.jp-mod-workspace",
|
|
34
|
+
"rank": 5
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"command": "workspace-ui:import",
|
|
38
|
+
"selector": ".jp-RunningSessions:has(.jp-mod-workspace)",
|
|
39
|
+
"rank": 6
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"command": "workspace-ui:create-new",
|
|
43
|
+
"selector": ".jp-RunningSessions:has(.jp-mod-workspace)",
|
|
44
|
+
"rank": 7
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"properties": {},
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"type": "object"
|
|
51
|
+
}
|