Skip to content

Commit 3ca79e7

Browse files
Update CAD app to include missing collaboration tokens (#530)
* Update CAD APP to support the new timeline * Update CAD APP to support the new timeline * Remove debugs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 50c1984 commit 3ca79e7

File tree

7 files changed

+319
-12
lines changed

7 files changed

+319
-12
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ dmypy.json
121121
**/ui-tests/test-results/
122122
**/ui-tests/playwright-report/
123123

124-
examples/Untitled*.ipynb
124+
**/*ntitled*
125125
# Hatchling
126126
jupytercad/_version.py
127127

python/jupytercad_app/jupytercad_app/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def get_page_config(base_url, app_name):
2929
page_config,
3030
gpc(labextensions_path),
3131
)
32-
required_extensions = ["@jupyter/collaboration-extension", "yjs-widgets"]
32+
required_extensions = [
33+
"@jupyter/collaboration-extension",
34+
"@jupyter/docprovider-extension",
35+
"yjs-widgets",
36+
]
3337
federated_extensions: Dict[str, Dict] = page_config["federated_extensions"]
3438
page_config["federated_extensions"] = [
3539
x

python/jupytercad_app/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@codemirror/view": "^6.9.3",
5454
"@jupyter/collaboration": "^3.0.0-rc.0",
5555
"@jupyter/collaborative-drive": "^3.0.0-rc.0",
56+
"@jupyter/docprovider": "^3.0.0-rc.0",
5657
"@jupyter/ydoc": "^3.0.0-b0",
5758
"@jupytercad/base": "^3.0.0-alpha.4",
5859
"@jupytercad/schema": "^3.0.0-alpha.4",
@@ -88,6 +89,8 @@
8889
"@jupyterlab/services": "^7.0.0",
8990
"@jupyterlab/settingregistry": "^4.0.0",
9091
"@jupyterlab/statedb": "^4.0.0",
92+
"@jupyterlab/statusbar": "^4.0.0",
93+
"@jupyterlab/statusbar-extension": "^4.0.0",
9194
"@jupyterlab/theme-dark-extension": "^4.0.0",
9295
"@jupyterlab/theme-light-extension": "^4.0.0",
9396
"@jupyterlab/translation": "^4.0.0",

python/jupytercad_app/src/app/plugins/mainmenu/menuWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { RankedMenu, MenuSvg, homeIcon } from '@jupyterlab/ui-components';
22
import { CommandRegistry } from '@lumino/commands';
33
import { MenuBar } from '@lumino/widgets';
4-
import { CommandIDs } from '@jupytercad/base/lib/commands';
4+
import { CommandIDs } from '@jupytercad/base';
55
import { IThemeManager } from '@jupyterlab/apputils';
66
export class MainMenu extends MenuBar {
77
constructor(options: {

python/jupytercad_app/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ async function main(): Promise<void> {
136136
].includes(m.id)
137137
),
138138
require('@jupyterlab/rendermime-extension'),
139+
require('@jupyterlab/statusbar-extension'),
139140
require('./app/plugins/paths'),
140141
require('./app/plugins/mainmenu'),
141142
require('./app/plugins/browser'),

python/jupytercad_app/src/sharedscope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ import '@jupyterlab/notebook';
1111
import '@jupyterlab/rendermime';
1212
import '@jupyterlab/settingregistry';
1313
import '@jupyterlab/statedb';
14+
import '@jupyterlab/statusbar';
1415
import 'yjs-widgets';

0 commit comments

Comments
 (0)