@difizen/libro-lab 0.0.2-alpha.0 → 0.1.0

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.
Files changed (92) hide show
  1. package/es/github-link/index.js +43 -0
  2. package/es/index.d.ts +1 -1
  3. package/es/index.d.ts.map +1 -1
  4. package/es/index.js +1 -0
  5. package/es/index.less +69 -0
  6. package/es/kernel-manager/index.js +40 -0
  7. package/es/lab-app.d.ts +12 -0
  8. package/es/lab-app.d.ts.map +1 -0
  9. package/es/lab-app.js +103 -0
  10. package/es/layout/brand/index.js +46 -0
  11. package/es/layout/brand/index.less +16 -0
  12. package/es/layout/brand/logo.js +41 -0
  13. package/es/layout/container.js +54 -0
  14. package/es/layout/editor-tab-view.d.ts +7 -0
  15. package/es/layout/editor-tab-view.d.ts.map +1 -0
  16. package/es/layout/editor-tab-view.js +78 -0
  17. package/es/layout/footer/current-file-footer-view.d.ts +11 -0
  18. package/es/layout/footer/current-file-footer-view.d.ts.map +1 -0
  19. package/es/layout/footer/current-file-footer-view.js +66 -0
  20. package/es/layout/footer/footer-view.js +60 -0
  21. package/es/layout/footer/index.less +17 -0
  22. package/es/layout/index.d.ts +5 -0
  23. package/es/layout/index.d.ts.map +1 -0
  24. package/es/layout/index.js +4 -0
  25. package/es/layout/index.less +59 -0
  26. package/es/layout/layout-service.js +99 -0
  27. package/es/layout/layout.js +59 -0
  28. package/es/layout/main.d.ts +8 -0
  29. package/es/layout/main.d.ts.map +1 -0
  30. package/es/layout/main.js +80 -0
  31. package/es/layout/module.d.ts +3 -0
  32. package/es/layout/module.d.ts.map +1 -0
  33. package/es/layout/module.js +41 -0
  34. package/es/layout/protocol.js +9 -0
  35. package/es/menu/menu-bar-view.js +49 -0
  36. package/es/menu/menu-command.js +138 -0
  37. package/es/menu/menu-contribution.d.ts +18 -0
  38. package/es/menu/menu-contribution.d.ts.map +1 -0
  39. package/es/menu/menu-contribution.js +991 -0
  40. package/es/menu/module.d.ts +3 -0
  41. package/es/menu/module.d.ts.map +1 -0
  42. package/es/menu/module.js +7 -0
  43. package/es/module.d.ts +4 -0
  44. package/es/module.d.ts.map +1 -0
  45. package/es/module.js +55 -0
  46. package/es/toc/index.less +25 -0
  47. package/es/toc/libro-toc-icons.d.ts +7 -0
  48. package/es/toc/libro-toc-icons.d.ts.map +1 -0
  49. package/es/toc/libro-toc-icons.js +38 -0
  50. package/es/toc/libro-toc-panel-view.d.ts +18 -0
  51. package/es/toc/libro-toc-panel-view.d.ts.map +1 -0
  52. package/es/toc/libro-toc-panel-view.js +103 -0
  53. package/es/toc/module.d.ts +3 -0
  54. package/es/toc/module.d.ts.map +1 -0
  55. package/es/toc/module.js +13 -0
  56. package/es/welcome/index.js +47 -0
  57. package/es/welcome/index.less +21 -0
  58. package/es/welcome/welcome-icon.js +66 -0
  59. package/package.json +9 -3
  60. package/src/github-link/index.tsx +27 -0
  61. package/src/index.less +69 -0
  62. package/src/index.spec.ts +10 -0
  63. package/src/index.ts +1 -0
  64. package/src/kernel-manager/index.tsx +22 -0
  65. package/src/lab-app.ts +44 -0
  66. package/src/layout/brand/index.less +16 -0
  67. package/src/layout/brand/index.tsx +22 -0
  68. package/src/layout/brand/logo.tsx +39 -0
  69. package/src/layout/container.tsx +28 -0
  70. package/src/layout/editor-tab-view.tsx +67 -0
  71. package/src/layout/footer/current-file-footer-view.tsx +44 -0
  72. package/src/layout/footer/footer-view.tsx +30 -0
  73. package/src/layout/footer/index.less +17 -0
  74. package/src/layout/index.less +59 -0
  75. package/src/layout/index.tsx +4 -0
  76. package/src/layout/layout-service.ts +64 -0
  77. package/src/layout/layout.tsx +37 -0
  78. package/src/layout/main.tsx +68 -0
  79. package/src/layout/module.ts +62 -0
  80. package/src/layout/protocol.tsx +12 -0
  81. package/src/menu/menu-bar-view.tsx +28 -0
  82. package/src/menu/menu-command.ts +138 -0
  83. package/src/menu/menu-contribution.ts +658 -0
  84. package/src/menu/module.ts +13 -0
  85. package/src/module.tsx +88 -0
  86. package/src/toc/index.less +25 -0
  87. package/src/toc/libro-toc-icons.tsx +35 -0
  88. package/src/toc/libro-toc-panel-view.tsx +87 -0
  89. package/src/toc/module.ts +21 -0
  90. package/src/welcome/index.less +21 -0
  91. package/src/welcome/index.tsx +30 -0
  92. package/src/welcome/welcome-icon.tsx +64 -0
@@ -0,0 +1,138 @@
1
+ export const MenuCommands = {
2
+ About: {
3
+ id: 'libro-lab-header-menu-help-about',
4
+ label: '关于',
5
+ },
6
+ OpenTerminal: {
7
+ id: 'libro-lab-header-menu-terminal-open',
8
+ label: '新建终端',
9
+ },
10
+ Save: {
11
+ id: 'libro-lab-header-menu-file-save',
12
+ label: '保存',
13
+ },
14
+ CreateFile: {
15
+ id: 'libro-lab-header-menu-file-create',
16
+ label: '新建文件',
17
+ },
18
+ RedoCellAction: {
19
+ id: 'libro-lab-header-menu-edit-redo-cell-action',
20
+ label: `恢复单元格操作`,
21
+ },
22
+ UndoCellAction: {
23
+ id: 'libro-lab-header-menu-edit-undo-cell-action',
24
+ label: `撤销单元格操作`,
25
+ },
26
+ CutCell: {
27
+ id: 'libro-lab-header-menu-edit-cut-cell',
28
+ label: `剪切单元格`,
29
+ },
30
+ CopyCell: {
31
+ id: 'libro-lab-header-menu-edit-copy-cell',
32
+ label: `复制单元格`,
33
+ },
34
+ PasteCellAbove: {
35
+ id: 'libro-lab-header-menu-edit-paste-cell-above',
36
+ label: `在上方粘贴单元格`,
37
+ },
38
+ PasteCellBelow: {
39
+ id: 'libro-lab-header-menu-edit-paste-cell-below',
40
+ label: `在下方粘贴单元格`,
41
+ },
42
+ PasteAndReplaceCell: {
43
+ id: 'libro-lab-header-menu-edit-paste-and-replace-cell',
44
+ label: `粘贴单元格并替换`,
45
+ },
46
+ DeleteCell: {
47
+ id: 'libro-lab-header-menu-edit-delete-cell',
48
+ label: `删除单元格`,
49
+ },
50
+ SelectAll: {
51
+ id: 'libro-lab-header-menu-edit-select-all',
52
+ label: `选择所有单元格`,
53
+ },
54
+ DeselectAll: {
55
+ id: 'libro-lab-header-menu-edit-deselect-all',
56
+ label: `取消选择所有单元格`,
57
+ },
58
+ MoveCellUp: {
59
+ id: 'libro-lab-header-menu-edit-move-cell-up',
60
+ label: `上移单元格`,
61
+ },
62
+ MoveCellDown: {
63
+ id: 'libro-lab-header-menu-edit-move-cell-down',
64
+ label: `下移单元格`,
65
+ },
66
+ SplitCellAntCursor: {
67
+ id: 'libro-lab-header-menu-edit-split-cell-at-cursor',
68
+ label: `切分单元格`,
69
+ },
70
+ MergeCellAbove: {
71
+ id: 'libro-lab-header-menu-edit-merge-cell-above',
72
+ label: `合并上方单元格`,
73
+ },
74
+ MergeCellBelow: {
75
+ id: 'libro-lab-header-menu-edit-merge-cell-below',
76
+ label: `合并下方单元格`,
77
+ },
78
+ MergeCells: {
79
+ id: 'libro-lab-header-menu-edit-merge-cells',
80
+ label: `合并选中单元格`,
81
+ },
82
+ ClearCellOutput: {
83
+ id: 'libro-lab-header-menu-edit-clear-cell-outputs',
84
+ label: `清空输出`,
85
+ },
86
+ ClearAllCellOutput: {
87
+ id: 'libro-lab-header-menu-edit-clear-all-cell-outputs',
88
+ label: `清空所有输出`,
89
+ },
90
+ HideOrShowCellCode: {
91
+ id: 'libro-lab-header-menu-view-hide-or-show-cell-code',
92
+ label: `隐藏/显示所选单元格代码`,
93
+ },
94
+ HideOrShowOutputs: {
95
+ id: 'libro-lab-header-menu-view-hide-or-show-outputs',
96
+ label: `隐藏/显示所选单元格输出`,
97
+ },
98
+ EnableOutputScrolling: {
99
+ id: 'libro-lab-header-menu-view-enable-output-scrolling',
100
+ label: `固定输出高度`,
101
+ },
102
+ DisableOutputScrolling: {
103
+ id: 'libro-lab-header-menu-view-disable-output-scrolling',
104
+ label: `取消固定输出高度`,
105
+ },
106
+ RestartAndRunToSelected: {
107
+ id: 'libro-lab-header-menu-run-restart-and-run-to-selected',
108
+ label: '重启并执行至选中单元格',
109
+ },
110
+ RestartRunAll: {
111
+ id: 'libro-lab-header-menu-run-restart-run-all',
112
+ label: '重启并执行全部单元格',
113
+ },
114
+ RunAllAbove: {
115
+ id: 'libro-lab-header-menu-run-all-above',
116
+ label: `执行上方所有单元格`,
117
+ },
118
+ RunAllBelow: {
119
+ id: 'libro-lab-header-menu-run-all-below',
120
+ label: `执行下方所有单元格`,
121
+ },
122
+ RunAllCells: {
123
+ id: 'libro-lab-header-menu-run-all-cells',
124
+ label: `执行全部单元格`,
125
+ },
126
+ RunCell: {
127
+ id: 'libro-lab-header-menu-run-cell',
128
+ label: `执行选中单元格`,
129
+ },
130
+ RunCellAndInsertBelow: {
131
+ id: 'libro-lab-header-menu-run-cell-and-insert-below',
132
+ label: `执行选中并向下插入一个单元格`,
133
+ },
134
+ RunCellAndSelectNext: {
135
+ id: 'libro-lab-header-menu-run-cell-and-select-next',
136
+ label: `执行并选中下一个单元格`,
137
+ },
138
+ };