@difizen/libro-lab 0.0.2-alpha.0 → 0.1.1
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/common/icon.d.ts +14 -0
- package/es/common/icon.d.ts.map +1 -0
- package/es/common/icon.js +368 -0
- package/es/common/index.d.ts +2 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.js +1 -0
- package/es/common/index.less +8 -0
- package/es/github-link/index.d.ts +9 -0
- package/es/github-link/index.d.ts.map +1 -0
- package/es/github-link/index.js +43 -0
- package/es/index.d.ts +1 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -0
- package/es/index.less +78 -0
- package/es/kernel-manager/index.d.ts +8 -0
- package/es/kernel-manager/index.d.ts.map +1 -0
- package/es/kernel-manager/index.js +40 -0
- package/es/lab-app.d.ts +15 -0
- package/es/lab-app.d.ts.map +1 -0
- package/es/lab-app.js +126 -0
- package/es/layout/brand/index.d.ts +8 -0
- package/es/layout/brand/index.d.ts.map +1 -0
- package/es/layout/brand/index.js +46 -0
- package/es/layout/brand/index.less +16 -0
- package/es/layout/container.d.ts +8 -0
- package/es/layout/container.d.ts.map +1 -0
- package/es/layout/container.js +54 -0
- package/es/layout/footer/current-file-footer-view.d.ts +10 -0
- package/es/layout/footer/current-file-footer-view.d.ts.map +1 -0
- package/es/layout/footer/current-file-footer-view.js +62 -0
- package/es/layout/footer/footer-view.d.ts +11 -0
- package/es/layout/footer/footer-view.d.ts.map +1 -0
- package/es/layout/footer/footer-view.js +60 -0
- package/es/layout/footer/index.less +20 -0
- package/es/layout/footer/status-footer-view.d.ts +10 -0
- package/es/layout/footer/status-footer-view.d.ts.map +1 -0
- package/es/layout/footer/status-footer-view.js +73 -0
- package/es/layout/index.d.ts +5 -0
- package/es/layout/index.d.ts.map +1 -0
- package/es/layout/index.js +4 -0
- package/es/layout/index.less +59 -0
- package/es/layout/layout-service.d.ts +15 -0
- package/es/layout/layout-service.d.ts.map +1 -0
- package/es/layout/layout-service.js +104 -0
- package/es/layout/layout.d.ts +12 -0
- package/es/layout/layout.d.ts.map +1 -0
- package/es/layout/layout.js +92 -0
- package/es/layout/main.d.ts +8 -0
- package/es/layout/main.d.ts.map +1 -0
- package/es/layout/main.js +79 -0
- package/es/layout/module.d.ts +3 -0
- package/es/layout/module.d.ts.map +1 -0
- package/es/layout/module.js +45 -0
- package/es/layout/protocol.d.ts +18 -0
- package/es/layout/protocol.d.ts.map +1 -0
- package/es/layout/protocol.js +10 -0
- package/es/layout/saveable-tab-view.d.ts +7 -0
- package/es/layout/saveable-tab-view.d.ts.map +1 -0
- package/es/layout/saveable-tab-view.js +77 -0
- package/es/menu/menu-bar-view.d.ts +9 -0
- package/es/menu/menu-bar-view.d.ts.map +1 -0
- package/es/menu/menu-bar-view.js +49 -0
- package/es/menu/menu-command.d.ts +139 -0
- package/es/menu/menu-command.d.ts.map +1 -0
- package/es/menu/menu-command.js +138 -0
- package/es/menu/menu-contribution.d.ts +18 -0
- package/es/menu/menu-contribution.d.ts.map +1 -0
- package/es/menu/menu-contribution.js +991 -0
- package/es/menu/module.d.ts +3 -0
- package/es/menu/module.d.ts.map +1 -0
- package/es/menu/module.js +7 -0
- package/es/module.d.ts +4 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +57 -0
- package/es/toc/index.less +25 -0
- package/es/toc/libro-toc-panel-view.d.ts +18 -0
- package/es/toc/libro-toc-panel-view.d.ts.map +1 -0
- package/es/toc/libro-toc-panel-view.js +104 -0
- package/es/toc/module.d.ts +3 -0
- package/es/toc/module.d.ts.map +1 -0
- package/es/toc/module.js +13 -0
- package/es/welcome/entry-point-view.d.ts +8 -0
- package/es/welcome/entry-point-view.d.ts.map +1 -0
- package/es/welcome/entry-point-view.js +200 -0
- package/es/welcome/index.d.ts +13 -0
- package/es/welcome/index.d.ts.map +1 -0
- package/es/welcome/index.js +75 -0
- package/es/welcome/index.less +122 -0
- package/package.json +10 -3
- package/src/common/icon.tsx +300 -0
- package/src/common/index.less +8 -0
- package/src/common/index.tsx +1 -0
- package/src/github-link/index.tsx +27 -0
- package/src/index.less +78 -0
- package/src/index.spec.ts +10 -0
- package/src/index.ts +1 -0
- package/src/kernel-manager/index.tsx +22 -0
- package/src/lab-app.ts +61 -0
- package/src/layout/brand/index.less +16 -0
- package/src/layout/brand/index.tsx +22 -0
- package/src/layout/container.tsx +28 -0
- package/src/layout/footer/current-file-footer-view.tsx +40 -0
- package/src/layout/footer/footer-view.tsx +30 -0
- package/src/layout/footer/index.less +20 -0
- package/src/layout/footer/status-footer-view.tsx +45 -0
- package/src/layout/index.less +59 -0
- package/src/layout/index.tsx +4 -0
- package/src/layout/layout-service.ts +66 -0
- package/src/layout/layout.tsx +61 -0
- package/src/layout/main.tsx +67 -0
- package/src/layout/module.ts +68 -0
- package/src/layout/protocol.tsx +20 -0
- package/src/layout/saveable-tab-view.tsx +66 -0
- package/src/menu/menu-bar-view.tsx +28 -0
- package/src/menu/menu-command.ts +138 -0
- package/src/menu/menu-contribution.ts +658 -0
- package/src/menu/module.ts +13 -0
- package/src/module.tsx +92 -0
- package/src/toc/index.less +25 -0
- package/src/toc/libro-toc-panel-view.tsx +88 -0
- package/src/toc/module.ts +21 -0
- package/src/welcome/entry-point-view.tsx +169 -0
- package/src/welcome/index.less +122 -0
- package/src/welcome/index.tsx +68 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
export interface IProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Logo(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TocIcon(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Loadding(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function TerminalIcon(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function PreferenceIcon(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function KeybindIcon(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SuccIcon(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/common/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,MAAM;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,2CAiCjC;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,2CA6BpC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,2CA8BrC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,2CA+EzC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,2CAoC3C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,2CAwCxC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,2CAiCrC"}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export function Logo(props) {
|
|
5
|
+
var _props$className = props.className,
|
|
6
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
7
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
8
|
+
viewBox: "0 0 154 116",
|
|
9
|
+
className: className,
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
14
|
+
id: "\u9875\u9762-1",
|
|
15
|
+
stroke: "none",
|
|
16
|
+
strokeWidth: "1",
|
|
17
|
+
fill: "none",
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
20
|
+
id: "\u753B\u677F\u5907\u4EFD-6",
|
|
21
|
+
transform: "translate(-119.000000, -152.000000)",
|
|
22
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
23
|
+
id: "Libro-logo",
|
|
24
|
+
transform: "translate(119.000000, 152.000000)",
|
|
25
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
26
|
+
d: "M128.970588,66 C142.793951,66 154,77.1926795 154,90.9995493 C154,104.806419 142.793951,115.999099 128.970588,115.999099 C128.473758,115.999099 127.980309,115.98464 127.49064,115.956121 L127.697007,115.999674 L80,115.999099 L93.1090651,98.1074032 L108.158627,77.1069733 C112.649045,70.4093826 120.294268,66 128.970588,66 Z",
|
|
27
|
+
id: "\u5F62\u72B6\u7ED3\u5408",
|
|
28
|
+
fill: "#155DE2"
|
|
29
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
30
|
+
d: "M104.481034,0 L147,0 L147,0 L59.3397468,116 L0,116 L78.0248494,13.1382037 C84.3029962,4.8615911 94.0927023,-5.19712172e-15 104.481034,0 Z",
|
|
31
|
+
id: "\u77E9\u5F62",
|
|
32
|
+
fill: "#155DE2"
|
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
+
d: "M65.667264,51.1430655 C65.667264,84.8453007 91.2203312,112.576275 123.999729,115.999972 L0,115.997535 L75.3014571,17.0042341 C69.1915639,26.9341621 65.667264,38.6268332 65.667264,51.1430655 Z",
|
|
35
|
+
id: "\u5F62\u72B6\u7ED3\u5408",
|
|
36
|
+
fill: "#12D8C6"
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function TocIcon(props) {
|
|
44
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
45
|
+
width: "12px",
|
|
46
|
+
height: "14px",
|
|
47
|
+
viewBox: "0 0 12 14",
|
|
48
|
+
version: "1.1",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
51
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
52
|
+
children: "source"
|
|
53
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
54
|
+
id: "\u4EE3\u7801\u7247\u6BB5",
|
|
55
|
+
stroke: "none",
|
|
56
|
+
strokeWidth: "1",
|
|
57
|
+
fill: "none",
|
|
58
|
+
fillRule: "evenodd",
|
|
59
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
60
|
+
id: "1.4\u7F16\u8F91\u72B6\u6001\u5907\u4EFD",
|
|
61
|
+
transform: "translate(-14.000000, -215.000000)",
|
|
62
|
+
fill: "currentColor",
|
|
63
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
64
|
+
id: "\u7F16\u7EC4-2",
|
|
65
|
+
transform: "translate(0.000000, 56.000000)",
|
|
66
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
67
|
+
id: "source",
|
|
68
|
+
transform: "translate(14.359615, 159.750439)",
|
|
69
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
70
|
+
d: "M11.3634429,8.03576964 L9.90082151,8.03576964 L9.90082151,5.91521932 C9.90082151,5.85383497 9.85019231,5.80361141 9.78831217,5.80361141 L6.30052278,5.80361141 L6.30052278,4.46431647 L7.81939881,4.46431647 C7.94315907,4.46431647 8.04441748,4.36386935 8.04441748,4.24110065 L8.04441748,0.223215823 C8.04441748,0.100447121 7.94315907,0 7.81939881,0 L3.76906273,0 C3.64530246,0 3.54404406,0.100447121 3.54404406,0.223215823 L3.54404406,4.24110065 C3.54404406,4.36386935 3.64530246,4.46431647 3.76906273,4.46431647 L5.28793876,4.46431647 L5.28793876,5.80361141 L1.80014937,5.80361141 C1.73826923,5.80361141 1.68764003,5.85383497 1.68764003,5.91521932 L1.68764003,8.03576964 L0.225018671,8.03576964 C0.101258402,8.03576964 0,8.13621676 0,8.25898547 L0,12.2768703 C0,12.399639 0.101258402,12.5000861 0.225018671,12.5000861 L4.27535474,12.5000861 C4.39911501,12.5000861 4.50037341,12.399639 4.50037341,12.2768703 L4.50037341,8.25898547 C4.50037341,8.13621676 4.39911501,8.03576964 4.27535474,8.03576964 L2.70022405,8.03576964 L2.70022405,6.80808261 L8.88823749,6.80808261 L8.88823749,8.03576964 L7.3131068,8.03576964 C7.18934653,8.03576964 7.08808813,8.13621676 7.08808813,8.25898547 L7.08808813,12.2768703 C7.08808813,12.399639 7.18934653,12.5000861 7.3131068,12.5000861 L11.3634429,12.5000861 C11.4872031,12.5000861 11.5884615,12.399639 11.5884615,12.2768703 L11.5884615,8.25898547 C11.5884615,8.13621676 11.4872031,8.03576964 11.3634429,8.03576964 Z",
|
|
71
|
+
id: "Path"
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function Loadding(props) {
|
|
80
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
81
|
+
width: "14px",
|
|
82
|
+
height: "14px",
|
|
83
|
+
viewBox: "0 0 14 14",
|
|
84
|
+
version: "1.1",
|
|
85
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
87
|
+
className: "libro-lab-loadding",
|
|
88
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
89
|
+
children: "\u5F62\u72B6\u7ED3\u5408"
|
|
90
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
91
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
92
|
+
stroke: "none",
|
|
93
|
+
strokeWidth: "1",
|
|
94
|
+
fill: "none",
|
|
95
|
+
fillRule: "evenodd",
|
|
96
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
97
|
+
id: "1.1\u5BB9\u5668\u52A0\u8F7D\u4E2D-\u5173\u95ED\u63D0\u793A",
|
|
98
|
+
transform: "translate(-1362.000000, -879.000000)",
|
|
99
|
+
fill: "#1890FF",
|
|
100
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
101
|
+
id: "\u7F16\u7EC4-20",
|
|
102
|
+
transform: "translate(0.000000, 872.000000)",
|
|
103
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
104
|
+
id: "\u7F16\u7EC4-3",
|
|
105
|
+
transform: "translate(1302.000000, 5.000000)",
|
|
106
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
107
|
+
d: "M67,2 C70.8659932,2 74,5.13400675 74,9 C74,12.6840981 71.1539658,15.7034692 67.5405741,15.9794369 C67.4622857,15.9934347 67.3819096,16 67.3,16 C66.4715729,16 65.8,15.3284271 65.8,14.5 C65.8,13.6715729 66.4715729,13 67.3,13 L67.301026,12.9888432 C69.3695589,12.8349382 71,11.1078741 71,9 C71,6.790861 69.209139,5 67,5 C64.8578046,5 63.1089211,6.68396847 63.0048953,8.80035966 L63,9 C63,9.82842712 62.3284271,10.5 61.5,10.5 C60.6715729,10.5 60,9.82842712 60,9 C60,5.13400675 63.1340068,2 67,2 Z",
|
|
108
|
+
id: "\u5F62\u72B6\u7ED3\u5408"
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
export function TerminalIcon(props) {
|
|
117
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
118
|
+
width: "32px",
|
|
119
|
+
height: "25px",
|
|
120
|
+
viewBox: "0 0 32 25",
|
|
121
|
+
version: "1.1",
|
|
122
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
123
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
124
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
125
|
+
children: "\u7F16\u7EC4"
|
|
126
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
127
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
128
|
+
stroke: "none",
|
|
129
|
+
strokeWidth: "1",
|
|
130
|
+
fill: "none",
|
|
131
|
+
fillRule: "evenodd",
|
|
132
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
133
|
+
id: "1.2\u5BB9\u5668\u52A0\u8F7D\u5B8C\u6210",
|
|
134
|
+
transform: "translate(-352.000000, -716.000000)",
|
|
135
|
+
fillRule: "nonzero",
|
|
136
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
137
|
+
id: "\u7F16\u7EC4-19",
|
|
138
|
+
transform: "translate(318.000000, 485.000000)",
|
|
139
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
140
|
+
id: "\u7F16\u7EC4-16",
|
|
141
|
+
transform: "translate(0.000000, 162.000000)",
|
|
142
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
143
|
+
id: "\u7F16\u7EC4-16\u5907\u4EFD-8",
|
|
144
|
+
transform: "translate(0.000000, 38.000000)",
|
|
145
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
146
|
+
id: "\u7F16\u7EC4",
|
|
147
|
+
transform: "translate(34.000000, 31.000000)",
|
|
148
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
149
|
+
d: "M0,4.6728281 L10.6469501,4.6728281 L10.6469501,0 L1.36044362,0 C0.591497227,0.0591497227 0,0.65064695 0,1.36044362 L0,4.6728281 Z",
|
|
150
|
+
id: "\u8DEF\u5F84",
|
|
151
|
+
fill: "#9ACBCD"
|
|
152
|
+
}), /*#__PURE__*/_jsx("polygon", {
|
|
153
|
+
id: "\u8DEF\u5F84",
|
|
154
|
+
fill: "#63BE8D",
|
|
155
|
+
points: "21.2939002 0.0591497227 10.6469501 0.0591497227 10.6469501 4.73197782 21.2939002 4.73197782 21.2939002 0.0591497227"
|
|
156
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
157
|
+
d: "M31.9408503,4.6728281 L21.2939002,4.6728281 L21.2939002,0 L30.6395564,0 C31.349353,0 32,0.591497227 32,1.36044362 L32,4.6728281 L31.9408503,4.6728281 Z",
|
|
158
|
+
id: "\u8DEF\u5F84",
|
|
159
|
+
fill: "#4C9472"
|
|
160
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
161
|
+
d: "M30.6395564,24.0147874 L1.36044362,24.0147874 C0.591497227,24.0147874 0,23.3641405 0,22.6543438 L0,4.02218115 L31.9408503,4.02218115 L31.9408503,22.6543438 C31.9408503,23.3641405 31.349353,24.0147874 30.6395564,24.0147874 Z",
|
|
162
|
+
id: "\u8DEF\u5F84",
|
|
163
|
+
fill: "#141517"
|
|
164
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
165
|
+
d: "M10.1146026,12.1848429 L4.25878004,18.0406654 C3.9038817,18.3955638 3.9038817,18.8096118 4.25878004,19.1053604 L5.44177449,20.2883549 C5.79667283,20.6432532 6.26987061,20.6432532 6.5064695,20.2883549 L12.3622921,14.4325323 C12.7171904,14.077634 12.7171904,13.6044362 12.3622921,13.3678373 L11.1792976,12.1848429 C10.9426987,11.948244 10.4103512,11.948244 10.1146026,12.1848429 L10.1146026,12.1848429 Z",
|
|
166
|
+
id: "\u8DEF\u5F84",
|
|
167
|
+
fill: "#6D766D"
|
|
168
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
169
|
+
d: "M6.5064695,7.57116451 L12.3622921,13.4269871 C12.7171904,13.7818854 12.7171904,14.1959335 12.3622921,14.4916821 L11.1792976,15.6746765 C10.8243993,16.0295749 10.3512015,16.0295749 10.1146026,15.6746765 L4.25878004,9.81885397 C3.9038817,9.46395564 3.9038817,8.99075786 4.25878004,8.75415896 L5.44177449,7.57116451 C5.73752311,7.2754159 6.26987061,7.2754159 6.5064695,7.57116451 L6.5064695,7.57116451 Z",
|
|
170
|
+
id: "\u8DEF\u5F84",
|
|
171
|
+
fill: "#CCCCCC"
|
|
172
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
173
|
+
d: "M6.5064695,7.57116451 L12.3622921,13.4269871 C12.7171904,13.7818854 12.7171904,14.1959335 12.3622921,14.4916821 L11.1792976,15.6746765 C10.8243993,16.0295749 10.3512015,16.0295749 10.1146026,15.6746765 L4.25878004,9.81885397 C3.9038817,9.46395564 3.9038817,8.99075786 4.25878004,8.75415896 L5.44177449,7.57116451 C5.73752311,7.2754159 6.26987061,7.2754159 6.5064695,7.57116451 L6.5064695,7.57116451 Z",
|
|
174
|
+
id: "\u8DEF\u5F84",
|
|
175
|
+
fill: "#989A98"
|
|
176
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
177
|
+
d: "M16.7985213,20.5249538 L14.5508318,20.5249538 C14.1367837,20.5249538 13.8410351,20.2292052 13.8410351,19.8151571 L13.8410351,18.3955638 C13.8410351,17.9815157 14.1367837,17.6857671 14.5508318,17.6857671 L16.7985213,17.6857671 C17.2125693,17.6857671 17.5083179,17.9815157 17.5083179,18.3955638 L17.5083179,19.8151571 C17.5083179,20.2292052 17.1534196,20.5249538 16.7985213,20.5249538 Z",
|
|
178
|
+
id: "\u8DEF\u5F84",
|
|
179
|
+
fill: "#9ACBCD"
|
|
180
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
181
|
+
d: "M22.7726433,20.5249538 L20.5249538,20.5249538 C20.1109057,20.5249538 19.8151571,20.2292052 19.8151571,19.8151571 L19.8151571,18.3955638 C19.8151571,17.9815157 20.1109057,17.6857671 20.5249538,17.6857671 L22.7726433,17.6857671 C23.1866913,17.6857671 23.4824399,17.9815157 23.4824399,18.3955638 L23.4824399,19.8151571 C23.4824399,20.2292052 23.1275416,20.5249538 22.7726433,20.5249538 Z",
|
|
182
|
+
id: "\u8DEF\u5F84",
|
|
183
|
+
fill: "#63BE8D"
|
|
184
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
185
|
+
d: "M28.7467652,20.5249538 L26.4990758,20.5249538 C26.0850277,20.5249538 25.7892791,20.2292052 25.7892791,19.8151571 L25.7892791,18.3955638 C25.7892791,17.9815157 26.0850277,17.6857671 26.4990758,17.6857671 L28.7467652,17.6857671 C29.1608133,17.6857671 29.4565619,17.9815157 29.4565619,18.3955638 L29.4565619,19.8151571 C29.4565619,20.2292052 29.1608133,20.5249538 28.7467652,20.5249538 Z",
|
|
186
|
+
id: "\u8DEF\u5F84",
|
|
187
|
+
fill: "#4C9472"
|
|
188
|
+
})]
|
|
189
|
+
})
|
|
190
|
+
})
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
export function PreferenceIcon(props) {
|
|
198
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
199
|
+
width: "16px",
|
|
200
|
+
height: "16px",
|
|
201
|
+
viewBox: "0 0 16 16",
|
|
202
|
+
version: "1.1",
|
|
203
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
204
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
205
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
206
|
+
children: "\u653F\u7B56"
|
|
207
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
208
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
209
|
+
stroke: "none",
|
|
210
|
+
strokeWidth: "1",
|
|
211
|
+
fill: "none",
|
|
212
|
+
fillRule: "evenodd",
|
|
213
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
214
|
+
id: "1.2\u5BB9\u5668\u52A0\u8F7D\u5B8C\u6210",
|
|
215
|
+
transform: "translate(-330.000000, -970.000000)",
|
|
216
|
+
fill: "#333333",
|
|
217
|
+
fillRule: "nonzero",
|
|
218
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
219
|
+
id: "\u7F16\u7EC4-19",
|
|
220
|
+
transform: "translate(318.000000, 485.000000)",
|
|
221
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
222
|
+
id: "1.\u901A\u7528/1.Buttons\u6309\u94AE/\u6B21\u6309\u94AE/\u4EAE\u8272/\u9ED8\u8BA4",
|
|
223
|
+
transform: "translate(0.000000, 477.000000)",
|
|
224
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
225
|
+
id: "\u653F\u7B56",
|
|
226
|
+
transform: "translate(12.000000, 8.000000)",
|
|
227
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
228
|
+
id: "\u77E9\u5F62",
|
|
229
|
+
opacity: "0",
|
|
230
|
+
x: "0",
|
|
231
|
+
y: "0",
|
|
232
|
+
width: "16",
|
|
233
|
+
height: "16"
|
|
234
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
235
|
+
d: "M12.75,1.21875 C13.4403594,1.21875 14,1.77839063 14,2.46875 L14,13.71875 C14,14.4091094 13.4403594,14.96875 12.75,14.96875 L3.25,14.96875 C2.55964063,14.96875 2,14.4091094 2,13.71875 L2,2.46875 C2,1.77839063 2.55964063,1.21875 3.25,1.21875 L12.75,1.21875 Z M12.625,2.21875 L3.375,2.21875 C3.16996875,2.21875 3.00335938,2.38329688 3,2.58754688 L3,2.59375 L3,13.59375 C3,13.7987812 3.16454688,13.9653906 3.36879688,13.96875 L3.375,13.96875 L12.625,13.96875 C12.8300312,13.96875 12.9966406,13.8042031 13,13.5999531 L13,13.59375 L13,2.59375 C13,2.38664063 12.8321094,2.21875 12.625,2.21875 Z M9.546875,10.8125 C9.7885,10.8125 9.984375,11.008375 9.984375,11.25 C9.984375,11.491625 9.7885,11.6875 9.546875,11.6875 L6.453125,11.6875 C6.2115,11.6875 6.015625,11.491625 6.015625,11.25 C6.015625,11.008375 6.2115,10.8125 6.453125,10.8125 L9.546875,10.8125 Z M8.1601875,4.02882813 C8.20462702,4.0553597 8.24178093,4.0925136 8.2683125,4.13695312 L9.02409375,5.40295313 L10.4616719,5.73053125 C10.6299531,5.768875 10.7352656,5.93635938 10.6969375,6.10464063 C10.6854328,6.15510708 10.6615726,6.20192551 10.6275,6.24089063 L9.65703125,7.35089062 L9.78971875,8.81932812 C9.80525,8.99121875 9.6785,9.14315625 9.50660938,9.15870312 C9.45505494,9.16335719 9.40315181,9.15513173 9.3555625,9.13476562 L8,8.55479687 L6.6444375,9.13476562 C6.48576563,9.20265625 6.30209375,9.1290625 6.23420313,8.97039063 C6.21384768,8.92279861 6.20563297,8.87089558 6.21029688,8.81934375 L6.34298438,7.35090625 L5.3725,6.24090625 C5.25890625,6.11096875 5.27214063,5.9135625 5.4020625,5.79995312 C5.44103371,5.76588389 5.48785764,5.74202898 5.53832813,5.73053125 L6.97590625,5.40295312 L7.7316875,4.13696875 C7.82014063,3.98878125 8.012,3.94035937 8.1601875,4.02882812 L8.1601875,4.02882813 Z M8,5.39451563 L7.72720313,5.85146875 C7.60636908,6.05387353 7.4089789,6.19896134 7.17973437,6.253875 L7.17029688,6.25607813 L6.65140625,6.3743125 L7.00171875,6.77496875 C7.15681545,6.95236874 7.23380542,7.18482584 7.21526562,7.41973438 L7.21442187,7.42964063 L7.16651562,7.95967188 L7.6558125,7.75032813 C7.87231708,7.65769697 8.11701986,7.65624373 8.33460937,7.74629687 L8.3441875,7.75032812 L8.83346875,7.95967188 L8.78557813,7.42964062 C8.76437203,7.19496173 8.83871418,6.96164896 8.99178125,6.7825 L8.99829687,6.77496875 L9.34857812,6.3743125 L8.82970312,6.25607812 C8.59986016,6.20371166 8.40086964,6.06082067 8.27779687,5.85976562 L8.27279687,5.85146875 L8,5.39451563 Z",
|
|
236
|
+
id: "\u5F62\u72B6"
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
239
|
+
})
|
|
240
|
+
})
|
|
241
|
+
})
|
|
242
|
+
})]
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
export function KeybindIcon(props) {
|
|
246
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
247
|
+
width: "16px",
|
|
248
|
+
height: "16px",
|
|
249
|
+
viewBox: "0 0 16 16",
|
|
250
|
+
version: "1.1",
|
|
251
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
252
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
253
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
254
|
+
children: "\u952E\u76D8"
|
|
255
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
256
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
257
|
+
stroke: "none",
|
|
258
|
+
strokeWidth: "1",
|
|
259
|
+
fill: "none",
|
|
260
|
+
fillRule: "evenodd",
|
|
261
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
262
|
+
id: "1.2\u5BB9\u5668\u52A0\u8F7D\u5B8C\u6210",
|
|
263
|
+
transform: "translate(-446.000000, -970.000000)",
|
|
264
|
+
fill: "#333333",
|
|
265
|
+
fillRule: "nonzero",
|
|
266
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
267
|
+
id: "\u7F16\u7EC4-19",
|
|
268
|
+
transform: "translate(318.000000, 485.000000)",
|
|
269
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
270
|
+
id: "1.\u901A\u7528/1.Buttons\u6309\u94AE/\u6B21\u6309\u94AE/\u4EAE\u8272/\u9ED8\u8BA4\u5907\u4EFD",
|
|
271
|
+
transform: "translate(116.000000, 477.000000)",
|
|
272
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
273
|
+
id: "\u952E\u76D8",
|
|
274
|
+
transform: "translate(12.000000, 8.000000)",
|
|
275
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
276
|
+
id: "\u77E9\u5F62",
|
|
277
|
+
opacity: "0",
|
|
278
|
+
x: "0",
|
|
279
|
+
y: "0",
|
|
280
|
+
width: "16",
|
|
281
|
+
height: "16"
|
|
282
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
283
|
+
d: "M8.02795313,14.6607969 C6.25348438,14.6607969 4.58695313,13.9706562 3.33351563,12.7172187 C2.08007812,11.4637812 1.3899375,9.79725 1.3899375,8.02276562 C1.3899375,6.24828125 2.0800625,4.58171875 3.33351563,3.32828125 C5.920125,0.74159375 10.1358281,0.74159375 12.7224531,3.32828125 C15.3091406,5.91496875 15.3091406,10.1306094 12.7224531,12.7172344 C11.4690156,13.9706719 9.80248438,14.6607969 8.02801563,14.6607969 L8.02795313,14.6607969 Z M8.02795312,2.37995312 C6.58204687,2.37995312 5.13620312,2.93390625 4.03764062,4.03239062 C2.97201562,5.09809375 2.3851875,6.51114062 2.3851875,8.02276562 C2.3851875,9.53439063 2.97201562,10.9473906 4.03764062,12.0130781 C5.10334375,13.0787031 6.52103125,13.6701719 8.02795312,13.6655584 C9.53965625,13.6655584 10.9526406,13.0787031 12.0182656,12.0130781 C14.2200156,9.8113125 14.2200156,6.23417187 12.0182656,4.03245312 C10.9197656,2.93390625 9.47385937,2.37995312 8.02795312,2.37995312 L8.02795312,2.37995312 Z",
|
|
284
|
+
id: "\u5F62\u72B6"
|
|
285
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
286
|
+
d: "M4.97925,5.33915361 L5.70290625,5.33915361 C5.87551563,5.33915361 6.00829952,5.4719375 6.00829952,5.63790625 L6.00829952,6.3615625 C6.00863092,6.44089786 5.97726285,6.51708034 5.92116378,6.5731794 C5.86506471,6.62927847 5.78888224,6.66064655 5.70954688,6.6603125 L4.97925,6.6603125 C4.81328125,6.66695313 4.68049736,6.53417188 4.68049736,6.36820313 L4.68049736,5.63790625 C4.68016595,5.55857089 4.71153403,5.48238841 4.7676331,5.42628935 C4.82373216,5.37019028 4.89991464,5.3388222 4.97925,5.33915361 L4.97925,5.33915361 Z M7.63485937,5.33915361 L8.3585,5.33915361 C8.531125,5.33915361 8.66390889,5.4719375 8.66390889,5.63790625 L8.66390889,6.3615625 C8.6642403,6.44089786 8.63287222,6.51708034 8.57677315,6.5731794 C8.52067409,6.62927847 8.44449161,6.66064655 8.36515625,6.6603125 L7.63484375,6.6603125 C7.468875,6.66695313 7.33609111,6.53417188 7.33609111,6.36820313 L7.33609111,5.63790625 C7.3357597,5.55857089 7.36712778,5.48238841 7.42322685,5.42628935 C7.47932591,5.37019028 7.55550839,5.3388222 7.63484375,5.33915361 L7.63485937,5.33915361 Z M10.2904531,5.33915361 L11.0141094,5.33915361 C11.1867188,5.33915361 11.3195026,5.4719375 11.3195026,5.63790625 L11.3195026,6.3615625 C11.319834,6.44089786 11.288466,6.51708034 11.2323669,6.5731794 C11.1762678,6.62927847 11.1000854,6.66064655 11.02075,6.6603125 L10.2904531,6.6603125 C10.1244844,6.66695313 9.99170048,6.53417188 9.99170048,6.36820313 L9.99170048,5.63790625 C9.99136908,5.55857089 10.0227372,5.48238841 10.0788362,5.42628935 C10.1349353,5.37019028 10.2111178,5.3388222 10.2904531,5.33915361 L10.2904531,5.33915361 Z M4.97925,7.33085673 L5.70290625,7.33085673 C5.78224161,7.33052533 5.85842409,7.3618934 5.91452315,7.41799247 C5.97062222,7.47409154 6.0019903,7.55027401 6.00165889,7.62960938 L6.00165889,8.35326563 C6.0019903,8.43260099 5.97062222,8.50878346 5.91452315,8.56488253 C5.85842409,8.6209816 5.78224161,8.65234967 5.70290625,8.65201563 L4.97925,8.65201563 C4.81328125,8.65865625 4.68049736,8.525875 4.68049736,8.35990625 L4.68049736,7.62960938 C4.68016595,7.55027401 4.71153403,7.47409154 4.7676331,7.41799247 C4.82373216,7.3618934 4.89991464,7.33052533 4.97925,7.33085673 L4.97925,7.33085673 Z M7.63485937,7.33085673 L8.3585,7.33085673 C8.43783536,7.33052533 8.51401784,7.3618934 8.5701169,7.41799247 C8.62621597,7.47409154 8.65758405,7.55027401 8.65725264,7.62960938 L8.65725264,8.35326563 C8.65758405,8.43260099 8.62621597,8.50878346 8.5701169,8.56488253 C8.51401784,8.6209816 8.43783536,8.65234967 8.3585,8.65201563 L7.63485937,8.65201563 C7.468875,8.65865625 7.33610673,8.525875 7.33610673,8.35990625 L7.33610673,7.62960938 C7.33577533,7.55027401 7.3671434,7.47409154 7.42324247,7.41799247 C7.47934154,7.3618934 7.55552401,7.33052533 7.63485937,7.33085673 L7.63485937,7.33085673 Z M10.2904531,7.33085673 L11.0141094,7.33085673 C11.0934447,7.33052533 11.1696272,7.3618934 11.2257263,7.41799247 C11.2818253,7.47409154 11.3131934,7.55027401 11.312862,7.62960938 L11.312862,8.35326563 C11.3131934,8.43260099 11.2818253,8.50878346 11.2257263,8.56488253 C11.1696272,8.6209816 11.0934447,8.65234967 11.0141094,8.65201563 L10.2904531,8.65201563 C10.1244844,8.65865625 9.99170048,8.525875 9.99170048,8.35990625 L9.99170048,7.62960938 C9.99136908,7.55027401 10.0227372,7.47409154 10.0788362,7.41799247 C10.1349353,7.3618934 10.2111178,7.33052533 10.2904531,7.33085673 Z M7.170125,10.3184063 L8.829875,10.3184063 C9.1020625,10.3184063 9.32779687,10.544125 9.32779687,10.8163281 C9.32779687,11.0885313 9.10207812,11.31425 8.829875,11.31425 L7.170125,11.31425 C6.8979375,11.31425 6.67220312,11.0885313 6.67220312,10.8163281 C6.67220312,10.544125 6.89792187,10.3184063 7.170125,10.3184063 Z",
|
|
287
|
+
id: "\u5F62\u72B6"
|
|
288
|
+
})]
|
|
289
|
+
})
|
|
290
|
+
})
|
|
291
|
+
})
|
|
292
|
+
})
|
|
293
|
+
})]
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
export function SuccIcon(props) {
|
|
297
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
298
|
+
width: "24px",
|
|
299
|
+
height: "12px",
|
|
300
|
+
viewBox: "0 0 24 12",
|
|
301
|
+
version: "1.1",
|
|
302
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
303
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
304
|
+
className: "libro-lab-success",
|
|
305
|
+
children: [/*#__PURE__*/_jsx("title", {
|
|
306
|
+
children: "\u7F16\u7EC4 12"
|
|
307
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
308
|
+
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
309
|
+
stroke: "none",
|
|
310
|
+
strokeWidth: "1",
|
|
311
|
+
fill: "none",
|
|
312
|
+
fillRule: "evenodd",
|
|
313
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
314
|
+
id: "1.2\u5BB9\u5668\u52A0\u8F7D\u5B8C\u6210",
|
|
315
|
+
transform: "translate(-1392.000000, -1073.000000)",
|
|
316
|
+
fill: "#52C41A",
|
|
317
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
318
|
+
id: "\u7F16\u7EC4-26",
|
|
319
|
+
transform: "translate(24.000000, 1070.000000)",
|
|
320
|
+
children: /*#__PURE__*/_jsx("g", {
|
|
321
|
+
id: "\u7F16\u7EC4-3",
|
|
322
|
+
transform: "translate(1252.000000, 0.000000)",
|
|
323
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
324
|
+
id: "\u7F16\u7EC4-12",
|
|
325
|
+
transform: "translate(116.000000, 3.000000)",
|
|
326
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
327
|
+
id: "\u77E9\u5F62\u5907\u4EFD-13",
|
|
328
|
+
x: "20",
|
|
329
|
+
y: "0",
|
|
330
|
+
width: "4",
|
|
331
|
+
height: "12",
|
|
332
|
+
rx: "1"
|
|
333
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
334
|
+
id: "\u77E9\u5F62\u5907\u4EFD-12",
|
|
335
|
+
x: "15",
|
|
336
|
+
y: "0",
|
|
337
|
+
width: "4",
|
|
338
|
+
height: "12",
|
|
339
|
+
rx: "1"
|
|
340
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
341
|
+
id: "\u77E9\u5F62\u5907\u4EFD-11",
|
|
342
|
+
x: "10",
|
|
343
|
+
y: "0",
|
|
344
|
+
width: "4",
|
|
345
|
+
height: "12",
|
|
346
|
+
rx: "1"
|
|
347
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
348
|
+
id: "\u77E9\u5F62\u5907\u4EFD-10",
|
|
349
|
+
x: "5",
|
|
350
|
+
y: "0",
|
|
351
|
+
width: "4",
|
|
352
|
+
height: "12",
|
|
353
|
+
rx: "1"
|
|
354
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
355
|
+
id: "\u77E9\u5F62",
|
|
356
|
+
x: "0",
|
|
357
|
+
y: "0",
|
|
358
|
+
width: "4",
|
|
359
|
+
height: "12",
|
|
360
|
+
rx: "1"
|
|
361
|
+
})]
|
|
362
|
+
})
|
|
363
|
+
})
|
|
364
|
+
})
|
|
365
|
+
})
|
|
366
|
+
})]
|
|
367
|
+
});
|
|
368
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./icon.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { BaseView } from '@difizen/mana-app';
|
|
3
|
+
export declare const GithubLinkComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare class GithubLinkView extends BaseView {
|
|
5
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
link: string;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/github-link/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,mFAW9B,CAAC;AAEH,qBAEa,cAAe,SAAQ,QAAQ;IACjC,IAAI,oFAAuB;IACpC,IAAI,SAAM;;CAIX"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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, _dec2, _class;
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
+
import { GithubFilled } from '@ant-design/icons';
|
|
16
|
+
import { singleton, view } from '@difizen/mana-app';
|
|
17
|
+
import { BaseView } from '@difizen/mana-app';
|
|
18
|
+
import { forwardRef } from 'react';
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
export var GithubLinkComponent = /*#__PURE__*/forwardRef(function GithubLinkComponent() {
|
|
21
|
+
return /*#__PURE__*/_jsx("a", {
|
|
22
|
+
href: "https://github.com/difizen/libro",
|
|
23
|
+
target: "_blank",
|
|
24
|
+
rel: "noreferrer",
|
|
25
|
+
style: {
|
|
26
|
+
fontSize: 24
|
|
27
|
+
},
|
|
28
|
+
children: /*#__PURE__*/_jsx(GithubFilled, {})
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export var GithubLinkView = (_dec = singleton(), _dec2 = view('github-link'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_BaseView) {
|
|
32
|
+
_inherits(GithubLinkView, _BaseView);
|
|
33
|
+
var _super = _createSuper(GithubLinkView);
|
|
34
|
+
function GithubLinkView() {
|
|
35
|
+
var _this;
|
|
36
|
+
_classCallCheck(this, GithubLinkView);
|
|
37
|
+
_this = _super.call(this);
|
|
38
|
+
_this.view = GithubLinkComponent;
|
|
39
|
+
_this.link = '';
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
return _createClass(GithubLinkView);
|
|
43
|
+
}(BaseView)) || _class) || _class);
|
package/es/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './module.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/es/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./module.js";
|
package/es/index.less
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#libro-lab-content-layout-left {
|
|
2
|
+
.mana-side-tab-view {
|
|
3
|
+
.mana-tabs-left {
|
|
4
|
+
.mana-tabs-nav {
|
|
5
|
+
background-color: #f0f2f51f;
|
|
6
|
+
min-width: 40px;
|
|
7
|
+
box-shadow:
|
|
8
|
+
1px 0 0 0 rgba(0, 10, 26, 0.84%),
|
|
9
|
+
2px 0 0 0 rgba(255, 255, 255, 4.8%);
|
|
10
|
+
|
|
11
|
+
.mana-tabs-ink-bar {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.mana-tabs-tab {
|
|
16
|
+
width: 40px;
|
|
17
|
+
height: 40px;
|
|
18
|
+
|
|
19
|
+
&-btn {
|
|
20
|
+
width: 24px;
|
|
21
|
+
height: 24px;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
|
|
27
|
+
.mana-tab-icon {
|
|
28
|
+
.anticon {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mana-tabs-tab-active {
|
|
36
|
+
.mana-tabs-tab-btn {
|
|
37
|
+
background-color: #000a1a1f;
|
|
38
|
+
|
|
39
|
+
.mana-tab-icon {
|
|
40
|
+
color: #1890ff;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.mana-tabs-content-holder {
|
|
47
|
+
background-image: linear-gradient(269deg, #c8c8cd1f 0%, #ffffff1f 100%);
|
|
48
|
+
border-left: none;
|
|
49
|
+
background-color: unset;
|
|
50
|
+
|
|
51
|
+
.mana-tab-side-pane-content {
|
|
52
|
+
height: calc(100% - 32px);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#libro-lab-content-layout-main {
|
|
60
|
+
background-color: #f8f8fb;
|
|
61
|
+
|
|
62
|
+
.mana-tabs-nav {
|
|
63
|
+
background-color: #f8f8fb;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#libro-lab-content-layout-main-container {
|
|
68
|
+
overflow: auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.default-folder-icon,
|
|
72
|
+
.default-file-icon {
|
|
73
|
+
color: rgba(0, 0, 0, 45%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mana-tree-node-segment-grow {
|
|
77
|
+
color: rgba(0, 0, 0, 65%);
|
|
78
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
import { BaseView } from '@difizen/mana-app';
|
|
3
|
+
export declare const KernelManagerComponent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare class KernelManagerView extends BaseView {
|
|
5
|
+
view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel-manager/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,eAAO,MAAM,sBAAsB,mFAEjC,CAAC;AAEH,qBAEa,iBAAkB,SAAQ,QAAQ;IACpC,IAAI,oFAA0B;;CAOxC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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, _dec2, _class;
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
+
import { CodeFilled } from '@ant-design/icons';
|
|
16
|
+
import { singleton, view } from '@difizen/mana-app';
|
|
17
|
+
import { BaseView } from '@difizen/mana-app';
|
|
18
|
+
import { forwardRef } from 'react';
|
|
19
|
+
|
|
20
|
+
// import './index.less';
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
export var KernelManagerComponent = /*#__PURE__*/forwardRef(function KernelManagerComponent() {
|
|
23
|
+
return /*#__PURE__*/_jsx("span", {
|
|
24
|
+
children: "\u6682\u65E0\u6587\u4EF6"
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export var KernelManagerView = (_dec = singleton(), _dec2 = view('kernel-manager'), _dec(_class = _dec2(_class = /*#__PURE__*/function (_BaseView) {
|
|
28
|
+
_inherits(KernelManagerView, _BaseView);
|
|
29
|
+
var _super = _createSuper(KernelManagerView);
|
|
30
|
+
function KernelManagerView() {
|
|
31
|
+
var _this;
|
|
32
|
+
_classCallCheck(this, KernelManagerView);
|
|
33
|
+
_this = _super.call(this);
|
|
34
|
+
_this.view = KernelManagerComponent;
|
|
35
|
+
_this.title.icon = /*#__PURE__*/_jsx(CodeFilled, {});
|
|
36
|
+
_this.title.label = 'Kernel 管理';
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
return _createClass(KernelManagerView);
|
|
40
|
+
}(BaseView)) || _class) || _class);
|
package/es/lab-app.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LibroService, ServerConnection, ServerManager } from '@difizen/libro-jupyter';
|
|
2
|
+
import { ConfigurationService, ApplicationContribution, SlotViewManager, ViewManager } from '@difizen/mana-app';
|
|
3
|
+
import { LayoutService } from './layout/layout-service.js';
|
|
4
|
+
export declare class LibroLabApp implements ApplicationContribution {
|
|
5
|
+
serverConnection: ServerConnection;
|
|
6
|
+
libroService: LibroService;
|
|
7
|
+
slotViewManager: SlotViewManager;
|
|
8
|
+
viewManager: ViewManager;
|
|
9
|
+
configurationService: ConfigurationService;
|
|
10
|
+
serverManager: ServerManager;
|
|
11
|
+
layoutService: LayoutService;
|
|
12
|
+
onStart(): Promise<void>;
|
|
13
|
+
protected initialWorkspace(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=lab-app.d.ts.map
|