@midscene/visualizer 0.0.1 → 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.
- package/dist/es/component/assets/logo-plain.js +128 -0
- package/dist/es/component/assets/logo-plain2.js +128 -0
- package/dist/es/component/detail-panel.js +2 -2
- package/dist/es/component/detail-side.css +1 -1
- package/dist/es/component/detail-side.js +10 -1
- package/dist/es/component/global-hover-preview.css +1 -1
- package/dist/es/component/sidebar.css +2 -1
- package/dist/es/component/sidebar.js +19 -12
- package/dist/es/component/store.js +4 -4
- package/dist/es/component/timeline.js +1 -1
- package/dist/es/index.css +2 -2
- package/dist/es/index.js +11 -6
- package/dist/lib/component/assets/logo-plain.js +156 -0
- package/dist/lib/component/assets/logo-plain2.js +156 -0
- package/dist/lib/component/detail-panel.js +2 -2
- package/dist/lib/component/detail-side.css +1 -1
- package/dist/lib/component/detail-side.js +10 -1
- package/dist/lib/component/global-hover-preview.css +1 -1
- package/dist/lib/component/sidebar.css +2 -1
- package/dist/lib/component/sidebar.js +19 -12
- package/dist/lib/component/store.js +4 -4
- package/dist/lib/component/timeline.js +1 -1
- package/dist/lib/index.css +2 -2
- package/dist/lib/index.js +15 -6
- package/dist/types/component/sidebar.d.ts +4 -1
- package/dist/types/index.d.ts +7 -2
- package/package.json +9 -4
- package/.eslintrc.js +0 -9
- package/dist/es/assets/logo-plain.16842bbc.svg +0 -70
- package/dist/es/assets/logo-plain2.16842bbc.svg +0 -70
- package/dist/lib/assets/logo-plain.16842bbc.svg +0 -70
- package/dist/lib/assets/logo-plain2.16842bbc.svg +0 -70
- package/docs/index.tsx +0 -6
- package/modern.config.ts +0 -15
- package/src/component/assets/logo-plain.svg +0 -70
- package/src/component/assets/logo-plain2.svg +0 -70
- package/src/component/blackboard.less +0 -37
- package/src/component/blackboard.tsx +0 -293
- package/src/component/color.tsx +0 -34
- package/src/component/common.less +0 -21
- package/src/component/detail-panel.less +0 -47
- package/src/component/detail-panel.tsx +0 -124
- package/src/component/detail-side.less +0 -131
- package/src/component/detail-side.tsx +0 -361
- package/src/component/global-hover-preview.less +0 -23
- package/src/component/global-hover-preview.tsx +0 -50
- package/src/component/misc.tsx +0 -20
- package/src/component/panel-title.less +0 -11
- package/src/component/panel-title.tsx +0 -11
- package/src/component/side-item.tsx +0 -0
- package/src/component/sidebar.less +0 -122
- package/src/component/sidebar.tsx +0 -205
- package/src/component/store.tsx +0 -151
- package/src/component/timeline.less +0 -25
- package/src/component/timeline.tsx +0 -486
- package/src/global.d.ts +0 -11
- package/src/index.less +0 -113
- package/src/index.tsx +0 -210
- package/src/utils.ts +0 -58
- package/tsconfig.json +0 -24
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import * as React from "react";
|
|
22
|
+
const SvgLogoPlain = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", width: 535.041, height: 203.6, style: {
|
|
23
|
+
shapeRendering: "geometricPrecision",
|
|
24
|
+
textRendering: "geometricPrecision",
|
|
25
|
+
imageRendering: "optimizeQuality",
|
|
26
|
+
fillRule: "evenodd",
|
|
27
|
+
clipRule: "evenodd"
|
|
28
|
+
}, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
30
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
|
|
31
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
32
|
+
stopOpacity: 1,
|
|
33
|
+
stopColor: "#0a77d4"
|
|
34
|
+
} }),
|
|
35
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
36
|
+
stopOpacity: 1,
|
|
37
|
+
stopColor: "#00b1e0"
|
|
38
|
+
} })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsx("linearGradient", { xlinkHref: "#logo-plain_svg__id0", id: "logo-plain_svg__id1", x1: 11407.32, x2: 11286.4, y1: 5023.83, y2: 1215.5, gradientUnits: "userSpaceOnUse" }),
|
|
41
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
|
|
42
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
43
|
+
stopOpacity: 1,
|
|
44
|
+
stopColor: "#f65926"
|
|
45
|
+
} }),
|
|
46
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
47
|
+
stopOpacity: 1,
|
|
48
|
+
stopColor: "#f0ab1f"
|
|
49
|
+
} })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
53
|
+
stopOpacity: 1,
|
|
54
|
+
stopColor: "#e52652"
|
|
55
|
+
} }),
|
|
56
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
57
|
+
stopOpacity: 1,
|
|
58
|
+
stopColor: "#ff4956"
|
|
59
|
+
} })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
|
|
62
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
63
|
+
stopOpacity: 1,
|
|
64
|
+
stopColor: "#02c0a7"
|
|
65
|
+
} }),
|
|
66
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
67
|
+
stopOpacity: 1,
|
|
68
|
+
stopColor: "#02e097"
|
|
69
|
+
} })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ jsx("style", { children: ".logo-plain_svg__fil8{fill:#fefefe}" })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ jsx("g", { id: "logo-plain_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ jsxs("g", { id: "logo-plain_svg___1978240863120", children: [
|
|
74
|
+
/* @__PURE__ */ jsx("path", { d: "M2921.92 814.37h2943.46c660.05 0 1200.11 540.04 1200.11 1200.11v669.56c-180.23 1562.84-842.69 2686.31-2539.2 2867.65h-656.9c-1403.42-112.59-2125.37-923.3-2147.58-2450.77V2014.48c0-660.07 540.04-1200.11 1200.11-1200.11z", style: {
|
|
75
|
+
fill: "none",
|
|
76
|
+
stroke: "#e62129",
|
|
77
|
+
strokeWidth: 23.87,
|
|
78
|
+
strokeMiterlimit: 22.9256
|
|
79
|
+
} }),
|
|
80
|
+
/* @__PURE__ */ jsx("path", { d: "M908.05 649.1c172.38 0 312.1 139.73 312.1 312.1 0 172.38-139.73 312.1-312.1 312.1-172.38 0-312.1-139.73-312.1-312.1 0-172.38 139.73-312.1 312.1-312.1zm15081.56 0c-172.38 0-312.1 139.73-312.1 312.1 0 172.38 139.73 312.1 312.1 312.1 172.38 0 312.1-139.73 312.1-312.1 0-172.38-139.73-312.1-312.1-312.1zM16304.76.03H11565.2c-332.34-.73-635.61 30.83-892.17 114.33-1164.61 314.95-1684.86 539.69-2204.5 542.55-529.24 2.92-1057.71-221.77-2243.89-542.55C5968.08 30.86 5664.81-.7 5332.47.03H592.91C266.8.03.01 266.82.01 592.93v727.65c0 326.11 262.25 574.15 588.16 562.9 244.44-8.44 379.43 161.6 368.56 407.41v1401.3c844.04 3884.05 6459.63 3705.54 6872.25-983.68 37.55-479.97 225.37-745.7 619.85-795.03 394.48 49.33 582.3 315.06 619.85 795.03 221.1 2512.67 1570.99 3564.6 3624.76 3705.62 1575.25-121.99 2822.57-766.6 3247.49-2721.94v-1401.3c-10.86-245.81 124.13-415.84 368.56-407.41 325.91 11.24 588.16-236.8 588.16-562.9V592.93c0-326.11-266.79-592.9-592.9-592.9z", style: {
|
|
81
|
+
fill: "#332c2b"
|
|
82
|
+
} }),
|
|
83
|
+
/* @__PURE__ */ jsx("path", { d: "M4404.53 5551.69h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H2939.12c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94z", style: {
|
|
84
|
+
fill: "#f63d55"
|
|
85
|
+
} }),
|
|
86
|
+
/* @__PURE__ */ jsx("path", { d: "M2884.03 3833.6c-562.03-552.91 337.59-1229.84 756.52-784.77l-668.1-718.53C2724 1698.38 2875.6 1176.8 3604.09 814.36h-682.18c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94c447.09-261.52 828.85-610.16 1124.32-1073.8-192.91 108.48-371.35 123.1-530.58 12.63-269.77 225.61-533.22 868.1-809.3 676.82L2884.01 3833.59z", style: {
|
|
87
|
+
fill: "url(#logo-plain_svg__id3)"
|
|
88
|
+
} }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { d: "M12967.79 5585.01c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11H11084.21c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h645.03z", style: {
|
|
90
|
+
fill: "url(#logo-plain_svg__id1)"
|
|
91
|
+
} }),
|
|
92
|
+
/* @__PURE__ */ jsx("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
|
|
93
|
+
fill: "#f3a04e"
|
|
94
|
+
} }),
|
|
95
|
+
/* @__PURE__ */ jsx("path", { d: "M11243.45 3832.57c-587.85-563.96 251.45-1254.43 691.78-800.45l-702.77-732.9c-285.07-644.56-170.14-1176.57 521.59-1546.26h-669.84c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h508.57c422-266.75 774.17-622.36 1034.13-1095.27-182.37 110.65-356.62 125.56-520.16 12.88-250.21 230.12-467.1 885.46-750.63 690.36l-1351.23-1360.42z", style: {
|
|
96
|
+
fill: "url(#logo-plain_svg__id0)",
|
|
97
|
+
stroke: "#06b1ab",
|
|
98
|
+
strokeWidth: 9.1,
|
|
99
|
+
strokeMiterlimit: 22.9256
|
|
100
|
+
} }),
|
|
101
|
+
/* @__PURE__ */ jsx("path", { d: "M11754.05 752.96c-691.73 369.69-806.66 901.7-521.59 1546.26l702.77 732.9c-440.33-453.98-1279.63 236.49-691.78 800.45 1571.66 1582.35 780.78 887.85 1587.88 1752.45h136.46c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11h-2220.38z", style: {
|
|
102
|
+
fill: "url(#logo-plain_svg__id4)"
|
|
103
|
+
} }),
|
|
104
|
+
/* @__PURE__ */ jsx("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
|
|
105
|
+
/* @__PURE__ */ jsx("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
|
|
106
|
+
fill: "#52c2f1"
|
|
107
|
+
} }),
|
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "M3604.1 814.37c-728.5 362.44-880.09 884.02-631.64 1515.94l668.1 718.53c-418.94-445.08-1318.56 231.85-756.52 784.77l1503.3 1718.08h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H3604.11z", style: {
|
|
109
|
+
fill: "url(#logo-plain_svg__id2)"
|
|
110
|
+
} }),
|
|
111
|
+
/* @__PURE__ */ jsx("path", { d: "m3602.42 3012.57-2.01-1.79-1.22-1c-433.3-363.07-1259.33 288.49-715.16 823.82l1503.3 1718.08h138.96c366.16-39.14 684.05-122.25 959.42-244.11l-1883.3-2295z", style: {
|
|
112
|
+
fill: "#f9483e"
|
|
113
|
+
} }),
|
|
114
|
+
/* @__PURE__ */ jsx("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
|
|
115
|
+
/* @__PURE__ */ jsx("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
|
|
116
|
+
fill: "#f7b873"
|
|
117
|
+
} }),
|
|
118
|
+
/* @__PURE__ */ jsx("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain_svg__fil8" }),
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "m11770.33 2919.17 123.64 74.69c7.2 5.99 14.32 12.27 21.35 18.8l1988.29 2318.88c-264.55 126.79-574.49 213.07-935.82 253.47h-136.46c-807.1-864.6-16.22-170.1-1587.88-1752.45-520.29-499.15 77.34-1097.23 526.88-913.39z", style: {
|
|
120
|
+
fill: "#06b1ab"
|
|
121
|
+
} }),
|
|
122
|
+
/* @__PURE__ */ jsx("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain_svg__fil8" })
|
|
123
|
+
] }) })
|
|
124
|
+
] }));
|
|
125
|
+
var logo_plain_default = SvgLogoPlain;
|
|
126
|
+
export {
|
|
127
|
+
logo_plain_default as default
|
|
128
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import * as React from "react";
|
|
22
|
+
const SvgLogoPlain2 = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", width: 535.041, height: 203.6, style: {
|
|
23
|
+
shapeRendering: "geometricPrecision",
|
|
24
|
+
textRendering: "geometricPrecision",
|
|
25
|
+
imageRendering: "optimizeQuality",
|
|
26
|
+
fillRule: "evenodd",
|
|
27
|
+
clipRule: "evenodd"
|
|
28
|
+
}, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
30
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
|
|
31
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
32
|
+
stopOpacity: 1,
|
|
33
|
+
stopColor: "#0a77d4"
|
|
34
|
+
} }),
|
|
35
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
36
|
+
stopOpacity: 1,
|
|
37
|
+
stopColor: "#00b1e0"
|
|
38
|
+
} })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsx("linearGradient", { xlinkHref: "#logo-plain2_svg__id0", id: "logo-plain2_svg__id1", x1: 11407.32, x2: 11286.4, y1: 5023.83, y2: 1215.5, gradientUnits: "userSpaceOnUse" }),
|
|
41
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
|
|
42
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
43
|
+
stopOpacity: 1,
|
|
44
|
+
stopColor: "#f65926"
|
|
45
|
+
} }),
|
|
46
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
47
|
+
stopOpacity: 1,
|
|
48
|
+
stopColor: "#f0ab1f"
|
|
49
|
+
} })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
53
|
+
stopOpacity: 1,
|
|
54
|
+
stopColor: "#e52652"
|
|
55
|
+
} }),
|
|
56
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
57
|
+
stopOpacity: 1,
|
|
58
|
+
stopColor: "#ff4956"
|
|
59
|
+
} })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
|
|
62
|
+
/* @__PURE__ */ jsx("stop", { offset: 0, style: {
|
|
63
|
+
stopOpacity: 1,
|
|
64
|
+
stopColor: "#02c0a7"
|
|
65
|
+
} }),
|
|
66
|
+
/* @__PURE__ */ jsx("stop", { offset: 1, style: {
|
|
67
|
+
stopOpacity: 1,
|
|
68
|
+
stopColor: "#02e097"
|
|
69
|
+
} })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ jsx("style", { children: ".logo-plain2_svg__fil8{fill:#fefefe}" })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ jsx("g", { id: "logo-plain2_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ jsxs("g", { id: "logo-plain2_svg___1978240863120", children: [
|
|
74
|
+
/* @__PURE__ */ jsx("path", { d: "M2921.92 814.37h2943.46c660.05 0 1200.11 540.04 1200.11 1200.11v669.56c-180.23 1562.84-842.69 2686.31-2539.2 2867.65h-656.9c-1403.42-112.59-2125.37-923.3-2147.58-2450.77V2014.48c0-660.07 540.04-1200.11 1200.11-1200.11z", style: {
|
|
75
|
+
fill: "none",
|
|
76
|
+
stroke: "#e62129",
|
|
77
|
+
strokeWidth: 23.87,
|
|
78
|
+
strokeMiterlimit: 22.9256
|
|
79
|
+
} }),
|
|
80
|
+
/* @__PURE__ */ jsx("path", { d: "M908.05 649.1c172.38 0 312.1 139.73 312.1 312.1 0 172.38-139.73 312.1-312.1 312.1-172.38 0-312.1-139.73-312.1-312.1 0-172.38 139.73-312.1 312.1-312.1zm15081.56 0c-172.38 0-312.1 139.73-312.1 312.1 0 172.38 139.73 312.1 312.1 312.1 172.38 0 312.1-139.73 312.1-312.1 0-172.38-139.73-312.1-312.1-312.1zM16304.76.03H11565.2c-332.34-.73-635.61 30.83-892.17 114.33-1164.61 314.95-1684.86 539.69-2204.5 542.55-529.24 2.92-1057.71-221.77-2243.89-542.55C5968.08 30.86 5664.81-.7 5332.47.03H592.91C266.8.03.01 266.82.01 592.93v727.65c0 326.11 262.25 574.15 588.16 562.9 244.44-8.44 379.43 161.6 368.56 407.41v1401.3c844.04 3884.05 6459.63 3705.54 6872.25-983.68 37.55-479.97 225.37-745.7 619.85-795.03 394.48 49.33 582.3 315.06 619.85 795.03 221.1 2512.67 1570.99 3564.6 3624.76 3705.62 1575.25-121.99 2822.57-766.6 3247.49-2721.94v-1401.3c-10.86-245.81 124.13-415.84 368.56-407.41 325.91 11.24 588.16-236.8 588.16-562.9V592.93c0-326.11-266.79-592.9-592.9-592.9z", style: {
|
|
81
|
+
fill: "#332c2b"
|
|
82
|
+
} }),
|
|
83
|
+
/* @__PURE__ */ jsx("path", { d: "M4404.53 5551.69h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H2939.12c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94z", style: {
|
|
84
|
+
fill: "#f63d55"
|
|
85
|
+
} }),
|
|
86
|
+
/* @__PURE__ */ jsx("path", { d: "M2884.03 3833.6c-562.03-552.91 337.59-1229.84 756.52-784.77l-668.1-718.53C2724 1698.38 2875.6 1176.8 3604.09 814.36h-682.18c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94c447.09-261.52 828.85-610.16 1124.32-1073.8-192.91 108.48-371.35 123.1-530.58 12.63-269.77 225.61-533.22 868.1-809.3 676.82L2884.01 3833.59z", style: {
|
|
87
|
+
fill: "url(#logo-plain2_svg__id3)"
|
|
88
|
+
} }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { d: "M12967.79 5585.01c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11H11084.21c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h645.03z", style: {
|
|
90
|
+
fill: "url(#logo-plain2_svg__id1)"
|
|
91
|
+
} }),
|
|
92
|
+
/* @__PURE__ */ jsx("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
|
|
93
|
+
fill: "#f3a04e"
|
|
94
|
+
} }),
|
|
95
|
+
/* @__PURE__ */ jsx("path", { d: "M11243.45 3832.57c-587.85-563.96 251.45-1254.43 691.78-800.45l-702.77-732.9c-285.07-644.56-170.14-1176.57 521.59-1546.26h-669.84c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h508.57c422-266.75 774.17-622.36 1034.13-1095.27-182.37 110.65-356.62 125.56-520.16 12.88-250.21 230.12-467.1 885.46-750.63 690.36l-1351.23-1360.42z", style: {
|
|
96
|
+
fill: "url(#logo-plain2_svg__id0)",
|
|
97
|
+
stroke: "#06b1ab",
|
|
98
|
+
strokeWidth: 9.1,
|
|
99
|
+
strokeMiterlimit: 22.9256
|
|
100
|
+
} }),
|
|
101
|
+
/* @__PURE__ */ jsx("path", { d: "M11754.05 752.96c-691.73 369.69-806.66 901.7-521.59 1546.26l702.77 732.9c-440.33-453.98-1279.63 236.49-691.78 800.45 1571.66 1582.35 780.78 887.85 1587.88 1752.45h136.46c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11h-2220.38z", style: {
|
|
102
|
+
fill: "url(#logo-plain2_svg__id4)"
|
|
103
|
+
} }),
|
|
104
|
+
/* @__PURE__ */ jsx("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
|
|
105
|
+
/* @__PURE__ */ jsx("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
|
|
106
|
+
fill: "#52c2f1"
|
|
107
|
+
} }),
|
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "M3604.1 814.37c-728.5 362.44-880.09 884.02-631.64 1515.94l668.1 718.53c-418.94-445.08-1318.56 231.85-756.52 784.77l1503.3 1718.08h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H3604.11z", style: {
|
|
109
|
+
fill: "url(#logo-plain2_svg__id2)"
|
|
110
|
+
} }),
|
|
111
|
+
/* @__PURE__ */ jsx("path", { d: "m3602.42 3012.57-2.01-1.79-1.22-1c-433.3-363.07-1259.33 288.49-715.16 823.82l1503.3 1718.08h138.96c366.16-39.14 684.05-122.25 959.42-244.11l-1883.3-2295z", style: {
|
|
112
|
+
fill: "#f9483e"
|
|
113
|
+
} }),
|
|
114
|
+
/* @__PURE__ */ jsx("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
|
|
115
|
+
/* @__PURE__ */ jsx("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
|
|
116
|
+
fill: "#f7b873"
|
|
117
|
+
} }),
|
|
118
|
+
/* @__PURE__ */ jsx("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain2_svg__fil8" }),
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "m11770.33 2919.17 123.64 74.69c7.2 5.99 14.32 12.27 21.35 18.8l1988.29 2318.88c-264.55 126.79-574.49 213.07-935.82 253.47h-136.46c-807.1-864.6-16.22-170.1-1587.88-1752.45-520.29-499.15 77.34-1097.23 526.88-913.39z", style: {
|
|
120
|
+
fill: "#06b1ab"
|
|
121
|
+
} }),
|
|
122
|
+
/* @__PURE__ */ jsx("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain2_svg__fil8" })
|
|
123
|
+
] }) })
|
|
124
|
+
] }));
|
|
125
|
+
var logo_plain2_default = SvgLogoPlain2;
|
|
126
|
+
export {
|
|
127
|
+
logo_plain2_default as default
|
|
128
|
+
};
|
|
@@ -13,15 +13,15 @@ const ScreenshotItem = (props) => {
|
|
|
13
13
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("img", { src: props.img }) })
|
|
14
14
|
] });
|
|
15
15
|
};
|
|
16
|
+
const VIEW_TYPE_BLACKBOARD = "blackboard";
|
|
16
17
|
const VIEW_TYPE_SCREENSHOT = "screenshot";
|
|
17
18
|
const VIEW_TYPE_JSON = "json";
|
|
18
|
-
const VIEW_TYPE_BLACKBOARD = "blackboard";
|
|
19
19
|
const DetailPanel = () => {
|
|
20
20
|
var _a;
|
|
21
21
|
const dumpId = useInsightDump((store) => store._loadId);
|
|
22
22
|
const blackboardViewAvailable = Boolean(dumpId);
|
|
23
23
|
const activeTask = useExecutionDump((store) => store.activeTask);
|
|
24
|
-
const [preferredViewType, setViewType] = useState(
|
|
24
|
+
const [preferredViewType, setViewType] = useState(VIEW_TYPE_BLACKBOARD);
|
|
25
25
|
const viewType = preferredViewType === VIEW_TYPE_BLACKBOARD && !dumpId ? VIEW_TYPE_SCREENSHOT : preferredViewType;
|
|
26
26
|
let content;
|
|
27
27
|
if (!activeTask) {
|
|
@@ -247,7 +247,16 @@ const DetailSide = () => {
|
|
|
247
247
|
content: /* @__PURE__ */ jsx("pre", { className: "description-content", style: { color: "#F00" }, children: dump.error })
|
|
248
248
|
}
|
|
249
249
|
) : null;
|
|
250
|
-
const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ jsx(
|
|
250
|
+
const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ jsx(
|
|
251
|
+
Card,
|
|
252
|
+
{
|
|
253
|
+
liteMode: true,
|
|
254
|
+
onMouseEnter: noop,
|
|
255
|
+
onMouseLeave: noop,
|
|
256
|
+
content: /* @__PURE__ */ jsx("pre", { children: JSON.stringify(dump.data, void 0, 2) })
|
|
257
|
+
}
|
|
258
|
+
) : null;
|
|
259
|
+
console.log("dump is", dump);
|
|
251
260
|
const plans = (_h = task == null ? void 0 : task.output) == null ? void 0 : _h.plans;
|
|
252
261
|
let timelineData = [];
|
|
253
262
|
if (plans) {
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
border-right: 1px solid #CCCCCC;
|
|
8
8
|
overflow: auto;
|
|
9
|
-
background: #
|
|
9
|
+
background: #f7f7f7;
|
|
10
10
|
}
|
|
11
11
|
.side-bar .brand {
|
|
12
12
|
padding: 10px 5px;
|
|
13
13
|
cursor: pointer;
|
|
14
|
+
display: flex;
|
|
14
15
|
}
|
|
15
16
|
.side-bar .task-meta-section {
|
|
16
17
|
margin-top: 6px;
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
import { Button } from "antd";
|
|
13
13
|
import PanelTitle from "./panel-title";
|
|
14
14
|
import { timeCostStrElement } from "./misc";
|
|
15
|
-
import
|
|
15
|
+
import Logo from "./assets/logo-plain2.js";
|
|
16
16
|
import { useAllCurrentTasks, useExecutionDump } from "./store";
|
|
17
17
|
import { typeStr } from "../utils";
|
|
18
18
|
const SideItem = (props) => {
|
|
19
|
-
var _a, _b;
|
|
19
|
+
var _a, _b, _c;
|
|
20
20
|
const { task, onClick, selected } = props;
|
|
21
21
|
const selectedClass = selected ? "selected" : "";
|
|
22
22
|
let statusIcon = /* @__PURE__ */ jsx(MinusOutlined, {});
|
|
@@ -35,10 +35,15 @@ const SideItem = (props) => {
|
|
|
35
35
|
if ((_a = task.timing) == null ? void 0 : _a.cost) {
|
|
36
36
|
statusText = timeCostStrElement(task.timing.cost);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
" "
|
|
41
|
-
|
|
38
|
+
let contentRow;
|
|
39
|
+
if (task.type === "Planning") {
|
|
40
|
+
contentRow = /* @__PURE__ */ jsx("div", { className: "side-item-content", children: (_b = task.param) == null ? void 0 : _b.userPrompt });
|
|
41
|
+
} else if (task.type === "Insight" && task.subType === "Query") {
|
|
42
|
+
const demand = (_c = task.param) == null ? void 0 : _c.dataDemand;
|
|
43
|
+
const contentToShow = typeof demand === "string" ? demand : JSON.stringify(demand);
|
|
44
|
+
contentRow = /* @__PURE__ */ jsx("div", { className: "side-item-content", children: contentToShow });
|
|
45
|
+
} else {
|
|
46
|
+
}
|
|
42
47
|
return /* @__PURE__ */ jsxs(
|
|
43
48
|
"div",
|
|
44
49
|
{
|
|
@@ -67,7 +72,7 @@ const SideItem = (props) => {
|
|
|
67
72
|
}
|
|
68
73
|
);
|
|
69
74
|
};
|
|
70
|
-
const Sidebar = () => {
|
|
75
|
+
const Sidebar = (props) => {
|
|
71
76
|
const groupedDumps = useExecutionDump((store) => store.dump);
|
|
72
77
|
const setActiveTask = useExecutionDump((store) => store.setActiveTask);
|
|
73
78
|
const activeTask = useExecutionDump((store) => store.activeTask);
|
|
@@ -151,14 +156,16 @@ const Sidebar = () => {
|
|
|
151
156
|
}) : /* @__PURE__ */ jsx("span", { children: "no tasks" });
|
|
152
157
|
return /* @__PURE__ */ jsxs("div", { className: "side-bar", children: [
|
|
153
158
|
/* @__PURE__ */ jsxs("div", { className: "top-controls", children: [
|
|
154
|
-
/* @__PURE__ */ jsx("div", { className: "brand", onClick: reset, children: /* @__PURE__ */ jsx(
|
|
155
|
-
|
|
159
|
+
/* @__PURE__ */ jsx("div", { className: "brand", onClick: reset, style: { display: (props == null ? void 0 : props.hideLogo) ? "none" : "flex" }, children: /* @__PURE__ */ jsx(
|
|
160
|
+
Logo,
|
|
156
161
|
{
|
|
157
|
-
src: logo,
|
|
158
|
-
alt: "Logo",
|
|
159
162
|
style: { width: 70, height: 70, margin: "auto" },
|
|
160
163
|
onClick: () => {
|
|
161
|
-
|
|
164
|
+
if (props.logoAction) {
|
|
165
|
+
props.logoAction();
|
|
166
|
+
} else {
|
|
167
|
+
location.reload();
|
|
168
|
+
}
|
|
162
169
|
}
|
|
163
170
|
}
|
|
164
171
|
) }),
|
|
@@ -28,7 +28,7 @@ const useBlackboardPreference = create((set) => ({
|
|
|
28
28
|
set({ textsVisible: visible });
|
|
29
29
|
}
|
|
30
30
|
}));
|
|
31
|
-
const useExecutionDump = create((set) => {
|
|
31
|
+
const useExecutionDump = create((set, get) => {
|
|
32
32
|
const initData = {
|
|
33
33
|
dump: null,
|
|
34
34
|
activeTask: null,
|
|
@@ -51,15 +51,15 @@ const useExecutionDump = create((set) => {
|
|
|
51
51
|
});
|
|
52
52
|
for (const item of dump) {
|
|
53
53
|
if (item.executions.length > 0 && item.executions[0].tasks.length > 0) {
|
|
54
|
-
|
|
54
|
+
get().setActiveTask(item.executions[0].tasks[0]);
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
setActiveTask(task) {
|
|
60
|
-
var _a, _b;
|
|
61
60
|
set({ activeTask: task });
|
|
62
|
-
|
|
61
|
+
console.log("task set", task);
|
|
62
|
+
if (task.type === "Insight") {
|
|
63
63
|
syncToInsightDump(task.log.dump);
|
|
64
64
|
} else {
|
|
65
65
|
resetInsightDump();
|
|
@@ -68,7 +68,7 @@ const TimelineWidget = (props) => {
|
|
|
68
68
|
const maxTime = allScreenshots[allScreenshots.length - 1].timeOffset;
|
|
69
69
|
const sizeRatio = 2;
|
|
70
70
|
const titleBg = 14540253;
|
|
71
|
-
const sideBg =
|
|
71
|
+
const sideBg = 16250871;
|
|
72
72
|
const gridTextColor = 0;
|
|
73
73
|
const shotBorderColor = 7829367;
|
|
74
74
|
const gridLineColor = 13421772;
|
package/dist/es/index.css
CHANGED
|
@@ -54,7 +54,7 @@ footer.mt-8 {
|
|
|
54
54
|
flex-direction: row;
|
|
55
55
|
flex-grow: 1;
|
|
56
56
|
overflow: hidden;
|
|
57
|
-
background: #
|
|
57
|
+
background: #f7f7f7;
|
|
58
58
|
}
|
|
59
59
|
.main-right.uploader-wrapper {
|
|
60
60
|
box-sizing: border-box;
|
|
@@ -74,7 +74,7 @@ footer.mt-8 {
|
|
|
74
74
|
.main-right .main-canvas-container {
|
|
75
75
|
flex-grow: 1;
|
|
76
76
|
height: 100%;
|
|
77
|
-
background: #
|
|
77
|
+
background: #ffffff;
|
|
78
78
|
overflow-x: hidden;
|
|
79
79
|
overflow-y: scroll;
|
|
80
80
|
border-left: 1px solid #CCCCCC;
|
package/dist/es/index.js
CHANGED
|
@@ -25,19 +25,23 @@ import { Helmet } from "@modern-js/runtime/head";
|
|
|
25
25
|
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
|
|
26
26
|
import Timeline from "./component/timeline";
|
|
27
27
|
import DetailPanel from "./component/detail-panel";
|
|
28
|
-
import
|
|
28
|
+
import Logo from "./component/assets/logo-plain.js";
|
|
29
29
|
import GlobalHoverPreview from "./component/global-hover-preview";
|
|
30
30
|
import { useExecutionDump } from "./component/store";
|
|
31
31
|
import DetailSide from "./component/detail-side";
|
|
32
32
|
import Sidebar from "./component/sidebar";
|
|
33
33
|
const { Dragger } = Upload;
|
|
34
|
-
|
|
34
|
+
function Visualizer(props) {
|
|
35
|
+
const { dump } = props;
|
|
35
36
|
const executionDump = useExecutionDump((store) => store.dump);
|
|
36
37
|
const setGroupedDump = useExecutionDump((store) => store.setGroupedDump);
|
|
37
38
|
const reset = useExecutionDump((store) => store.reset);
|
|
38
39
|
const [mainLayoutChangeFlag, setMainLayoutChangeFlag] = useState(0);
|
|
39
40
|
const mainLayoutChangedRef = useRef(false);
|
|
40
41
|
useEffect(() => {
|
|
42
|
+
if (dump) {
|
|
43
|
+
setGroupedDump(dump);
|
|
44
|
+
}
|
|
41
45
|
return () => {
|
|
42
46
|
reset();
|
|
43
47
|
};
|
|
@@ -91,7 +95,7 @@ const Index = () => {
|
|
|
91
95
|
if (!executionDump) {
|
|
92
96
|
mainContent = /* @__PURE__ */ jsxs("div", { className: "main-right uploader-wrapper", children: [
|
|
93
97
|
/* @__PURE__ */ jsxs(Dragger, __spreadProps(__spreadValues({ className: "uploader" }, uploadProps), { children: [
|
|
94
|
-
/* @__PURE__ */ jsx("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ jsx(
|
|
98
|
+
/* @__PURE__ */ jsx("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ jsx(Logo, { style: { width: 100, height: 100, margin: "auto" } }) }),
|
|
95
99
|
/* @__PURE__ */ jsxs("p", { className: "ant-upload-text", children: [
|
|
96
100
|
"Click or drag the",
|
|
97
101
|
" ",
|
|
@@ -123,7 +127,7 @@ const Index = () => {
|
|
|
123
127
|
}
|
|
124
128
|
},
|
|
125
129
|
children: [
|
|
126
|
-
/* @__PURE__ */ jsx(Panel, { maxSize: 95, children: /* @__PURE__ */ jsx(Sidebar, {}) }),
|
|
130
|
+
/* @__PURE__ */ jsx(Panel, { maxSize: 95, defaultSize: 20, children: /* @__PURE__ */ jsx(Sidebar, { hideLogo: props == null ? void 0 : props.hideLogo, logoAction: props == null ? void 0 : props.logoAction }) }),
|
|
127
131
|
/* @__PURE__ */ jsx(
|
|
128
132
|
PanelResizeHandle,
|
|
129
133
|
{
|
|
@@ -167,8 +171,9 @@ const Index = () => {
|
|
|
167
171
|
]
|
|
168
172
|
}
|
|
169
173
|
);
|
|
170
|
-
}
|
|
171
|
-
var src_default =
|
|
174
|
+
}
|
|
175
|
+
var src_default = Visualizer;
|
|
172
176
|
export {
|
|
177
|
+
Visualizer,
|
|
173
178
|
src_default as default
|
|
174
179
|
};
|