@difizen/libro-core 0.0.0-snapshot-20241017072317
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 +21 -0
- package/README.md +280 -0
- package/es/add-cell/index.d.ts +4 -0
- package/es/add-cell/index.d.ts.map +1 -0
- package/es/add-cell/index.js +3 -0
- package/es/add-cell/index.less +38 -0
- package/es/add-cell/libro-add-cell-module.d.ts +3 -0
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-module.js +4 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +11 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-slot-contribution.js +59 -0
- package/es/add-cell/libro-add-cell-view.d.ts +21 -0
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-view.js +121 -0
- package/es/cell/index.d.ts +10 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +9 -0
- package/es/cell/libro-cell-contribution.d.ts +12 -0
- package/es/cell/libro-cell-contribution.d.ts.map +1 -0
- package/es/cell/libro-cell-contribution.js +47 -0
- package/es/cell/libro-cell-model.d.ts +29 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -0
- package/es/cell/libro-cell-model.js +130 -0
- package/es/cell/libro-cell-module.d.ts +10 -0
- package/es/cell/libro-cell-module.d.ts.map +1 -0
- package/es/cell/libro-cell-module.js +30 -0
- package/es/cell/libro-cell-protocol.d.ts +44 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -0
- package/es/cell/libro-cell-protocol.js +11 -0
- package/es/cell/libro-cell-service.d.ts +28 -0
- package/es/cell/libro-cell-service.d.ts.map +1 -0
- package/es/cell/libro-cell-service.js +245 -0
- package/es/cell/libro-cell-view.d.ts +74 -0
- package/es/cell/libro-cell-view.d.ts.map +1 -0
- package/es/cell/libro-cell-view.js +239 -0
- package/es/cell/libro-edit-cell-view.d.ts +44 -0
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -0
- package/es/cell/libro-edit-cell-view.js +256 -0
- package/es/cell/libro-executable-cell-model.d.ts +14 -0
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-model.js +7 -0
- package/es/cell/libro-executable-cell-view.d.ts +34 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-view.js +74 -0
- package/es/cell/libro-markdown-cell-model.d.ts +9 -0
- package/es/cell/libro-markdown-cell-model.d.ts.map +1 -0
- package/es/cell/libro-markdown-cell-model.js +7 -0
- package/es/collapse-service.d.ts +36 -0
- package/es/collapse-service.d.ts.map +1 -0
- package/es/collapse-service.js +55 -0
- package/es/command/document-commands.d.ts +5 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +21 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +6 -0
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +40 -0
- package/es/command/libro-command-contribution.d.ts +13 -0
- package/es/command/libro-command-contribution.d.ts.map +1 -0
- package/es/command/libro-command-contribution.js +1842 -0
- package/es/command/libro-command-register.d.ts +21 -0
- package/es/command/libro-command-register.d.ts.map +1 -0
- package/es/command/libro-command-register.js +111 -0
- package/es/command/module.d.ts +3 -0
- package/es/command/module.d.ts.map +1 -0
- package/es/command/module.js +4 -0
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +472 -0
- package/es/components/cell-protocol.d.ts +20 -0
- package/es/components/cell-protocol.d.ts.map +1 -0
- package/es/components/cell-protocol.js +4 -0
- package/es/components/dnd-cell-item-render.d.ts +16 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -0
- package/es/components/dnd-cell-item-render.js +364 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts +9 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -0
- package/es/components/dnd-component/custom-drag-layer.js +140 -0
- package/es/components/dnd-component/default-dnd-content.d.ts +11 -0
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -0
- package/es/components/dnd-component/default-dnd-content.js +292 -0
- package/es/components/dnd-component/dnd-context.d.ts +3 -0
- package/es/components/dnd-component/dnd-context.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-context.js +20 -0
- package/es/components/dnd-component/dnd-list.d.ts +14 -0
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-list.js +182 -0
- package/es/components/dnd-component/index.d.ts +5 -0
- package/es/components/dnd-component/index.d.ts.map +1 -0
- package/es/components/dnd-component/index.js +4 -0
- package/es/components/dnd-component/index.less +8 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
- package/es/components/dnd-component/overscanIndices-getter.js +58 -0
- package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
- package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
- package/es/components/dnd-component/virtualized-manager.js +60 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +5 -0
- package/es/components/libro-component.d.ts +5 -0
- package/es/components/libro-component.d.ts.map +1 -0
- package/es/components/libro-component.js +35 -0
- package/es/components/libro-side-toolbar-menu.d.ts +21 -0
- package/es/components/libro-side-toolbar-menu.d.ts.map +1 -0
- package/es/components/libro-side-toolbar-menu.js +58 -0
- package/es/components/libro-view-header.d.ts +3 -0
- package/es/components/libro-view-header.d.ts.map +1 -0
- package/es/components/libro-view-header.js +37 -0
- package/es/components/libro-virtualized-render.d.ts +15 -0
- package/es/components/libro-virtualized-render.d.ts.map +1 -0
- package/es/components/libro-virtualized-render.js +174 -0
- package/es/content/index.d.ts +6 -0
- package/es/content/index.d.ts.map +1 -0
- package/es/content/index.js +5 -0
- package/es/content/libro-content-contribution.d.ts +11 -0
- package/es/content/libro-content-contribution.d.ts.map +1 -0
- package/es/content/libro-content-contribution.js +31 -0
- package/es/content/libro-content-module.d.ts +3 -0
- package/es/content/libro-content-module.d.ts.map +1 -0
- package/es/content/libro-content-module.js +6 -0
- package/es/content/libro-content-protocol.d.ts +13 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -0
- package/es/content/libro-content-protocol.js +3 -0
- package/es/content/libro-content-service.d.ts +11 -0
- package/es/content/libro-content-service.d.ts.map +1 -0
- package/es/content/libro-content-service.js +63 -0
- package/es/content/libro-save-content-contribution.d.ts +6 -0
- package/es/content/libro-save-content-contribution.d.ts.map +1 -0
- package/es/content/libro-save-content-contribution.js +27 -0
- package/es/formatter/index.d.ts +6 -0
- package/es/formatter/index.d.ts.map +1 -0
- package/es/formatter/index.js +5 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-json-contribution.js +41 -0
- package/es/formatter/libro-formatter-manager.d.ts +16 -0
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
- package/es/formatter/libro-formatter-manager.js +86 -0
- package/es/formatter/libro-formatter-module.d.ts +3 -0
- package/es/formatter/libro-formatter-module.d.ts.map +1 -0
- package/es/formatter/libro-formatter-module.js +7 -0
- package/es/formatter/libro-formatter-protocol.d.ts +37 -0
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
- package/es/formatter/libro-formatter-protocol.js +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-string-contribution.js +41 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
- package/es/index.d.ts +26 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +25 -0
- package/es/index.less +781 -0
- package/es/libro-context-key.d.ts +26 -0
- package/es/libro-context-key.d.ts.map +1 -0
- package/es/libro-context-key.js +84 -0
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-keybind-registry.js +68 -0
- package/es/libro-model.d.ts +145 -0
- package/es/libro-model.d.ts.map +1 -0
- package/es/libro-model.js +921 -0
- package/es/libro-protocol.d.ts +315 -0
- package/es/libro-protocol.d.ts.map +1 -0
- package/es/libro-protocol.js +47 -0
- package/es/libro-service.d.ts +69 -0
- package/es/libro-service.d.ts.map +1 -0
- package/es/libro-service.js +303 -0
- package/es/libro-setting-contribution.d.ts +5 -0
- package/es/libro-setting-contribution.d.ts.map +1 -0
- package/es/libro-setting-contribution.js +23 -0
- package/es/libro-setting.d.ts +12 -0
- package/es/libro-setting.d.ts.map +1 -0
- package/es/libro-setting.js +101 -0
- package/es/libro-view-tracker.d.ts +6 -0
- package/es/libro-view-tracker.d.ts.map +1 -0
- package/es/libro-view-tracker.js +13 -0
- package/es/libro-view.d.ts +170 -0
- package/es/libro-view.d.ts.map +1 -0
- package/es/libro-view.js +2077 -0
- package/es/libro-workspace-service.d.ts +17 -0
- package/es/libro-workspace-service.d.ts.map +1 -0
- package/es/libro-workspace-service.js +36 -0
- package/es/material-from-designer.d.ts +31 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +697 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +71 -0
- package/es/output/index.d.ts +6 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +5 -0
- package/es/output/output-area.d.ts +51 -0
- package/es/output/output-area.d.ts.map +1 -0
- package/es/output/output-area.js +399 -0
- package/es/output/output-contribution.d.ts +10 -0
- package/es/output/output-contribution.d.ts.map +1 -0
- package/es/output/output-contribution.js +36 -0
- package/es/output/output-model.d.ts +28 -0
- package/es/output/output-model.d.ts.map +1 -0
- package/es/output/output-model.js +105 -0
- package/es/output/output-module.d.ts +3 -0
- package/es/output/output-module.d.ts.map +1 -0
- package/es/output/output-module.js +6 -0
- package/es/output/output-protocol.d.ts +134 -0
- package/es/output/output-protocol.d.ts.map +1 -0
- package/es/output/output-protocol.js +16 -0
- package/es/settings/index.d.ts +5 -0
- package/es/settings/index.d.ts.map +1 -0
- package/es/settings/index.js +4 -0
- package/es/settings/index.less +3 -0
- package/es/settings/module.d.ts +3 -0
- package/es/settings/module.d.ts.map +1 -0
- package/es/settings/module.js +4 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-panel-view.js +115 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
- package/es/settings/setting-editor/default-node-render.d.ts +9 -0
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
- package/es/settings/setting-editor/default-node-render.js +79 -0
- package/es/settings/setting-editor/index.d.ts +7 -0
- package/es/settings/setting-editor/index.d.ts.map +1 -0
- package/es/settings/setting-editor/index.js +6 -0
- package/es/settings/setting-editor/index.less +12 -0
- package/es/settings/setting-editor/module.d.ts +3 -0
- package/es/settings/setting-editor/module.d.ts.map +1 -0
- package/es/settings/setting-editor/module.js +11 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-editor-view.js +169 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-service.js +118 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-view.js +87 -0
- package/es/settings/settings-contribution.d.ts +7 -0
- package/es/settings/settings-contribution.d.ts.map +1 -0
- package/es/settings/settings-contribution.js +36 -0
- package/es/settings/settings-modal.d.ts +5 -0
- package/es/settings/settings-modal.d.ts.map +1 -0
- package/es/settings/settings-modal.js +53 -0
- package/es/settings/settings-modal.less +3 -0
- package/es/settings/settings-protocol.d.ts +4 -0
- package/es/settings/settings-protocol.d.ts.map +1 -0
- package/es/settings/settings-protocol.js +5 -0
- package/es/slot/index.d.ts +5 -0
- package/es/slot/index.d.ts.map +1 -0
- package/es/slot/index.js +4 -0
- package/es/slot/libro-slot-manager.d.ts +13 -0
- package/es/slot/libro-slot-manager.d.ts.map +1 -0
- package/es/slot/libro-slot-manager.js +66 -0
- package/es/slot/libro-slot-protocol.d.ts +19 -0
- package/es/slot/libro-slot-protocol.d.ts.map +1 -0
- package/es/slot/libro-slot-protocol.js +5 -0
- package/es/slot/libro-slot-view.d.ts +9 -0
- package/es/slot/libro-slot-view.d.ts.map +1 -0
- package/es/slot/libro-slot-view.js +81 -0
- package/es/slot/module.d.ts +3 -0
- package/es/slot/module.d.ts.map +1 -0
- package/es/slot/module.js +5 -0
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +515 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
- package/es/toolbar/all-outputs-scroll-icon.js +10 -0
- package/es/toolbar/change-cell-to-selector.d.ts +5 -0
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -0
- package/es/toolbar/change-cell-to-selector.js +51 -0
- package/es/toolbar/hide-all-selector.d.ts +5 -0
- package/es/toolbar/hide-all-selector.d.ts.map +1 -0
- package/es/toolbar/hide-all-selector.js +99 -0
- package/es/toolbar/index.d.ts +4 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +3 -0
- package/es/toolbar/index.less +59 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts +4 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar-protocol.js +1 -0
- package/es/toolbar/libro-toolbar.d.ts +9 -0
- package/es/toolbar/libro-toolbar.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar.js +275 -0
- package/es/toolbar/module.d.ts +3 -0
- package/es/toolbar/module.d.ts.map +1 -0
- package/es/toolbar/module.js +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-contribution.js +23 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-modal.js +30 -0
- package/es/toolbar/save-icon.d.ts +3 -0
- package/es/toolbar/save-icon.d.ts.map +1 -0
- package/es/toolbar/save-icon.js +54 -0
- package/es/toolbar/shutdown-contribution.d.ts +5 -0
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -0
- package/es/toolbar/shutdown-contribution.js +23 -0
- package/es/toolbar/shutdown-modal.d.ts +5 -0
- package/es/toolbar/shutdown-modal.d.ts.map +1 -0
- package/es/toolbar/shutdown-modal.js +30 -0
- package/es/toolbar/side-toolar-more-select.d.ts +4 -0
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -0
- package/es/toolbar/side-toolar-more-select.js +161 -0
- package/es/typings/index.d.ts +1 -0
- package/es/virtualized-manager-helper.d.ts +11 -0
- package/es/virtualized-manager-helper.d.ts.map +1 -0
- package/es/virtualized-manager-helper.js +51 -0
- package/es/virtualized-manager.d.ts +23 -0
- package/es/virtualized-manager.d.ts.map +1 -0
- package/es/virtualized-manager.js +65 -0
- package/package.json +73 -0
- package/src/add-cell/index.less +38 -0
- package/src/add-cell/index.ts +3 -0
- package/src/add-cell/libro-add-cell-module.ts +9 -0
- package/src/add-cell/libro-add-cell-slot-contribution.ts +28 -0
- package/src/add-cell/libro-add-cell-view.tsx +99 -0
- package/src/cell/README.md +14 -0
- package/src/cell/index.ts +9 -0
- package/src/cell/libro-cell-contribution.ts +34 -0
- package/src/cell/libro-cell-model.ts +119 -0
- package/src/cell/libro-cell-module.ts +40 -0
- package/src/cell/libro-cell-protocol.ts +55 -0
- package/src/cell/libro-cell-service.ts +158 -0
- package/src/cell/libro-cell-view.tsx +156 -0
- package/src/cell/libro-edit-cell-view.tsx +205 -0
- package/src/cell/libro-executable-cell-model.ts +32 -0
- package/src/cell/libro-executable-cell-view.ts +86 -0
- package/src/cell/libro-markdown-cell-model.ts +20 -0
- package/src/collapse-service.ts +69 -0
- package/src/command/document-commands.ts +24 -0
- package/src/command/index.ts +6 -0
- package/src/command/kernel-command.ts +42 -0
- package/src/command/libro-command-contribution.ts +1346 -0
- package/src/command/libro-command-register.ts +168 -0
- package/src/command/module.ts +9 -0
- package/src/command/notebook-commands.ts +502 -0
- package/src/components/cell-protocol.ts +26 -0
- package/src/components/dnd-cell-item-render.tsx +465 -0
- package/src/components/dnd-component/custom-drag-layer.tsx +144 -0
- package/src/components/dnd-component/default-dnd-content.tsx +330 -0
- package/src/components/dnd-component/dnd-context.tsx +28 -0
- package/src/components/dnd-component/dnd-list.tsx +211 -0
- package/src/components/dnd-component/index.less +12 -0
- package/src/components/dnd-component/index.tsx +4 -0
- package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
- package/src/components/dnd-component/virtualized-manager.ts +34 -0
- package/src/components/index.ts +5 -0
- package/src/components/libro-component.tsx +30 -0
- package/src/components/libro-side-toolbar-menu.tsx +82 -0
- package/src/components/libro-view-header.tsx +33 -0
- package/src/components/libro-virtualized-render.tsx +178 -0
- package/src/content/index.ts +5 -0
- package/src/content/libro-content-contribution.ts +16 -0
- package/src/content/libro-content-module.ts +17 -0
- package/src/content/libro-content-protocol.ts +14 -0
- package/src/content/libro-content-service.ts +48 -0
- package/src/content/libro-save-content-contribution.ts +12 -0
- package/src/formatter/index.ts +5 -0
- package/src/formatter/libro-formatter-json-contribution.ts +42 -0
- package/src/formatter/libro-formatter-manager.ts +85 -0
- package/src/formatter/libro-formatter-module.ts +19 -0
- package/src/formatter/libro-formatter-protocol.ts +63 -0
- package/src/formatter/libro-formatter-string-contribution.ts +41 -0
- package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
- package/src/index.less +789 -0
- package/src/index.spec.ts +12 -0
- package/src/index.tsx +25 -0
- package/src/libro-context-key.ts +84 -0
- package/src/libro-keybind-registry.ts +43 -0
- package/src/libro-model.ts +710 -0
- package/src/libro-protocol.ts +435 -0
- package/src/libro-service.ts +234 -0
- package/src/libro-setting-contribution.ts +28 -0
- package/src/libro-setting.ts +110 -0
- package/src/libro-view-tracker.ts +9 -0
- package/src/libro-view.tsx +1532 -0
- package/src/libro-workspace-service.ts +28 -0
- package/src/material-from-designer.tsx +579 -0
- package/src/module.ts +121 -0
- package/src/output/index.ts +5 -0
- package/src/output/output-area.tsx +286 -0
- package/src/output/output-contribution.ts +14 -0
- package/src/output/output-model.tsx +70 -0
- package/src/output/output-module.ts +10 -0
- package/src/output/output-protocol.ts +168 -0
- package/src/settings/index.less +3 -0
- package/src/settings/index.ts +4 -0
- package/src/settings/module.ts +8 -0
- package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
- package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
- package/src/settings/setting-editor/default-node-render.tsx +65 -0
- package/src/settings/setting-editor/index.less +12 -0
- package/src/settings/setting-editor/index.ts +6 -0
- package/src/settings/setting-editor/module.ts +17 -0
- package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
- package/src/settings/setting-editor/setting-tree-service.ts +82 -0
- package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
- package/src/settings/settings-contribution.tsx +24 -0
- package/src/settings/settings-modal.less +3 -0
- package/src/settings/settings-modal.tsx +51 -0
- package/src/settings/settings-protocol.ts +7 -0
- package/src/slot/index.ts +4 -0
- package/src/slot/libro-slot-manager.ts +38 -0
- package/src/slot/libro-slot-protocol.ts +28 -0
- package/src/slot/libro-slot-view.tsx +48 -0
- package/src/slot/module.ts +9 -0
- package/src/theme/libro-color-registry.ts +386 -0
- package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
- package/src/toolbar/change-cell-to-selector.tsx +67 -0
- package/src/toolbar/hide-all-selector.tsx +126 -0
- package/src/toolbar/index.less +59 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/libro-toolbar-protocol.ts +4 -0
- package/src/toolbar/libro-toolbar.tsx +231 -0
- package/src/toolbar/module.ts +11 -0
- package/src/toolbar/restart-clear-outputs-contribution.tsx +10 -0
- package/src/toolbar/restart-clear-outputs-modal.tsx +37 -0
- package/src/toolbar/save-icon.tsx +47 -0
- package/src/toolbar/shutdown-contribution.tsx +10 -0
- package/src/toolbar/shutdown-modal.tsx +37 -0
- package/src/toolbar/side-toolar-more-select.tsx +177 -0
- package/src/typings/index.d.ts +1 -0
- package/src/virtualized-manager-helper.ts +29 -0
- package/src/virtualized-manager.ts +47 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CodeEditorView,
|
|
3
|
+
CodeEditorViewOptions,
|
|
4
|
+
IEditor,
|
|
5
|
+
} from '@difizen/libro-code-editor';
|
|
6
|
+
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
7
|
+
import { CellUri } from '@difizen/libro-common';
|
|
8
|
+
import {
|
|
9
|
+
Disposable,
|
|
10
|
+
DisposableCollection,
|
|
11
|
+
getOrigin,
|
|
12
|
+
inject,
|
|
13
|
+
prop,
|
|
14
|
+
ViewOption,
|
|
15
|
+
ViewRender,
|
|
16
|
+
watch,
|
|
17
|
+
} from '@difizen/mana-app';
|
|
18
|
+
import type { ReactNode } from 'react';
|
|
19
|
+
|
|
20
|
+
import { LibroContextKey } from '../libro-context-key.js';
|
|
21
|
+
import type { CellView, CellViewOptions } from '../libro-protocol.js';
|
|
22
|
+
import { EditorStatus } from '../libro-protocol.js';
|
|
23
|
+
import { isCellView } from '../libro-protocol.js';
|
|
24
|
+
|
|
25
|
+
import { CellService } from './libro-cell-protocol.js';
|
|
26
|
+
import { LibroCellView } from './libro-cell-view.js';
|
|
27
|
+
|
|
28
|
+
export interface EditorCellView extends CellView {
|
|
29
|
+
editor: IEditor | undefined;
|
|
30
|
+
|
|
31
|
+
redo: () => void;
|
|
32
|
+
|
|
33
|
+
undo: () => void;
|
|
34
|
+
|
|
35
|
+
renderEditor: () => ReactNode;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const EditorCellView = {
|
|
39
|
+
is: (arg: Record<any, any> | undefined): arg is EditorCellView => {
|
|
40
|
+
return (
|
|
41
|
+
!!arg &&
|
|
42
|
+
isCellView(arg as any) &&
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
+
'redo' in arg &&
|
|
45
|
+
typeof (arg as any).redo === 'function' &&
|
|
46
|
+
'undo' in arg &&
|
|
47
|
+
typeof (arg as any).undo === 'function'
|
|
48
|
+
);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 带有编辑器能力的cell view,例如raw、markdown、python、sql等
|
|
54
|
+
* 超出编辑器的相关能力放在其他的更高抽象中
|
|
55
|
+
*/
|
|
56
|
+
export abstract class LibroEditorCellView
|
|
57
|
+
extends LibroCellView
|
|
58
|
+
implements EditorCellView
|
|
59
|
+
{
|
|
60
|
+
protected toDisposeOnEditor = new DisposableCollection();
|
|
61
|
+
@prop()
|
|
62
|
+
editor: IEditor | undefined;
|
|
63
|
+
|
|
64
|
+
@inject(LibroContextKey) protected readonly libroContextKey: LibroContextKey;
|
|
65
|
+
@inject(CodeEditorManager) codeEditorManager: CodeEditorManager;
|
|
66
|
+
|
|
67
|
+
@prop()
|
|
68
|
+
editorView?: CodeEditorView;
|
|
69
|
+
|
|
70
|
+
constructor(
|
|
71
|
+
@inject(ViewOption) options: CellViewOptions,
|
|
72
|
+
@inject(CellService) cellService: CellService,
|
|
73
|
+
) {
|
|
74
|
+
super(options, cellService);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
protected getEditorOption(): CodeEditorViewOptions {
|
|
78
|
+
const option: CodeEditorViewOptions = {
|
|
79
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
80
|
+
editorHostId: this.parent.id + this.id,
|
|
81
|
+
model: this.model,
|
|
82
|
+
config: {
|
|
83
|
+
readOnly: !this.parent.model.inputEditable,
|
|
84
|
+
editable: this.parent.model.inputEditable,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
return option;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
protected async afterEditorReady() {
|
|
91
|
+
this.focusEditor();
|
|
92
|
+
this.toDisposeOnEditor.push(
|
|
93
|
+
watch(this.parent.model, 'inputEditable', () => {
|
|
94
|
+
this.editorView?.editor?.setOption(
|
|
95
|
+
'readOnly',
|
|
96
|
+
getOrigin(!this.parent.model.inputEditable),
|
|
97
|
+
);
|
|
98
|
+
}),
|
|
99
|
+
);
|
|
100
|
+
this.toDisposeOnEditor.push(
|
|
101
|
+
this.editorView?.onModalChange((val) => (this.hasModal = val)) ?? Disposable.NONE,
|
|
102
|
+
);
|
|
103
|
+
this.toDisposeOnEditor.push(
|
|
104
|
+
this.editor?.onModelContentChanged?.((e) => {
|
|
105
|
+
this.parent.model.onCellContentChange({ cell: this, changes: e });
|
|
106
|
+
}) ?? Disposable.NONE,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async createEditor() {
|
|
111
|
+
const option = this.getEditorOption();
|
|
112
|
+
|
|
113
|
+
this.editorStatus = EditorStatus.LOADING;
|
|
114
|
+
|
|
115
|
+
// 防止虚拟滚动中编辑器被频繁创建
|
|
116
|
+
if (this.editorView) {
|
|
117
|
+
this.editorStatus = EditorStatus.LOADED;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const editorView = await this.codeEditorManager.getOrCreateEditorView(option);
|
|
122
|
+
|
|
123
|
+
this.editorView = editorView;
|
|
124
|
+
this.editorStatus = EditorStatus.LOADED;
|
|
125
|
+
|
|
126
|
+
editorView.onEditorStatusChange((e) => {
|
|
127
|
+
if (e.status === 'ready') {
|
|
128
|
+
this.editor = this.editorView!.editor;
|
|
129
|
+
this.afterEditorReady();
|
|
130
|
+
} else if (e.status === 'disposed') {
|
|
131
|
+
this.toDisposeOnEditor.dispose();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@prop()
|
|
137
|
+
editorStatus: EditorStatus = EditorStatus.NOTLOADED;
|
|
138
|
+
|
|
139
|
+
renderEditor = () => {
|
|
140
|
+
if (this.editorView) {
|
|
141
|
+
return <ViewRender view={this.editorView} />;
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
override onViewMount() {
|
|
147
|
+
this.createEditor();
|
|
148
|
+
//选中cell时才focus
|
|
149
|
+
if (this.parent.model.active?.id === this.id) {
|
|
150
|
+
this.focus(!this.parent.model.commandMode);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
override shouldEnterEditorMode(e: React.FocusEvent<HTMLElement>) {
|
|
155
|
+
return getOrigin(this.editorView)?.editor?.host?.contains(
|
|
156
|
+
e.target as HTMLElement,
|
|
157
|
+
) && this.parent.model.commandMode
|
|
158
|
+
? true
|
|
159
|
+
: false;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
protected focusEditor() {
|
|
163
|
+
//选中cell、编辑模式、非只读时才focus
|
|
164
|
+
if (
|
|
165
|
+
this.editorView?.editor &&
|
|
166
|
+
this.editorView.editorStatus === 'ready' &&
|
|
167
|
+
this.parent.model.active?.id === this.id &&
|
|
168
|
+
!this.parent.model.commandMode &&
|
|
169
|
+
this.libroContextKey.commandModeEnabled === true && // 排除弹窗等情况
|
|
170
|
+
this.parent.model.inputEditable
|
|
171
|
+
) {
|
|
172
|
+
this.editorView?.editor.setOption('styleActiveLine', true);
|
|
173
|
+
this.editorView?.editor.setOption('highlightActiveLineGutter', true);
|
|
174
|
+
this.editorView?.editor.focus();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
override focus = (toEdit: boolean) => {
|
|
179
|
+
if (toEdit) {
|
|
180
|
+
this.focusEditor();
|
|
181
|
+
} else {
|
|
182
|
+
if (this.container?.current?.parentElement?.contains(document.activeElement)) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
this.container?.current?.parentElement?.focus();
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
override blur = () => {
|
|
190
|
+
this.editorView?.editor?.setOption('styleActiveLine', false);
|
|
191
|
+
this.editorView?.editor?.setOption('highlightActiveLineGutter', false);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
get wrapperCls() {
|
|
195
|
+
return '';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
redo(): void {
|
|
199
|
+
this.editor?.redo();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
undo(): void {
|
|
203
|
+
this.editor?.undo();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ExecutionCount } from '@difizen/libro-common';
|
|
2
|
+
import type { Emitter } from '@difizen/mana-app';
|
|
3
|
+
|
|
4
|
+
export interface ExecutableCellModel {
|
|
5
|
+
// 执行中
|
|
6
|
+
executing: boolean;
|
|
7
|
+
|
|
8
|
+
// 执行次数
|
|
9
|
+
executeCount: ExecutionCount;
|
|
10
|
+
|
|
11
|
+
hasOutputHidden: boolean;
|
|
12
|
+
|
|
13
|
+
hasOutputsScrolled: boolean;
|
|
14
|
+
|
|
15
|
+
// Emitter Msg
|
|
16
|
+
msgChangeEmitter: Emitter<any>;
|
|
17
|
+
|
|
18
|
+
clearExecution: () => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const ExecutableCellModel = {
|
|
22
|
+
is: (arg: Record<any, any> | undefined): arg is ExecutableCellModel => {
|
|
23
|
+
return (
|
|
24
|
+
!!arg &&
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
+
'executing' in arg &&
|
|
27
|
+
typeof (arg as any).executing === 'boolean' &&
|
|
28
|
+
'executeCount' in arg &&
|
|
29
|
+
(typeof (arg as any).executeCount === 'number' || !(arg as any).executeCount)
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { watch } from '@difizen/mana-app';
|
|
2
|
+
import { ViewOption } from '@difizen/mana-app';
|
|
3
|
+
import { inject } from '@difizen/mana-app';
|
|
4
|
+
|
|
5
|
+
import type { CellModel } from '../libro-protocol.js';
|
|
6
|
+
import type { CellViewOptions } from '../libro-protocol.js';
|
|
7
|
+
import type { BaseOutputArea } from '../output/index.js';
|
|
8
|
+
|
|
9
|
+
import { CellService } from './libro-cell-protocol.js';
|
|
10
|
+
import { EditorCellView, LibroEditorCellView } from './libro-edit-cell-view.js';
|
|
11
|
+
import { ExecutableCellModel } from './libro-executable-cell-model.js';
|
|
12
|
+
|
|
13
|
+
interface ExecutableCellView extends EditorCellView {
|
|
14
|
+
run: () => Promise<boolean>;
|
|
15
|
+
clearExecution: () => void;
|
|
16
|
+
|
|
17
|
+
outputArea: BaseOutputArea;
|
|
18
|
+
|
|
19
|
+
noEditorAreaHeight: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const ExecutableCellView = {
|
|
23
|
+
is: (arg: Record<any, any> | undefined): arg is ExecutableCellView => {
|
|
24
|
+
return (
|
|
25
|
+
!!arg &&
|
|
26
|
+
EditorCellView.is(arg as any) &&
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
'outputArea' in arg &&
|
|
29
|
+
typeof (arg as any).outputArea === 'object' &&
|
|
30
|
+
'clearExecution' in arg &&
|
|
31
|
+
typeof (arg as any).clearExecution === 'function' &&
|
|
32
|
+
typeof (arg as any).run === 'function'
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 带有编辑器、执行、output相关能力的cell view,例如python、sql
|
|
39
|
+
* model 必须为 ExecutableCellModel
|
|
40
|
+
*/
|
|
41
|
+
export abstract class LibroEditableExecutableCellView
|
|
42
|
+
extends LibroEditorCellView
|
|
43
|
+
implements ExecutableCellView
|
|
44
|
+
{
|
|
45
|
+
declare model: CellModel & ExecutableCellModel;
|
|
46
|
+
|
|
47
|
+
outputArea: BaseOutputArea;
|
|
48
|
+
|
|
49
|
+
declare noEditorAreaHeight: number;
|
|
50
|
+
|
|
51
|
+
constructor(
|
|
52
|
+
@inject(ViewOption) options: CellViewOptions,
|
|
53
|
+
@inject(CellService) cellService: CellService,
|
|
54
|
+
) {
|
|
55
|
+
super(options, cellService);
|
|
56
|
+
this.outputWatch();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
clearExecution: () => void = () => {
|
|
60
|
+
//
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// TODO: 性能!
|
|
64
|
+
override hasCellHidden() {
|
|
65
|
+
if (
|
|
66
|
+
!ExecutableCellModel.is(this.model) ||
|
|
67
|
+
(this.outputArea && this.outputArea.length < 1)
|
|
68
|
+
) {
|
|
69
|
+
return this.hasInputHidden;
|
|
70
|
+
}
|
|
71
|
+
return this.hasInputHidden && this.model.hasOutputHidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
outputWatch() {
|
|
75
|
+
this.toDispose.push(
|
|
76
|
+
watch(this.outputArea, 'outputs', () => {
|
|
77
|
+
this.parent.model.onChange?.();
|
|
78
|
+
}),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated use LibroEditableExecutableCellView instead.
|
|
85
|
+
*/
|
|
86
|
+
export const LibroExecutableCellView = LibroEditableExecutableCellView;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CellModel } from '../libro-protocol.js';
|
|
2
|
+
|
|
3
|
+
export interface LibroMarkdownCellModel extends CellModel {
|
|
4
|
+
isEdit: boolean;
|
|
5
|
+
|
|
6
|
+
preview: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const LibroMarkdownCellModel = {
|
|
10
|
+
is: (arg: Record<any, any> | undefined): arg is LibroMarkdownCellModel => {
|
|
11
|
+
return (
|
|
12
|
+
!!arg &&
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
+
'isEdit' in arg &&
|
|
15
|
+
typeof (arg as any).isEdit === 'boolean' &&
|
|
16
|
+
'preview' in arg &&
|
|
17
|
+
typeof (arg as any).preview === 'string'
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { inject, prop, transient } from '@difizen/mana-app';
|
|
2
|
+
|
|
3
|
+
import type { CellView } from './libro-protocol.js';
|
|
4
|
+
import type { LibroView } from './libro-view.js';
|
|
5
|
+
|
|
6
|
+
export interface CollapseServiceOption {
|
|
7
|
+
view: LibroView;
|
|
8
|
+
}
|
|
9
|
+
export const CollapseServiceOption = Symbol('CollapseServiceOption');
|
|
10
|
+
|
|
11
|
+
export type CollapseServiceFactory = (option: CollapseServiceOption) => CollapseService;
|
|
12
|
+
export const CollapseServiceFactory = Symbol('CollapseServiceFactory');
|
|
13
|
+
|
|
14
|
+
export interface CellCollapsible {
|
|
15
|
+
/**
|
|
16
|
+
* 是否折叠子项
|
|
17
|
+
*/
|
|
18
|
+
headingCollapsed: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 折叠的子项的数量
|
|
21
|
+
*/
|
|
22
|
+
collapsibleChildNumber: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const CellCollapsible = {
|
|
26
|
+
is: (arg: Record<any, any> | undefined): arg is CellCollapsible => {
|
|
27
|
+
return (
|
|
28
|
+
!!arg &&
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
+
'headingCollapsed' in arg &&
|
|
31
|
+
typeof (arg as any).headingCollapsed === 'boolean'
|
|
32
|
+
);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export interface CollapseService {
|
|
37
|
+
collapserVisible: boolean;
|
|
38
|
+
|
|
39
|
+
view: LibroView;
|
|
40
|
+
|
|
41
|
+
setHeadingCollapse: (cell: CellView, collapsing: boolean) => void;
|
|
42
|
+
|
|
43
|
+
getCollapsibleChildNumber: (cell: CellView) => number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const CollapseService = Symbol('CollapseService');
|
|
47
|
+
|
|
48
|
+
@transient({ token: CollapseService })
|
|
49
|
+
export class DefaultCollapseService implements CollapseService {
|
|
50
|
+
@prop()
|
|
51
|
+
collapserVisible = false;
|
|
52
|
+
|
|
53
|
+
view: LibroView;
|
|
54
|
+
|
|
55
|
+
constructor(@inject(CollapseServiceOption) option: CollapseServiceOption) {
|
|
56
|
+
this.view = option.view;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
setHeadingCollapse(cell: CellView, collapsing: boolean) {
|
|
60
|
+
if (CellCollapsible.is(cell)) {
|
|
61
|
+
cell.headingCollapsed = collapsing;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
66
|
+
getCollapsibleChildNumber(cell: CellView) {
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SaveOutlined, SettingOutlined } from '@ant-design/icons';
|
|
2
|
+
import type { Command } from '@difizen/mana-app';
|
|
3
|
+
|
|
4
|
+
import { FormatCellIcon } from '../material-from-designer.js';
|
|
5
|
+
|
|
6
|
+
export const DocumentCommands: Record<string, Command & { keybind?: string }> = {
|
|
7
|
+
Save: {
|
|
8
|
+
id: 'document:save',
|
|
9
|
+
icon: SaveOutlined,
|
|
10
|
+
label: 'SAVE',
|
|
11
|
+
keybind: 'ctrlcmd+s',
|
|
12
|
+
},
|
|
13
|
+
OpenSettings: {
|
|
14
|
+
id: 'document.notebook.open_setting',
|
|
15
|
+
icon: SettingOutlined,
|
|
16
|
+
label: 'Setting',
|
|
17
|
+
},
|
|
18
|
+
FormatCell: {
|
|
19
|
+
id: 'document.notebook.format_cell',
|
|
20
|
+
icon: FormatCellIcon,
|
|
21
|
+
label: 'format cell code',
|
|
22
|
+
keybind: 'shift+alt+f',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Command } from '@difizen/mana-app';
|
|
2
|
+
import { l10n } from '@difizen/mana-l10n';
|
|
3
|
+
|
|
4
|
+
export const KernelCommands: Record<string, Command & { keybind?: string }> = {
|
|
5
|
+
//#region libro command
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
|
|
9
|
+
//#region jupyterlab command
|
|
10
|
+
ChangeKernel: {
|
|
11
|
+
id: 'notebook:change-kernel',
|
|
12
|
+
label: `Change Kernel`,
|
|
13
|
+
},
|
|
14
|
+
GetKernel: {
|
|
15
|
+
id: 'notebook:get-kernel',
|
|
16
|
+
label: `Get Kernel`,
|
|
17
|
+
},
|
|
18
|
+
InterruptKernel: {
|
|
19
|
+
id: 'notebook:interrupt-kernel',
|
|
20
|
+
label: `Interrupt Kernel`,
|
|
21
|
+
},
|
|
22
|
+
ReconnectToKernel: {
|
|
23
|
+
id: 'notebook:reconnect-to-kernel',
|
|
24
|
+
label: `Reconnect to Kernel`,
|
|
25
|
+
},
|
|
26
|
+
RestartKernel: {
|
|
27
|
+
id: 'notebook:restart-kernel',
|
|
28
|
+
label: l10n.t('Restart Kernel'),
|
|
29
|
+
},
|
|
30
|
+
ShutdownKernel: {
|
|
31
|
+
id: 'notebook:shutdown-kernel',
|
|
32
|
+
label: `Shutdown Kernel`,
|
|
33
|
+
},
|
|
34
|
+
ShowKernelStatus: {
|
|
35
|
+
id: 'notebook:show-kernel-status',
|
|
36
|
+
},
|
|
37
|
+
// TODO: remove this command
|
|
38
|
+
ShowKernelStatusAndSelector: {
|
|
39
|
+
id: 'notebook:show-kernel-status-and-selector',
|
|
40
|
+
},
|
|
41
|
+
//#endregion
|
|
42
|
+
};
|