@difizen/libro-lab 0.1.0 → 0.1.2
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/config/config-contribution.d.ts +7 -0
- package/es/config/config-contribution.d.ts.map +1 -0
- package/es/config/config-contribution.js +34 -0
- package/es/config/index.d.ts +2 -0
- package/es/config/index.d.ts.map +1 -0
- package/es/config/index.js +1 -0
- package/es/github-link/index.d.ts +9 -0
- package/es/github-link/index.d.ts.map +1 -0
- package/es/index.less +9 -0
- package/es/kernel-manager/index.d.ts +8 -0
- package/es/kernel-manager/index.d.ts.map +1 -0
- package/es/lab-app.d.ts +4 -1
- package/es/lab-app.d.ts.map +1 -1
- package/es/lab-app.js +26 -5
- 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 +1 -1
- package/es/layout/container.d.ts +8 -0
- package/es/layout/container.d.ts.map +1 -0
- package/es/layout/content-bottom-tab-view.d.ts +8 -0
- package/es/layout/content-bottom-tab-view.d.ts.map +1 -0
- package/es/layout/content-bottom-tab-view.js +49 -0
- package/es/layout/footer/current-file-footer-view.d.ts +1 -2
- package/es/layout/footer/current-file-footer-view.d.ts.map +1 -1
- package/es/layout/footer/current-file-footer-view.js +3 -7
- 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/index.less +10 -7
- 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/layout-service.d.ts +15 -0
- package/es/layout/layout-service.d.ts.map +1 -0
- package/es/layout/layout-service.js +19 -15
- package/es/layout/layout.d.ts +12 -0
- package/es/layout/layout.d.ts.map +1 -0
- package/es/layout/layout.js +43 -6
- package/es/layout/main.d.ts.map +1 -1
- package/es/layout/main.js +0 -1
- package/es/layout/module.d.ts.map +1 -1
- package/es/layout/module.js +7 -2
- package/es/layout/protocol.d.ts +17 -0
- package/es/layout/protocol.d.ts.map +1 -0
- package/es/layout/protocol.js +2 -1
- package/es/layout/{editor-tab-view.d.ts → saveable-tab-view.d.ts} +2 -2
- package/es/layout/saveable-tab-view.d.ts.map +1 -0
- package/es/layout/{editor-tab-view.js → saveable-tab-view.js} +9 -10
- 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-command.d.ts +139 -0
- package/es/menu/menu-command.d.ts.map +1 -0
- package/es/menu/menu-contribution.d.ts +6 -1
- package/es/menu/menu-contribution.d.ts.map +1 -1
- package/es/menu/menu-contribution.js +37 -4
- package/es/module.d.ts.map +1 -1
- package/es/module.js +12 -4
- package/es/toc/libro-toc-panel-view.d.ts.map +1 -1
- package/es/toc/libro-toc-panel-view.js +2 -1
- 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 +30 -7
- package/es/welcome/index.less +99 -0
- package/package.json +9 -5
- package/src/common/icon.tsx +300 -0
- package/src/common/index.less +8 -0
- package/src/common/index.tsx +1 -0
- package/src/config/config-contribution.ts +12 -0
- package/src/config/index.ts +1 -0
- package/src/index.less +9 -0
- package/src/index.spec.ts +0 -1
- package/src/lab-app.ts +16 -1
- package/src/layout/brand/index.tsx +1 -1
- package/src/layout/content-bottom-tab-view.tsx +18 -0
- package/src/layout/footer/current-file-footer-view.tsx +3 -7
- package/src/layout/footer/index.less +10 -7
- package/src/layout/footer/status-footer-view.tsx +45 -0
- package/src/layout/layout-service.ts +9 -8
- package/src/layout/layout.tsx +29 -1
- package/src/layout/main.tsx +0 -1
- package/src/layout/module.ts +10 -2
- package/src/layout/protocol.tsx +8 -0
- package/src/layout/{editor-tab-view.tsx → saveable-tab-view.tsx} +4 -5
- package/src/menu/menu-contribution.ts +24 -1
- package/src/module.tsx +15 -2
- package/src/toc/libro-toc-panel-view.tsx +2 -1
- package/src/welcome/entry-point-view.tsx +169 -0
- package/src/welcome/index.less +99 -0
- package/src/welcome/index.tsx +40 -7
- package/es/layout/brand/logo.js +0 -41
- package/es/layout/editor-tab-view.d.ts.map +0 -1
- package/es/toc/libro-toc-icons.d.ts +0 -7
- package/es/toc/libro-toc-icons.d.ts.map +0 -1
- package/es/toc/libro-toc-icons.js +0 -38
- package/es/welcome/welcome-icon.js +0 -66
- package/src/layout/brand/logo.tsx +0 -39
- package/src/toc/libro-toc-icons.tsx +0 -35
- package/src/welcome/welcome-icon.tsx +0 -64
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export function WelcomeIcon(props) {
|
|
4
|
-
return /*#__PURE__*/_jsx("svg", {
|
|
5
|
-
width: "12px",
|
|
6
|
-
height: "12px",
|
|
7
|
-
viewBox: "0 0 12 12",
|
|
8
|
-
version: "1.1",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
11
|
-
className: props.className,
|
|
12
|
-
children: /*#__PURE__*/_jsx("g", {
|
|
13
|
-
id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
|
|
14
|
-
stroke: "none",
|
|
15
|
-
strokeWidth: "1",
|
|
16
|
-
fill: "none",
|
|
17
|
-
fillRule: "evenodd",
|
|
18
|
-
children: /*#__PURE__*/_jsx("g", {
|
|
19
|
-
id: "1.2\u5BB9\u5668\u52A0\u8F7D\u5B8C\u6210",
|
|
20
|
-
transform: "translate(-270.000000, -66.000000)",
|
|
21
|
-
fillRule: "nonzero",
|
|
22
|
-
children: /*#__PURE__*/_jsx("g", {
|
|
23
|
-
id: "\u7F16\u7EC4-17",
|
|
24
|
-
transform: "translate(262.000000, 56.000000)",
|
|
25
|
-
children: /*#__PURE__*/_jsxs("g", {
|
|
26
|
-
id: "setting-fill",
|
|
27
|
-
transform: "translate(8.000000, 10.000000)",
|
|
28
|
-
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
-
id: "\u77E9\u5F62",
|
|
30
|
-
fill: "#000000",
|
|
31
|
-
opacity: "0",
|
|
32
|
-
x: "0",
|
|
33
|
-
y: "0",
|
|
34
|
-
width: "12",
|
|
35
|
-
height: "11.7"
|
|
36
|
-
}), /*#__PURE__*/_jsxs("g", {
|
|
37
|
-
id: "sql",
|
|
38
|
-
transform: "translate(1.000000, 1.000000)",
|
|
39
|
-
children: [/*#__PURE__*/_jsx("rect", {
|
|
40
|
-
id: "\u77E9\u5F62",
|
|
41
|
-
fill: "#000000",
|
|
42
|
-
opacity: "0",
|
|
43
|
-
x: "0",
|
|
44
|
-
y: "0",
|
|
45
|
-
width: "10",
|
|
46
|
-
height: "10"
|
|
47
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
48
|
-
d: "M0.33,6.17 C0.33,7 2.42,7.67 5,7.67 C7.57,7.67 9.66,7 9.67,6.17 L9.67,4.98 C8.71,5.67 6.85,6 5,6 C3.15,6 1.29,5.67 0.33,4.97 L0.33,6.17 Z",
|
|
49
|
-
id: "\u8DEF\u5F84",
|
|
50
|
-
fill: "#FAAD14"
|
|
51
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
52
|
-
d: "M9.67,7.3 C8.71,8 6.85,8.33 5,8.33 C3.15,8.33 1.29,8 0.33,7.3 L0.33,8.66 C0.59,9.42 2.6,10 5,10 C7.4,10 9.41,9.42 9.67,8.67 L9.67,7.3 L9.67,7.3 Z M0.33,3.83 C0.33,4.66 2.42,5.33 5,5.33 C7.57,5.33 9.66,4.66 9.67,3.83 L9.67,2.64 C8.71,3.34 6.85,3.67 5,3.67 C3.15,3.67 1.29,3.34 0.33,2.64 L0.33,3.83 Z",
|
|
53
|
-
id: "\u5F62\u72B6",
|
|
54
|
-
fill: "#FAAD14"
|
|
55
|
-
}), /*#__PURE__*/_jsx("path", {
|
|
56
|
-
d: "M0.33,1.5 C0.33,2.32842712 2.42083022,3 5,3 C7.57916978,3 9.67,2.32842712 9.67,1.5 C9.67,0.671572875 7.57916978,0 5,0 C2.42083022,0 0.33,0.671572875 0.33,1.5 Z",
|
|
57
|
-
id: "\u8DEF\u5F84",
|
|
58
|
-
fill: "#FAAD14"
|
|
59
|
-
})]
|
|
60
|
-
})]
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
});
|
|
66
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface IProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
width?: string;
|
|
4
|
-
height?: string;
|
|
5
|
-
}
|
|
6
|
-
export function Logo(props: IProps) {
|
|
7
|
-
const { className = '' } = props;
|
|
8
|
-
return (
|
|
9
|
-
<svg
|
|
10
|
-
viewBox="0 0 154 116"
|
|
11
|
-
className={className}
|
|
12
|
-
version="1.1"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
15
|
-
>
|
|
16
|
-
<g id="页面-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
17
|
-
<g id="画板备份-6" transform="translate(-119.000000, -152.000000)">
|
|
18
|
-
<g id="Libro-logo" transform="translate(119.000000, 152.000000)">
|
|
19
|
-
<path
|
|
20
|
-
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"
|
|
21
|
-
id="形状结合"
|
|
22
|
-
fill="#155DE2"
|
|
23
|
-
></path>
|
|
24
|
-
<path
|
|
25
|
-
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"
|
|
26
|
-
id="矩形"
|
|
27
|
-
fill="#155DE2"
|
|
28
|
-
></path>
|
|
29
|
-
<path
|
|
30
|
-
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"
|
|
31
|
-
id="形状结合"
|
|
32
|
-
fill="#12D8C6"
|
|
33
|
-
></path>
|
|
34
|
-
</g>
|
|
35
|
-
</g>
|
|
36
|
-
</g>
|
|
37
|
-
</svg>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface IProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
width?: string;
|
|
4
|
-
height?: string;
|
|
5
|
-
}
|
|
6
|
-
export function TocIcon(props: IProps) {
|
|
7
|
-
return (
|
|
8
|
-
<svg
|
|
9
|
-
width="12px"
|
|
10
|
-
height="14px"
|
|
11
|
-
viewBox="0 0 12 14"
|
|
12
|
-
version="1.1"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
15
|
-
>
|
|
16
|
-
<title>source</title>
|
|
17
|
-
<g id="代码片段" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
18
|
-
<g
|
|
19
|
-
id="1.4编辑状态备份"
|
|
20
|
-
transform="translate(-14.000000, -215.000000)"
|
|
21
|
-
fill="currentColor"
|
|
22
|
-
>
|
|
23
|
-
<g id="编组-2" transform="translate(0.000000, 56.000000)">
|
|
24
|
-
<g id="source" transform="translate(14.359615, 159.750439)">
|
|
25
|
-
<path
|
|
26
|
-
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"
|
|
27
|
-
id="Path"
|
|
28
|
-
></path>
|
|
29
|
-
</g>
|
|
30
|
-
</g>
|
|
31
|
-
</g>
|
|
32
|
-
</g>
|
|
33
|
-
</svg>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export interface IProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
}
|
|
4
|
-
export function WelcomeIcon(props: IProps) {
|
|
5
|
-
return (
|
|
6
|
-
<svg
|
|
7
|
-
width="12px"
|
|
8
|
-
height="12px"
|
|
9
|
-
viewBox="0 0 12 12"
|
|
10
|
-
version="1.1"
|
|
11
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
13
|
-
className={props.className}
|
|
14
|
-
>
|
|
15
|
-
<g id="整体框架部分" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
16
|
-
<g
|
|
17
|
-
id="1.2容器加载完成"
|
|
18
|
-
transform="translate(-270.000000, -66.000000)"
|
|
19
|
-
fillRule="nonzero"
|
|
20
|
-
>
|
|
21
|
-
<g id="编组-17" transform="translate(262.000000, 56.000000)">
|
|
22
|
-
<g id="setting-fill" transform="translate(8.000000, 10.000000)">
|
|
23
|
-
<rect
|
|
24
|
-
id="矩形"
|
|
25
|
-
fill="#000000"
|
|
26
|
-
opacity="0"
|
|
27
|
-
x="0"
|
|
28
|
-
y="0"
|
|
29
|
-
width="12"
|
|
30
|
-
height="11.7"
|
|
31
|
-
></rect>
|
|
32
|
-
<g id="sql" transform="translate(1.000000, 1.000000)">
|
|
33
|
-
<rect
|
|
34
|
-
id="矩形"
|
|
35
|
-
fill="#000000"
|
|
36
|
-
opacity="0"
|
|
37
|
-
x="0"
|
|
38
|
-
y="0"
|
|
39
|
-
width="10"
|
|
40
|
-
height="10"
|
|
41
|
-
></rect>
|
|
42
|
-
<path
|
|
43
|
-
d="M0.33,6.17 C0.33,7 2.42,7.67 5,7.67 C7.57,7.67 9.66,7 9.67,6.17 L9.67,4.98 C8.71,5.67 6.85,6 5,6 C3.15,6 1.29,5.67 0.33,4.97 L0.33,6.17 Z"
|
|
44
|
-
id="路径"
|
|
45
|
-
fill="#FAAD14"
|
|
46
|
-
></path>
|
|
47
|
-
<path
|
|
48
|
-
d="M9.67,7.3 C8.71,8 6.85,8.33 5,8.33 C3.15,8.33 1.29,8 0.33,7.3 L0.33,8.66 C0.59,9.42 2.6,10 5,10 C7.4,10 9.41,9.42 9.67,8.67 L9.67,7.3 L9.67,7.3 Z M0.33,3.83 C0.33,4.66 2.42,5.33 5,5.33 C7.57,5.33 9.66,4.66 9.67,3.83 L9.67,2.64 C8.71,3.34 6.85,3.67 5,3.67 C3.15,3.67 1.29,3.34 0.33,2.64 L0.33,3.83 Z"
|
|
49
|
-
id="形状"
|
|
50
|
-
fill="#FAAD14"
|
|
51
|
-
></path>
|
|
52
|
-
<path
|
|
53
|
-
d="M0.33,1.5 C0.33,2.32842712 2.42083022,3 5,3 C7.57916978,3 9.67,2.32842712 9.67,1.5 C9.67,0.671572875 7.57916978,0 5,0 C2.42083022,0 0.33,0.671572875 0.33,1.5 Z"
|
|
54
|
-
id="路径"
|
|
55
|
-
fill="#FAAD14"
|
|
56
|
-
></path>
|
|
57
|
-
</g>
|
|
58
|
-
</g>
|
|
59
|
-
</g>
|
|
60
|
-
</g>
|
|
61
|
-
</g>
|
|
62
|
-
</svg>
|
|
63
|
-
);
|
|
64
|
-
}
|