@yuku123/z-team-component 0.2.6 → 0.2.8
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/{InvitationManagementPage-BVBwdTi0.js → InvitationManagementPage-DEBZvFZU.js} +2 -2
- package/dist/{LowCodePage-DH-DYM7K.js → LowCodePage-yemTBcZ4.js} +1 -1
- package/dist/{OnboardingPage-Cy2YU_Og.js → OnboardingPage-Bi3S5eug.js} +2 -2
- package/dist/{ProjectApp-YRqDFopZ.js → ProjectApp-9qtrgr7d.js} +154 -168
- package/dist/admin-logs-BIRWnOwM.js +254 -0
- package/dist/api-3Ur1kq2A.js +2049 -0
- package/dist/{api-B6evTauY.js → api-B2d2enyL.js} +1 -1
- package/dist/{createWorkspaceWsHandler-DrV9AaO7.js → createWorkspaceWsHandler-CSAGqlPX.js} +3568 -3269
- package/dist/{index-l8P_AuvD.js → index-BIVN--Bi.js} +1 -1
- package/dist/index-B_YVSwmJ.js +11710 -0
- package/dist/{index-DM_AMiPz.js → index-C6SfK489.js} +36 -35
- package/dist/{index-BK9rSfN3.js → index-C8uSn9eX.js} +10 -10
- package/dist/{index-CuuZlPvb.js → index-CPUeMpa8.js} +4 -4
- package/dist/{index-CHSnuHux.js → index-Cml0C09P.js} +12241 -23651
- package/dist/{index-Bw02b5qJ.js → index-CsCPAoPb.js} +14819 -13930
- package/dist/{index-DYXWNyaR.js → index-D3DF6vFc.js} +17 -17
- package/dist/{index-D-oG0ReT.js → index-DMEjkEMq.js} +3 -3
- package/dist/{index-D_SjmsjB.js → index-DNyYOedu.js} +4 -4
- package/dist/{index-Bh5PFiY9.js → index-wXqXyXmm.js} +33 -32
- package/dist/index.js +1 -1
- package/dist/instance-ClduEMxs.js +215 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DxD_vD7Z.js → send-default-agent-team-message-B3Qon0X2.js} +1 -1
- package/dist/{sso-user-D1eNVXkY.js → sso-user-BOEGMUJA.js} +1 -1
- package/dist/{useAppStore-C12Ala1u.js → useAppStore-D8PnbXea.js} +1 -1
- package/dist/z-team-component.css +2 -2
- package/package.json +4 -1
- package/dist/api-W2_U7Nxd.js +0 -3866
- package/dist/ctc-signout-C_dAvsu5.js +0 -9
|
@@ -5,21 +5,17 @@ import { Button as k, Breadcrumb as On, Space as U, Row as Q, Col as _, Select a
|
|
|
5
5
|
import { InboxOutlined as Rn, ExclamationCircleOutlined as rn, ReloadOutlined as pe, SettingOutlined as Pn, ProjectOutlined as pt, UserOutlined as an, AuditOutlined as St, RobotOutlined as Tt, ApiOutlined as Rt, AppstoreOutlined as Nn, ThunderboltOutlined as Pe, BarChartOutlined as Dn, ScheduleOutlined as Mn, FileTextOutlined as qe, CheckCircleOutlined as yt, PlusOutlined as ve, HolderOutlined as Ft, CopyOutlined as Qe, DeleteOutlined as fe, DatabaseOutlined as mt, CodeOutlined as Ae, FormatPainterOutlined as Bt, EditOutlined as Ne, ExportOutlined as on, HistoryOutlined as Ln, DownloadOutlined as _t, CloudUploadOutlined as kt, FileAddOutlined as $n, ImportOutlined as et, SearchOutlined as sn, InfoCircleOutlined as Fn, FunctionOutlined as at, PlayCircleOutlined as He, ExperimentOutlined as Bn, GlobalOutlined as cn, NodeIndexOutlined as _n, UndoOutlined as Un, FileSearchOutlined as qn, VideoCameraOutlined as bt, StopOutlined as Hn, EyeOutlined as jn, PauseCircleOutlined as Gn, SaveOutlined as dn, ArrowLeftOutlined as un, SendOutlined as Kn } from "@ant-design/icons";
|
|
6
6
|
import "@yuku123/z-frontend-common";
|
|
7
7
|
import Pt from "axios";
|
|
8
|
-
import * as Jn from "echarts/core";
|
|
9
|
-
import { LineChart as Vn, PieChart as Wn, BarChart as Yn } from "echarts/charts";
|
|
10
|
-
import { GridComponent as Xn, TooltipComponent as Zn, LegendComponent as Qn, TitleComponent as el } from "echarts/components";
|
|
11
|
-
import { CanvasRenderer as tl } from "echarts/renderers";
|
|
12
8
|
const me = (t) => {
|
|
13
9
|
const a = vn(t);
|
|
14
10
|
return (l) => /* @__PURE__ */ e(En, { fallback: null, children: /* @__PURE__ */ e(a, { ...l }) });
|
|
15
|
-
}, Me = me(() => import("./index-
|
|
16
|
-
me(() => import("./index-
|
|
17
|
-
const
|
|
18
|
-
function
|
|
11
|
+
}, Me = me(() => import("./index-Cml0C09P.js").then((t) => t.A)), Jn = me(() => import("./index-C6SfK489.js")), Vn = me(() => import("./index-wXqXyXmm.js")), Wn = me(() => import("./index-CPUeMpa8.js")), Yn = me(() => import("./index-D3DF6vFc.js")), Xn = me(() => import("./index-C8uSn9eX.js"));
|
|
12
|
+
me(() => import("./index-CsCPAoPb.js").then((t) => t.i));
|
|
13
|
+
const Zn = me(() => import("./index-CcFJEYgr.js")), Qn = me(() => import("./index-BmK_rWsV.js")), el = me(() => import("./index-BkX0I2aB.js")), tl = me(() => import("./index-BIVN--Bi.js")), nl = me(() => import("./index-C1C2qyDr.js")), ll = me(() => import("./index-DMEjkEMq.js"));
|
|
14
|
+
function fr({ forcedMode: t }) {
|
|
19
15
|
const { pathname: a } = An(), l = a.replace(/\/+$/, "") || "/";
|
|
20
|
-
return t === "system" ? /* @__PURE__ */ e(Me, { forcedChatMode: "system" }) : t === "rpa" ? /* @__PURE__ */ e(Me, { forcedChatMode: "rpa" }) : t === "dev" ? /* @__PURE__ */ e(Me, { forcedChatMode: "dev" }) : l === "/workspace" ? /* @__PURE__ */ e(Me, {}) : l === "/workspace/phone" ? /* @__PURE__ */ e(
|
|
16
|
+
return t === "system" ? /* @__PURE__ */ e(Me, { forcedChatMode: "system" }) : t === "rpa" ? /* @__PURE__ */ e(Me, { forcedChatMode: "rpa" }) : t === "dev" ? /* @__PURE__ */ e(Me, { forcedChatMode: "dev" }) : l === "/workspace" ? /* @__PURE__ */ e(Me, {}) : l === "/workspace/phone" ? /* @__PURE__ */ e(Jn, {}) : l === "/workspace/from-ticket" ? /* @__PURE__ */ e(Vn, {}) : l === "/workspace/from-scenario" ? /* @__PURE__ */ e(Wn, {}) : l === "/workspace/build-by-form" ? /* @__PURE__ */ e(Yn, {}) : l === "/scenario" ? /* @__PURE__ */ e(Xn, {}) : l === "/admin" ? /* @__PURE__ */ e(Me, {}) : l === "/welcome" ? /* @__PURE__ */ e(Qn, {}) : l === "/portal" ? /* @__PURE__ */ e(el, {}) : l === "/chatdemo" ? /* @__PURE__ */ e(Zn, {}) : l === "/embed/chat" || l.startsWith("/embed/chat/") ? /* @__PURE__ */ e(ll, {}) : l === "/change-log" ? /* @__PURE__ */ e(tl, {}) : l === "/docs" ? /* @__PURE__ */ e(nl, {}) : /* @__PURE__ */ e(Me, {});
|
|
21
17
|
}
|
|
22
|
-
function
|
|
18
|
+
function rl(t) {
|
|
23
19
|
if (!t || typeof t != "string") return null;
|
|
24
20
|
const a = t.split(".");
|
|
25
21
|
if (a.length !== 3) return null;
|
|
@@ -33,12 +29,12 @@ function pl(t) {
|
|
|
33
29
|
return null;
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
|
-
function
|
|
37
|
-
const l =
|
|
32
|
+
function al(t, a = 30) {
|
|
33
|
+
const l = rl(t);
|
|
38
34
|
return !l || typeof l.exp != "number" ? !0 : Date.now() / 1e3 > l.exp - a;
|
|
39
35
|
}
|
|
40
36
|
let Ut = !1;
|
|
41
|
-
const
|
|
37
|
+
const il = [
|
|
42
38
|
"/ctc/authn/login",
|
|
43
39
|
"/ctc/authn/register",
|
|
44
40
|
"/ctc/authn/send-code",
|
|
@@ -56,8 +52,8 @@ const yl = [
|
|
|
56
52
|
"/sso/login",
|
|
57
53
|
"/sso/callback"
|
|
58
54
|
];
|
|
59
|
-
function
|
|
60
|
-
return
|
|
55
|
+
function ol(t) {
|
|
56
|
+
return il.some((a) => t.includes(a));
|
|
61
57
|
}
|
|
62
58
|
function qt(t) {
|
|
63
59
|
if (Ut || typeof window > "u" || window.location.pathname.startsWith("/login")) return;
|
|
@@ -70,18 +66,18 @@ function qt(t) {
|
|
|
70
66
|
const a = window.location.pathname + window.location.search, l = encodeURIComponent(a);
|
|
71
67
|
window.location.href = `/login?redirect=${l}`;
|
|
72
68
|
}
|
|
73
|
-
function
|
|
69
|
+
function sl(t) {
|
|
74
70
|
if (t && typeof t == "object" && "code" in t && "data" in t) {
|
|
75
71
|
const a = t;
|
|
76
72
|
return (typeof a.success == "boolean" ? a.success : typeof a.code == "number" && a.code >= 200 && a.code < 300) ? a.data : Promise.reject(new Error(a.message || "请求失败"));
|
|
77
73
|
}
|
|
78
74
|
return t;
|
|
79
75
|
}
|
|
80
|
-
function
|
|
76
|
+
function cl(t, a = {}) {
|
|
81
77
|
const { tokenKey: l = "token", userInfoKey: w = "userInfo" } = a;
|
|
82
78
|
t.interceptors.request.use((d) => {
|
|
83
79
|
const y = localStorage.getItem(l);
|
|
84
|
-
if (y &&
|
|
80
|
+
if (y && al(y))
|
|
85
81
|
return qt(`请求前检测到 token 已过期 (${d.url || ""})`), Promise.reject(new Pt.CanceledError("token expired"));
|
|
86
82
|
try {
|
|
87
83
|
const r = localStorage.getItem(w);
|
|
@@ -96,11 +92,11 @@ function bl(t, a = {}) {
|
|
|
96
92
|
}
|
|
97
93
|
return d;
|
|
98
94
|
}), t.interceptors.response.use(
|
|
99
|
-
(d) =>
|
|
95
|
+
(d) => sl(d.data),
|
|
100
96
|
(d) => {
|
|
101
97
|
var x, T;
|
|
102
98
|
const y = (x = d.response) == null ? void 0 : x.status, r = ((T = d.config) == null ? void 0 : T.url) || "";
|
|
103
|
-
return y === 401 ?
|
|
99
|
+
return y === 401 ? ol(r) ? console.warn(`[401] 公开接口返回 401 (不是 token 问题): ${r}`) : qt(`接口 ${r} 返回 401`) : y === 403 ? console.warn("[403] 没有权限访问该资源:", r) : y === 404 ? console.warn("[404] 接口不存在:", r) : y === 500 && console.error("[500] 服务器内部错误:", r), Promise.reject(d);
|
|
104
100
|
}
|
|
105
101
|
);
|
|
106
102
|
}
|
|
@@ -111,12 +107,12 @@ function Nt(t = {}) {
|
|
|
111
107
|
withCredentials: !0
|
|
112
108
|
// Cookie 模式:浏览器自动携带 Cookie
|
|
113
109
|
});
|
|
114
|
-
return
|
|
110
|
+
return cl(a, {
|
|
115
111
|
tokenKey: t.tokenKey,
|
|
116
112
|
userInfoKey: t.userInfoKey
|
|
117
113
|
}), a;
|
|
118
114
|
}
|
|
119
|
-
const W = Nt(),
|
|
115
|
+
const W = Nt(), br = Nt(), Ee = {
|
|
120
116
|
pink: {
|
|
121
117
|
bg: "#ec4899",
|
|
122
118
|
fg: "#ffffff",
|
|
@@ -319,7 +315,7 @@ function it({
|
|
|
319
315
|
}
|
|
320
316
|
);
|
|
321
317
|
}
|
|
322
|
-
function
|
|
318
|
+
function dl({ color: t = "blue", label: a, size: l = 8 }) {
|
|
323
319
|
const w = Ee[t] || Ee.blue;
|
|
324
320
|
return /* @__PURE__ */ n("span", { style: {
|
|
325
321
|
display: "inline-flex",
|
|
@@ -340,7 +336,7 @@ function Cl({ color: t = "blue", label: a, size: l = 8 }) {
|
|
|
340
336
|
a && /* @__PURE__ */ e("span", { children: a })
|
|
341
337
|
] });
|
|
342
338
|
}
|
|
343
|
-
function
|
|
339
|
+
function ul({
|
|
344
340
|
color: t = "blue",
|
|
345
341
|
title: a,
|
|
346
342
|
subtitle: l,
|
|
@@ -355,7 +351,7 @@ function xl({
|
|
|
355
351
|
marginBottom: 16
|
|
356
352
|
}, children: [
|
|
357
353
|
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "baseline", gap: 12 }, children: [
|
|
358
|
-
/* @__PURE__ */ e(
|
|
354
|
+
/* @__PURE__ */ e(dl, { color: t, label: a, size: 10 }),
|
|
359
355
|
l && /* @__PURE__ */ e("span", { style: {
|
|
360
356
|
fontSize: 13,
|
|
361
357
|
color: "#6b7280",
|
|
@@ -393,7 +389,7 @@ function xl({
|
|
|
393
389
|
)
|
|
394
390
|
] });
|
|
395
391
|
}
|
|
396
|
-
function
|
|
392
|
+
function hl({
|
|
397
393
|
title: t,
|
|
398
394
|
description: a,
|
|
399
395
|
icon: l,
|
|
@@ -529,7 +525,7 @@ function wl({
|
|
|
529
525
|
}
|
|
530
526
|
);
|
|
531
527
|
}
|
|
532
|
-
function
|
|
528
|
+
function pl({
|
|
533
529
|
tag: t,
|
|
534
530
|
title: a,
|
|
535
531
|
description: l,
|
|
@@ -633,7 +629,7 @@ function Il({
|
|
|
633
629
|
] })
|
|
634
630
|
] });
|
|
635
631
|
}
|
|
636
|
-
function
|
|
632
|
+
function ml({
|
|
637
633
|
icon: t,
|
|
638
634
|
title: a = "暂无数据",
|
|
639
635
|
description: l,
|
|
@@ -699,7 +695,7 @@ function Sl({
|
|
|
699
695
|
}
|
|
700
696
|
);
|
|
701
697
|
}
|
|
702
|
-
function
|
|
698
|
+
function yl({
|
|
703
699
|
error: t,
|
|
704
700
|
title: a = "加载失败",
|
|
705
701
|
description: l,
|
|
@@ -770,16 +766,6 @@ function Tl({
|
|
|
770
766
|
}
|
|
771
767
|
);
|
|
772
768
|
}
|
|
773
|
-
Jn.use([
|
|
774
|
-
Vn,
|
|
775
|
-
Wn,
|
|
776
|
-
Yn,
|
|
777
|
-
Xn,
|
|
778
|
-
Zn,
|
|
779
|
-
Qn,
|
|
780
|
-
el,
|
|
781
|
-
tl
|
|
782
|
-
]);
|
|
783
769
|
function Ve({
|
|
784
770
|
title: t,
|
|
785
771
|
subtitle: a,
|
|
@@ -876,7 +862,7 @@ function Ve({
|
|
|
876
862
|
}, children: w })
|
|
877
863
|
] }) });
|
|
878
864
|
}
|
|
879
|
-
function
|
|
865
|
+
function gl({ left: t, right: a, extra: l }) {
|
|
880
866
|
return /* @__PURE__ */ n(
|
|
881
867
|
"div",
|
|
882
868
|
{
|
|
@@ -898,7 +884,7 @@ function kl({ left: t, right: a, extra: l }) {
|
|
|
898
884
|
}
|
|
899
885
|
);
|
|
900
886
|
}
|
|
901
|
-
const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total == "number" ? t.total : Array.isArray(t) ? t.length : Array.isArray(t.records) ? t.records.length : Array.isArray(t.data) ? t.data.length : 0 : 0,
|
|
887
|
+
const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total == "number" ? t.total : Array.isArray(t) ? t.length : Array.isArray(t.records) ? t.records.length : Array.isArray(t.data) ? t.data.length : 0 : 0, fl = [
|
|
902
888
|
{
|
|
903
889
|
key: "ai",
|
|
904
890
|
color: "violet",
|
|
@@ -996,7 +982,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
996
982
|
}
|
|
997
983
|
]
|
|
998
984
|
}
|
|
999
|
-
],
|
|
985
|
+
], Cr = () => {
|
|
1000
986
|
const [t, a] = u({
|
|
1001
987
|
configCount: null,
|
|
1002
988
|
projectCount: null,
|
|
@@ -1077,9 +1063,9 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
1077
1063
|
}
|
|
1078
1064
|
) })
|
|
1079
1065
|
] }),
|
|
1080
|
-
|
|
1066
|
+
fl.map((l) => /* @__PURE__ */ n("div", { style: { marginBottom: 32 }, children: [
|
|
1081
1067
|
/* @__PURE__ */ e(
|
|
1082
|
-
|
|
1068
|
+
ul,
|
|
1083
1069
|
{
|
|
1084
1070
|
color: l.color,
|
|
1085
1071
|
title: l.title,
|
|
@@ -1097,7 +1083,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
1097
1083
|
xl: 6,
|
|
1098
1084
|
xxl: 6,
|
|
1099
1085
|
children: /* @__PURE__ */ e(
|
|
1100
|
-
|
|
1086
|
+
hl,
|
|
1101
1087
|
{
|
|
1102
1088
|
title: w.title,
|
|
1103
1089
|
description: w.description,
|
|
@@ -1113,7 +1099,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
1113
1099
|
)) })
|
|
1114
1100
|
] }, l.key)),
|
|
1115
1101
|
/* @__PURE__ */ e(
|
|
1116
|
-
|
|
1102
|
+
pl,
|
|
1117
1103
|
{
|
|
1118
1104
|
tag: "FOR ENGINEERS",
|
|
1119
1105
|
title: "把 Z-One Company 接入你的工作流",
|
|
@@ -1135,7 +1121,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
1135
1121
|
{ type: "JSON", label: "JSON", icon: "{}", color: "#2f54eb", desc: "JSON 字符串" },
|
|
1136
1122
|
{ type: "REF", label: "引用", icon: "🔗", color: "#8c8c8c", desc: "外键引用 BIGINT" }
|
|
1137
1123
|
], ht = Object.fromEntries(gt.map((t) => [t.type, t])), Ct = "application/x-lc-field-type", xt = "application/x-lc-field-idx";
|
|
1138
|
-
function
|
|
1124
|
+
function xr() {
|
|
1139
1125
|
const [t] = Ot(), [a, l] = u(t.get("appCode") || "demo"), [w, d] = u(t.get("tenant") || localStorage.getItem("z_tenant") || "default"), [y, r] = u([]), [x, T] = u(null), [N, F] = u(!1), [m, p] = u(null), [E, f] = u(!1), [z] = o.useForm(), [R, M] = u(null), [b, C] = u(null), [A, v] = u(null), [B, j] = u([]), [I, h] = u(null), [i, s] = u(!1), [K, D] = u(!1), q = dt(async () => {
|
|
1140
1126
|
if (a) {
|
|
1141
1127
|
F(!0);
|
|
@@ -1402,7 +1388,7 @@ function Pr() {
|
|
|
1402
1388
|
pagination: !1,
|
|
1403
1389
|
size: "small",
|
|
1404
1390
|
expandable: {
|
|
1405
|
-
expandedRowRender: (g) => /* @__PURE__ */ e(
|
|
1391
|
+
expandedRowRender: (g) => /* @__PURE__ */ e(bl, { entity: g })
|
|
1406
1392
|
}
|
|
1407
1393
|
}
|
|
1408
1394
|
) })
|
|
@@ -1418,7 +1404,7 @@ function Pr() {
|
|
|
1418
1404
|
onOk: S,
|
|
1419
1405
|
size: "large",
|
|
1420
1406
|
destroyOnHidden: !0,
|
|
1421
|
-
children: /* @__PURE__ */ e(
|
|
1407
|
+
children: /* @__PURE__ */ e(Cl, { form: z, editing: m })
|
|
1422
1408
|
}
|
|
1423
1409
|
),
|
|
1424
1410
|
/* @__PURE__ */ e(
|
|
@@ -1656,7 +1642,7 @@ function Pr() {
|
|
|
1656
1642
|
style: { height: "100%" },
|
|
1657
1643
|
styles: { body: { padding: 12, overflowY: "auto", height: "calc(100% - 40px)" } },
|
|
1658
1644
|
children: Lt ? /* @__PURE__ */ e(
|
|
1659
|
-
|
|
1645
|
+
xl,
|
|
1660
1646
|
{
|
|
1661
1647
|
field: Lt,
|
|
1662
1648
|
onChange: (g) => Cn(I, g)
|
|
@@ -1669,7 +1655,7 @@ function Pr() {
|
|
|
1669
1655
|
)
|
|
1670
1656
|
] });
|
|
1671
1657
|
}
|
|
1672
|
-
function
|
|
1658
|
+
function bl({ entity: t }) {
|
|
1673
1659
|
const a = t.fields || [];
|
|
1674
1660
|
return a.length === 0 ? /* @__PURE__ */ e("span", { style: { color: "#999" }, children: "无字段" }) : /* @__PURE__ */ e(U, { wrap: !0, size: [4, 4], children: a.map((l) => /* @__PURE__ */ n(P, { color: (ht[l.fieldType] || {}).color || "default", children: [
|
|
1675
1661
|
l.fieldCode,
|
|
@@ -1678,7 +1664,7 @@ function El({ entity: t }) {
|
|
|
1678
1664
|
l.required ? " *" : ""
|
|
1679
1665
|
] }, l.fieldCode)) });
|
|
1680
1666
|
}
|
|
1681
|
-
function
|
|
1667
|
+
function Cl({ form: t, editing: a }) {
|
|
1682
1668
|
return /* @__PURE__ */ n(o, { form: t, layout: "vertical", children: [
|
|
1683
1669
|
/* @__PURE__ */ n(U, { style: { width: "100%" }, size: "middle", children: [
|
|
1684
1670
|
/* @__PURE__ */ e(o.Item, { name: "entityCode", label: "实体编码", rules: [{
|
|
@@ -1772,7 +1758,7 @@ function Al({ form: t, editing: a }) {
|
|
|
1772
1758
|
] }) })
|
|
1773
1759
|
] });
|
|
1774
1760
|
}
|
|
1775
|
-
function
|
|
1761
|
+
function xl({ field: t, onChange: a }) {
|
|
1776
1762
|
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ n(o, { layout: "vertical", size: "small", children: [
|
|
1777
1763
|
/* @__PURE__ */ e(o.Item, { label: "字段编码 (物理列名)", required: !0, children: /* @__PURE__ */ e(
|
|
1778
1764
|
O,
|
|
@@ -1873,7 +1859,7 @@ function Ol({ field: t, onChange: a }) {
|
|
|
1873
1859
|
) })
|
|
1874
1860
|
] }) });
|
|
1875
1861
|
}
|
|
1876
|
-
const { Option:
|
|
1862
|
+
const { Option: wl } = Z, Ht = {
|
|
1877
1863
|
STRING: { component: O, props: {} },
|
|
1878
1864
|
TEXT: { component: O.TextArea, props: { rows: 3 } },
|
|
1879
1865
|
INT: { component: he, props: {} },
|
|
@@ -1885,7 +1871,7 @@ const { Option: zl } = Z, Ht = {
|
|
|
1885
1871
|
JSON: { component: O.TextArea, props: { rows: 3, placeholder: "JSON 字符串" } },
|
|
1886
1872
|
REF: { component: he, props: {} }
|
|
1887
1873
|
};
|
|
1888
|
-
function
|
|
1874
|
+
function wr() {
|
|
1889
1875
|
const { entity: t } = zt(), [a] = Ot(), l = a.get("appCode") || "demo", w = a.get("tenant") || localStorage.getItem("z_tenant") || "default", [d, y] = u([]), [r, x] = u(null), [T, N] = u([]), [F, m] = u(0), [p, E] = u(1), [f, z] = u(10), [R, M] = u(!1), [b, C] = u(!1), [A, v] = u(null), [B] = o.useForm(), [j, I] = u({}), h = dt(async () => {
|
|
1890
1876
|
try {
|
|
1891
1877
|
const S = await W.get(`/lc/app/${l}/schema`, { params: { tenantCode: w } });
|
|
@@ -2036,7 +2022,7 @@ function Nr() {
|
|
|
2036
2022
|
allowClear: !0,
|
|
2037
2023
|
showSearch: !0,
|
|
2038
2024
|
optionFilterProp: "label",
|
|
2039
|
-
children: ye.map((De) => /* @__PURE__ */ e(
|
|
2025
|
+
children: ye.map((De) => /* @__PURE__ */ e(wl, { value: De.value, label: De.label, children: De.label }, De.value))
|
|
2040
2026
|
}
|
|
2041
2027
|
);
|
|
2042
2028
|
}
|
|
@@ -2115,7 +2101,7 @@ function Nr() {
|
|
|
2115
2101
|
}
|
|
2116
2102
|
);
|
|
2117
2103
|
}
|
|
2118
|
-
const { Text: Xe, Paragraph:
|
|
2104
|
+
const { Text: Xe, Paragraph: Ir } = Ce, { TextArea: Il } = O, jt = {
|
|
2119
2105
|
PENDING: "default",
|
|
2120
2106
|
GENERATING: "processing",
|
|
2121
2107
|
READY: "success",
|
|
@@ -2129,7 +2115,7 @@ const { Text: Xe, Paragraph: Dr } = Ce, { TextArea: Rl } = O, jt = {
|
|
|
2129
2115
|
ReactPage: "purple",
|
|
2130
2116
|
File: "default"
|
|
2131
2117
|
};
|
|
2132
|
-
function
|
|
2118
|
+
function Sr() {
|
|
2133
2119
|
const a = new URLSearchParams(window.location.search).get("appCode") || "demo", [l] = u(a), [w, d] = u([]), [y, r] = u(!1), [x, T] = u(!1), [N, F] = u(!1), [m, p] = u([]), [E, f] = u(null), [z, R] = u([]), [M] = o.useForm();
|
|
2134
2120
|
ne(() => {
|
|
2135
2121
|
b(), C();
|
|
@@ -2347,7 +2333,7 @@ function Mr() {
|
|
|
2347
2333
|
}))
|
|
2348
2334
|
}
|
|
2349
2335
|
) }),
|
|
2350
|
-
/* @__PURE__ */ e(o.Item, { name: "description", label: "备注", children: /* @__PURE__ */ e(
|
|
2336
|
+
/* @__PURE__ */ e(o.Item, { name: "description", label: "备注", children: /* @__PURE__ */ e(Il, { rows: 2, placeholder: "本次导出的业务说明" }) })
|
|
2351
2337
|
]
|
|
2352
2338
|
}
|
|
2353
2339
|
)
|
|
@@ -2414,12 +2400,12 @@ function Mr() {
|
|
|
2414
2400
|
)
|
|
2415
2401
|
] });
|
|
2416
2402
|
}
|
|
2417
|
-
let
|
|
2403
|
+
let Sl = "/api";
|
|
2418
2404
|
function mn() {
|
|
2419
|
-
return Pt.create({ baseURL:
|
|
2405
|
+
return Pt.create({ baseURL: Sl, timeout: 15e3, withCredentials: !0 });
|
|
2420
2406
|
}
|
|
2421
|
-
const nt = mn(),
|
|
2422
|
-
|
|
2407
|
+
const nt = mn(), Tl = mn();
|
|
2408
|
+
Tl.interceptors.request.use((t) => t);
|
|
2423
2409
|
nt.interceptors.request.use((t) => t);
|
|
2424
2410
|
const ft = "/mock-platform", ce = (t, a) => nt.get(`${ft}${t}`, { params: a }).then((l) => l.data), ie = (t, a, l) => nt.post(`${ft}${t}`, a, { params: l }).then((w) => w.data), ct = (t, a, l) => nt.put(`${ft}${t}`, a, { params: l }).then((w) => w.data), Le = (t, a) => nt.delete(`${ft}${t}`, { params: a }).then((l) => l.data), J = {
|
|
2425
2411
|
stats: () => ce("/stats"),
|
|
@@ -2487,7 +2473,7 @@ const ft = "/mock-platform", ce = (t, a) => nt.get(`${ft}${t}`, { params: a }).t
|
|
|
2487
2473
|
sample: (t) => ce("/openapi/sample", { format: t })
|
|
2488
2474
|
}
|
|
2489
2475
|
}, { TextArea: Kt } = O;
|
|
2490
|
-
function
|
|
2476
|
+
function kl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
2491
2477
|
const [d, y] = u("paste"), [r, x] = u(""), [T, N] = u(null), [F, m] = u(null), [p, E] = u(!1), [f, z] = u([]), [R, M] = u(!1), [b] = o.useForm(), C = At(null), A = () => {
|
|
2492
2478
|
x(""), N(null), m(null), z([]), b.resetFields();
|
|
2493
2479
|
}, v = () => {
|
|
@@ -2567,7 +2553,7 @@ function Dl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
2567
2553
|
title: "Method",
|
|
2568
2554
|
dataIndex: "method",
|
|
2569
2555
|
width: 90,
|
|
2570
|
-
render: (s) => /* @__PURE__ */ e(P, { color:
|
|
2556
|
+
render: (s) => /* @__PURE__ */ e(P, { color: vl(s), children: s })
|
|
2571
2557
|
},
|
|
2572
2558
|
{ title: "Path", dataIndex: "path", width: 240, ellipsis: !0 },
|
|
2573
2559
|
{ title: "Summary", dataIndex: "summary", ellipsis: !0 },
|
|
@@ -2721,10 +2707,10 @@ function Dl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
2721
2707
|
}
|
|
2722
2708
|
);
|
|
2723
2709
|
}
|
|
2724
|
-
function
|
|
2710
|
+
function vl(t) {
|
|
2725
2711
|
return { GET: "blue", POST: "green", PUT: "orange", DELETE: "red", PATCH: "purple" }[t] || "default";
|
|
2726
2712
|
}
|
|
2727
|
-
const { Text: Ze, Paragraph:
|
|
2713
|
+
const { Text: Ze, Paragraph: Tr } = Ce, Jt = [
|
|
2728
2714
|
{
|
|
2729
2715
|
group: "基础数据",
|
|
2730
2716
|
icon: /* @__PURE__ */ e(Ae, {}),
|
|
@@ -2780,7 +2766,7 @@ const { Text: Ze, Paragraph: Lr } = Ce, Jt = [
|
|
|
2780
2766
|
]
|
|
2781
2767
|
}
|
|
2782
2768
|
];
|
|
2783
|
-
function
|
|
2769
|
+
function El({ onInsert: t, form: a, formField: l = "responseTemplate" }) {
|
|
2784
2770
|
const [w, d] = u(""), y = (m) => {
|
|
2785
2771
|
var p;
|
|
2786
2772
|
try {
|
|
@@ -2885,13 +2871,13 @@ function Ll({ onInsert: t, form: a, formField: l = "responseTemplate" }) {
|
|
|
2885
2871
|
}
|
|
2886
2872
|
);
|
|
2887
2873
|
}
|
|
2888
|
-
const { TextArea: Oe } = O, { Text: xe, Paragraph:
|
|
2874
|
+
const { TextArea: Oe } = O, { Text: xe, Paragraph: Al } = Ce, Ol = [
|
|
2889
2875
|
{ value: "GET", label: "GET" },
|
|
2890
2876
|
{ value: "POST", label: "POST" },
|
|
2891
2877
|
{ value: "PUT", label: "PUT" },
|
|
2892
2878
|
{ value: "DELETE", label: "DELETE" },
|
|
2893
2879
|
{ value: "PATCH", label: "PATCH" }
|
|
2894
|
-
], Vt = { GET: "green", POST: "blue", PUT: "orange", DELETE: "red", PATCH: "purple" },
|
|
2880
|
+
], Vt = { GET: "green", POST: "blue", PUT: "orange", DELETE: "red", PATCH: "purple" }, zl = [
|
|
2895
2881
|
{ value: "NONE", label: "无故障" },
|
|
2896
2882
|
{ value: "TIMEOUT", label: "超时 (TIMEOUT)" },
|
|
2897
2883
|
{ value: "EMPTY_RESPONSE", label: "空响应 (EMPTY)" },
|
|
@@ -2899,7 +2885,7 @@ const { TextArea: Oe } = O, { Text: xe, Paragraph: $l } = Ce, Fl = [
|
|
|
2899
2885
|
{ value: "MALFORMED", label: "畸形响应 (MALFORMED)" },
|
|
2900
2886
|
{ value: "500_ERROR", label: "500 错误" },
|
|
2901
2887
|
{ value: "RATE_LIMIT", label: "限流 (RATE_LIMIT)" }
|
|
2902
|
-
],
|
|
2888
|
+
], Rl = [
|
|
2903
2889
|
{ value: "JSON", label: "JSON" },
|
|
2904
2890
|
{ value: "JSONPATH", label: "JSONPath" },
|
|
2905
2891
|
{ value: "REGEX", label: "正则" },
|
|
@@ -3135,7 +3121,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3135
3121
|
] }),
|
|
3136
3122
|
/* @__PURE__ */ n(Q, { gutter: 16, children: [
|
|
3137
3123
|
/* @__PURE__ */ e(_, { span: 12, children: /* @__PURE__ */ e(o.Item, { name: "path", label: "路径", rules: [{ required: !0 }], children: /* @__PURE__ */ e(O, { placeholder: "/api/user/list" }) }) }),
|
|
3138
|
-
/* @__PURE__ */ e(_, { span: 4, children: /* @__PURE__ */ e(o.Item, { name: "method", label: "方法", children: /* @__PURE__ */ e(Z, { options:
|
|
3124
|
+
/* @__PURE__ */ e(_, { span: 4, children: /* @__PURE__ */ e(o.Item, { name: "method", label: "方法", children: /* @__PURE__ */ e(Z, { options: Ol }) }) }),
|
|
3139
3125
|
/* @__PURE__ */ e(_, { span: 4, children: /* @__PURE__ */ e(o.Item, { name: "priority", label: "优先级", children: /* @__PURE__ */ e(he, { min: 0, max: 99, style: { width: "100%" } }) }) }),
|
|
3140
3126
|
/* @__PURE__ */ e(_, { span: 4, children: /* @__PURE__ */ e(o.Item, { name: "statusCode", label: "状态码", children: /* @__PURE__ */ e(he, { min: 100, max: 599, style: { width: "100%" } }) }) })
|
|
3141
3127
|
] }),
|
|
@@ -3180,7 +3166,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3180
3166
|
}
|
|
3181
3167
|
) })
|
|
3182
3168
|
] }),
|
|
3183
|
-
/* @__PURE__ */ e(o.Item, { name: "matchBodyType", label: "Body 匹配类型", children: /* @__PURE__ */ e(Z, { options:
|
|
3169
|
+
/* @__PURE__ */ e(o.Item, { name: "matchBodyType", label: "Body 匹配类型", children: /* @__PURE__ */ e(Z, { options: Rl }) }),
|
|
3184
3170
|
/* @__PURE__ */ e(
|
|
3185
3171
|
o.Item,
|
|
3186
3172
|
{
|
|
@@ -3237,7 +3223,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3237
3223
|
name: "faultType",
|
|
3238
3224
|
label: "故障类型",
|
|
3239
3225
|
extra: "模拟网络异常,验证客户端容错",
|
|
3240
|
-
children: /* @__PURE__ */ e(Z, { options:
|
|
3226
|
+
children: /* @__PURE__ */ e(Z, { options: zl })
|
|
3241
3227
|
}
|
|
3242
3228
|
),
|
|
3243
3229
|
/* @__PURE__ */ e(
|
|
@@ -3299,7 +3285,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3299
3285
|
}
|
|
3300
3286
|
),
|
|
3301
3287
|
/* @__PURE__ */ e(
|
|
3302
|
-
|
|
3288
|
+
El,
|
|
3303
3289
|
{
|
|
3304
3290
|
form: m,
|
|
3305
3291
|
formField: "responseTemplate"
|
|
@@ -3360,7 +3346,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3360
3346
|
/* @__PURE__ */ e(G.Item, { label: "状态", span: 2, children: f.status === 1 ? /* @__PURE__ */ e(P, { color: "green", children: "启用" }) : /* @__PURE__ */ e(P, { children: "禁用" }) }),
|
|
3361
3347
|
/* @__PURE__ */ e(G.Item, { label: "完整 URL", span: 2, children: /* @__PURE__ */ e(xe, { copyable: !0, children: I(f) }) })
|
|
3362
3348
|
] }),
|
|
3363
|
-
/* @__PURE__ */ e(
|
|
3349
|
+
/* @__PURE__ */ e(Al, { strong: !0, children: "响应模板:" }),
|
|
3364
3350
|
/* @__PURE__ */ e("pre", { style: {
|
|
3365
3351
|
background: "#f5f5f5",
|
|
3366
3352
|
padding: 12,
|
|
@@ -3376,7 +3362,7 @@ function vt({ activeEnvCode: t }) {
|
|
|
3376
3362
|
}
|
|
3377
3363
|
),
|
|
3378
3364
|
/* @__PURE__ */ e(
|
|
3379
|
-
|
|
3365
|
+
kl,
|
|
3380
3366
|
{
|
|
3381
3367
|
open: R,
|
|
3382
3368
|
onClose: () => M(!1),
|
|
@@ -3387,11 +3373,11 @@ function vt({ activeEnvCode: t }) {
|
|
|
3387
3373
|
)
|
|
3388
3374
|
] });
|
|
3389
3375
|
}
|
|
3390
|
-
const { Text: wt } = Ce,
|
|
3376
|
+
const { Text: wt } = Ce, Pl = [
|
|
3391
3377
|
{ value: "MOCK", label: "MOCK (纯 Mock 拦截)", color: "green" },
|
|
3392
3378
|
{ value: "REAL", label: "REAL (全部代理到真实)", color: "blue" },
|
|
3393
3379
|
{ value: "MIXED", label: "MIXED (匹配失败时转发)", color: "orange" }
|
|
3394
|
-
],
|
|
3380
|
+
], Nl = { MOCK: "green", REAL: "blue", MIXED: "orange" };
|
|
3395
3381
|
function Et({ onEnvChange: t }) {
|
|
3396
3382
|
const [a, l] = u([]), [w, d] = u(!1), [y, r] = u(!1), [x, T] = u(null), [N] = o.useForm();
|
|
3397
3383
|
ne(() => {
|
|
@@ -3472,7 +3458,7 @@ function Et({ onEnvChange: t }) {
|
|
|
3472
3458
|
dataIndex: "envType",
|
|
3473
3459
|
key: "envType",
|
|
3474
3460
|
width: 240,
|
|
3475
|
-
render: (R) => /* @__PURE__ */ e(P, { color:
|
|
3461
|
+
render: (R) => /* @__PURE__ */ e(P, { color: Nl[R] || "default", children: R })
|
|
3476
3462
|
},
|
|
3477
3463
|
{
|
|
3478
3464
|
title: "真实服务地址",
|
|
@@ -3543,7 +3529,7 @@ function Et({ onEnvChange: t }) {
|
|
|
3543
3529
|
/* @__PURE__ */ e(_, { span: 12, children: /* @__PURE__ */ e(o.Item, { name: "envCode", label: "环境编码", rules: [{ required: !0 }], children: /* @__PURE__ */ e(O, { placeholder: "dev / staging / prod", disabled: !!x }) }) }),
|
|
3544
3530
|
/* @__PURE__ */ e(_, { span: 12, children: /* @__PURE__ */ e(o.Item, { name: "envName", label: "环境名称", rules: [{ required: !0 }], children: /* @__PURE__ */ e(O, { placeholder: "开发环境" }) }) })
|
|
3545
3531
|
] }),
|
|
3546
|
-
/* @__PURE__ */ e(o.Item, { name: "envType", label: "环境类型", rules: [{ required: !0 }], children: /* @__PURE__ */ e(Z, { options:
|
|
3532
|
+
/* @__PURE__ */ e(o.Item, { name: "envType", label: "环境类型", rules: [{ required: !0 }], children: /* @__PURE__ */ e(Z, { options: Pl }) }),
|
|
3547
3533
|
/* @__PURE__ */ e(
|
|
3548
3534
|
o.Item,
|
|
3549
3535
|
{
|
|
@@ -3563,8 +3549,8 @@ function Et({ onEnvChange: t }) {
|
|
|
3563
3549
|
)
|
|
3564
3550
|
] });
|
|
3565
3551
|
}
|
|
3566
|
-
const { Text:
|
|
3567
|
-
function
|
|
3552
|
+
const { Text: Dl } = Ce;
|
|
3553
|
+
function Ml() {
|
|
3568
3554
|
const [t, a] = u([]), [l, w] = u(!1), [d, y] = u(!1), [r, x] = u(null), [T, N] = u(!1), [F, m] = u(null), [p] = o.useForm();
|
|
3569
3555
|
ne(() => {
|
|
3570
3556
|
E();
|
|
@@ -3643,7 +3629,7 @@ function jl() {
|
|
|
3643
3629
|
dataIndex: "scenarioCode",
|
|
3644
3630
|
key: "scenarioCode",
|
|
3645
3631
|
width: 160,
|
|
3646
|
-
render: (v) => /* @__PURE__ */ e(
|
|
3632
|
+
render: (v) => /* @__PURE__ */ e(Dl, { code: !0, children: v })
|
|
3647
3633
|
},
|
|
3648
3634
|
{ title: "场景名称", dataIndex: "scenarioName", key: "scenarioName", width: 200 },
|
|
3649
3635
|
{
|
|
@@ -3785,8 +3771,8 @@ function jl() {
|
|
|
3785
3771
|
)
|
|
3786
3772
|
] });
|
|
3787
3773
|
}
|
|
3788
|
-
const { TextArea: Wt } = O, { Text: $e, Paragraph:
|
|
3789
|
-
function
|
|
3774
|
+
const { TextArea: Wt } = O, { Text: $e, Paragraph: Ll } = Ce;
|
|
3775
|
+
function $l({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
3790
3776
|
const [d, y] = u(""), [r, x] = u(null), [T, N] = u(null), [F, m] = u(!1), [p, E] = u(null), [f, z] = u(!1), [R, M] = u("import"), [b] = o.useForm(), [C] = o.useForm(), A = () => {
|
|
3791
3777
|
y(""), x(null), N(null), E(null), b.resetFields(), C.resetFields();
|
|
3792
3778
|
}, v = () => {
|
|
@@ -3896,7 +3882,7 @@ function Kl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
3896
3882
|
size: "large",
|
|
3897
3883
|
destroyOnHidden: !0,
|
|
3898
3884
|
children: [
|
|
3899
|
-
/* @__PURE__ */ e(
|
|
3885
|
+
/* @__PURE__ */ e(Ll, { type: "secondary", style: { marginBottom: 12 }, children: "从浏览器 DevTools / Postman / 终端复制 curl 命令,粘贴到下方即可解析、试跑、入库。" }),
|
|
3900
3886
|
/* @__PURE__ */ e(
|
|
3901
3887
|
Wt,
|
|
3902
3888
|
{
|
|
@@ -3916,7 +3902,7 @@ function Kl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
3916
3902
|
] }),
|
|
3917
3903
|
T && /* @__PURE__ */ e(ae, { type: "error", showIcon: !0, style: { marginTop: 12 }, title: "解析失败", description: T }),
|
|
3918
3904
|
r && /* @__PURE__ */ e(H, { size: "small", style: { marginTop: 16 }, title: "解析结果", children: /* @__PURE__ */ n(G, { column: 1, size: "small", bordered: !0, children: [
|
|
3919
|
-
/* @__PURE__ */ e(G.Item, { label: "Method", children: /* @__PURE__ */ e(P, { color:
|
|
3905
|
+
/* @__PURE__ */ e(G.Item, { label: "Method", children: /* @__PURE__ */ e(P, { color: Fl(r.method), children: r.method }) }),
|
|
3920
3906
|
/* @__PURE__ */ e(G.Item, { label: "URL", children: /* @__PURE__ */ e($e, { code: !0, copyable: !0, children: r.url }) }),
|
|
3921
3907
|
/* @__PURE__ */ e(G.Item, { label: "Path", children: /* @__PURE__ */ e($e, { code: !0, children: r.path }) }),
|
|
3922
3908
|
r.query && /* @__PURE__ */ e(G.Item, { label: "Query", children: /* @__PURE__ */ e($e, { code: !0, children: r.query }) }),
|
|
@@ -4028,21 +4014,21 @@ function Kl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
4028
4014
|
}
|
|
4029
4015
|
);
|
|
4030
4016
|
}
|
|
4031
|
-
function
|
|
4017
|
+
function Fl(t) {
|
|
4032
4018
|
return { GET: "blue", POST: "green", PUT: "orange", DELETE: "red", PATCH: "purple" }[t] || "default";
|
|
4033
4019
|
}
|
|
4034
|
-
const { Text: ze } = Ce,
|
|
4020
|
+
const { Text: ze } = Ce, Bl = [
|
|
4035
4021
|
{ value: "P0", label: "P0 (最高)" },
|
|
4036
4022
|
{ value: "P1", label: "P1 (高)" },
|
|
4037
4023
|
{ value: "P2", label: "P2 (中)" },
|
|
4038
4024
|
{ value: "P3", label: "P3 (低)" }
|
|
4039
|
-
],
|
|
4025
|
+
], _l = { P0: "red", P1: "orange", P2: "blue", P3: "default" }, It = { PASS: "green", FAIL: "red", SKIP: "default" }, Ul = [
|
|
4040
4026
|
{ value: "EXACT", label: "完全匹配" },
|
|
4041
4027
|
{ value: "CONTAINS", label: "包含" },
|
|
4042
4028
|
{ value: "REGEX", label: "正则" },
|
|
4043
4029
|
{ value: "JSONPATH", label: "JSONPath" }
|
|
4044
4030
|
];
|
|
4045
|
-
function
|
|
4031
|
+
function ql() {
|
|
4046
4032
|
const [t, a] = u([]), [l, w] = u(!1), [d, y] = u([]), [r, x] = u(!1), [T, N] = u(null), [F, m] = u(!1), [p, E] = u(null), [f, z] = u(null), [R, M] = u(!1), [b, C] = u(!1), [A] = o.useForm();
|
|
4047
4033
|
ne(() => {
|
|
4048
4034
|
v();
|
|
@@ -4142,7 +4128,7 @@ function Xl() {
|
|
|
4142
4128
|
key: "priority",
|
|
4143
4129
|
width: 80,
|
|
4144
4130
|
align: "center",
|
|
4145
|
-
render: (D) => /* @__PURE__ */ e(P, { color:
|
|
4131
|
+
render: (D) => /* @__PURE__ */ e(P, { color: _l[D], children: D || "P1" })
|
|
4146
4132
|
},
|
|
4147
4133
|
{
|
|
4148
4134
|
title: "上次结果",
|
|
@@ -4262,7 +4248,7 @@ function Xl() {
|
|
|
4262
4248
|
] }),
|
|
4263
4249
|
/* @__PURE__ */ n(Q, { gutter: 16, children: [
|
|
4264
4250
|
/* @__PURE__ */ e(_, { span: 8, children: /* @__PURE__ */ e(o.Item, { name: "caseGroup", label: "用例分组", children: /* @__PURE__ */ e(O, { placeholder: "login" }) }) }),
|
|
4265
|
-
/* @__PURE__ */ e(_, { span: 8, children: /* @__PURE__ */ e(o.Item, { name: "priority", label: "优先级", children: /* @__PURE__ */ e(Z, { options:
|
|
4251
|
+
/* @__PURE__ */ e(_, { span: 8, children: /* @__PURE__ */ e(o.Item, { name: "priority", label: "优先级", children: /* @__PURE__ */ e(Z, { options: Bl }) }) }),
|
|
4266
4252
|
/* @__PURE__ */ e(_, { span: 8, children: /* @__PURE__ */ e(o.Item, { name: "envCode", label: "环境", children: /* @__PURE__ */ e(O, { placeholder: "default" }) }) })
|
|
4267
4253
|
] }),
|
|
4268
4254
|
/* @__PURE__ */ n(Q, { gutter: 16, children: [
|
|
@@ -4295,7 +4281,7 @@ function Xl() {
|
|
|
4295
4281
|
}
|
|
4296
4282
|
),
|
|
4297
4283
|
/* @__PURE__ */ e(o.Item, { name: "requestBody", label: "请求体", children: /* @__PURE__ */ e(O.TextArea, { rows: 3, placeholder: '{"username":"test","password":"xxx"}' }) }),
|
|
4298
|
-
/* @__PURE__ */ e(o.Item, { name: "expectedBodyMatchType", label: "Body 匹配方式", children: /* @__PURE__ */ e(Z, { options:
|
|
4284
|
+
/* @__PURE__ */ e(o.Item, { name: "expectedBodyMatchType", label: "Body 匹配方式", children: /* @__PURE__ */ e(Z, { options: Ul }) }),
|
|
4299
4285
|
/* @__PURE__ */ e(o.Item, { name: "expectedBody", label: "期望 Body", children: /* @__PURE__ */ e(O.TextArea, { rows: 3, placeholder: '{"code": 200, "success": true}' }) }),
|
|
4300
4286
|
/* @__PURE__ */ e(
|
|
4301
4287
|
o.Item,
|
|
@@ -4439,7 +4425,7 @@ function Xl() {
|
|
|
4439
4425
|
}
|
|
4440
4426
|
),
|
|
4441
4427
|
/* @__PURE__ */ e(
|
|
4442
|
-
|
|
4428
|
+
$l,
|
|
4443
4429
|
{
|
|
4444
4430
|
open: b,
|
|
4445
4431
|
onClose: () => C(!1),
|
|
@@ -4456,7 +4442,7 @@ const { Text: we } = Ce, Yt = {
|
|
|
4456
4442
|
STOPPED: "green",
|
|
4457
4443
|
EXPIRED: "gray"
|
|
4458
4444
|
};
|
|
4459
|
-
function
|
|
4445
|
+
function Hl() {
|
|
4460
4446
|
const [t, a] = u([]), [l, w] = u(!1), [d, y] = u(!1), [r, x] = u(!1), [T, N] = u(!1), [F, m] = u(!1), [p, E] = u(null), [f, z] = u([]), [R] = o.useForm(), [M] = o.useForm(), [b] = o.useForm(), [C, A] = u([]), [v, B] = u(!1), [j, I] = u([]);
|
|
4461
4447
|
ne(() => {
|
|
4462
4448
|
h();
|
|
@@ -4874,8 +4860,8 @@ function Zl() {
|
|
|
4874
4860
|
)
|
|
4875
4861
|
] });
|
|
4876
4862
|
}
|
|
4877
|
-
const { Text: Fe } = Ce,
|
|
4878
|
-
function
|
|
4863
|
+
const { Text: Fe } = Ce, jl = { MOCK: "green", PROXY: "blue", 404: "red", 502: "orange" };
|
|
4864
|
+
function Gl() {
|
|
4879
4865
|
const [t, a] = u([]), [l, w] = u(null), [d, y] = u(!1), [r, x] = u(null), [T, N] = u(!1), [F, m] = u(""), [p, E] = u();
|
|
4880
4866
|
ne(() => {
|
|
4881
4867
|
f();
|
|
@@ -4955,7 +4941,7 @@ function er() {
|
|
|
4955
4941
|
dataIndex: "fallbackType",
|
|
4956
4942
|
key: "fallbackType",
|
|
4957
4943
|
width: 100,
|
|
4958
|
-
render: (b) => b ? /* @__PURE__ */ e(P, { color:
|
|
4944
|
+
render: (b) => b ? /* @__PURE__ */ e(P, { color: jl[b], children: b }) : "-"
|
|
4959
4945
|
},
|
|
4960
4946
|
{
|
|
4961
4947
|
title: "耗时",
|
|
@@ -5161,12 +5147,12 @@ function er() {
|
|
|
5161
5147
|
const { Text: Ie } = Ce, Xt = [
|
|
5162
5148
|
{ key: "endpoints", label: "Mock 端点", component: vt },
|
|
5163
5149
|
{ key: "environments", label: "环境 (MOCK/REAL/MIXED)", component: Et },
|
|
5164
|
-
{ key: "scenarios", label: "场景状态机", component:
|
|
5165
|
-
{ key: "cases", label: "测试用例", component:
|
|
5166
|
-
{ key: "recordings", label: "录制回放", component:
|
|
5167
|
-
{ key: "request-logs", label: "请求日志", component:
|
|
5150
|
+
{ key: "scenarios", label: "场景状态机", component: Ml },
|
|
5151
|
+
{ key: "cases", label: "测试用例", component: ql },
|
|
5152
|
+
{ key: "recordings", label: "录制回放", component: Hl },
|
|
5153
|
+
{ key: "request-logs", label: "请求日志", component: Gl }
|
|
5168
5154
|
];
|
|
5169
|
-
function
|
|
5155
|
+
function Kl() {
|
|
5170
5156
|
var F;
|
|
5171
5157
|
const [t, a] = u("endpoints"), [l, w] = u([]), [d, y] = u("default"), [r, x] = u(null);
|
|
5172
5158
|
ne(() => {
|
|
@@ -5259,16 +5245,16 @@ function tr() {
|
|
|
5259
5245
|
)
|
|
5260
5246
|
] });
|
|
5261
5247
|
}
|
|
5262
|
-
const
|
|
5248
|
+
const kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5263
5249
|
__proto__: null,
|
|
5264
|
-
default:
|
|
5265
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5250
|
+
default: Kl
|
|
5251
|
+
}, Symbol.toStringTag, { value: "Module" })), Jl = {
|
|
5266
5252
|
STANDARD_JSON: { label: "标准 JSON", color: "blue" },
|
|
5267
5253
|
RSS_XML: { label: "RSS 2.0", color: "orange" },
|
|
5268
5254
|
ATOM_XML: { label: "Atom 1.0", color: "gold" },
|
|
5269
5255
|
CUSTOM_SCRIPT: { label: "自定义脚本", color: "purple" },
|
|
5270
5256
|
INTERNAL_BEAN: { label: "内部 Bean", color: "cyan" }
|
|
5271
|
-
},
|
|
5257
|
+
}, Vl = {
|
|
5272
5258
|
PENDING_VERIFY: { color: "default", text: "待验证" },
|
|
5273
5259
|
VERIFIED: { color: "green", text: "已验证" },
|
|
5274
5260
|
INVALID_AUTH: { color: "red", text: "鉴权失败" },
|
|
@@ -5282,7 +5268,7 @@ const $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5282
5268
|
FAILED: { color: "red" },
|
|
5283
5269
|
FATAL: { color: "red" }
|
|
5284
5270
|
};
|
|
5285
|
-
function
|
|
5271
|
+
function Wl() {
|
|
5286
5272
|
const t = Ge(), [a, l] = u([]), [w, d] = u(!1), [y, r] = u(null), [x, T] = u([]), [N, F] = u({}), [m, p] = u(null), [E, f] = u([]), z = async () => {
|
|
5287
5273
|
d(!0);
|
|
5288
5274
|
try {
|
|
@@ -5426,7 +5412,7 @@ function rr() {
|
|
|
5426
5412
|
dataIndex: "extractorType",
|
|
5427
5413
|
width: 140,
|
|
5428
5414
|
render: (I) => {
|
|
5429
|
-
const h =
|
|
5415
|
+
const h = Jl[I] || { label: I, color: "default" };
|
|
5430
5416
|
return /* @__PURE__ */ e(P, { color: h.color, children: h.label });
|
|
5431
5417
|
}
|
|
5432
5418
|
},
|
|
@@ -5441,7 +5427,7 @@ function rr() {
|
|
|
5441
5427
|
dataIndex: "status",
|
|
5442
5428
|
width: 110,
|
|
5443
5429
|
render: (I) => {
|
|
5444
|
-
const h =
|
|
5430
|
+
const h = Vl[I] || { color: "default", text: I };
|
|
5445
5431
|
return /* @__PURE__ */ e(P, { color: h.color, children: h.text });
|
|
5446
5432
|
}
|
|
5447
5433
|
},
|
|
@@ -5684,12 +5670,12 @@ function rr() {
|
|
|
5684
5670
|
}
|
|
5685
5671
|
]
|
|
5686
5672
|
}
|
|
5687
|
-
) : /* @__PURE__ */ e(
|
|
5673
|
+
) : /* @__PURE__ */ e(Yl, { result: y == null ? void 0 : y.result })
|
|
5688
5674
|
}
|
|
5689
5675
|
)
|
|
5690
5676
|
] });
|
|
5691
5677
|
}
|
|
5692
|
-
function
|
|
5678
|
+
function Yl({ result: t }) {
|
|
5693
5679
|
return t ? t.success ? /* @__PURE__ */ n(U, { orientation: "vertical", style: { width: "100%" }, size: "middle", children: [
|
|
5694
5680
|
/* @__PURE__ */ e(H, { size: "small", title: "调用结果", children: /* @__PURE__ */ n(U, { size: "large", wrap: !0, children: [
|
|
5695
5681
|
/* @__PURE__ */ n("span", { children: [
|
|
@@ -5734,18 +5720,18 @@ function ar({ result: t }) {
|
|
|
5734
5720
|
t.fieldErrors && t.fieldErrors.length > 0 && /* @__PURE__ */ e(ae, { type: "warning", showIcon: !0, message: "字段问题", description: /* @__PURE__ */ e("ul", { children: t.fieldErrors.map((a, l) => /* @__PURE__ */ e("li", { children: a }, l)) }) })
|
|
5735
5721
|
] }) : /* @__PURE__ */ e(ae, { type: "error", showIcon: !0, title: "试运行失败", description: t.errorMessage || "未知错误" }) : null;
|
|
5736
5722
|
}
|
|
5737
|
-
const
|
|
5723
|
+
const Xl = [
|
|
5738
5724
|
{ value: "STANDARD_JSON", label: "标准 JSON (按统一契约返回的 JSON)" },
|
|
5739
5725
|
{ value: "RSS_XML", label: "RSS 2.0 (XML feed)" },
|
|
5740
5726
|
{ value: "ATOM_XML", label: "Atom 1.0 (XML feed)" },
|
|
5741
5727
|
{ value: "CUSTOM_SCRIPT", label: "自定义脚本 (z-script 平台)" },
|
|
5742
5728
|
{ value: "INTERNAL_BEAN", label: "内部 Bean (我们自己的模块, 暂未启用)" }
|
|
5743
|
-
],
|
|
5729
|
+
], Zl = [
|
|
5744
5730
|
{ value: "NONE", label: "无鉴权" },
|
|
5745
5731
|
{ value: "BEARER", label: "Bearer (Authorization: Bearer xxx)" },
|
|
5746
5732
|
{ value: "API_KEY", label: "API Key (Authorization: xxx)" },
|
|
5747
5733
|
{ value: "BASIC", label: "Basic (user:password base64)" }
|
|
5748
|
-
],
|
|
5734
|
+
], Ql = [
|
|
5749
5735
|
{ label: "每 5 分钟", value: "0 */5 * * * ?" },
|
|
5750
5736
|
{ label: "每 15 分钟", value: "0 */15 * * * ?" },
|
|
5751
5737
|
{ label: "每小时", value: "0 0 * * * ?" },
|
|
@@ -5863,7 +5849,7 @@ function Qt() {
|
|
|
5863
5849
|
] })
|
|
5864
5850
|
] }),
|
|
5865
5851
|
/* @__PURE__ */ n(H, { type: "inner", title: "鉴权 (从 z-mist 拉取 secret)", style: { marginBottom: 16 }, children: [
|
|
5866
|
-
/* @__PURE__ */ e(o.Item, { label: "鉴权方式", name: "authType", children: /* @__PURE__ */ e(Z, { options:
|
|
5852
|
+
/* @__PURE__ */ e(o.Item, { label: "鉴权方式", name: "authType", children: /* @__PURE__ */ e(Z, { options: Zl }) }),
|
|
5867
5853
|
f && f !== "NONE" && /* @__PURE__ */ e(
|
|
5868
5854
|
o.Item,
|
|
5869
5855
|
{
|
|
@@ -5893,7 +5879,7 @@ function Qt() {
|
|
|
5893
5879
|
name: "extractorType",
|
|
5894
5880
|
rules: [{ required: !0 }],
|
|
5895
5881
|
extra: "STANDARD_JSON/RSS_XML/ATOM_XML 直接解析; CUSTOM_SCRIPT 调 z-script 平台",
|
|
5896
|
-
children: /* @__PURE__ */ e(Z, { options:
|
|
5882
|
+
children: /* @__PURE__ */ e(Z, { options: Xl })
|
|
5897
5883
|
}
|
|
5898
5884
|
),
|
|
5899
5885
|
E === "CUSTOM_SCRIPT" && /* @__PURE__ */ e(
|
|
@@ -5930,7 +5916,7 @@ function Qt() {
|
|
|
5930
5916
|
{
|
|
5931
5917
|
style: { width: 140 },
|
|
5932
5918
|
placeholder: "常用",
|
|
5933
|
-
options:
|
|
5919
|
+
options: Ql,
|
|
5934
5920
|
onChange: (C) => w.setFieldValue("cronExpr", C),
|
|
5935
5921
|
value: null
|
|
5936
5922
|
}
|
|
@@ -5967,7 +5953,7 @@ function Qt() {
|
|
|
5967
5953
|
) }) })
|
|
5968
5954
|
] });
|
|
5969
5955
|
}
|
|
5970
|
-
const
|
|
5956
|
+
const er = {
|
|
5971
5957
|
PENDING: "default",
|
|
5972
5958
|
RUNNING: "processing",
|
|
5973
5959
|
SUCCESS: "green",
|
|
@@ -5975,7 +5961,7 @@ const cr = {
|
|
|
5975
5961
|
FAILED: "red",
|
|
5976
5962
|
FATAL: "red"
|
|
5977
5963
|
};
|
|
5978
|
-
function
|
|
5964
|
+
function tr() {
|
|
5979
5965
|
const [t, a] = u([]), [l, w] = u(null), [d, y] = u([]), [r, x] = u([]), [T, N] = u(null), [F, m] = u(!1);
|
|
5980
5966
|
ne(() => {
|
|
5981
5967
|
p();
|
|
@@ -6017,7 +6003,7 @@ function dr() {
|
|
|
6017
6003
|
}
|
|
6018
6004
|
),
|
|
6019
6005
|
/* @__PURE__ */ e(
|
|
6020
|
-
|
|
6006
|
+
gl,
|
|
6021
6007
|
{
|
|
6022
6008
|
left: /* @__PURE__ */ e(
|
|
6023
6009
|
Z,
|
|
@@ -6084,7 +6070,7 @@ function dr() {
|
|
|
6084
6070
|
title: "状态",
|
|
6085
6071
|
dataIndex: "status",
|
|
6086
6072
|
width: 80,
|
|
6087
|
-
render: (b) => /* @__PURE__ */ e(P, { color:
|
|
6073
|
+
render: (b) => /* @__PURE__ */ e(P, { color: er[b], children: b })
|
|
6088
6074
|
},
|
|
6089
6075
|
{
|
|
6090
6076
|
title: "拉取/成功/死信",
|
|
@@ -6148,25 +6134,25 @@ function dr() {
|
|
|
6148
6134
|
] })
|
|
6149
6135
|
] });
|
|
6150
6136
|
}
|
|
6151
|
-
function
|
|
6137
|
+
function nr() {
|
|
6152
6138
|
return /* @__PURE__ */ n(tn, { children: [
|
|
6153
6139
|
/* @__PURE__ */ e(Te, { index: !0, element: /* @__PURE__ */ e(nn, { to: "list", replace: !0 }) }),
|
|
6154
|
-
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(
|
|
6140
|
+
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(Wl, {}) }),
|
|
6155
6141
|
/* @__PURE__ */ e(Te, { path: "new", element: /* @__PURE__ */ e(Qt, {}) }),
|
|
6156
6142
|
/* @__PURE__ */ e(Te, { path: "edit/:id", element: /* @__PURE__ */ e(Qt, {}) }),
|
|
6157
|
-
/* @__PURE__ */ e(Te, { path: "runs", element: /* @__PURE__ */ e(
|
|
6143
|
+
/* @__PURE__ */ e(Te, { path: "runs", element: /* @__PURE__ */ e(tr, {}) })
|
|
6158
6144
|
] });
|
|
6159
6145
|
}
|
|
6160
|
-
const
|
|
6146
|
+
const vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6161
6147
|
__proto__: null,
|
|
6162
|
-
default:
|
|
6163
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6148
|
+
default: nr
|
|
6149
|
+
}, Symbol.toStringTag, { value: "Module" })), lr = {
|
|
6164
6150
|
OPEN: { color: "blue", text: "待开始" },
|
|
6165
6151
|
IN_PROGRESS: { color: "green", text: "进行中" },
|
|
6166
6152
|
COMPLETED: { color: "default", text: "已完成" },
|
|
6167
6153
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
6168
6154
|
};
|
|
6169
|
-
function
|
|
6155
|
+
function rr() {
|
|
6170
6156
|
const t = Ge(), [a, l] = u("mine"), [w, d] = u([]), [y, r] = u(!1), [x, T] = u(null), N = async () => {
|
|
6171
6157
|
r(!0), T(null);
|
|
6172
6158
|
try {
|
|
@@ -6210,7 +6196,7 @@ function pr() {
|
|
|
6210
6196
|
dataIndex: "status",
|
|
6211
6197
|
width: 100,
|
|
6212
6198
|
render: (E) => {
|
|
6213
|
-
const f =
|
|
6199
|
+
const f = lr[E] || { color: "default", text: E };
|
|
6214
6200
|
return /* @__PURE__ */ e(P, { color: f.color, children: f.text });
|
|
6215
6201
|
}
|
|
6216
6202
|
},
|
|
@@ -6255,7 +6241,7 @@ function pr() {
|
|
|
6255
6241
|
breadcrumb: [{ label: "项目中心" }]
|
|
6256
6242
|
}
|
|
6257
6243
|
),
|
|
6258
|
-
x && !y && /* @__PURE__ */ e("div", { style: { marginBottom: 16 }, children: /* @__PURE__ */ e(
|
|
6244
|
+
x && !y && /* @__PURE__ */ e("div", { style: { marginBottom: 16 }, children: /* @__PURE__ */ e(yl, { error: x, onRetry: N }) }),
|
|
6259
6245
|
/* @__PURE__ */ n("div", { style: {
|
|
6260
6246
|
background: "#ffffff",
|
|
6261
6247
|
borderRadius: 16,
|
|
@@ -6288,7 +6274,7 @@ function pr() {
|
|
|
6288
6274
|
}
|
|
6289
6275
|
),
|
|
6290
6276
|
p ? /* @__PURE__ */ e(
|
|
6291
|
-
|
|
6277
|
+
ml,
|
|
6292
6278
|
{
|
|
6293
6279
|
title: "还没有项目",
|
|
6294
6280
|
description: "立项一个项目, 让 Agent 围绕目标持续推进对话与任务",
|
|
@@ -6309,14 +6295,14 @@ function pr() {
|
|
|
6309
6295
|
] })
|
|
6310
6296
|
] });
|
|
6311
6297
|
}
|
|
6312
|
-
const
|
|
6298
|
+
const ar = [
|
|
6313
6299
|
{ value: "general", label: "通用助手" },
|
|
6314
6300
|
{ value: "analyst", label: "分析师" },
|
|
6315
6301
|
{ value: "writer", label: "写手" },
|
|
6316
6302
|
{ value: "pm", label: "产品经理" },
|
|
6317
6303
|
{ value: "ops", label: "运营" }
|
|
6318
6304
|
];
|
|
6319
|
-
function
|
|
6305
|
+
function ir() {
|
|
6320
6306
|
const t = Ge(), [a] = Ot(), [l] = o.useForm(), [w, d] = u(!1), [y, r] = u("from-subscribe"), [x, T] = u([]), [N, F] = u([]), [m, p] = u(!1), [E, f] = u([]), [z, R] = u(null);
|
|
6321
6307
|
ne(() => {
|
|
6322
6308
|
const A = a.get("subscriptionId"), v = a.get("itemIds");
|
|
@@ -6477,7 +6463,7 @@ function yr() {
|
|
|
6477
6463
|
] })
|
|
6478
6464
|
] }),
|
|
6479
6465
|
/* @__PURE__ */ n(H, { type: "inner", title: "Agent 配置", style: { marginBottom: 16 }, children: [
|
|
6480
|
-
/* @__PURE__ */ e(o.Item, { label: "Agent 角色", name: "agentRole", extra: "决定 system prompt 的语气 / 视角", children: /* @__PURE__ */ e(Z, { options:
|
|
6466
|
+
/* @__PURE__ */ e(o.Item, { label: "Agent 角色", name: "agentRole", extra: "决定 system prompt 的语气 / 视角", children: /* @__PURE__ */ e(Z, { options: ar }) }),
|
|
6481
6467
|
/* @__PURE__ */ e(
|
|
6482
6468
|
o.Item,
|
|
6483
6469
|
{
|
|
@@ -6504,13 +6490,13 @@ const en = {
|
|
|
6504
6490
|
USER: { color: "blue", icon: /* @__PURE__ */ e(an, {}), label: "CEO" },
|
|
6505
6491
|
ASSISTANT: { color: "purple", icon: /* @__PURE__ */ e(Tt, {}), label: "Agent" },
|
|
6506
6492
|
SYSTEM: { color: "default", icon: null, label: "系统" }
|
|
6507
|
-
},
|
|
6493
|
+
}, or = {
|
|
6508
6494
|
OPEN: { color: "blue", text: "待开始" },
|
|
6509
6495
|
IN_PROGRESS: { color: "green", text: "进行中" },
|
|
6510
6496
|
COMPLETED: { color: "default", text: "已完成" },
|
|
6511
6497
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
6512
6498
|
};
|
|
6513
|
-
function
|
|
6499
|
+
function sr() {
|
|
6514
6500
|
const { id: t } = zt(), a = Ge(), [l, w] = u(null), [d, y] = u([]), [r, x] = u(""), [T, N] = u(!1), F = At(null);
|
|
6515
6501
|
ne(() => {
|
|
6516
6502
|
t && m();
|
|
@@ -6554,7 +6540,7 @@ function fr() {
|
|
|
6554
6540
|
}
|
|
6555
6541
|
};
|
|
6556
6542
|
if (!l) return /* @__PURE__ */ e("div", { style: { padding: 24 }, children: /* @__PURE__ */ e(Ue, {}) });
|
|
6557
|
-
const f =
|
|
6543
|
+
const f = or[l.status] || { color: "default", text: l.status };
|
|
6558
6544
|
return /* @__PURE__ */ n("div", { style: { padding: 24, height: "calc(100vh - 64px)", display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
6559
6545
|
/* @__PURE__ */ n(
|
|
6560
6546
|
H,
|
|
@@ -6681,44 +6667,44 @@ function fr() {
|
|
|
6681
6667
|
)
|
|
6682
6668
|
] });
|
|
6683
6669
|
}
|
|
6684
|
-
function
|
|
6670
|
+
function cr() {
|
|
6685
6671
|
return /* @__PURE__ */ n(tn, { children: [
|
|
6686
6672
|
/* @__PURE__ */ e(Te, { index: !0, element: /* @__PURE__ */ e(nn, { to: "list", replace: !0 }) }),
|
|
6687
|
-
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(
|
|
6688
|
-
/* @__PURE__ */ e(Te, { path: "new", element: /* @__PURE__ */ e(
|
|
6689
|
-
/* @__PURE__ */ e(Te, { path: ":id", element: /* @__PURE__ */ e(
|
|
6673
|
+
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(rr, {}) }),
|
|
6674
|
+
/* @__PURE__ */ e(Te, { path: "new", element: /* @__PURE__ */ e(ir, {}) }),
|
|
6675
|
+
/* @__PURE__ */ e(Te, { path: ":id", element: /* @__PURE__ */ e(sr, {}) })
|
|
6690
6676
|
] });
|
|
6691
6677
|
}
|
|
6692
|
-
const
|
|
6678
|
+
const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6693
6679
|
__proto__: null,
|
|
6694
|
-
default:
|
|
6680
|
+
default: cr
|
|
6695
6681
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6696
6682
|
export {
|
|
6697
|
-
|
|
6683
|
+
$l as C,
|
|
6698
6684
|
vt as E,
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6685
|
+
xr as L,
|
|
6686
|
+
Sr as M,
|
|
6687
|
+
kl as O,
|
|
6688
|
+
cr as P,
|
|
6689
|
+
Hl as R,
|
|
6690
|
+
nr as S,
|
|
6691
|
+
gl as T,
|
|
6692
|
+
fr as Z,
|
|
6693
|
+
br as a,
|
|
6708
6694
|
Ve as b,
|
|
6709
|
-
|
|
6695
|
+
wr as c,
|
|
6710
6696
|
Et as d,
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6697
|
+
Kl as e,
|
|
6698
|
+
El as f,
|
|
6699
|
+
Cr as g,
|
|
6700
|
+
Gl as h,
|
|
6701
|
+
al as i,
|
|
6702
|
+
Ml as j,
|
|
6703
|
+
ql as k,
|
|
6718
6704
|
Nt as l,
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6705
|
+
kr as m,
|
|
6706
|
+
vr as n,
|
|
6707
|
+
Er as o,
|
|
6722
6708
|
W as r,
|
|
6723
|
-
|
|
6709
|
+
cl as s
|
|
6724
6710
|
};
|