@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,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var logo_plain_exports = {};
|
|
47
|
+
__export(logo_plain_exports, {
|
|
48
|
+
default: () => logo_plain_default
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(logo_plain_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
52
|
+
var React = __toESM(require("react"));
|
|
53
|
+
const SvgLogoPlain = (props) => /* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
54
|
+
shapeRendering: "geometricPrecision",
|
|
55
|
+
textRendering: "geometricPrecision",
|
|
56
|
+
imageRendering: "optimizeQuality",
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd"
|
|
59
|
+
}, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("defs", { children: [
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
63
|
+
stopOpacity: 1,
|
|
64
|
+
stopColor: "#0a77d4"
|
|
65
|
+
} }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
67
|
+
stopOpacity: 1,
|
|
68
|
+
stopColor: "#00b1e0"
|
|
69
|
+
} })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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" }),
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
74
|
+
stopOpacity: 1,
|
|
75
|
+
stopColor: "#f65926"
|
|
76
|
+
} }),
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
78
|
+
stopOpacity: 1,
|
|
79
|
+
stopColor: "#f0ab1f"
|
|
80
|
+
} })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
84
|
+
stopOpacity: 1,
|
|
85
|
+
stopColor: "#e52652"
|
|
86
|
+
} }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
88
|
+
stopOpacity: 1,
|
|
89
|
+
stopColor: "#ff4956"
|
|
90
|
+
} })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
94
|
+
stopOpacity: 1,
|
|
95
|
+
stopColor: "#02c0a7"
|
|
96
|
+
} }),
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
98
|
+
stopOpacity: 1,
|
|
99
|
+
stopColor: "#02e097"
|
|
100
|
+
} })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: ".logo-plain_svg__fil8{fill:#fefefe}" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "logo-plain_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { id: "logo-plain_svg___1978240863120", children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
106
|
+
fill: "none",
|
|
107
|
+
stroke: "#e62129",
|
|
108
|
+
strokeWidth: 23.87,
|
|
109
|
+
strokeMiterlimit: 22.9256
|
|
110
|
+
} }),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
112
|
+
fill: "#332c2b"
|
|
113
|
+
} }),
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
115
|
+
fill: "#f63d55"
|
|
116
|
+
} }),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
118
|
+
fill: "url(#logo-plain_svg__id3)"
|
|
119
|
+
} }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
121
|
+
fill: "url(#logo-plain_svg__id1)"
|
|
122
|
+
} }),
|
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
|
|
124
|
+
fill: "#f3a04e"
|
|
125
|
+
} }),
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
127
|
+
fill: "url(#logo-plain_svg__id0)",
|
|
128
|
+
stroke: "#06b1ab",
|
|
129
|
+
strokeWidth: 9.1,
|
|
130
|
+
strokeMiterlimit: 22.9256
|
|
131
|
+
} }),
|
|
132
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
133
|
+
fill: "url(#logo-plain_svg__id4)"
|
|
134
|
+
} }),
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
|
|
136
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
|
|
137
|
+
fill: "#52c2f1"
|
|
138
|
+
} }),
|
|
139
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
140
|
+
fill: "url(#logo-plain_svg__id2)"
|
|
141
|
+
} }),
|
|
142
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
143
|
+
fill: "#f9483e"
|
|
144
|
+
} }),
|
|
145
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
|
|
147
|
+
fill: "#f7b873"
|
|
148
|
+
} }),
|
|
149
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain_svg__fil8" }),
|
|
150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
151
|
+
fill: "#06b1ab"
|
|
152
|
+
} }),
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain_svg__fil8" })
|
|
154
|
+
] }) })
|
|
155
|
+
] }));
|
|
156
|
+
var logo_plain_default = SvgLogoPlain;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var logo_plain2_exports = {};
|
|
47
|
+
__export(logo_plain2_exports, {
|
|
48
|
+
default: () => logo_plain2_default
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(logo_plain2_exports);
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
52
|
+
var React = __toESM(require("react"));
|
|
53
|
+
const SvgLogoPlain2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
54
|
+
shapeRendering: "geometricPrecision",
|
|
55
|
+
textRendering: "geometricPrecision",
|
|
56
|
+
imageRendering: "optimizeQuality",
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd"
|
|
59
|
+
}, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("defs", { children: [
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain2_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
63
|
+
stopOpacity: 1,
|
|
64
|
+
stopColor: "#0a77d4"
|
|
65
|
+
} }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
67
|
+
stopOpacity: 1,
|
|
68
|
+
stopColor: "#00b1e0"
|
|
69
|
+
} })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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" }),
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain2_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
74
|
+
stopOpacity: 1,
|
|
75
|
+
stopColor: "#f65926"
|
|
76
|
+
} }),
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
78
|
+
stopOpacity: 1,
|
|
79
|
+
stopColor: "#f0ab1f"
|
|
80
|
+
} })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain2_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
84
|
+
stopOpacity: 1,
|
|
85
|
+
stopColor: "#e52652"
|
|
86
|
+
} }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
88
|
+
stopOpacity: 1,
|
|
89
|
+
stopColor: "#ff4956"
|
|
90
|
+
} })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "logo-plain2_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 0, style: {
|
|
94
|
+
stopOpacity: 1,
|
|
95
|
+
stopColor: "#02c0a7"
|
|
96
|
+
} }),
|
|
97
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: 1, style: {
|
|
98
|
+
stopOpacity: 1,
|
|
99
|
+
stopColor: "#02e097"
|
|
100
|
+
} })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: ".logo-plain2_svg__fil8{fill:#fefefe}" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { id: "logo-plain2_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { id: "logo-plain2_svg___1978240863120", children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
106
|
+
fill: "none",
|
|
107
|
+
stroke: "#e62129",
|
|
108
|
+
strokeWidth: 23.87,
|
|
109
|
+
strokeMiterlimit: 22.9256
|
|
110
|
+
} }),
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
112
|
+
fill: "#332c2b"
|
|
113
|
+
} }),
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
115
|
+
fill: "#f63d55"
|
|
116
|
+
} }),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
118
|
+
fill: "url(#logo-plain2_svg__id3)"
|
|
119
|
+
} }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
121
|
+
fill: "url(#logo-plain2_svg__id1)"
|
|
122
|
+
} }),
|
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
|
|
124
|
+
fill: "#f3a04e"
|
|
125
|
+
} }),
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
127
|
+
fill: "url(#logo-plain2_svg__id0)",
|
|
128
|
+
stroke: "#06b1ab",
|
|
129
|
+
strokeWidth: 9.1,
|
|
130
|
+
strokeMiterlimit: 22.9256
|
|
131
|
+
} }),
|
|
132
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
133
|
+
fill: "url(#logo-plain2_svg__id4)"
|
|
134
|
+
} }),
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
|
|
136
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
|
|
137
|
+
fill: "#52c2f1"
|
|
138
|
+
} }),
|
|
139
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
140
|
+
fill: "url(#logo-plain2_svg__id2)"
|
|
141
|
+
} }),
|
|
142
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
143
|
+
fill: "#f9483e"
|
|
144
|
+
} }),
|
|
145
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
|
|
147
|
+
fill: "#f7b873"
|
|
148
|
+
} }),
|
|
149
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain2_svg__fil8" }),
|
|
150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.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: {
|
|
151
|
+
fill: "#06b1ab"
|
|
152
|
+
} }),
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain2_svg__fil8" })
|
|
154
|
+
] }) })
|
|
155
|
+
] }));
|
|
156
|
+
var logo_plain2_default = SvgLogoPlain2;
|
|
@@ -46,15 +46,15 @@ const ScreenshotItem = (props) => {
|
|
|
46
46
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: props.img }) })
|
|
47
47
|
] });
|
|
48
48
|
};
|
|
49
|
+
const VIEW_TYPE_BLACKBOARD = "blackboard";
|
|
49
50
|
const VIEW_TYPE_SCREENSHOT = "screenshot";
|
|
50
51
|
const VIEW_TYPE_JSON = "json";
|
|
51
|
-
const VIEW_TYPE_BLACKBOARD = "blackboard";
|
|
52
52
|
const DetailPanel = () => {
|
|
53
53
|
var _a;
|
|
54
54
|
const dumpId = (0, import_store.useInsightDump)((store) => store._loadId);
|
|
55
55
|
const blackboardViewAvailable = Boolean(dumpId);
|
|
56
56
|
const activeTask = (0, import_store.useExecutionDump)((store) => store.activeTask);
|
|
57
|
-
const [preferredViewType, setViewType] = (0, import_react.useState)(
|
|
57
|
+
const [preferredViewType, setViewType] = (0, import_react.useState)(VIEW_TYPE_BLACKBOARD);
|
|
58
58
|
const viewType = preferredViewType === VIEW_TYPE_BLACKBOARD && !dumpId ? VIEW_TYPE_SCREENSHOT : preferredViewType;
|
|
59
59
|
let content;
|
|
60
60
|
if (!activeTask) {
|
|
@@ -278,7 +278,16 @@ const DetailSide = () => {
|
|
|
278
278
|
content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { className: "description-content", style: { color: "#F00" }, children: dump.error })
|
|
279
279
|
}
|
|
280
280
|
) : null;
|
|
281
|
-
const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
281
|
+
const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
282
|
+
Card,
|
|
283
|
+
{
|
|
284
|
+
liteMode: true,
|
|
285
|
+
onMouseEnter: noop,
|
|
286
|
+
onMouseLeave: noop,
|
|
287
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: JSON.stringify(dump.data, void 0, 2) })
|
|
288
|
+
}
|
|
289
|
+
) : null;
|
|
290
|
+
console.log("dump is", dump);
|
|
282
291
|
const plans = (_h = task == null ? void 0 : task.output) == null ? void 0 : _h.plans;
|
|
283
292
|
let timelineData = [];
|
|
284
293
|
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;
|
|
@@ -38,11 +38,11 @@ var import_icons = require("@ant-design/icons");
|
|
|
38
38
|
var import_antd = require("antd");
|
|
39
39
|
var import_panel_title = __toESM(require("./panel-title"));
|
|
40
40
|
var import_misc = require("./misc");
|
|
41
|
-
var
|
|
41
|
+
var import_logo_plain2 = __toESM(require("./assets/logo-plain2.js"));
|
|
42
42
|
var import_store = require("./store");
|
|
43
43
|
var import_utils = require("../utils");
|
|
44
44
|
const SideItem = (props) => {
|
|
45
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
46
46
|
const { task, onClick, selected } = props;
|
|
47
47
|
const selectedClass = selected ? "selected" : "";
|
|
48
48
|
let statusIcon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.MinusOutlined, {});
|
|
@@ -61,10 +61,15 @@ const SideItem = (props) => {
|
|
|
61
61
|
if ((_a = task.timing) == null ? void 0 : _a.cost) {
|
|
62
62
|
statusText = (0, import_misc.timeCostStrElement)(task.timing.cost);
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
" "
|
|
67
|
-
|
|
64
|
+
let contentRow;
|
|
65
|
+
if (task.type === "Planning") {
|
|
66
|
+
contentRow = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "side-item-content", children: (_b = task.param) == null ? void 0 : _b.userPrompt });
|
|
67
|
+
} else if (task.type === "Insight" && task.subType === "Query") {
|
|
68
|
+
const demand = (_c = task.param) == null ? void 0 : _c.dataDemand;
|
|
69
|
+
const contentToShow = typeof demand === "string" ? demand : JSON.stringify(demand);
|
|
70
|
+
contentRow = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "side-item-content", children: contentToShow });
|
|
71
|
+
} else {
|
|
72
|
+
}
|
|
68
73
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
69
74
|
"div",
|
|
70
75
|
{
|
|
@@ -93,7 +98,7 @@ const SideItem = (props) => {
|
|
|
93
98
|
}
|
|
94
99
|
);
|
|
95
100
|
};
|
|
96
|
-
const Sidebar = () => {
|
|
101
|
+
const Sidebar = (props) => {
|
|
97
102
|
const groupedDumps = (0, import_store.useExecutionDump)((store) => store.dump);
|
|
98
103
|
const setActiveTask = (0, import_store.useExecutionDump)((store) => store.setActiveTask);
|
|
99
104
|
const activeTask = (0, import_store.useExecutionDump)((store) => store.activeTask);
|
|
@@ -177,14 +182,16 @@ const Sidebar = () => {
|
|
|
177
182
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "no tasks" });
|
|
178
183
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "side-bar", children: [
|
|
179
184
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "top-controls", children: [
|
|
180
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "brand", onClick: reset, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
181
|
-
|
|
185
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "brand", onClick: reset, style: { display: (props == null ? void 0 : props.hideLogo) ? "none" : "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
186
|
+
import_logo_plain2.default,
|
|
182
187
|
{
|
|
183
|
-
src: import_logo_plain2_16842bbc.default,
|
|
184
|
-
alt: "Logo",
|
|
185
188
|
style: { width: 70, height: 70, margin: "auto" },
|
|
186
189
|
onClick: () => {
|
|
187
|
-
|
|
190
|
+
if (props.logoAction) {
|
|
191
|
+
props.logoAction();
|
|
192
|
+
} else {
|
|
193
|
+
location.reload();
|
|
194
|
+
}
|
|
188
195
|
}
|
|
189
196
|
}
|
|
190
197
|
) }),
|
|
@@ -52,7 +52,7 @@ const useBlackboardPreference = (0, import_zustand.create)((set) => ({
|
|
|
52
52
|
set({ textsVisible: visible });
|
|
53
53
|
}
|
|
54
54
|
}));
|
|
55
|
-
const useExecutionDump = (0, import_zustand.create)((set) => {
|
|
55
|
+
const useExecutionDump = (0, import_zustand.create)((set, get) => {
|
|
56
56
|
const initData = {
|
|
57
57
|
dump: null,
|
|
58
58
|
activeTask: null,
|
|
@@ -75,15 +75,15 @@ const useExecutionDump = (0, import_zustand.create)((set) => {
|
|
|
75
75
|
});
|
|
76
76
|
for (const item of dump) {
|
|
77
77
|
if (item.executions.length > 0 && item.executions[0].tasks.length > 0) {
|
|
78
|
-
|
|
78
|
+
get().setActiveTask(item.executions[0].tasks[0]);
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
setActiveTask(task) {
|
|
84
|
-
var _a, _b;
|
|
85
84
|
set({ activeTask: task });
|
|
86
|
-
|
|
85
|
+
console.log("task set", task);
|
|
86
|
+
if (task.type === "Insight") {
|
|
87
87
|
syncToInsightDump(task.log.dump);
|
|
88
88
|
} else {
|
|
89
89
|
resetInsightDump();
|
|
@@ -99,7 +99,7 @@ const TimelineWidget = (props) => {
|
|
|
99
99
|
const maxTime = allScreenshots[allScreenshots.length - 1].timeOffset;
|
|
100
100
|
const sizeRatio = 2;
|
|
101
101
|
const titleBg = 14540253;
|
|
102
|
-
const sideBg =
|
|
102
|
+
const sideBg = 16250871;
|
|
103
103
|
const gridTextColor = 0;
|
|
104
104
|
const shotBorderColor = 7829367;
|
|
105
105
|
const gridLineColor = 13421772;
|
package/dist/lib/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/lib/index.js
CHANGED
|
@@ -45,6 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
46
|
var src_exports = {};
|
|
47
47
|
__export(src_exports, {
|
|
48
|
+
Visualizer: () => Visualizer,
|
|
48
49
|
default: () => src_default
|
|
49
50
|
});
|
|
50
51
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -56,19 +57,23 @@ var import_head = require("@modern-js/runtime/head");
|
|
|
56
57
|
var import_react_resizable_panels = require("react-resizable-panels");
|
|
57
58
|
var import_timeline = __toESM(require("./component/timeline"));
|
|
58
59
|
var import_detail_panel = __toESM(require("./component/detail-panel"));
|
|
59
|
-
var
|
|
60
|
+
var import_logo_plain = __toESM(require("./component/assets/logo-plain.js"));
|
|
60
61
|
var import_global_hover_preview = __toESM(require("./component/global-hover-preview"));
|
|
61
62
|
var import_store = require("./component/store");
|
|
62
63
|
var import_detail_side = __toESM(require("./component/detail-side"));
|
|
63
64
|
var import_sidebar = __toESM(require("./component/sidebar"));
|
|
64
65
|
const { Dragger } = import_antd.Upload;
|
|
65
|
-
|
|
66
|
+
function Visualizer(props) {
|
|
67
|
+
const { dump } = props;
|
|
66
68
|
const executionDump = (0, import_store.useExecutionDump)((store) => store.dump);
|
|
67
69
|
const setGroupedDump = (0, import_store.useExecutionDump)((store) => store.setGroupedDump);
|
|
68
70
|
const reset = (0, import_store.useExecutionDump)((store) => store.reset);
|
|
69
71
|
const [mainLayoutChangeFlag, setMainLayoutChangeFlag] = (0, import_react.useState)(0);
|
|
70
72
|
const mainLayoutChangedRef = (0, import_react.useRef)(false);
|
|
71
73
|
(0, import_react.useEffect)(() => {
|
|
74
|
+
if (dump) {
|
|
75
|
+
setGroupedDump(dump);
|
|
76
|
+
}
|
|
72
77
|
return () => {
|
|
73
78
|
reset();
|
|
74
79
|
};
|
|
@@ -122,7 +127,7 @@ const Index = () => {
|
|
|
122
127
|
if (!executionDump) {
|
|
123
128
|
mainContent = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "main-right uploader-wrapper", children: [
|
|
124
129
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dragger, __spreadProps(__spreadValues({ className: "uploader" }, uploadProps), { children: [
|
|
125
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
130
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo_plain.default, { style: { width: 100, height: 100, margin: "auto" } }) }),
|
|
126
131
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "ant-upload-text", children: [
|
|
127
132
|
"Click or drag the",
|
|
128
133
|
" ",
|
|
@@ -154,7 +159,7 @@ const Index = () => {
|
|
|
154
159
|
}
|
|
155
160
|
},
|
|
156
161
|
children: [
|
|
157
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_resizable_panels.Panel, { maxSize: 95, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.default, {}) }),
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_resizable_panels.Panel, { maxSize: 95, defaultSize: 20, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar.default, { hideLogo: props == null ? void 0 : props.hideLogo, logoAction: props == null ? void 0 : props.logoAction }) }),
|
|
158
163
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
159
164
|
import_react_resizable_panels.PanelResizeHandle,
|
|
160
165
|
{
|
|
@@ -198,5 +203,9 @@ const Index = () => {
|
|
|
198
203
|
]
|
|
199
204
|
}
|
|
200
205
|
);
|
|
201
|
-
}
|
|
202
|
-
var src_default =
|
|
206
|
+
}
|
|
207
|
+
var src_default = Visualizer;
|
|
208
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
209
|
+
0 && (module.exports = {
|
|
210
|
+
Visualizer
|
|
211
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './index.less';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
import { GroupedActionDump } from '@midscene/core';
|
|
4
|
+
export declare function Visualizer(props: {
|
|
5
|
+
hideLogo?: boolean;
|
|
6
|
+
logoAction?: () => void;
|
|
7
|
+
dump?: GroupedActionDump[];
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export default Visualizer;
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"types": "./dist/types/index.d.ts",
|
|
5
5
|
"jsnext:source": "./src/index.ts",
|
|
6
6
|
"main": "./dist/lib/index.js",
|
|
7
7
|
"module": "./dist/es/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
8
12
|
"dependencies": {
|
|
9
13
|
"@ant-design/icons": "5.3.7",
|
|
10
14
|
"@modern-js/runtime": "^2.54.2",
|
|
@@ -15,13 +19,14 @@
|
|
|
15
19
|
"react-dom": "~18.2.0",
|
|
16
20
|
"react-resizable-panels": "2.0.22",
|
|
17
21
|
"zustand": "4.5.2",
|
|
18
|
-
"@midscene/core": "0.0
|
|
22
|
+
"@midscene/core": "0.1.0"
|
|
19
23
|
},
|
|
20
24
|
"devDependencies": {
|
|
21
25
|
"@modern-js/module-tools": "^2.54.2",
|
|
22
26
|
"@modern-js/plugin-module-doc": "^2.33.1",
|
|
23
|
-
"@types/react": "
|
|
24
|
-
"@types/react-dom": "
|
|
27
|
+
"@types/react": "18.3.3",
|
|
28
|
+
"@types/react-dom": "18.3.0",
|
|
29
|
+
"@types/node": "^18.0.0",
|
|
25
30
|
"react": "~18.2.0",
|
|
26
31
|
"react-dom": "~18.2.0",
|
|
27
32
|
"rimraf": "~3.0.2",
|