@difizen/libro-lab 0.2.19 → 0.2.21

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 (34) hide show
  1. package/es/common/icon.d.ts.map +1 -1
  2. package/es/common/icon.js +12 -62
  3. package/es/index.less +29 -23
  4. package/es/kernel-and-terminal-panel/collapse/index.less +3 -3
  5. package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts.map +1 -1
  6. package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.js +89 -82
  7. package/es/kernel-and-terminal-panel/kernel-color-registry.d.ts +6 -0
  8. package/es/kernel-and-terminal-panel/kernel-color-registry.d.ts.map +1 -0
  9. package/es/kernel-and-terminal-panel/kernel-color-registry.js +96 -0
  10. package/es/kernel-and-terminal-panel/module.d.ts.map +1 -1
  11. package/es/kernel-and-terminal-panel/module.js +2 -1
  12. package/es/lab-color-registry.d.ts +6 -0
  13. package/es/lab-color-registry.d.ts.map +1 -0
  14. package/es/lab-color-registry.js +124 -0
  15. package/es/layout/footer/index.less +1 -1
  16. package/es/layout/index.less +9 -3
  17. package/es/module.d.ts.map +1 -1
  18. package/es/module.js +2 -1
  19. package/es/toc/libro-toc-panel-view.d.ts.map +1 -1
  20. package/es/toc/libro-toc-panel-view.js +16 -10
  21. package/es/welcome/index.less +10 -10
  22. package/package.json +10 -10
  23. package/src/common/icon.tsx +36 -52
  24. package/src/index.less +29 -23
  25. package/src/kernel-and-terminal-panel/collapse/index.less +3 -3
  26. package/src/kernel-and-terminal-panel/kernel-and-terminal-panel-view.tsx +50 -38
  27. package/src/kernel-and-terminal-panel/kernel-color-registry.ts +84 -0
  28. package/src/kernel-and-terminal-panel/module.ts +2 -0
  29. package/src/lab-color-registry.ts +119 -0
  30. package/src/layout/footer/index.less +1 -1
  31. package/src/layout/index.less +9 -3
  32. package/src/module.tsx +2 -0
  33. package/src/toc/libro-toc-panel-view.tsx +23 -12
  34. package/src/welcome/index.less +10 -10
@@ -0,0 +1,124 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _class;
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ import { Color, ColorContribution } from '@difizen/mana-app';
9
+ import { singleton } from '@difizen/mana-app';
10
+ export var LabColorContribution = (_dec = singleton({
11
+ contrib: ColorContribution
12
+ }), _dec(_class = /*#__PURE__*/function () {
13
+ function LabColorContribution() {
14
+ _classCallCheck(this, LabColorContribution);
15
+ }
16
+ _createClass(LabColorContribution, [{
17
+ key: "registerColors",
18
+ value: function registerColors(colors) {
19
+ // common
20
+ colors.register(
21
+ // #region antd variable
22
+ {
23
+ id: 'libro.lab.welcome.background.color',
24
+ defaults: {
25
+ dark: '#1f2022',
26
+ light: '#FFFFFF'
27
+ },
28
+ description: ''
29
+ }, {
30
+ id: 'libro.lab.welcome.h1.color',
31
+ defaults: {
32
+ dark: '#edeeef',
33
+ light: '#000A1A'
34
+ },
35
+ description: 'welcome'
36
+ }, {
37
+ id: 'libro.lab.server.info.title.text',
38
+ defaults: {
39
+ dark: '#BDC0C4',
40
+ light: Color.rgba(0, 10, 26, 0.89)
41
+ },
42
+ description: ''
43
+ }, {
44
+ id: 'libro.lab.server.info.text',
45
+ defaults: {
46
+ dark: '#e3e4e6',
47
+ light: Color.rgba(0, 10, 26, 0.78)
48
+ },
49
+ description: 'welcome'
50
+ }, {
51
+ id: 'libro.lab.welcome.h3.text',
52
+ defaults: {
53
+ dark: '#EDEEEF',
54
+ light: Color.rgba(0, 10, 26, 0.89)
55
+ },
56
+ description: 'welcome'
57
+ }, {
58
+ id: 'libro.lab.welcome.entry.point.text',
59
+ defaults: {
60
+ dark: '#D6D8DA',
61
+ light: Color.rgba(0, 10, 26, 0.68)
62
+ },
63
+ description: 'welcome'
64
+ }, {
65
+ id: 'libro.lab.welcome.entry.point.text',
66
+ defaults: {
67
+ dark: '#D6D8DA',
68
+ light: Color.rgba(0, 10, 26, 0.68)
69
+ },
70
+ description: 'welcome'
71
+ }, {
72
+ id: 'libro.lab.welcome.entry.point.background',
73
+ defaults: {
74
+ dark: Color.rgba(255, 255, 255, 0.08),
75
+ light: '#000a1a05'
76
+ },
77
+ description: 'welcome'
78
+ }, {
79
+ id: 'libro.lab.welcome.service.info.background',
80
+ defaults: {
81
+ dark: Color.rgba(255, 255, 255, 0.08),
82
+ light: Color.rgba(0, 10, 26, 0.02)
83
+ },
84
+ description: 'welcome'
85
+ }, {
86
+ id: 'libro.lab.welcome.entry.point.hover.background',
87
+ defaults: {
88
+ dark: Color.rgba(255, 255, 255, 0.16),
89
+ light: Color.rgba(0, 10, 26, 0.04)
90
+ },
91
+ description: 'welcome'
92
+ }, {
93
+ id: 'libro.lab.footer.text',
94
+ defaults: {
95
+ dark: '#E3E4E6',
96
+ light: '#000a1aad'
97
+ },
98
+ description: ''
99
+ }, {
100
+ id: 'libro.lab.footer.background',
101
+ defaults: {
102
+ dark: '#161b21',
103
+ light: '#fcfcfc'
104
+ },
105
+ description: ''
106
+ }, {
107
+ id: 'libro.lab.content.tab.nav',
108
+ defaults: {
109
+ dark: '#252526',
110
+ light: '#f8f8fb'
111
+ },
112
+ description: ''
113
+ }, {
114
+ id: 'libro.lab.content.tab.active.background',
115
+ defaults: {
116
+ dark: '#161b21',
117
+ light: '#ffffff'
118
+ },
119
+ description: ''
120
+ });
121
+ }
122
+ }]);
123
+ return LabColorContribution;
124
+ }()) || _class);
@@ -17,7 +17,7 @@
17
17
  align-items: center;
18
18
  font-weight: 400;
19
19
  font-size: 12px;
20
- color: rgba(0, 10, 26, 68%);
20
+ color: var(--mana-libro-lab-footer-text);
21
21
  }
22
22
 
23
23
  .libro-lab-status-footer {
@@ -20,7 +20,7 @@
20
20
  &-footer {
21
21
  height: 28px;
22
22
  min-height: 28px;
23
- background-image: linear-gradient(270deg, #fafafa 0%, #fff 100%);
23
+ background: var(--mana-libro-lab-footer-background);
24
24
  box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 12%);
25
25
  }
26
26
 
@@ -33,13 +33,19 @@
33
33
  flex: unset !important;
34
34
  }
35
35
 
36
+ .mana-header-middle {
37
+ display: flex;
38
+ align-items: center;
39
+ }
40
+
36
41
  .mana-menubar {
37
- height: 100%;
42
+ // height: 100%;
43
+ position: relative;
38
44
  padding: unset;
39
45
  }
40
46
 
41
47
  .mana-menubar-item-text {
42
- color: rgba(0, 10, 26, 89%);
48
+ // color: rgba(0, 10, 26, 89%);
43
49
  font-weight: 400;
44
50
  }
45
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAiB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA6ExB,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAkB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA8ExB,CAAC"}
package/es/module.js CHANGED
@@ -11,6 +11,7 @@ import { ImageViewerModule } from "./image-viewer/index.js";
11
11
  // import { KernelManagerView } from './kernel-manager/index.js';
12
12
  import { LibroKernelAndTerminalPanelModule } from "./kernel-and-terminal-panel/module.js";
13
13
  import { LibroLabApp } from "./lab-app.js";
14
+ import { LabColorContribution } from "./lab-color-registry.js";
14
15
  import { ContentBottomTabView } from "./layout/content-bottom-tab-view.js";
15
16
  import { LibroLabLayoutModule, LibroLabLayoutSlots, LibroLabLayoutView } from "./layout/index.js";
16
17
  import { SaveableTabView } from "./layout/saveable-tab-view.js";
@@ -19,7 +20,7 @@ import { LibroLabSideTabView } from "./layout/side-tab-view.js";
19
20
  import { LibroLabTocModule } from "./toc/module.js";
20
21
  import { EntryPointView } from "./welcome/entry-point-view.js";
21
22
  import { WelcomeView } from "./welcome/index.js";
22
- export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLayoutView, GithubLinkView, LabConfigAppContribution, LibroLabSideTabView, createViewPreference({
23
+ export var LibroLabModule = ManaModule.create().register(LibroLabApp, LibroLabLayoutView, GithubLinkView, LabConfigAppContribution, LibroLabSideTabView, LabColorContribution, createViewPreference({
23
24
  view: GithubLinkView,
24
25
  slot: HeaderArea.right,
25
26
  openOptions: {
@@ -1 +1 @@
1
- {"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAOR,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,cAAc,CAAC;AAmBtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,qBAEa,YAAa,SAAQ,QAAQ;IAC/B,IAAI,yBAAiB;IACT,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACtD,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;;IAQjC,WAAW,IAAI,IAAI;IAQ5B,IAAI,oBAAoB,qCAMvB;IAED,mBAAmB,aAiBjB;CACH"}
1
+ {"version":3,"file":"libro-toc-panel-view.d.ts","sourceRoot":"","sources":["../../src/toc/libro-toc-panel-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,QAAQ,EAQR,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,cAAc,CAAC;AA6BtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,qBAEa,YAAa,SAAQ,QAAQ;IAC/B,IAAI,yBAAiB;IACT,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACtD,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;;IAQjC,WAAW,IAAI,IAAI;IAQ5B,IAAI,oBAAoB,qCAMvB;IAED,mBAAmB,aAiBjB;CACH"}
@@ -17,8 +17,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
17
17
  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
18
18
  import { LibroNavigatableView } from '@difizen/libro-jupyter';
19
19
  import { TOCView } from '@difizen/libro-toc';
20
- import { BaseView, inject, prop, singleton, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/mana-app';
21
- import { Empty } from 'antd';
20
+ import { BaseView, inject, prop, singleton, ThemeService, useInject, view, ViewInstance, ViewManager, ViewRender } from '@difizen/mana-app';
21
+ import { ConfigProvider, Empty, theme } from 'antd';
22
22
  import { TocIcon } from "../common/index.js";
23
23
  import { LayoutService } from "../layout/layout-service.js";
24
24
  import { LibroLabLayoutSlots } from "../layout/protocol.js";
@@ -26,14 +26,20 @@ import "./index.less";
26
26
  import { jsx as _jsx } from "react/jsx-runtime";
27
27
  var TocViewRender = function TocViewRender() {
28
28
  var tocPanelView = useInject(ViewInstance);
29
- return /*#__PURE__*/_jsx("div", {
30
- className: "libro-lab-toc-panel",
31
- children: tocPanelView.libroTocView ? /*#__PURE__*/_jsx(ViewRender, {
32
- view: tocPanelView.libroTocView
33
- }) : /*#__PURE__*/_jsx(Empty, {
34
- image: Empty.PRESENTED_IMAGE_SIMPLE,
35
- description: "\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u5927\u7EB2",
36
- className: "libro-lab-toc-empty"
29
+ var themeService = useInject(ThemeService);
30
+ return /*#__PURE__*/_jsx(ConfigProvider, {
31
+ theme: {
32
+ algorithm: themeService.getCurrentTheme().type === 'dark' ? theme.darkAlgorithm : theme.defaultAlgorithm
33
+ },
34
+ children: /*#__PURE__*/_jsx("div", {
35
+ className: "libro-lab-toc-panel",
36
+ children: tocPanelView.libroTocView ? /*#__PURE__*/_jsx(ViewRender, {
37
+ view: tocPanelView.libroTocView
38
+ }) : /*#__PURE__*/_jsx(Empty, {
39
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
40
+ description: "\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u5927\u7EB2",
41
+ className: "libro-lab-toc-empty"
42
+ })
37
43
  })
38
44
  });
39
45
  };
@@ -1,7 +1,7 @@
1
1
  .libro-lab-welcome-page {
2
2
  padding: 32px 54px;
3
3
  height: 100%;
4
- background: white;
4
+ background: var(--mana-libro-lab-welcome-background-color);
5
5
  overflow: auto;
6
6
 
7
7
  .libro-lab-welcome-page-title {
@@ -9,7 +9,7 @@
9
9
  font-family: PingFangSC;
10
10
  font-weight: 600;
11
11
  font-size: 40px;
12
- color: #000a1a;
12
+ color: var(--mana-libro-lab-welcome-h1-color);
13
13
  letter-spacing: 0;
14
14
  line-height: 56px;
15
15
  }
@@ -29,12 +29,12 @@
29
29
  margin-bottom: 24px;
30
30
  height: 100px;
31
31
  width: 100px;
32
- background-color: rgba(0, 10, 26, 2%);
32
+ background-color: var(--mana-libro-lab-welcome-entry-point-background);
33
33
  border-radius: 8px;
34
34
  cursor: pointer;
35
35
 
36
36
  &:hover {
37
- background-color: rgba(0, 10, 26, 4%);
37
+ background-color: var(--mana-libro-lab-welcome-entry-point-hover-background);
38
38
  }
39
39
  }
40
40
 
@@ -42,20 +42,20 @@
42
42
  margin-top: 6px;
43
43
  line-height: 20px;
44
44
  font-size: 14px;
45
- color: rgba(0, 10, 26, 68%);
45
+ color: var(--mana-libro-lab-welcome-entry-point-text);
46
46
  }
47
47
 
48
48
  .libro-lab-entry-point-title {
49
49
  font-weight: 500;
50
50
  font-size: 18px;
51
51
  margin-bottom: 12px;
52
- color: rgba(0, 10, 26, 89%);
52
+ color: var(--mana-libro-lab-welcome-h3-color);
53
53
  }
54
54
 
55
55
  .libro-lab-entry-point-item-title {
56
56
  font-weight: 500;
57
57
  font-size: 16px;
58
- color: rgba(0, 10, 26, 89%);
58
+ color: var(--mana-libro-lab-welcome-h3-color);
59
59
  margin-bottom: 16px;
60
60
  }
61
61
 
@@ -103,7 +103,7 @@
103
103
 
104
104
  .libro-lab-welcome-page-server-info {
105
105
  width: 400px;
106
- background-color: rgba(0, 10, 26, 2%);
106
+ background: var(--mana-libro-lab-welcome-service-info-background);
107
107
  border-radius: 8px;
108
108
  margin-bottom: 24px;
109
109
  padding: 16px 24px;
@@ -112,9 +112,9 @@
112
112
  .libro-lab-welcome-page-server-info-title {
113
113
  font-weight: 500;
114
114
  font-size: 16px;
115
- color: rgba(0, 10, 26, 89%);
115
+ color: var(--mana-libro-lab-server-info-title-text);
116
116
  }
117
117
 
118
118
  .libro-lab-welcome-page-server-info-item {
119
- color: rgba(0, 10, 26, 78%);
119
+ color: var(--mana-libro-lab-server-info-text);
120
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-lab",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -34,15 +34,15 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@ant-design/icons": "^5.1.0",
37
- "@difizen/libro-core": "^0.2.19",
38
- "@difizen/libro-jupyter": "^0.2.19",
39
- "@difizen/libro-kernel": "^0.2.19",
40
- "@difizen/libro-prompt-cell": "^0.2.19",
41
- "@difizen/libro-terminal": "^0.2.19",
42
- "@difizen/libro-toc": "^0.2.19",
43
- "@difizen/libro-cofine-editor-core": "^0.2.19",
44
- "@difizen/libro-language-client": "^0.2.19",
45
- "@difizen/libro-widget": "^0.2.19",
37
+ "@difizen/libro-core": "^0.2.21",
38
+ "@difizen/libro-jupyter": "^0.2.21",
39
+ "@difizen/libro-kernel": "^0.2.21",
40
+ "@difizen/libro-prompt-cell": "^0.2.21",
41
+ "@difizen/libro-terminal": "^0.2.21",
42
+ "@difizen/libro-toc": "^0.2.21",
43
+ "@difizen/libro-cofine-editor-core": "^0.2.21",
44
+ "@difizen/libro-language-client": "^0.2.21",
45
+ "@difizen/libro-widget": "^0.2.21",
46
46
  "@difizen/mana-app": "latest",
47
47
  "@difizen/mana-common": "latest",
48
48
  "@difizen/mana-react": "latest",
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ import { CodeFilled } from '@ant-design/icons';
2
3
  import './index.less';
3
4
 
4
5
  export interface IProps {
@@ -52,7 +53,13 @@ export function TocIcon(props: IProps) {
52
53
  xmlnsXlink="http://www.w3.org/1999/xlink"
53
54
  >
54
55
  <title>source</title>
55
- <g id="代码片段" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
56
+ <g
57
+ id="代码片段"
58
+ stroke="none"
59
+ strokeWidth="1"
60
+ fill="currentColor"
61
+ fillRule="evenodd"
62
+ >
56
63
  <g
57
64
  id="1.4编辑状态备份"
58
65
  transform="translate(-14.000000, -215.000000)"
@@ -88,7 +95,7 @@ export function Loadding(props: IProps) {
88
95
  <g
89
96
  id="1.1容器加载中-关闭提示"
90
97
  transform="translate(-1362.000000, -879.000000)"
91
- fill="#1890FF"
98
+ fill="currentColor"
92
99
  >
93
100
  <g id="编组-20" transform="translate(0.000000, 872.000000)">
94
101
  <g id="编组-3" transform="translate(1302.000000, 5.000000)">
@@ -196,11 +203,17 @@ export function PreferenceIcon(props: IProps) {
196
203
  xmlnsXlink="http://www.w3.org/1999/xlink"
197
204
  >
198
205
  <title>政策</title>
199
- <g id="整体框架部分" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
206
+ <g
207
+ id="整体框架部分"
208
+ stroke="none"
209
+ strokeWidth="1"
210
+ fill="currentColor"
211
+ fillRule="evenodd"
212
+ >
200
213
  <g
201
214
  id="1.2容器加载完成"
202
215
  transform="translate(-330.000000, -970.000000)"
203
- fill="#333333"
216
+ fill="currentColor"
204
217
  fillRule="nonzero"
205
218
  >
206
219
  <g id="编组-19" transform="translate(318.000000, 485.000000)">
@@ -234,11 +247,17 @@ export function KeybindIcon(props: IProps) {
234
247
  xmlnsXlink="http://www.w3.org/1999/xlink"
235
248
  >
236
249
  <title>键盘</title>
237
- <g id="整体框架部分" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
250
+ <g
251
+ id="整体框架部分"
252
+ stroke="none"
253
+ strokeWidth="1"
254
+ fill="currentColor"
255
+ fillRule="evenodd"
256
+ >
238
257
  <g
239
258
  id="1.2容器加载完成"
240
259
  transform="translate(-446.000000, -970.000000)"
241
- fill="#333333"
260
+ fill="currentColor"
242
261
  fillRule="nonzero"
243
262
  >
244
263
  <g id="编组-19" transform="translate(318.000000, 485.000000)">
@@ -277,11 +296,17 @@ export function SuccIcon(props: IProps) {
277
296
  className="libro-lab-success"
278
297
  >
279
298
  <title>编组 12</title>
280
- <g id="整体框架部分" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
299
+ <g
300
+ id="整体框架部分"
301
+ stroke="none"
302
+ strokeWidth="1"
303
+ fill="currentColor"
304
+ fillRule="evenodd"
305
+ >
281
306
  <g
282
307
  id="1.2容器加载完成"
283
308
  transform="translate(-1392.000000, -1073.000000)"
284
- fill="#52C41A"
309
+ fill="currentColor"
285
310
  >
286
311
  <g id="编组-26" transform="translate(24.000000, 1070.000000)">
287
312
  <g id="编组-3" transform="translate(1252.000000, 0.000000)">
@@ -315,14 +340,13 @@ export function KernelAndTerminal() {
315
340
  id="代码片段"
316
341
  stroke="none"
317
342
  strokeWidth="1"
318
- fill="none"
343
+ fill="currentColor"
319
344
  fillRule="evenodd"
320
- fillOpacity="0.35"
321
345
  >
322
346
  <g
323
347
  id="1.1搜索"
324
348
  transform="translate(-12.000000, -142.000000)"
325
- fill="#000000"
349
+ fill="currentColor"
326
350
  fillRule="nonzero"
327
351
  >
328
352
  <g id="编组-2" transform="translate(0.000000, 56.000000)">
@@ -510,47 +534,7 @@ export function runningKernel() {
510
534
  }
511
535
 
512
536
  export function runningTerminal() {
513
- return (
514
- <svg
515
- width="12px"
516
- height="12px"
517
- viewBox="0 0 12 12"
518
- version="1.1"
519
- xmlns="http://www.w3.org/2000/svg"
520
- xmlnsXlink="http://www.w3.org/1999/xlink"
521
- >
522
- <title>bxs-terminal</title>
523
- <g
524
- id="kernel管理面板"
525
- stroke="none"
526
- strokeWidth="1"
527
- fill="none"
528
- fillRule="evenodd"
529
- opacity="0.45"
530
- >
531
- <g
532
- id="2.0展开"
533
- transform="translate(-52.000000, -332.000000)"
534
- fill="#000000"
535
- fillRule="nonzero"
536
- >
537
- <g id="编组-2" transform="translate(0.000000, 56.000000)">
538
- <g id="编组-11" transform="translate(40.000000, 0.000000)">
539
- <g id="编组-16备份-4" transform="translate(12.000000, 272.000000)">
540
- <g id="bxs-terminal" transform="translate(0.000000, 4.000000)">
541
- <rect id="矩形" opacity="0" x="0" y="0" width="12" height="12"></rect>
542
- <path
543
- d="M9.99999609,2.00000391 L1.99999609,2.00000391 C1.73478642,2.00000391 1.48043049,2.10535585 1.29289231,2.29289184 C1.10535413,2.48042782 0.999996094,2.73478252 0.999996094,3.00000391 L0.999996094,9.00000391 C0.999996094,9.26521748 1.10535413,9.51957218 1.29289231,9.70710816 C1.48043049,9.89464415 1.73478642,10.0000039 1.99999609,10.0000039 L9.99999609,10.0000039 C10.2652136,10.0000039 10.5195695,9.89464415 10.7071077,9.70710816 C10.8946459,9.51957218 10.9999961,9.26521748 10.9999961,9.00000391 L10.9999961,3.00000391 C10.9999961,2.73478252 10.8946459,2.48042782 10.7071077,2.29289184 C10.5195695,2.10535585 10.2652136,2.00000391 9.99999609,2.00000391 Z M3.207,7.85349609 L2.49998438,7.14650391 L3.64648828,6 L2.49998438,4.85349609 L3.20698828,4.14650391 L5.06049609,6 L3.207,7.85349609 Z M9.5,7.99999609 L6,7.99999609 L6,6.99999609 L9.5,6.99999609 L9.5,7.99999609 L9.5,7.99999609 Z"
544
- id="形状"
545
- ></path>
546
- </g>
547
- </g>
548
- </g>
549
- </g>
550
- </g>
551
- </g>
552
- </svg>
553
- );
537
+ return <CodeFilled />;
554
538
  }
555
539
 
556
540
  export function existedLSP() {
package/src/index.less CHANGED
@@ -1,12 +1,22 @@
1
+ /* stylelint-disable selector-no-vendor-prefix */
2
+ a:-webkit-any-link {
3
+ color: unset;
4
+ }
5
+
6
+ .libro-lab-layout {
7
+ .ant-empty {
8
+ .ant-empty-description {
9
+ color: var(--mana-ant-color-text-description);
10
+ }
11
+ }
12
+ }
13
+
1
14
  #libro-lab-content-layout-left {
2
15
  .mana-side-tab-view {
3
16
  .mana-tabs-left {
4
17
  .mana-tabs-nav {
5
- background-color: #f0f2f51f;
18
+ background-color: var(--mana-ant-color-bg-elevated);
6
19
  min-width: 40px;
7
- box-shadow:
8
- 1px 0 0 0 #000a1a02,
9
- 2px 0 0 0 #ffffff0c;
10
20
 
11
21
  .mana-tabs-ink-bar {
12
22
  display: none;
@@ -37,28 +47,29 @@
37
47
  }
38
48
 
39
49
  .mana-tabs-tab-btn:hover {
40
- background-color: #000a1a1f;
41
-
42
50
  .mana-tab-icon {
43
- color: #00000059;
51
+ color: var(--mana-ant-color-icon);
44
52
  }
45
53
  }
46
54
 
47
55
  .mana-tabs-tab-active {
48
56
  .mana-tabs-tab-btn {
49
- background-color: #000a1a1f;
50
-
51
57
  .mana-tab-icon {
52
- color: #000a1a7f;
58
+ color: var(--mana-ant-color-icon-hover);
53
59
  }
54
60
  }
55
61
  }
56
62
  }
57
63
 
58
64
  .mana-tabs-content-holder {
59
- background-image: linear-gradient(269deg, #c8c8cd1f 0%, #ffffff1f 100%);
65
+ background-image: linear-gradient(
66
+ 269deg,
67
+ var(--mana-libro-lab-content-tab-nav) 0%,
68
+ var(--mana-libro-background)
69
+ );
60
70
  border-left: none;
61
- background-color: unset;
71
+ box-shadow: var(--mana-ant-box-shadow-tabs-overflow-left);
72
+ padding-left: 2px;
62
73
 
63
74
  .mana-tab-side-pane-content {
64
75
  height: calc(100% - 32px);
@@ -69,22 +80,17 @@
69
80
  }
70
81
 
71
82
  #libro-lab-content-layout-main {
72
- background-color: #f8f8fb;
83
+ background-color: var(--mana-libro-lab-content-tab-nav);
73
84
 
74
85
  .mana-tabs-nav {
75
- background-color: #f8f8fb;
86
+ background-color: var(--mana-libro-lab-content-tab-nav);
87
+ }
88
+
89
+ .mana-tabs-tab-active {
90
+ background-color: var(--mana-libro-lab-content-tab-active-background);
76
91
  }
77
92
  }
78
93
 
79
94
  #libro-lab-content-layout-main-container {
80
95
  overflow: auto;
81
96
  }
82
-
83
- .default-folder-icon,
84
- .default-file-icon {
85
- color: #00000072;
86
- }
87
-
88
- .mana-tree-node-segment-grow {
89
- color: #000000a5;
90
- }
@@ -5,7 +5,7 @@
5
5
 
6
6
  .libro-panel-collapse-header {
7
7
  user-select: none; // 双击不选中文本
8
- color: rgba(0, 10, 26, 68%);
8
+ color: var(--mana-libro-lab-kernel-panel-collapse-header-label);
9
9
  font-size: 12px;
10
10
 
11
11
  .libro-panel-collapse-header-left {
@@ -25,7 +25,7 @@
25
25
  .libro-panel-collapse-header-closeAll {
26
26
  // display: inline-block;
27
27
  cursor: pointer;
28
- color: rgba(0, 10, 26, 47%);
28
+ color: var(--mana-ant-color-text-secondary);
29
29
  float: right;
30
30
  }
31
31
  }
@@ -40,7 +40,7 @@
40
40
  .libro-panel-collapse-kernel-item {
41
41
  cursor: pointer;
42
42
  user-select: none; // 双击不选中文本
43
- color: rgba(0, 10, 26, 65%);
43
+ color: var(--mana-libro-lab-kernel-panel-collapse-item-text);
44
44
  font-size: 12px;
45
45
  margin: 8px 0;
46
46
  padding: 0 10px;