@difizen/libro-lab 0.1.10 → 0.1.11
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/es/command/index.d.ts +5 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +4 -0
- package/es/{menu/menu-command.d.ts → command/lab-command.d.ts} +6 -6
- package/es/command/lab-command.d.ts.map +1 -0
- package/es/{menu/menu-command.js → command/lab-command.js} +9 -5
- package/es/{menu/menu-contribution.d.ts → command/lab-menu-contribution.d.ts} +3 -3
- package/es/command/lab-menu-contribution.d.ts.map +1 -0
- package/es/{menu/menu-contribution.js → command/lab-menu-contribution.js} +242 -241
- package/es/command/menu-bar-view.d.ts.map +1 -0
- package/es/{menu → command}/menu-bar-view.js +2 -2
- package/es/command/module.d.ts.map +1 -0
- package/es/{menu → command}/module.js +2 -2
- package/es/config/config-contribution.js +2 -2
- package/es/editor-viewer/code-editor-open-handler.d.ts.map +1 -1
- package/es/editor-viewer/code-editor-open-handler.js +4 -4
- package/es/editor-viewer/code-editor-viewer.d.ts +1 -0
- package/es/editor-viewer/code-editor-viewer.d.ts.map +1 -1
- package/es/editor-viewer/code-editor-viewer.js +8 -2
- package/es/editor-viewer/index.less +16 -0
- package/es/editor-viewer/libro-default-open-handler.d.ts +11 -0
- package/es/editor-viewer/libro-default-open-handler.d.ts.map +1 -0
- package/es/editor-viewer/libro-default-open-handler.js +97 -0
- package/es/editor-viewer/libro-default-viewer.d.ts +14 -0
- package/es/editor-viewer/libro-default-viewer.d.ts.map +1 -0
- package/es/editor-viewer/libro-default-viewer.js +78 -0
- package/es/editor-viewer/module.d.ts.map +1 -1
- package/es/editor-viewer/module.js +3 -1
- package/es/editor-viewer/protocol.d.ts +2 -0
- package/es/editor-viewer/protocol.d.ts.map +1 -1
- package/es/editor-viewer/protocol.js +3 -1
- package/es/github-link/index.js +2 -2
- package/es/image-viewer/open-handler.js +2 -2
- package/es/image-viewer/viewer.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -1
- package/es/index.less +17 -5
- package/es/kernel-manager/index.js +2 -2
- package/es/lab-app.d.ts.map +1 -1
- package/es/lab-app.js +6 -4
- package/es/layout/brand/brand.js +2 -2
- package/es/layout/container.js +2 -2
- package/es/layout/content-bottom-tab-view.js +2 -2
- package/es/layout/footer/current-file-footer-view.js +2 -2
- package/es/layout/footer/footer-view.js +2 -2
- package/es/layout/footer/status-footer-view.js +2 -2
- package/es/layout/layout-service.d.ts +2 -1
- package/es/layout/layout-service.d.ts.map +1 -1
- package/es/layout/layout-service.js +59 -25
- package/es/layout/layout.js +3 -4
- package/es/layout/main.js +2 -2
- package/es/layout/saveable-tab-view.js +2 -2
- package/es/layout/side-tab-view.js +2 -2
- package/es/module.d.ts.map +1 -1
- package/es/module.js +1 -1
- package/es/toc/libro-toc-panel-view.js +2 -2
- package/es/welcome/entry-point-view.d.ts.map +1 -1
- package/es/welcome/entry-point-view.js +4 -4
- package/es/welcome/welcome-view.js +2 -2
- package/package.json +8 -8
- package/src/command/index.ts +4 -0
- package/src/{menu/menu-command.ts → command/lab-command.ts} +9 -5
- package/src/{menu/menu-contribution.ts → command/lab-menu-contribution.ts} +228 -230
- package/src/{menu → command}/module.ts +2 -2
- package/src/editor-viewer/code-editor-open-handler.ts +2 -5
- package/src/editor-viewer/code-editor-viewer.tsx +7 -0
- package/src/editor-viewer/index.less +16 -0
- package/src/editor-viewer/libro-default-open-handler.ts +34 -0
- package/src/editor-viewer/libro-default-viewer.tsx +60 -0
- package/src/editor-viewer/module.ts +8 -1
- package/src/editor-viewer/protocol.ts +25 -0
- package/src/index.less +17 -5
- package/src/index.ts +1 -1
- package/src/lab-app.ts +6 -1
- package/src/layout/layout-service.ts +25 -3
- package/src/module.tsx +1 -1
- package/src/welcome/entry-point-view.tsx +2 -2
- package/es/menu/index.d.ts +0 -5
- package/es/menu/index.d.ts.map +0 -1
- package/es/menu/index.js +0 -4
- package/es/menu/menu-bar-view.d.ts.map +0 -1
- package/es/menu/menu-command.d.ts.map +0 -1
- package/es/menu/menu-contribution.d.ts.map +0 -1
- package/es/menu/module.d.ts.map +0 -1
- package/src/menu/index.ts +0 -4
- /package/es/{menu → command}/menu-bar-view.d.ts +0 -0
- /package/es/{menu → command}/module.d.ts +0 -0
- /package/src/{menu → command}/menu-bar-view.tsx +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const LabCommands: {
|
|
2
2
|
About: {
|
|
3
3
|
id: string;
|
|
4
4
|
label: string;
|
|
5
5
|
};
|
|
6
|
-
OpenTerminal: {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
};
|
|
10
6
|
Save: {
|
|
11
7
|
id: string;
|
|
12
8
|
label: string;
|
|
@@ -135,5 +131,9 @@ export declare const MenuCommands: {
|
|
|
135
131
|
id: string;
|
|
136
132
|
label: string;
|
|
137
133
|
};
|
|
134
|
+
ToggleBottom: {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
};
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=
|
|
139
|
+
//# sourceMappingURL=lab-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lab-command.d.ts","sourceRoot":"","sources":["../../src/command/lab-command.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IvB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export var
|
|
1
|
+
export var LabCommands = {
|
|
2
2
|
About: {
|
|
3
3
|
id: 'libro-lab-header-menu-help-about',
|
|
4
4
|
label: '关于'
|
|
5
5
|
},
|
|
6
|
-
OpenTerminal: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
6
|
+
// OpenTerminal: {
|
|
7
|
+
// id: 'libro-lab-header-menu-terminal-open',
|
|
8
|
+
// label: '新建终端',
|
|
9
|
+
// },
|
|
10
10
|
Save: {
|
|
11
11
|
id: 'libro-lab-header-menu-file-save',
|
|
12
12
|
label: '保存'
|
|
@@ -134,5 +134,9 @@ export var MenuCommands = {
|
|
|
134
134
|
RunCellAndSelectNext: {
|
|
135
135
|
id: 'libro-lab-header-menu-run-cell-and-select-next',
|
|
136
136
|
label: "\u6267\u884C\u5E76\u9009\u4E2D\u4E0B\u4E00\u4E2A\u5355\u5143\u683C"
|
|
137
|
+
},
|
|
138
|
+
ToggleBottom: {
|
|
139
|
+
id: 'libro-lab-toggle-bottom',
|
|
140
|
+
label: "\u5207\u6362\u5E95\u90E8\u9762\u677F"
|
|
137
141
|
}
|
|
138
142
|
};
|
|
@@ -3,7 +3,7 @@ import { TerminalManager } from '@difizen/libro-terminal';
|
|
|
3
3
|
import type { MenuRegistry } from '@difizen/mana-app';
|
|
4
4
|
import { CommandContribution, CommandRegistry, MenuContribution, ViewManager } from '@difizen/mana-app';
|
|
5
5
|
import { LayoutService } from '../layout/layout-service.js';
|
|
6
|
-
export declare namespace
|
|
6
|
+
export declare namespace LabMenus {
|
|
7
7
|
const FILE: string[];
|
|
8
8
|
const EDIT: string[];
|
|
9
9
|
const VIEW: string[];
|
|
@@ -11,7 +11,7 @@ export declare namespace HeaderMenus {
|
|
|
11
11
|
const TERMINAL: string[];
|
|
12
12
|
const HELP: string[];
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class LabMenu implements MenuContribution, CommandContribution {
|
|
15
15
|
protected commandRegistry: CommandRegistry;
|
|
16
16
|
protected libroService: LibroService;
|
|
17
17
|
protected layoutService: LayoutService;
|
|
@@ -20,4 +20,4 @@ export declare class HeaderMenu implements MenuContribution, CommandContribution
|
|
|
20
20
|
registerMenus(menu: MenuRegistry): void;
|
|
21
21
|
registerCommands(commands: CommandRegistry): void;
|
|
22
22
|
}
|
|
23
|
-
//# sourceMappingURL=menu-contribution.d.ts.map
|
|
23
|
+
//# sourceMappingURL=lab-menu-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lab-menu-contribution.d.ts","sourceRoot":"","sources":["../../src/command/lab-menu-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAoB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,eAAe,EAGf,gBAAgB,EAEhB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,yBAAiB,QAAQ,CAAC;IACjB,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,GAAG,UAA8B,CAAC;IACxC,MAAM,QAAQ,UAAmC,CAAC;IAClD,MAAM,IAAI,UAA+B,CAAC;CAClD;AAED,qBACa,OAAQ,YAAW,gBAAgB,EAAE,mBAAmB;IAC1C,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC9C,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;IAE9C,aAAa,CAAC,IAAI,EAAE,YAAY;IAkLhC,gBAAgB,CAAC,QAAQ,EAAE,eAAe;CAgmB3C"}
|