@yuku123/z-team-component 0.2.121 → 0.2.123
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/{ChangeLogView-8IViZtG4.js → ChangeLogView-BLmd2U6e.js} +1 -1
- package/dist/{ComponentDoc-Mgk6TOn6.js → ComponentDoc-BN2WiV4e.js} +3 -3
- package/dist/{InvitationManagementPage-B-a0t1IZ.js → InvitationManagementPage-CmC8VfhC.js} +1 -1
- package/dist/{OnboardingPage-DzWxvVGg.js → OnboardingPage-BiWfFGqQ.js} +2 -2
- package/dist/{ScheduledTasks--NRaw2yP.js → ScheduledTasks-DiOAh0B4.js} +3080 -3109
- package/dist/{SystemShell-zIzEkwxi.js → SystemShell-Dy6AgHvP.js} +4 -4
- package/dist/{admin-logs-DqnnLQ2i.js → admin-logs-D-JxmGcz.js} +1 -1
- package/dist/{api-DahDAsfc.js → api-BtPZ5x-r.js} +1 -1
- package/dist/{api-BhwgnFDD.js → api-tH8DTC9j.js} +1 -1
- package/dist/{createWorkspaceWsHandler-DRcUjes9.js → createWorkspaceWsHandler-BryN1ia0.js} +3 -3
- package/dist/{index-Cm_NXrie.js → index-9fMkpCS3.js} +2 -2
- package/dist/{index-CdhVx89Q.js → index-B67H8Fl-.js} +3 -3
- package/dist/{index-CGefpPcF.js → index-BSf80QW2.js} +3 -3
- package/dist/{index-Cpmnj8JS.js → index-BYvR0Dt6.js} +111 -111
- package/dist/{index-HLzFywnS.js → index-Be-yRaE5.js} +2 -2
- package/dist/{index-D8XTuJj6.js → index-CjNUQvho.js} +6 -6
- package/dist/{index-CYo4Ez6h.js → index-CkILLo6C.js} +2 -2
- package/dist/{index-BbJFWsmk.js → index-CpcHtGLk.js} +10 -10
- package/dist/{index-BgP8-tny.js → index-D3Klrozp.js} +1 -1
- package/dist/{index-DCEyt8CX.js → index-D4NRokeC.js} +3 -3
- package/dist/{index-DVR9zYBR.js → index-D9bv52A9.js} +2 -2
- package/dist/{index-CDfn5Tb5.js → index-DOHTRs6O.js} +3 -3
- package/dist/{index-aMPdQTQ9.js → index-DQ3zLhU7.js} +2 -2
- package/dist/{index-Dh0QePS2.js → index-DXexihjF.js} +2 -2
- package/dist/{index-Dne7Wqbc.js → index-Di9cR5W2.js} +2 -2
- package/dist/{index-8wGs3Z7T.js → index-Dk3C-RK0.js} +6 -6
- package/dist/{index-CZhMuUEf.js → index-DuHF4FNN.js} +3 -3
- package/dist/{index-BiubS6R1.js → index-Dx5wSR8R.js} +2 -2
- package/dist/{index-rnhtPktY.js → index-Dy1n7BpB.js} +1 -1
- package/dist/{index-BcmoQQNY.js → index-OThZ2K-3.js} +5 -5
- package/dist/{index-kmNfQBRN.js → index-SCwOJdkr.js} +1 -1
- package/dist/{index-oVpeYh5s.js → index-ZvVikElh.js} +4 -4
- package/dist/{index-BxpAAgTl.js → index-cX8s1But.js} +1 -1
- package/dist/{index-CIfQeDR1.js → index-lavbNqTZ.js} +1 -1
- package/dist/{index-C5NIwgUh.js → index-z0MKO-gY.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-B1GyJEnB.js → instance-CoecMXbK.js} +1 -1
- package/dist/{menuPermission-DPGwgzZA.js → menuPermission-CC6oqCs7.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-Cb00q2KK.js → send-default-agent-team-message-DttjVQ97.js} +1 -1
- package/dist/{sso-user-CKsqQODJ.js → sso-user-CNAeyak-.js} +1 -1
- package/dist/{training-5ZpXXciF.js → training-CDr7zDwa.js} +1 -1
- package/dist/{webide-Q-cM4m7F.js → webide-CQrjQqcJ.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { Navigate as _, useLocation as ce } from "react-router-dom";
|
|
3
|
-
import { Spin as ie, Row as de, Col as U, Card as M, Statistic as W, Space as
|
|
4
|
-
import { DashboardOutlined as X, ClusterOutlined as q, CloudServerOutlined as H, ContainerOutlined as ne, ReloadOutlined as Y, LockOutlined as ye, UnlockOutlined as ge, PlayCircleOutlined as fe, PauseCircleOutlined as be, ClearOutlined as se, SendOutlined as we, EyeOutlined as ke, DeleteOutlined as ae, PlusOutlined as xe, EditOutlined as
|
|
5
|
-
import { W as $e } from "./index-
|
|
6
|
-
import { Y as
|
|
3
|
+
import { Spin as ie, Row as de, Col as U, Card as M, Statistic as W, Space as v, Tag as C, Button as w, Alert as G, Table as pe, Badge as ee, Popconfirm as B, message as b, Select as te, Drawer as ue, Tabs as me, Form as D, Modal as he, Input as V, InputNumber as j } from "antd";
|
|
4
|
+
import { DashboardOutlined as X, ClusterOutlined as q, CloudServerOutlined as H, ContainerOutlined as ne, ReloadOutlined as Y, LockOutlined as ye, UnlockOutlined as ge, PlayCircleOutlined as fe, PauseCircleOutlined as be, ClearOutlined as se, SendOutlined as we, EyeOutlined as ke, DeleteOutlined as ae, PlusOutlined as xe, EditOutlined as ve, BranchesOutlined as Ce, RocketOutlined as Pe, AlertOutlined as Se, FileTextOutlined as Re, DatabaseOutlined as Q, CloudOutlined as Oe, DeploymentUnitOutlined as Ie } from "@ant-design/icons";
|
|
5
|
+
import { W as $e } from "./index-z0MKO-gY.js";
|
|
6
|
+
import { Y as Ee } from "./ComponentDoc-BN2WiV4e.js";
|
|
7
7
|
import { useState as i, useEffect as z, useRef as L } from "react";
|
|
8
|
-
import { ListTable as
|
|
9
|
-
import "./index-
|
|
10
|
-
const
|
|
11
|
-
async function
|
|
12
|
-
const d = `${
|
|
8
|
+
import { ListTable as re } from "@yuku123/z-frontend-common/ui";
|
|
9
|
+
import "./index-CpcHtGLk.js";
|
|
10
|
+
const Te = "/z-team/ops/k8s";
|
|
11
|
+
async function oe(t, r) {
|
|
12
|
+
const d = `${Te}${t}`, u = await fetch(d, {
|
|
13
13
|
headers: { "Content-Type": "application/json" },
|
|
14
14
|
...r
|
|
15
|
-
}), p =
|
|
15
|
+
}), p = u.headers && u.headers.get("content-type") || "";
|
|
16
16
|
if (!/json/i.test(p))
|
|
17
|
-
throw new Error(`数据源不可达:GET ${d} 返回 ${
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
throw new Error(`后端 ${d} 返回 success=false:${
|
|
21
|
-
return
|
|
17
|
+
throw new Error(`数据源不可达:GET ${d} 返回 ${u.status} ${p || "(无 content-type)"},不是 JSON —— 该前缀没有进到后端接口(K8s 管理 API 在 z-ops 仓,z-opc 宿主未注册)`);
|
|
18
|
+
const m = await u.json();
|
|
19
|
+
if (m && m.success === !1)
|
|
20
|
+
throw new Error(`后端 ${d} 返回 success=false:${m.message || "(无 message)"}`);
|
|
21
|
+
return m;
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
24
|
-
return
|
|
23
|
+
async function T(t, r) {
|
|
24
|
+
return oe(t, r);
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
27
|
-
return
|
|
26
|
+
async function Ae() {
|
|
27
|
+
return T("/cluster/info");
|
|
28
28
|
}
|
|
29
29
|
async function De() {
|
|
30
|
-
return
|
|
30
|
+
return T("/nodes");
|
|
31
31
|
}
|
|
32
32
|
async function ze(t) {
|
|
33
|
-
return
|
|
33
|
+
return T("/nodes/cordon", {
|
|
34
34
|
method: "POST",
|
|
35
35
|
body: JSON.stringify({ name: t })
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
async function Fe(t) {
|
|
39
|
-
return
|
|
39
|
+
return T("/nodes/uncordon", {
|
|
40
40
|
method: "POST",
|
|
41
41
|
body: JSON.stringify({ name: t })
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
async function Ne(t = "*") {
|
|
45
|
-
return
|
|
45
|
+
return T(`/workloads/pods?namespace=${t}`);
|
|
46
46
|
}
|
|
47
47
|
async function He(t, r, d = 200) {
|
|
48
|
-
return
|
|
48
|
+
return T(`/workloads/pods/${t}/${r}/logs?tailLines=${d}`);
|
|
49
49
|
}
|
|
50
50
|
async function Le(t, r) {
|
|
51
|
-
return
|
|
51
|
+
return T(`/workloads/pods/${t}/${r}/restart`, { method: "POST" });
|
|
52
52
|
}
|
|
53
53
|
async function Me(t, r) {
|
|
54
|
-
return
|
|
54
|
+
return T(`/workloads/pods/${t}/${r}`, { method: "DELETE" });
|
|
55
55
|
}
|
|
56
56
|
async function Be() {
|
|
57
|
-
return
|
|
57
|
+
return T("/namespaces");
|
|
58
58
|
}
|
|
59
59
|
const Ue = () => {
|
|
60
|
-
var
|
|
61
|
-
const [t, r] = i(null), [d,
|
|
60
|
+
var m, y;
|
|
61
|
+
const [t, r] = i(null), [d, u] = i(!0);
|
|
62
62
|
z(() => {
|
|
63
63
|
p();
|
|
64
64
|
const h = setInterval(p, 1e4);
|
|
@@ -66,12 +66,12 @@ const Ue = () => {
|
|
|
66
66
|
}, []);
|
|
67
67
|
const p = async () => {
|
|
68
68
|
try {
|
|
69
|
-
const h = await
|
|
69
|
+
const h = await Ae();
|
|
70
70
|
h.success && r(h.data);
|
|
71
71
|
} catch (h) {
|
|
72
72
|
console.error("Failed to load cluster info", h);
|
|
73
73
|
} finally {
|
|
74
|
-
|
|
74
|
+
u(!1);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
return d ? /* @__PURE__ */ e(ie, { size: "large" }) : /* @__PURE__ */ s("div", { style: { padding: 16 }, children: [
|
|
@@ -84,7 +84,7 @@ const Ue = () => {
|
|
|
84
84
|
/* @__PURE__ */ e(
|
|
85
85
|
W,
|
|
86
86
|
{
|
|
87
|
-
title: /* @__PURE__ */ s(
|
|
87
|
+
title: /* @__PURE__ */ s(v, { children: [
|
|
88
88
|
/* @__PURE__ */ e(q, {}),
|
|
89
89
|
" K8s 节点"
|
|
90
90
|
] }),
|
|
@@ -101,11 +101,11 @@ const Ue = () => {
|
|
|
101
101
|
/* @__PURE__ */ e(
|
|
102
102
|
W,
|
|
103
103
|
{
|
|
104
|
-
title: /* @__PURE__ */ s(
|
|
104
|
+
title: /* @__PURE__ */ s(v, { children: [
|
|
105
105
|
/* @__PURE__ */ e(H, {}),
|
|
106
106
|
" CPU"
|
|
107
107
|
] }),
|
|
108
|
-
value: ((
|
|
108
|
+
value: ((m = t == null ? void 0 : t.usedCpu) == null ? void 0 : m.toFixed(1)) ?? "0",
|
|
109
109
|
suffix: /* @__PURE__ */ s("span", { style: { color: "#999" }, children: [
|
|
110
110
|
" / ",
|
|
111
111
|
(t == null ? void 0 : t.totalCpu) ?? 0,
|
|
@@ -123,7 +123,7 @@ const Ue = () => {
|
|
|
123
123
|
/* @__PURE__ */ e(
|
|
124
124
|
W,
|
|
125
125
|
{
|
|
126
|
-
title: /* @__PURE__ */ s(
|
|
126
|
+
title: /* @__PURE__ */ s(v, { children: [
|
|
127
127
|
/* @__PURE__ */ e(X, {}),
|
|
128
128
|
" 内存"
|
|
129
129
|
] }),
|
|
@@ -145,7 +145,7 @@ const Ue = () => {
|
|
|
145
145
|
/* @__PURE__ */ e(
|
|
146
146
|
W,
|
|
147
147
|
{
|
|
148
|
-
title: /* @__PURE__ */ s(
|
|
148
|
+
title: /* @__PURE__ */ s(v, { children: [
|
|
149
149
|
/* @__PURE__ */ e(ne, {}),
|
|
150
150
|
" Pods"
|
|
151
151
|
] }),
|
|
@@ -162,7 +162,7 @@ const Ue = () => {
|
|
|
162
162
|
] })
|
|
163
163
|
] }) })
|
|
164
164
|
] }),
|
|
165
|
-
/* @__PURE__ */ e(M, { title: "集群信息", style: { marginTop: 16 }, children: /* @__PURE__ */ s(
|
|
165
|
+
/* @__PURE__ */ e(M, { title: "集群信息", style: { marginTop: 16 }, children: /* @__PURE__ */ s(v, { orientation: "vertical", children: [
|
|
166
166
|
/* @__PURE__ */ s("div", { children: [
|
|
167
167
|
/* @__PURE__ */ e("strong", { children: "K8s 版本:" }),
|
|
168
168
|
" ",
|
|
@@ -196,19 +196,19 @@ const Ue = () => {
|
|
|
196
196
|
] }) })
|
|
197
197
|
] });
|
|
198
198
|
}, We = () => {
|
|
199
|
-
const [t, r] = i([]), [d,
|
|
199
|
+
const [t, r] = i([]), [d, u] = i(!1), [p, m] = i("");
|
|
200
200
|
z(() => {
|
|
201
201
|
y();
|
|
202
202
|
}, []);
|
|
203
203
|
const y = async () => {
|
|
204
|
-
|
|
204
|
+
u(!0), m("");
|
|
205
205
|
try {
|
|
206
206
|
const a = await De();
|
|
207
207
|
r(Array.isArray(a.data) ? a.data : []);
|
|
208
208
|
} catch (a) {
|
|
209
|
-
r([]),
|
|
209
|
+
r([]), m(String((a == null ? void 0 : a.message) || a));
|
|
210
210
|
} finally {
|
|
211
|
-
|
|
211
|
+
u(!1);
|
|
212
212
|
}
|
|
213
213
|
}, h = async (a) => {
|
|
214
214
|
try {
|
|
@@ -216,7 +216,7 @@ const Ue = () => {
|
|
|
216
216
|
} catch {
|
|
217
217
|
b.error("封锁失败");
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, P = async (a) => {
|
|
220
220
|
try {
|
|
221
221
|
await Fe(a), b.success(`${a} 已解封`), y();
|
|
222
222
|
} catch {
|
|
@@ -224,7 +224,7 @@ const Ue = () => {
|
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
return /* @__PURE__ */ s("div", { children: [
|
|
227
|
-
/* @__PURE__ */ e(
|
|
227
|
+
/* @__PURE__ */ e(v, { style: { marginBottom: 16 }, children: /* @__PURE__ */ e(w, { icon: /* @__PURE__ */ e(Y, {}), onClick: y, loading: d, children: "刷新" }) }),
|
|
228
228
|
p && /* @__PURE__ */ e(
|
|
229
229
|
G,
|
|
230
230
|
{
|
|
@@ -267,15 +267,15 @@ const Ue = () => {
|
|
|
267
267
|
title: "CPU",
|
|
268
268
|
key: "cpu",
|
|
269
269
|
render: (a, o) => {
|
|
270
|
-
var
|
|
271
|
-
const c = o.
|
|
270
|
+
var S;
|
|
271
|
+
const c = o.cpuUsed, x = c != null && o.cpuCapacity > 0 ? c / o.cpuCapacity * 100 : null;
|
|
272
272
|
return /* @__PURE__ */ s("span", { children: [
|
|
273
|
-
|
|
273
|
+
c != null ? c.toFixed(2) : "—",
|
|
274
274
|
" / ",
|
|
275
275
|
((S = o.cpuCapacity) == null ? void 0 : S.toFixed(0)) ?? 0,
|
|
276
276
|
" cores",
|
|
277
|
-
/* @__PURE__ */ s(C, { color:
|
|
278
|
-
|
|
277
|
+
x != null && /* @__PURE__ */ s(C, { color: x > 80 ? "error" : "success", style: { marginLeft: 4 }, children: [
|
|
278
|
+
x.toFixed(0),
|
|
279
279
|
"%"
|
|
280
280
|
] })
|
|
281
281
|
] });
|
|
@@ -286,14 +286,14 @@ const Ue = () => {
|
|
|
286
286
|
key: "mem",
|
|
287
287
|
render: (a, o) => {
|
|
288
288
|
var S;
|
|
289
|
-
const c = o.
|
|
289
|
+
const c = o.memUsed, x = c != null && o.memCapacity > 0 ? c / o.memCapacity * 100 : null;
|
|
290
290
|
return /* @__PURE__ */ s("span", { children: [
|
|
291
|
-
|
|
291
|
+
c != null ? c.toFixed(1) : "—",
|
|
292
292
|
" / ",
|
|
293
|
-
((S = o.memCapacity) == null ? void 0 : S.toFixed(
|
|
293
|
+
((S = o.memCapacity) == null ? void 0 : S.toFixed(1)) ?? 0,
|
|
294
294
|
" GB",
|
|
295
|
-
/* @__PURE__ */ s(C, { color:
|
|
296
|
-
|
|
295
|
+
x != null && /* @__PURE__ */ s(C, { color: x > 80 ? "error" : "success", style: { marginLeft: 4 }, children: [
|
|
296
|
+
x.toFixed(0),
|
|
297
297
|
"%"
|
|
298
298
|
] })
|
|
299
299
|
] });
|
|
@@ -306,9 +306,9 @@ const Ue = () => {
|
|
|
306
306
|
title: "操作",
|
|
307
307
|
key: "action",
|
|
308
308
|
width: 150,
|
|
309
|
-
render: (a, o) => /* @__PURE__ */ s(
|
|
309
|
+
render: (a, o) => /* @__PURE__ */ s(v, { children: [
|
|
310
310
|
/* @__PURE__ */ e(B, { title: `封锁 ${o.name}?`, onConfirm: () => h(o.name), children: /* @__PURE__ */ e(w, { size: "small", icon: /* @__PURE__ */ e(ye, {}), children: "Cordon" }) }),
|
|
311
|
-
/* @__PURE__ */ e(B, { title: `解封 ${o.name}?`, onConfirm: () =>
|
|
311
|
+
/* @__PURE__ */ e(B, { title: `解封 ${o.name}?`, onConfirm: () => P(o.name), children: /* @__PURE__ */ e(w, { size: "small", icon: /* @__PURE__ */ e(ge, {}), children: "Uncordon" }) })
|
|
312
312
|
] })
|
|
313
313
|
}
|
|
314
314
|
],
|
|
@@ -326,20 +326,20 @@ const Ue = () => {
|
|
|
326
326
|
podName: r,
|
|
327
327
|
tailLines: d = 200
|
|
328
328
|
}) => {
|
|
329
|
-
const [
|
|
329
|
+
const [u, p] = i([]), [m, y] = i(!1), [h, P] = i(!1), k = L(null), a = L(null), o = L(!1);
|
|
330
330
|
z(() => (c(), () => {
|
|
331
331
|
var g;
|
|
332
332
|
(g = k.current) == null || g.close();
|
|
333
333
|
}), [t, r]), z(() => {
|
|
334
334
|
var g;
|
|
335
335
|
h || (g = a.current) == null || g.scrollIntoView({ behavior: "smooth" });
|
|
336
|
-
}, [
|
|
336
|
+
}, [u, h]);
|
|
337
337
|
const c = () => {
|
|
338
338
|
const g = window.location.protocol === "https:" ? "wss:" : "ws:", n = window.location.host, f = `${g}//${n}/z-team/ops/k8s/ws/logs?namespace=${t}&name=${r}&tailLines=${d}`, R = new WebSocket(f);
|
|
339
339
|
k.current = R, R.onopen = () => {
|
|
340
340
|
y(!0), b.success("日志流已连接");
|
|
341
341
|
}, R.onmessage = (O) => {
|
|
342
|
-
o.current || p((
|
|
342
|
+
o.current || p((E) => [...E.slice(-1e3), O.data]);
|
|
343
343
|
}, R.onclose = () => {
|
|
344
344
|
y(!1);
|
|
345
345
|
}, R.onerror = () => {
|
|
@@ -347,15 +347,15 @@ const Ue = () => {
|
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
return /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
350
|
-
/* @__PURE__ */ s(
|
|
351
|
-
/* @__PURE__ */ e(C, { color:
|
|
350
|
+
/* @__PURE__ */ s(v, { style: { marginBottom: 8 }, children: [
|
|
351
|
+
/* @__PURE__ */ e(C, { color: m ? "success" : "error", children: m ? "● 已连接" : "● 已断开" }),
|
|
352
352
|
/* @__PURE__ */ e(
|
|
353
353
|
w,
|
|
354
354
|
{
|
|
355
355
|
size: "small",
|
|
356
356
|
icon: h ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ e(be, {}),
|
|
357
357
|
onClick: () => {
|
|
358
|
-
o.current = !o.current,
|
|
358
|
+
o.current = !o.current, P(o.current);
|
|
359
359
|
},
|
|
360
360
|
children: h ? "继续" : "暂停"
|
|
361
361
|
}
|
|
@@ -379,7 +379,7 @@ const Ue = () => {
|
|
|
379
379
|
lineHeight: 1.5,
|
|
380
380
|
color: "#d4d4d4"
|
|
381
381
|
}, children: [
|
|
382
|
-
|
|
382
|
+
u.map((g, n) => /* @__PURE__ */ e("div", { style: {
|
|
383
383
|
color: g.includes("ERROR") ? "#f44336" : g.includes("WARN") ? "#ff9800" : g.includes("INFO") ? "#4caf50" : "#d4d4d4",
|
|
384
384
|
whiteSpace: "pre-wrap",
|
|
385
385
|
wordBreak: "break-all"
|
|
@@ -391,33 +391,33 @@ const Ue = () => {
|
|
|
391
391
|
namespace: t,
|
|
392
392
|
podName: r
|
|
393
393
|
}) => {
|
|
394
|
-
const [d,
|
|
395
|
-
z(() => (t && r &&
|
|
394
|
+
const [d, u] = i(!1), [p, m] = i(""), [y, h] = i("sh"), [P, k] = i([]), a = L(null), o = L(null), c = L(null);
|
|
395
|
+
z(() => (t && r && x(), () => {
|
|
396
396
|
var n;
|
|
397
397
|
return (n = a.current) == null ? void 0 : n.close();
|
|
398
398
|
}), [t, r]);
|
|
399
|
-
const
|
|
399
|
+
const x = () => {
|
|
400
400
|
const n = window.location.protocol === "https:" ? "wss:" : "ws:", f = window.location.host, R = `${n}//${f}/z-team/ops/k8s/ws/exec?namespace=${t}&name=${r}&command=${y}`, O = new WebSocket(R);
|
|
401
401
|
a.current = O, O.onopen = () => {
|
|
402
|
-
|
|
403
|
-
}, O.onmessage = (
|
|
404
|
-
k((J) => [...J.slice(-500),
|
|
402
|
+
u(!0), k((E) => [...E, `Connected to ${t}/${r} (${y})`]), b.success("终端已连接");
|
|
403
|
+
}, O.onmessage = (E) => {
|
|
404
|
+
k((J) => [...J.slice(-500), E.data]), setTimeout(() => {
|
|
405
405
|
o.current && (o.current.scrollTop = o.current.scrollHeight);
|
|
406
406
|
}, 50);
|
|
407
407
|
}, O.onclose = () => {
|
|
408
|
-
|
|
408
|
+
u(!1), k((E) => [...E, `
|
|
409
409
|
--- 连接已关闭 ---`]);
|
|
410
410
|
}, O.onerror = () => {
|
|
411
|
-
|
|
411
|
+
u(!1), b.error("WebSocket 连接错误");
|
|
412
412
|
};
|
|
413
413
|
}, S = () => {
|
|
414
|
-
!p.trim() || !a.current || (a.current.readyState === WebSocket.OPEN ? (a.current.send(p), k((n) => [...n, `$ ${p}`]),
|
|
414
|
+
!p.trim() || !a.current || (a.current.readyState === WebSocket.OPEN ? (a.current.send(p), k((n) => [...n, `$ ${p}`]), m("")) : b.warning("WebSocket 未连接"));
|
|
415
415
|
}, F = (n) => {
|
|
416
416
|
var f;
|
|
417
417
|
n.key === "Enter" && S(), n.key === "Tab" && (n.preventDefault(), ((f = a.current) == null ? void 0 : f.readyState) === WebSocket.OPEN && a.current.send(" "));
|
|
418
418
|
}, g = () => k([]);
|
|
419
419
|
return /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
420
|
-
/* @__PURE__ */ s(
|
|
420
|
+
/* @__PURE__ */ s(v, { style: { marginBottom: 8 }, children: [
|
|
421
421
|
/* @__PURE__ */ e(C, { color: d ? "success" : "error", children: d ? "● 已连接" : "● 已断开" }),
|
|
422
422
|
/* @__PURE__ */ e(
|
|
423
423
|
te,
|
|
@@ -432,7 +432,7 @@ const Ue = () => {
|
|
|
432
432
|
/* @__PURE__ */ e(w, { size: "small", onClick: g, icon: /* @__PURE__ */ e(se, {}), children: "清空" }),
|
|
433
433
|
/* @__PURE__ */ e(w, { size: "small", onClick: () => {
|
|
434
434
|
var n;
|
|
435
|
-
(n = a.current) == null || n.close(), setTimeout(
|
|
435
|
+
(n = a.current) == null || n.close(), setTimeout(x, 200);
|
|
436
436
|
}, children: "重连" })
|
|
437
437
|
] }),
|
|
438
438
|
/* @__PURE__ */ s(
|
|
@@ -454,7 +454,7 @@ const Ue = () => {
|
|
|
454
454
|
border: "1px solid #333"
|
|
455
455
|
},
|
|
456
456
|
children: [
|
|
457
|
-
|
|
457
|
+
P.map((n, f) => /* @__PURE__ */ e("div", { style: {
|
|
458
458
|
whiteSpace: "pre-wrap",
|
|
459
459
|
wordBreak: "break-all",
|
|
460
460
|
color: n.startsWith("$ ") ? "#00bfff" : n.startsWith("---") ? "#666" : n.includes("Error") || n.includes("error") ? "#ff4444" : "#00ff88"
|
|
@@ -470,7 +470,7 @@ const Ue = () => {
|
|
|
470
470
|
]
|
|
471
471
|
}
|
|
472
472
|
),
|
|
473
|
-
/* @__PURE__ */ s(
|
|
473
|
+
/* @__PURE__ */ s(v.Compact, { style: { width: "100%" }, children: [
|
|
474
474
|
/* @__PURE__ */ s("span", { style: {
|
|
475
475
|
background: "#333",
|
|
476
476
|
color: "#00ff88",
|
|
@@ -490,7 +490,7 @@ const Ue = () => {
|
|
|
490
490
|
"input",
|
|
491
491
|
{
|
|
492
492
|
value: p,
|
|
493
|
-
onChange: (n) =>
|
|
493
|
+
onChange: (n) => m(n.target.value),
|
|
494
494
|
onKeyDown: F,
|
|
495
495
|
placeholder: "输入命令后按 Enter...",
|
|
496
496
|
disabled: !d,
|
|
@@ -534,7 +534,7 @@ const Ue = () => {
|
|
|
534
534
|
return "default";
|
|
535
535
|
}
|
|
536
536
|
}, Ge = () => {
|
|
537
|
-
const [t, r] = i([]), [d,
|
|
537
|
+
const [t, r] = i([]), [d, u] = i(!1), [p, m] = i(""), [y, h] = i("*"), [P, k] = i([]), [a, o] = i(!1), [c, x] = i(null), [S, F] = i("logs"), [g, n] = i("");
|
|
538
538
|
z(() => {
|
|
539
539
|
f();
|
|
540
540
|
}, []), z(() => {
|
|
@@ -548,25 +548,25 @@ const Ue = () => {
|
|
|
548
548
|
k(["*"]);
|
|
549
549
|
}
|
|
550
550
|
}, R = async () => {
|
|
551
|
-
|
|
551
|
+
u(!0), m("");
|
|
552
552
|
try {
|
|
553
553
|
const l = await Ne(y);
|
|
554
554
|
r(Array.isArray(l.data) ? l.data : []);
|
|
555
555
|
} catch (l) {
|
|
556
|
-
r([]),
|
|
556
|
+
r([]), m(String((l == null ? void 0 : l.message) || l));
|
|
557
557
|
} finally {
|
|
558
|
-
|
|
558
|
+
u(!1);
|
|
559
559
|
}
|
|
560
560
|
}, O = async (l) => {
|
|
561
561
|
var I;
|
|
562
|
-
|
|
562
|
+
x(l), F("logs"), o(!0);
|
|
563
563
|
try {
|
|
564
|
-
const
|
|
565
|
-
n(((I =
|
|
566
|
-
} catch (
|
|
567
|
-
n(`加载日志失败:${String((
|
|
564
|
+
const A = await He(l.namespace, l.name, 200);
|
|
565
|
+
n(((I = A == null ? void 0 : A.data) == null ? void 0 : I.logs) ?? "");
|
|
566
|
+
} catch (A) {
|
|
567
|
+
n(`加载日志失败:${String((A == null ? void 0 : A.message) || A)}`);
|
|
568
568
|
}
|
|
569
|
-
},
|
|
569
|
+
}, E = async (l) => {
|
|
570
570
|
try {
|
|
571
571
|
await Le(l.namespace, l.name), b.success(`${l.name} 已重启`), R();
|
|
572
572
|
} catch {
|
|
@@ -608,15 +608,15 @@ const Ue = () => {
|
|
|
608
608
|
title: "操作",
|
|
609
609
|
key: "action",
|
|
610
610
|
width: 200,
|
|
611
|
-
render: (l, I) => /* @__PURE__ */ s(
|
|
611
|
+
render: (l, I) => /* @__PURE__ */ s(v, { children: [
|
|
612
612
|
/* @__PURE__ */ e(w, { size: "small", icon: /* @__PURE__ */ e(ke, {}), onClick: () => O(I), children: "日志" }),
|
|
613
|
-
/* @__PURE__ */ e(B, { title: "确认重启此 Pod?", onConfirm: () =>
|
|
613
|
+
/* @__PURE__ */ e(B, { title: "确认重启此 Pod?", onConfirm: () => E(I), children: /* @__PURE__ */ e(w, { size: "small", type: "primary", ghost: !0, children: "重启" }) }),
|
|
614
614
|
/* @__PURE__ */ e(B, { title: "确认删除此 Pod?", onConfirm: () => J(I), children: /* @__PURE__ */ e(w, { size: "small", danger: !0, icon: /* @__PURE__ */ e(ae, {}), children: "删除" }) })
|
|
615
615
|
] })
|
|
616
616
|
}
|
|
617
617
|
];
|
|
618
618
|
return /* @__PURE__ */ s("div", { children: [
|
|
619
|
-
/* @__PURE__ */ s(
|
|
619
|
+
/* @__PURE__ */ s(v, { style: { marginBottom: 16 }, children: [
|
|
620
620
|
/* @__PURE__ */ e("span", { children: "命名空间:" }),
|
|
621
621
|
/* @__PURE__ */ e(
|
|
622
622
|
te,
|
|
@@ -624,7 +624,7 @@ const Ue = () => {
|
|
|
624
624
|
value: y,
|
|
625
625
|
onChange: h,
|
|
626
626
|
style: { width: 200 },
|
|
627
|
-
options:
|
|
627
|
+
options: P.map((l) => ({ label: l, value: l }))
|
|
628
628
|
}
|
|
629
629
|
),
|
|
630
630
|
/* @__PURE__ */ e(w, { icon: /* @__PURE__ */ e(Y, {}), onClick: R, loading: d, children: "刷新" })
|
|
@@ -640,7 +640,7 @@ const Ue = () => {
|
|
|
640
640
|
}
|
|
641
641
|
),
|
|
642
642
|
/* @__PURE__ */ e(
|
|
643
|
-
|
|
643
|
+
re,
|
|
644
644
|
{
|
|
645
645
|
rows: t,
|
|
646
646
|
columns: le,
|
|
@@ -655,7 +655,7 @@ const Ue = () => {
|
|
|
655
655
|
}
|
|
656
656
|
),
|
|
657
657
|
/* @__PURE__ */ e(
|
|
658
|
-
|
|
658
|
+
ue,
|
|
659
659
|
{
|
|
660
660
|
title: c ? `${c.name} (${c.namespace})` : "",
|
|
661
661
|
placement: "right",
|
|
@@ -663,7 +663,7 @@ const Ue = () => {
|
|
|
663
663
|
open: a,
|
|
664
664
|
onClose: () => o(!1),
|
|
665
665
|
children: /* @__PURE__ */ e(
|
|
666
|
-
|
|
666
|
+
me,
|
|
667
667
|
{
|
|
668
668
|
activeKey: S,
|
|
669
669
|
onChange: F,
|
|
@@ -698,26 +698,26 @@ const Ue = () => {
|
|
|
698
698
|
] });
|
|
699
699
|
};
|
|
700
700
|
async function K(t, r) {
|
|
701
|
-
return
|
|
701
|
+
return oe(`/hpa${t}`, r);
|
|
702
702
|
}
|
|
703
703
|
const Je = () => {
|
|
704
|
-
const [t, r] = i([]), [d,
|
|
704
|
+
const [t, r] = i([]), [d, u] = i(!1), [p, m] = i(""), [y, h] = i(!1), [P, k] = i(!1), [a] = D.useForm();
|
|
705
705
|
z(() => {
|
|
706
706
|
o();
|
|
707
707
|
}, []);
|
|
708
708
|
const o = async () => {
|
|
709
|
-
|
|
709
|
+
u(!0), m("");
|
|
710
710
|
try {
|
|
711
711
|
const n = await K("/list?namespace=*");
|
|
712
712
|
r(Array.isArray(n.data) ? n.data : []);
|
|
713
713
|
} catch (n) {
|
|
714
|
-
r([]),
|
|
714
|
+
r([]), m(String((n == null ? void 0 : n.message) || n));
|
|
715
715
|
} finally {
|
|
716
|
-
|
|
716
|
+
u(!1);
|
|
717
717
|
}
|
|
718
718
|
}, c = () => {
|
|
719
719
|
k(!1), a.resetFields(), a.setFieldsValue({ minReplicas: 1, maxReplicas: 10, cpuTarget: 80 }), h(!0);
|
|
720
|
-
},
|
|
720
|
+
}, x = (n) => {
|
|
721
721
|
k(!0), a.setFieldsValue({
|
|
722
722
|
name: n.name,
|
|
723
723
|
namespace: n.namespace,
|
|
@@ -729,7 +729,7 @@ const Je = () => {
|
|
|
729
729
|
}, S = async () => {
|
|
730
730
|
try {
|
|
731
731
|
const n = await a.validateFields();
|
|
732
|
-
|
|
732
|
+
P ? (await K("/update", {
|
|
733
733
|
method: "POST",
|
|
734
734
|
body: JSON.stringify({
|
|
735
735
|
namespace: n.namespace,
|
|
@@ -752,7 +752,7 @@ const Je = () => {
|
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
return /* @__PURE__ */ s("div", { children: [
|
|
755
|
-
/* @__PURE__ */ s(
|
|
755
|
+
/* @__PURE__ */ s(v, { style: { marginBottom: 16 }, children: [
|
|
756
756
|
/* @__PURE__ */ e(w, { type: "primary", icon: /* @__PURE__ */ e(xe, {}), onClick: c, children: "新建 HPA" }),
|
|
757
757
|
/* @__PURE__ */ e(w, { icon: /* @__PURE__ */ e(Y, {}), onClick: o, loading: d, children: "刷新" })
|
|
758
758
|
] }),
|
|
@@ -767,7 +767,7 @@ const Je = () => {
|
|
|
767
767
|
}
|
|
768
768
|
),
|
|
769
769
|
/* @__PURE__ */ e(
|
|
770
|
-
|
|
770
|
+
re,
|
|
771
771
|
{
|
|
772
772
|
rows: t,
|
|
773
773
|
columns: [
|
|
@@ -806,8 +806,8 @@ const Je = () => {
|
|
|
806
806
|
title: "操作",
|
|
807
807
|
key: "action",
|
|
808
808
|
width: 150,
|
|
809
|
-
render: (n, f) => /* @__PURE__ */ s(
|
|
810
|
-
/* @__PURE__ */ e(w, { size: "small", icon: /* @__PURE__ */ e(
|
|
809
|
+
render: (n, f) => /* @__PURE__ */ s(v, { children: [
|
|
810
|
+
/* @__PURE__ */ e(w, { size: "small", icon: /* @__PURE__ */ e(ve, {}), onClick: () => x(f), children: "编辑" }),
|
|
811
811
|
/* @__PURE__ */ e(B, { title: `删除 HPA ${f.name}?`, onConfirm: () => F(f), children: /* @__PURE__ */ e(w, { size: "small", danger: !0, icon: /* @__PURE__ */ e(ae, {}), children: "删除" }) })
|
|
812
812
|
] })
|
|
813
813
|
}
|
|
@@ -824,15 +824,15 @@ const Je = () => {
|
|
|
824
824
|
/* @__PURE__ */ e(
|
|
825
825
|
he,
|
|
826
826
|
{
|
|
827
|
-
title:
|
|
827
|
+
title: P ? "编辑 HPA" : "新建 HPA",
|
|
828
828
|
open: y,
|
|
829
829
|
onOk: S,
|
|
830
830
|
onCancel: () => h(!1),
|
|
831
831
|
children: /* @__PURE__ */ s(D, { form: a, layout: "vertical", children: [
|
|
832
|
-
/* @__PURE__ */ e(D.Item, { name: "namespace", label: "命名空间", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled:
|
|
833
|
-
/* @__PURE__ */ e(D.Item, { name: "name", label: "HPA 名称", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled:
|
|
834
|
-
/* @__PURE__ */ e(D.Item, { name: "deploymentName", label: "目标 Deployment", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled:
|
|
835
|
-
/* @__PURE__ */ s(
|
|
832
|
+
/* @__PURE__ */ e(D.Item, { name: "namespace", label: "命名空间", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled: P }) }),
|
|
833
|
+
/* @__PURE__ */ e(D.Item, { name: "name", label: "HPA 名称", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled: P }) }),
|
|
834
|
+
/* @__PURE__ */ e(D.Item, { name: "deploymentName", label: "目标 Deployment", rules: [{ required: !0 }], children: /* @__PURE__ */ e(V, { disabled: P, placeholder: "namespace/deploymentName" }) }),
|
|
835
|
+
/* @__PURE__ */ s(v, { children: [
|
|
836
836
|
/* @__PURE__ */ e(D.Item, { name: "minReplicas", label: "最小副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(j, { min: 0, max: 100 }) }),
|
|
837
837
|
/* @__PURE__ */ e(D.Item, { name: "maxReplicas", label: "最大副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(j, { min: 1, max: 100 }) })
|
|
838
838
|
] }),
|
|
@@ -884,7 +884,7 @@ const Je = () => {
|
|
|
884
884
|
{
|
|
885
885
|
key: "devops-pipeline",
|
|
886
886
|
label: "流水线",
|
|
887
|
-
icon: /* @__PURE__ */ e(
|
|
887
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
888
888
|
path: "/ops/devops/pipeline",
|
|
889
889
|
desc: "CI/CD 流水线编排"
|
|
890
890
|
},
|
|
@@ -1006,7 +1006,7 @@ function Z() {
|
|
|
1006
1006
|
const { pathname: t } = ce();
|
|
1007
1007
|
return /* @__PURE__ */ e(_, { to: `${t}?mode=middleware`, replace: !0 });
|
|
1008
1008
|
}
|
|
1009
|
-
const Xe = [...
|
|
1009
|
+
const Xe = [...Ee, "/script"], Ye = [
|
|
1010
1010
|
// ─── 运维中心 ───
|
|
1011
1011
|
// ⚠ 这一族路由的组件从来没有从 z-ops 迁进来(见 UnmigratedPage 注释)。原先直接写
|
|
1012
1012
|
// <ChannelPage/> 之类会在**模块求值期**抛 ReferenceError 并白屏整个前端,不是只坏这一页。
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import v, { useState as d, useEffect as _, useMemo as h } from "react";
|
|
3
3
|
import { useLocation as N } from "react-router-dom";
|
|
4
|
-
import { w as b, x as g } from "./ComponentDoc-
|
|
5
|
-
import { i as x, P as K } from "./index-
|
|
4
|
+
import { w as b, x as g } from "./ComponentDoc-BN2WiV4e.js";
|
|
5
|
+
import { i as x, P as K } from "./index-D3Klrozp.js";
|
|
6
6
|
const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
|
|
7
7
|
banner: E,
|
|
8
8
|
dot: S,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { S as Tn, P as In } from "./webide-
|
|
2
|
+
import { S as Tn, P as In } from "./webide-CQrjQqcJ.js";
|
|
3
3
|
import { message as Me, Tooltip as Qe, Dropdown as fn } from "antd";
|
|
4
4
|
import { MessageOutlined as Sn, MoreOutlined as st, DashboardOutlined as Ln, MenuUnfoldOutlined as lt, MenuFoldOutlined as ot, RightOutlined as it, SettingOutlined as An, TeamOutlined as ct, FolderOpenOutlined as rt, BarChartOutlined as dt, PieChartOutlined as ut, CodeOutlined as mt, LinkOutlined as pt, UnorderedListOutlined as On, FileTextOutlined as nn, ReadOutlined as ht, ConsoleSqlOutlined as gt, PlayCircleOutlined as bt, PlusOutlined as yt, ClockCircleOutlined as ft, AppstoreOutlined as vt } from "@ant-design/icons";
|
|
5
5
|
import { useState as d, useRef as Oe, useCallback as U, useEffect as A, useMemo as X } from "react";
|
|
6
|
-
import { u as re, _ as Dn, n as q, $ as Nt, a0 as _t, a1 as kt, a2 as Ct, a3 as wt, a4 as Tt, t as It, a5 as St, a6 as je, a7 as Lt, a8 as At } from "./ComponentDoc-
|
|
7
|
-
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-
|
|
8
|
-
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-
|
|
9
|
-
import { h as Bn, f as na } from "./index-
|
|
10
|
-
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks
|
|
6
|
+
import { u as re, _ as Dn, n as q, $ as Nt, a0 as _t, a1 as kt, a2 as Ct, a3 as wt, a4 as Tt, t as It, a5 as St, a6 as je, a7 as Lt, a8 as At } from "./ComponentDoc-BN2WiV4e.js";
|
|
7
|
+
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-CpcHtGLk.js";
|
|
8
|
+
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-BryN1ia0.js";
|
|
9
|
+
import { h as Bn, f as na } from "./index-D3Klrozp.js";
|
|
10
|
+
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks-DiOAh0B4.js";
|
|
11
11
|
import { TodoTab as Hn } from "@yuku123/z-task-component";
|
|
12
12
|
const la = "_sidebarInner_1vu3c_1", oa = "_header_1vu3c_8", ia = "_headerActions_1vu3c_19", ca = "_tabBar_1vu3c_26", ra = "_tab_1vu3c_26", da = "_tabActive_1vu3c_50", ua = "_btnSm_1vu3c_66", ma = "_agentSection_1vu3c_84", pa = "_agentItem_1vu3c_90", ha = "_agentItemActive_1vu3c_112", ga = "_agentAvatar_1vu3c_117", ba = "_agentName_1vu3c_130", ya = "_emptyState_1vu3c_156", fa = "_createInputRow_1vu3c_168", va = "_createInput_1vu3c_168", Na = "_createConfirmBtn_1vu3c_188", _a = "_contextMenu_1vu3c_205", ka = "_contextMenuItem_1vu3c_216", Ca = "_contextMenuItemDanger_1vu3c_231", wa = "_contextMenuDivider_1vu3c_239", Ta = "_renameOverlay_1vu3c_246", Ia = "_renameDialog_1vu3c_259", Sa = "_renameTitle_1vu3c_267", La = "_renameInput_1vu3c_274", Aa = "_renameActions_1vu3c_289", Oa = "_renameBtn_1vu3c_295", Da = "_renameBtnPrimary_1vu3c_309", $a = "_agentDetailBtn_1vu3c_326", xa = "_agentItemShared_1vu3c_358", Ba = "_agentInfo_1vu3c_362", Ra = "_agentOwner_1vu3c_374", Pa = "_sharedBadge_1vu3c_382", Ea = "_createLocalDialog_1vu3c_430", Ma = "_createLocalLabel_1vu3c_438", ja = "_agentTypeCards_1vu3c_446", Ha = "_agentTypeCard_1vu3c_446", Fa = "_agentTypeIcon_1vu3c_474", Ka = "_agentTypeBody_1vu3c_487", Wa = "_agentTypeTitle_1vu3c_494", Ua = "_agentTypeDesc_1vu3c_500", Va = "_agentTypeBadge_1vu3c_506", l = {
|
|
13
13
|
sidebarInner: la,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-BN2WiV4e.js";
|
|
3
3
|
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
4
|
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
5
|
import B from "query-string";
|
|
6
6
|
import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
7
|
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as w } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-CoecMXbK.js";
|
|
10
10
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
11
|
function nt() {
|
|
12
12
|
const m = W(), p = B.parse(m.search), o = String(
|