@yuku123/z-team-component 0.2.137 → 0.2.139

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.
Files changed (58) hide show
  1. package/dist/{AdminModuleContent-B1YxyaNI.js → AdminModuleContent-B1IJbLVN.js} +13440 -14425
  2. package/dist/{ChangeLogView-BKQfeeag.js → ChangeLogView-BVKf3AZn.js} +1 -1
  3. package/dist/{index-C_OjaGAs.js → CollabPersonalHost-BY6RqeQJ.js} +3 -3
  4. package/dist/{ComponentDoc-DHTIWtcE.js → ComponentDoc-BIX-e69A.js} +476 -494
  5. package/dist/{index-Cxvua23F.js → DevWorkbench-BtiPE_V4.js} +2 -2
  6. package/dist/{InvitationManagementPage-DgVqNUvK.js → InvitationManagementPage-DRC_8AiO.js} +1 -1
  7. package/dist/{index-BB7G9ZN4.js → KnowledgeGraphTab-BfhDEyvW.js} +1 -1
  8. package/dist/{index-D9NoVz2x.js → Market-C2vkBzDr.js} +2 -2
  9. package/dist/{OnboardingPage-DiBVtw23.js → OnboardingPage-B4GQTFCS.js} +2 -2
  10. package/dist/{index-B3K7b3Bf.js → OpsWorkbench-D8RF2p4X.js} +292 -292
  11. package/dist/ProductWorkspace-PSO7Q9m-.js +1323 -0
  12. package/dist/{ScheduledTasks-DuR4sg4k.js → ScheduledTasks-CoaHVU6e.js} +3104 -3141
  13. package/dist/SmartWorkbench-BkdfSgqx.js +1867 -0
  14. package/dist/SystemShell-CANwRSyW.js +886 -0
  15. package/dist/SystemWorkbench.module-DpLM0zgA.js +36 -0
  16. package/dist/{index-NfGgVmob.js → TrainingAdminShell-CgnQM4Nb.js} +3 -3
  17. package/dist/{index-B2iHgJnx.js → WorkBuddyShell-DCrPpMd5.js} +6 -6
  18. package/dist/{admin-logs-BZasxvF5.js → admin-logs-DK00NEUv.js} +1 -1
  19. package/dist/{index-D3YkA5j4.js → admin-ryysUJ9z.js} +6 -6
  20. package/dist/{api-CELjpxxS.js → api-C_9xZbZr.js} +1 -1
  21. package/dist/{api-BhdcdwWj.js → api-DBemNteG.js} +1 -1
  22. package/dist/{index-CV3kkXgP.js → build-by-form-CXxXrXvw.js} +5 -5
  23. package/dist/{index-DSH-wcoD.js → change-log-CcmXtywx.js} +1 -1
  24. package/dist/{index-CtFdsOsR.js → chat-DKwMolQV.js} +2 -2
  25. package/dist/{index-BDZOz1cm.js → common-Bcnlb4nY.js} +2 -2
  26. package/dist/{createWorkspaceWsHandler-SY-wVjjh.js → createWorkspaceWsHandler-6xyLJ14H.js} +3417 -3479
  27. package/dist/{index-B6Nj2_Zo.js → docs-A-g6sqaE.js} +2 -2
  28. package/dist/{index-X-n1B8fi.js → from-scenario-D8CIJLDn.js} +5 -5
  29. package/dist/{index-Cd3a7nol.js → from-ticket-D0oQPEf1.js} +2 -2
  30. package/dist/{index-DpiQW5SO.js → index-BGAG77Nt.js} +4 -4
  31. package/dist/index-BM6KEb8k.js +576 -0
  32. package/dist/{index-DkF5EnSi.js → index-BgCxUeRF.js} +2 -2
  33. package/dist/{index-Bwe4EN63.js → index-BlfOXOZM.js} +1 -1
  34. package/dist/index-Bs_WMKyt.js +9527 -0
  35. package/dist/{index-nj-cjKsf.js → index-Dlf6mERD.js} +1950 -1910
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-BOFjc82M.js → instance-B9ZKD5cL.js} +1 -1
  38. package/dist/{menuPermission-Dfwf-EJP.js → menuPermission-C4EVCwjs.js} +3 -3
  39. package/dist/{menuTree-Ctcz41N8.js → menuTree-BjchjhUw.js} +25 -23
  40. package/dist/pages.js +1 -1
  41. package/dist/{index-DOdAlZfA.js → phone-BU4g7eHI.js} +12 -12
  42. package/dist/portal-QNpTaU--.js +237 -0
  43. package/dist/{index-Btpel9AF.js → scenario-DOpFkfNV.js} +2 -2
  44. package/dist/{send-default-agent-team-message-CvPaOp3a.js → send-default-agent-team-message-1L9Jv1eJ.js} +1 -1
  45. package/dist/{sso-user-CAWQupk5.js → sso-user-Co71Xi9I.js} +1 -1
  46. package/dist/{training-BYjqU8sn.js → training-BqYfINRR.js} +1 -1
  47. package/dist/{webide-CDZpzRfx.js → webide-AknolY0B.js} +1278 -1244
  48. package/dist/{index-DWi-8Esh.js → welcome-BBLRGBWu.js} +2 -2
  49. package/dist/z-team-component.css +1 -1
  50. package/package.json +12 -4
  51. package/dist/SystemShell-DoMowhBn.js +0 -981
  52. package/dist/index-B0xiWAhM.js +0 -10339
  53. package/dist/index-BHBuOhK5.js +0 -1299
  54. package/dist/index-DhDdFRHC.js +0 -279
  55. package/dist/index-DlxfYOdw.js +0 -1718
  56. /package/dist/{index-DrDFy5jN.js → CognitionWorkbench-DrDFy5jN.js} +0 -0
  57. /package/dist/{index-C815hPWS.js → chatdemo-C815hPWS.js} +0 -0
  58. /package/dist/{index-B_LJRFsK.js → download-B_LJRFsK.js} +0 -0
@@ -1,71 +1,71 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { useNavigate as ue, useLocation as se, Navigate as q } from "react-router-dom";
3
- import { Spin as me, Row as pe, Col as W, Card as M, Statistic as U, Space as _, Tag as R, Button as I, Alert as V, Table as he, Badge as re, Popconfirm as B, message as S, Select as ae, Drawer as ye, Tabs as fe, Form as H, Modal as ge, Input as j, InputNumber as X } from "antd";
4
- import { DownOutlined as be, RightOutlined as we, DashboardOutlined as Q, ClusterOutlined as J, CloudServerOutlined as D, ContainerOutlined as oe, ReloadOutlined as Y, PlayCircleOutlined as ke, PauseCircleOutlined as ve, ClearOutlined as le, SendOutlined as xe, PlusOutlined as Se, BranchesOutlined as Ie, RocketOutlined as Ce, AlertOutlined as Pe, FileTextOutlined as _e, DatabaseOutlined as ee, CloudOutlined as Re, DeploymentUnitOutlined as $e } from "@ant-design/icons";
5
- import { useState as m, useMemo as Z, useEffect as E, useRef as z } from "react";
6
- import { P as Oe, R as Ae } from "./index-DkF5EnSi.js";
7
- import { f as Ne, M as Ee } from "./menuPermission-Dfwf-EJP.js";
8
- import { u as te, a3 as Te } from "./ComponentDoc-DHTIWtcE.js";
9
- import { ListTable as ce } from "@yuku123/z-frontend-common/ui";
10
- import "./index-B0xiWAhM.js";
11
- const Ge = "_shell_rfl59_7", He = "_sidebar_rfl59_20", Le = "_menuList_rfl59_41", De = "_menuGroup_rfl59_47", ze = "_menuGroupHeader_rfl59_56", Fe = "_menuGroupHeaderOpen_rfl59_75", Me = "_menuGroupHeaderActive_rfl59_86", Be = "_menuGroupIcon_rfl59_90", We = "_menuGroupLabel_rfl59_99", Ue = "_menuGroupArrow_rfl59_104", Ke = "_menuSubList_rfl59_110", qe = "_menuSubItemWrap_rfl59_116", Je = "_menuSubItem_rfl59_116", Ve = "_menuItemOnPath_rfl59_154", je = "_menuSubItemPill_rfl59_175", Xe = "_menuSubItemActive_rfl59_191", Ze = "_menuSubItemIcon_rfl59_201", Qe = "_main_rfl59_215", Ye = "_empty_rfl59_226", et = "_emptyIcon_rfl59_236", tt = "_emptyText_rfl59_241", w = {
12
- shell: Ge,
13
- sidebar: He,
14
- menuList: Le,
15
- menuGroup: De,
16
- menuGroupHeader: ze,
17
- menuGroupHeaderOpen: Fe,
18
- menuGroupHeaderActive: Me,
19
- menuGroupIcon: Be,
20
- menuGroupLabel: We,
21
- menuGroupArrow: Ue,
22
- menuSubList: Ke,
23
- menuSubItemWrap: qe,
24
- menuSubItem: Je,
25
- menuItemOnPath: Ve,
26
- menuSubItemPill: je,
27
- menuSubItemActive: Xe,
28
- menuSubItemIcon: Ze,
29
- main: Qe,
30
- empty: Ye,
31
- emptyIcon: et,
32
- emptyText: tt
2
+ import { useNavigate as pe, useLocation as ae, Navigate as q } from "react-router-dom";
3
+ import { useState as m, useMemo as j, useEffect as N, useRef as D, lazy as re } from "react";
4
+ import { Spin as he, Row as ye, Col as B, Card as F, Statistic as U, Space as _, Tag as R, Button as S, Alert as V, Table as fe, Badge as oe, Popconfirm as W, message as I, Select as le, Drawer as ge, Tabs as be, Form as G, Modal as ke, Input as X, InputNumber as Z } from "antd";
5
+ import { DownOutlined as we, RightOutlined as ve, DashboardOutlined as Q, ClusterOutlined as J, CloudServerOutlined as L, ContainerOutlined as ce, ReloadOutlined as Y, PlayCircleOutlined as xe, PauseCircleOutlined as Ie, ClearOutlined as ie, SendOutlined as Se, PlusOutlined as Ce, BranchesOutlined as Pe, RocketOutlined as _e, AlertOutlined as Re, FileTextOutlined as Oe, DatabaseOutlined as ee, CloudOutlined as $e, DeploymentUnitOutlined as Ae } from "@ant-design/icons";
6
+ import { P as Ne, R as Te } from "./index-BgCxUeRF.js";
7
+ import { f as Ee, M as Ge } from "./menuPermission-C4EVCwjs.js";
8
+ import { u as te, a3 as He } from "./ComponentDoc-BIX-e69A.js";
9
+ import { ListTable as de } from "@yuku123/z-frontend-common/ui";
10
+ import "./index-Bs_WMKyt.js";
11
+ const Le = "_shell_rfl59_7", De = "_sidebar_rfl59_20", ze = "_menuList_rfl59_41", Fe = "_menuGroup_rfl59_47", Me = "_menuGroupHeader_rfl59_56", We = "_menuGroupHeaderOpen_rfl59_75", Be = "_menuGroupHeaderActive_rfl59_86", Ue = "_menuGroupIcon_rfl59_90", Ke = "_menuGroupLabel_rfl59_99", qe = "_menuGroupArrow_rfl59_104", Je = "_menuSubList_rfl59_110", Ve = "_menuSubItemWrap_rfl59_116", je = "_menuSubItem_rfl59_116", Xe = "_menuItemOnPath_rfl59_154", Ze = "_menuSubItemPill_rfl59_175", Qe = "_menuSubItemActive_rfl59_191", Ye = "_menuSubItemIcon_rfl59_201", et = "_main_rfl59_215", tt = "_empty_rfl59_226", nt = "_emptyIcon_rfl59_236", st = "_emptyText_rfl59_241", k = {
12
+ shell: Le,
13
+ sidebar: De,
14
+ menuList: ze,
15
+ menuGroup: Fe,
16
+ menuGroupHeader: Me,
17
+ menuGroupHeaderOpen: We,
18
+ menuGroupHeaderActive: Be,
19
+ menuGroupIcon: Ue,
20
+ menuGroupLabel: Ke,
21
+ menuGroupArrow: qe,
22
+ menuSubList: Je,
23
+ menuSubItemWrap: Ve,
24
+ menuSubItem: je,
25
+ menuItemOnPath: Xe,
26
+ menuSubItemPill: Ze,
27
+ menuSubItemActive: Qe,
28
+ menuSubItemIcon: Ye,
29
+ main: et,
30
+ empty: tt,
31
+ emptyIcon: nt,
32
+ emptyText: st
33
33
  };
34
- function nt(t, a) {
34
+ function at(t, r) {
35
35
  for (const l of t)
36
- if (l.path === a) return l.element;
36
+ if (l.path === r) return l.element;
37
37
  for (const l of t)
38
38
  if (l.path.includes("*") || l.path.includes(":")) {
39
39
  const p = "^" + l.path.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
40
- if (new RegExp(p).test(a)) return l.element;
40
+ if (new RegExp(p).test(r)) return l.element;
41
41
  }
42
42
  return null;
43
43
  }
44
- function st({ text: t }) {
45
- return /* @__PURE__ */ s("div", { className: w.empty, children: [
46
- /* @__PURE__ */ e("div", { className: w.emptyIcon, children: "⚙️" }),
47
- /* @__PURE__ */ e("div", { className: w.emptyText, children: t })
44
+ function rt({ text: t }) {
45
+ return /* @__PURE__ */ s("div", { className: k.empty, children: [
46
+ /* @__PURE__ */ e("div", { className: k.emptyIcon, children: "⚙️" }),
47
+ /* @__PURE__ */ e("div", { className: k.emptyText, children: t })
48
48
  ] });
49
49
  }
50
- function rt({
50
+ function ot({
51
51
  groups: t,
52
- routes: a,
52
+ routes: r,
53
53
  mode: l,
54
54
  emptyText: p,
55
55
  activePathOverride: h,
56
56
  menuOnly: y = !1
57
57
  }) {
58
- const g = ue(), { pathname: u } = se(), C = te((n) => n.currentUser), v = te((n) => n.permissionState), [r, o] = m(/* @__PURE__ */ new Set()), c = Z(
59
- () => v === "failed" ? t : Ne(t, C),
58
+ const g = pe(), { pathname: u } = ae(), C = te((n) => n.currentUser), v = te((n) => n.permissionState), [a, o] = m(/* @__PURE__ */ new Set()), c = j(
59
+ () => v === "failed" ? t : Ee(t, C),
60
60
  [t, C, v]
61
- ), b = Z(() => {
61
+ ), b = j(() => {
62
62
  const n = h ?? u;
63
63
  for (const d of c)
64
64
  for (const f of d.items)
65
65
  if (f.path === n) return f.key;
66
66
  return null;
67
67
  }, [c, h, u]);
68
- E(() => {
68
+ N(() => {
69
69
  b && c.forEach((n) => {
70
70
  n.items.some((d) => d.key === b) && o(
71
71
  (d) => d.has(n.title) ? d : new Set(d).add(n.title)
@@ -77,37 +77,37 @@ function rt({
77
77
  const f = new Set(d);
78
78
  return f.has(n) ? f.delete(n) : f.add(n), f;
79
79
  });
80
- }, N = (n) => {
80
+ }, A = (n) => {
81
81
  g(`${n.path}?mode=${l}`);
82
- }, k = Z(() => nt(a, u), [a, u]);
83
- return /* @__PURE__ */ s("div", { className: w.shell, children: [
84
- /* @__PURE__ */ s("aside", { className: w.sidebar, children: [
85
- /* @__PURE__ */ e(Ee, {}),
86
- /* @__PURE__ */ e("nav", { className: w.menuList, children: c.map((n) => {
87
- const d = r.has(n.title), f = b ? n.items.findIndex((x) => x.key === b) : -1;
88
- return /* @__PURE__ */ s("div", { className: w.menuGroup, children: [
82
+ }, w = j(() => at(r, u), [r, u]);
83
+ return /* @__PURE__ */ s("div", { className: k.shell, children: [
84
+ /* @__PURE__ */ s("aside", { className: k.sidebar, children: [
85
+ /* @__PURE__ */ e(Ge, {}),
86
+ /* @__PURE__ */ e("nav", { className: k.menuList, children: c.map((n) => {
87
+ const d = a.has(n.title), f = b ? n.items.findIndex((x) => x.key === b) : -1;
88
+ return /* @__PURE__ */ s("div", { className: k.menuGroup, children: [
89
89
  /* @__PURE__ */ s(
90
90
  "div",
91
91
  {
92
- className: `${w.menuGroupHeader} ${d ? w.menuGroupHeaderOpen : ""} ${f >= 0 ? w.menuGroupHeaderActive : ""}`,
92
+ className: `${k.menuGroupHeader} ${d ? k.menuGroupHeaderOpen : ""} ${f >= 0 ? k.menuGroupHeaderActive : ""}`,
93
93
  onClick: () => P(n.title),
94
94
  children: [
95
- /* @__PURE__ */ e("span", { className: w.menuGroupIcon, children: n.icon }),
96
- /* @__PURE__ */ e("span", { className: w.menuGroupLabel, children: n.title }),
97
- /* @__PURE__ */ e("span", { className: w.menuGroupArrow, children: d ? /* @__PURE__ */ e(be, {}) : /* @__PURE__ */ e(we, {}) })
95
+ /* @__PURE__ */ e("span", { className: k.menuGroupIcon, children: n.icon }),
96
+ /* @__PURE__ */ e("span", { className: k.menuGroupLabel, children: n.title }),
97
+ /* @__PURE__ */ e("span", { className: k.menuGroupArrow, children: d ? /* @__PURE__ */ e(we, {}) : /* @__PURE__ */ e(ve, {}) })
98
98
  ]
99
99
  }
100
100
  ),
101
- d && /* @__PURE__ */ e("ul", { className: w.menuSubList, children: n.items.map((x, $) => {
102
- const F = f >= 0 && $ <= f;
101
+ d && /* @__PURE__ */ e("ul", { className: k.menuSubList, children: n.items.map((x, O) => {
102
+ const z = f >= 0 && O <= f;
103
103
  return /* @__PURE__ */ e(
104
104
  "li",
105
105
  {
106
- className: `${w.menuSubItemWrap} ${w.menuSubItem} ${F ? w.menuItemOnPath : ""} ${b === x.key ? w.menuSubItemActive : ""}`,
107
- onClick: () => N(x),
108
- children: /* @__PURE__ */ s("div", { className: w.menuSubItemPill, children: [
109
- /* @__PURE__ */ e("span", { className: w.menuSubItemIcon, children: x.icon }),
110
- /* @__PURE__ */ e("span", { className: w.menuSubItemLabel, children: x.label })
106
+ className: `${k.menuSubItemWrap} ${k.menuSubItem} ${z ? k.menuItemOnPath : ""} ${b === x.key ? k.menuSubItemActive : ""}`,
107
+ onClick: () => A(x),
108
+ children: /* @__PURE__ */ s("div", { className: k.menuSubItemPill, children: [
109
+ /* @__PURE__ */ e("span", { className: k.menuSubItemIcon, children: x.icon }),
110
+ /* @__PURE__ */ e("span", { className: k.menuSubItemLabel, children: x.label })
111
111
  ] })
112
112
  },
113
113
  x.key
@@ -116,17 +116,17 @@ function rt({
116
116
  ] }, n.title);
117
117
  }) })
118
118
  ] }),
119
- y ? null : /* @__PURE__ */ s("main", { className: w.main, children: [
120
- /* @__PURE__ */ e(Oe, {}),
121
- /* @__PURE__ */ e(Ae, { resetKey: u, children: k ?? /* @__PURE__ */ e(st, { text: p }) })
119
+ y ? null : /* @__PURE__ */ s("main", { className: k.main, children: [
120
+ /* @__PURE__ */ e(Ne, {}),
121
+ /* @__PURE__ */ e(Te, { resetKey: u, children: w ?? /* @__PURE__ */ e(rt, { text: p }) })
122
122
  ] })
123
123
  ] });
124
124
  }
125
- const at = "/z-team/ops/k8s";
126
- async function ie(t, a) {
127
- const l = `${at}${t}`, p = await fetch(l, {
125
+ const lt = "/z-team/ops/k8s";
126
+ async function ue(t, r) {
127
+ const l = `${lt}${t}`, p = await fetch(l, {
128
128
  headers: { "Content-Type": "application/json" },
129
- ...a
129
+ ...r
130
130
  }), h = p.headers && p.headers.get("content-type") || "";
131
131
  if (!/json/i.test(h))
132
132
  throw new Error(`数据源不可达:GET ${l} 返回 ${p.status} ${h || "(无 content-type)"},不是 JSON —— 该前缀没有进到后端接口(K8s 管理 API 在 z-ops 仓,z-opc 宿主未注册)`);
@@ -135,67 +135,67 @@ async function ie(t, a) {
135
135
  throw new Error(`后端 ${l} 返回 success=false:${y.message || "(无 message)"}`);
136
136
  return y;
137
137
  }
138
- async function T(t, a) {
139
- return ie(t, a);
138
+ async function T(t, r) {
139
+ return ue(t, r);
140
140
  }
141
- async function ot() {
141
+ async function ct() {
142
142
  return T("/cluster/info");
143
143
  }
144
- async function lt() {
144
+ async function it() {
145
145
  return T("/nodes");
146
146
  }
147
- async function ct(t) {
147
+ async function dt(t) {
148
148
  return T("/nodes/cordon", {
149
149
  method: "POST",
150
150
  body: JSON.stringify({ name: t })
151
151
  });
152
152
  }
153
- async function it(t) {
153
+ async function ut(t) {
154
154
  return T("/nodes/uncordon", {
155
155
  method: "POST",
156
156
  body: JSON.stringify({ name: t })
157
157
  });
158
158
  }
159
- async function dt(t = "*") {
159
+ async function mt(t = "*") {
160
160
  return T(`/workloads/pods?namespace=${t}`);
161
161
  }
162
- async function ut(t, a, l = 200) {
163
- return T(`/workloads/pods/${t}/${a}/logs?tailLines=${l}`);
162
+ async function pt(t, r, l = 200) {
163
+ return T(`/workloads/pods/${t}/${r}/logs?tailLines=${l}`);
164
164
  }
165
- async function mt(t, a) {
166
- return T(`/workloads/pods/${t}/${a}/restart`, { method: "POST" });
165
+ async function ht(t, r) {
166
+ return T(`/workloads/pods/${t}/${r}/restart`, { method: "POST" });
167
167
  }
168
- async function pt(t, a) {
169
- return T(`/workloads/pods/${t}/${a}`, { method: "DELETE" });
168
+ async function yt(t, r) {
169
+ return T(`/workloads/pods/${t}/${r}`, { method: "DELETE" });
170
170
  }
171
- async function ht() {
171
+ async function ft() {
172
172
  return T("/namespaces");
173
173
  }
174
- const yt = () => {
174
+ const gt = () => {
175
175
  var y, g;
176
- const [t, a] = m(null), [l, p] = m(!0);
177
- E(() => {
176
+ const [t, r] = m(null), [l, p] = m(!0);
177
+ N(() => {
178
178
  h();
179
179
  const u = setInterval(h, 1e4);
180
180
  return () => clearInterval(u);
181
181
  }, []);
182
182
  const h = async () => {
183
183
  try {
184
- const u = await ot();
185
- u.success && a(u.data);
184
+ const u = await ct();
185
+ u.success && r(u.data);
186
186
  } catch (u) {
187
187
  console.error("Failed to load cluster info", u);
188
188
  } finally {
189
189
  p(!1);
190
190
  }
191
191
  };
192
- return l ? /* @__PURE__ */ e(me, { size: "large" }) : /* @__PURE__ */ s("div", { style: { padding: 16 }, children: [
192
+ return l ? /* @__PURE__ */ e(he, { size: "large" }) : /* @__PURE__ */ s("div", { style: { padding: 16 }, children: [
193
193
  /* @__PURE__ */ s("h2", { style: { marginBottom: 24 }, children: [
194
194
  /* @__PURE__ */ e(Q, {}),
195
195
  " 运维总览"
196
196
  ] }),
197
- /* @__PURE__ */ s(pe, { gutter: [16, 16], children: [
198
- /* @__PURE__ */ e(W, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(M, { children: [
197
+ /* @__PURE__ */ s(ye, { gutter: [16, 16], children: [
198
+ /* @__PURE__ */ e(B, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(F, { children: [
199
199
  /* @__PURE__ */ e(
200
200
  U,
201
201
  {
@@ -212,12 +212,12 @@ const yt = () => {
212
212
  ),
213
213
  /* @__PURE__ */ e(R, { color: (t == null ? void 0 : t.status) === "Healthy" ? "success" : "warning", children: (t == null ? void 0 : t.status) ?? "Unknown" })
214
214
  ] }) }),
215
- /* @__PURE__ */ e(W, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(M, { children: [
215
+ /* @__PURE__ */ e(B, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(F, { children: [
216
216
  /* @__PURE__ */ e(
217
217
  U,
218
218
  {
219
219
  title: /* @__PURE__ */ s(_, { children: [
220
- /* @__PURE__ */ e(D, {}),
220
+ /* @__PURE__ */ e(L, {}),
221
221
  " CPU"
222
222
  ] }),
223
223
  value: ((y = t == null ? void 0 : t.usedCpu) == null ? void 0 : y.toFixed(1)) ?? "0",
@@ -234,7 +234,7 @@ const yt = () => {
234
234
  "%"
235
235
  ] })
236
236
  ] }) }),
237
- /* @__PURE__ */ e(W, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(M, { children: [
237
+ /* @__PURE__ */ e(B, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(F, { children: [
238
238
  /* @__PURE__ */ e(
239
239
  U,
240
240
  {
@@ -256,12 +256,12 @@ const yt = () => {
256
256
  "%"
257
257
  ] })
258
258
  ] }) }),
259
- /* @__PURE__ */ e(W, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(M, { children: [
259
+ /* @__PURE__ */ e(B, { xs: 24, sm: 12, lg: 6, children: /* @__PURE__ */ s(F, { children: [
260
260
  /* @__PURE__ */ e(
261
261
  U,
262
262
  {
263
263
  title: /* @__PURE__ */ s(_, { children: [
264
- /* @__PURE__ */ e(oe, {}),
264
+ /* @__PURE__ */ e(ce, {}),
265
265
  " Pods"
266
266
  ] }),
267
267
  value: (t == null ? void 0 : t.runningPods) ?? 0,
@@ -277,7 +277,7 @@ const yt = () => {
277
277
  ] })
278
278
  ] }) })
279
279
  ] }),
280
- /* @__PURE__ */ e(M, { title: "集群信息", style: { marginTop: 16 }, children: /* @__PURE__ */ s(_, { orientation: "vertical", children: [
280
+ /* @__PURE__ */ e(F, { title: "集群信息", style: { marginTop: 16 }, children: /* @__PURE__ */ s(_, { orientation: "vertical", children: [
281
281
  /* @__PURE__ */ s("div", { children: [
282
282
  /* @__PURE__ */ e("strong", { children: "K8s 版本:" }),
283
283
  " ",
@@ -310,36 +310,36 @@ const yt = () => {
310
310
  ] })
311
311
  ] }) })
312
312
  ] });
313
- }, ft = () => {
314
- const [t, a] = m([]), [l, p] = m(!1), [h, y] = m("");
315
- E(() => {
313
+ }, bt = () => {
314
+ const [t, r] = m([]), [l, p] = m(!1), [h, y] = m("");
315
+ N(() => {
316
316
  g();
317
317
  }, []);
318
318
  const g = async () => {
319
319
  p(!0), y("");
320
320
  try {
321
- const r = await lt();
322
- a(Array.isArray(r.data) ? r.data : []);
323
- } catch (r) {
324
- a([]), y(String((r == null ? void 0 : r.message) || r));
321
+ const a = await it();
322
+ r(Array.isArray(a.data) ? a.data : []);
323
+ } catch (a) {
324
+ r([]), y(String((a == null ? void 0 : a.message) || a));
325
325
  } finally {
326
326
  p(!1);
327
327
  }
328
- }, u = async (r) => {
328
+ }, u = async (a) => {
329
329
  try {
330
- await ct(r), S.success(`${r} 已封锁(停止调度)`), g();
330
+ await dt(a), I.success(`${a} 已封锁(停止调度)`), g();
331
331
  } catch {
332
- S.error("封锁失败");
332
+ I.error("封锁失败");
333
333
  }
334
- }, C = async (r) => {
334
+ }, C = async (a) => {
335
335
  try {
336
- await it(r), S.success(`${r} 已解封`), g();
336
+ await ut(a), I.success(`${a} 已解封`), g();
337
337
  } catch {
338
- S.error("解封失败");
338
+ I.error("解封失败");
339
339
  }
340
340
  };
341
341
  return /* @__PURE__ */ s("div", { children: [
342
- /* @__PURE__ */ e(_, { style: { marginBottom: 16 }, children: /* @__PURE__ */ e(I, { icon: /* @__PURE__ */ e(Y, {}), onClick: g, loading: l, children: "刷新" }) }),
342
+ /* @__PURE__ */ e(_, { style: { marginBottom: 16 }, children: /* @__PURE__ */ e(S, { icon: /* @__PURE__ */ e(Y, {}), onClick: g, loading: l, children: "刷新" }) }),
343
343
  h && /* @__PURE__ */ e(
344
344
  V,
345
345
  {
@@ -351,37 +351,37 @@ const yt = () => {
351
351
  }
352
352
  ),
353
353
  /* @__PURE__ */ e(
354
- he,
354
+ fe,
355
355
  {
356
356
  columns: [
357
357
  {
358
358
  title: "名称",
359
359
  dataIndex: "name",
360
360
  key: "name",
361
- render: (r) => /* @__PURE__ */ e("strong", { children: r })
361
+ render: (a) => /* @__PURE__ */ e("strong", { children: a })
362
362
  },
363
363
  {
364
364
  title: "IP",
365
365
  dataIndex: "ip",
366
366
  key: "ip",
367
- render: (r) => /* @__PURE__ */ e("code", { children: r })
367
+ render: (a) => /* @__PURE__ */ e("code", { children: a })
368
368
  },
369
369
  {
370
370
  title: "状态",
371
371
  dataIndex: "status",
372
372
  key: "status",
373
- render: (r) => /* @__PURE__ */ e(re, { status: r === "Ready" ? "success" : "error", text: r })
373
+ render: (a) => /* @__PURE__ */ e(oe, { status: a === "Ready" ? "success" : "error", text: a })
374
374
  },
375
375
  {
376
376
  title: "角色",
377
377
  dataIndex: "roles",
378
378
  key: "roles",
379
- render: (r) => r ? /* @__PURE__ */ e(R, { color: "blue", children: r }) : /* @__PURE__ */ e(R, { children: "worker" })
379
+ render: (a) => a ? /* @__PURE__ */ e(R, { color: "blue", children: a }) : /* @__PURE__ */ e(R, { children: "worker" })
380
380
  },
381
381
  {
382
382
  title: "CPU",
383
383
  key: "cpu",
384
- render: (r, o) => {
384
+ render: (a, o) => {
385
385
  var P;
386
386
  const c = o.cpuUsed, b = c != null && o.cpuCapacity > 0 ? c / o.cpuCapacity * 100 : null;
387
387
  return /* @__PURE__ */ s("span", { children: [
@@ -399,7 +399,7 @@ const yt = () => {
399
399
  {
400
400
  title: "内存",
401
401
  key: "mem",
402
- render: (r, o) => {
402
+ render: (a, o) => {
403
403
  var P;
404
404
  const c = o.memUsed, b = c != null && o.memCapacity > 0 ? c / o.memCapacity * 100 : null;
405
405
  return /* @__PURE__ */ s("span", { children: [
@@ -421,9 +421,9 @@ const yt = () => {
421
421
  title: "操作",
422
422
  key: "action",
423
423
  width: 150,
424
- render: (r, o) => /* @__PURE__ */ s(_, { children: [
425
- /* @__PURE__ */ e(B, { title: `封锁 ${o.name}?`, onConfirm: () => u(o.name), children: /* @__PURE__ */ e(I, { type: "link", size: "small", children: "Cordon" }) }),
426
- /* @__PURE__ */ e(B, { title: `解封 ${o.name}?`, onConfirm: () => C(o.name), children: /* @__PURE__ */ e(I, { type: "link", size: "small", children: "Uncordon" }) })
424
+ render: (a, o) => /* @__PURE__ */ s(_, { children: [
425
+ /* @__PURE__ */ e(W, { title: `封锁 ${o.name}?`, onConfirm: () => u(o.name), children: /* @__PURE__ */ e(S, { type: "link", size: "small", children: "Cordon" }) }),
426
+ /* @__PURE__ */ e(W, { title: `解封 ${o.name}?`, onConfirm: () => C(o.name), children: /* @__PURE__ */ e(S, { type: "link", size: "small", children: "Uncordon" }) })
427
427
  ] })
428
428
  }
429
429
  ],
@@ -436,51 +436,51 @@ const yt = () => {
436
436
  }
437
437
  )
438
438
  ] });
439
- }, gt = ({
439
+ }, kt = ({
440
440
  namespace: t,
441
- podName: a,
441
+ podName: r,
442
442
  tailLines: l = 200
443
443
  }) => {
444
- const [p, h] = m([]), [y, g] = m(!1), [u, C] = m(!1), v = z(null), r = z(null), o = z(!1);
445
- E(() => (c(), () => {
446
- var k;
447
- (k = v.current) == null || k.close();
448
- }), [t, a]), E(() => {
449
- var k;
450
- u || (k = r.current) == null || k.scrollIntoView({ behavior: "smooth" });
444
+ const [p, h] = m([]), [y, g] = m(!1), [u, C] = m(!1), v = D(null), a = D(null), o = D(!1);
445
+ N(() => (c(), () => {
446
+ var w;
447
+ (w = v.current) == null || w.close();
448
+ }), [t, r]), N(() => {
449
+ var w;
450
+ u || (w = a.current) == null || w.scrollIntoView({ behavior: "smooth" });
451
451
  }, [p, u]);
452
452
  const c = () => {
453
- const k = window.location.protocol === "https:" ? "wss:" : "ws:", n = window.location.host, d = `${k}//${n}/z-team/ops/k8s/ws/logs?namespace=${t}&name=${a}&tailLines=${l}`, f = new WebSocket(d);
453
+ const w = window.location.protocol === "https:" ? "wss:" : "ws:", n = window.location.host, d = `${w}//${n}/z-team/ops/k8s/ws/logs?namespace=${t}&name=${r}&tailLines=${l}`, f = new WebSocket(d);
454
454
  v.current = f, f.onopen = () => {
455
- g(!0), S.success("日志流已连接");
455
+ g(!0), I.success("日志流已连接");
456
456
  }, f.onmessage = (x) => {
457
- o.current || h(($) => [...$.slice(-1e3), x.data]);
457
+ o.current || h((O) => [...O.slice(-1e3), x.data]);
458
458
  }, f.onclose = () => {
459
459
  g(!1);
460
460
  }, f.onerror = () => {
461
- g(!1), S.error("WebSocket 连接错误");
461
+ g(!1), I.error("WebSocket 连接错误");
462
462
  };
463
463
  };
464
464
  return /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
465
465
  /* @__PURE__ */ s(_, { style: { marginBottom: 8 }, children: [
466
466
  /* @__PURE__ */ e(R, { color: y ? "success" : "error", children: y ? "● 已连接" : "● 已断开" }),
467
467
  /* @__PURE__ */ e(
468
- I,
468
+ S,
469
469
  {
470
470
  size: "small",
471
- icon: u ? /* @__PURE__ */ e(ke, {}) : /* @__PURE__ */ e(ve, {}),
471
+ icon: u ? /* @__PURE__ */ e(xe, {}) : /* @__PURE__ */ e(Ie, {}),
472
472
  onClick: () => {
473
473
  o.current = !o.current, C(o.current);
474
474
  },
475
475
  children: u ? "继续" : "暂停"
476
476
  }
477
477
  ),
478
- /* @__PURE__ */ e(I, { size: "small", icon: /* @__PURE__ */ e(le, {}), onClick: () => {
478
+ /* @__PURE__ */ e(S, { size: "small", icon: /* @__PURE__ */ e(ie, {}), onClick: () => {
479
479
  h([]);
480
480
  }, children: "清空" }),
481
- /* @__PURE__ */ e(I, { size: "small", onClick: () => {
482
- var k;
483
- (k = v.current) == null || k.close(), h([]), c();
481
+ /* @__PURE__ */ e(S, { size: "small", onClick: () => {
482
+ var w;
483
+ (w = v.current) == null || w.close(), h([]), c();
484
484
  }, children: "重连" })
485
485
  ] }),
486
486
  /* @__PURE__ */ s("div", { style: {
@@ -494,48 +494,48 @@ const yt = () => {
494
494
  lineHeight: 1.5,
495
495
  color: "#d4d4d4"
496
496
  }, children: [
497
- p.map((k, n) => /* @__PURE__ */ e("div", { style: {
498
- color: k.includes("ERROR") ? "#f44336" : k.includes("WARN") ? "#ff9800" : k.includes("INFO") ? "#4caf50" : "#d4d4d4",
497
+ p.map((w, n) => /* @__PURE__ */ e("div", { style: {
498
+ color: w.includes("ERROR") ? "#f44336" : w.includes("WARN") ? "#ff9800" : w.includes("INFO") ? "#4caf50" : "#d4d4d4",
499
499
  whiteSpace: "pre-wrap",
500
500
  wordBreak: "break-all"
501
- }, children: k }, n)),
502
- /* @__PURE__ */ e("div", { ref: r })
501
+ }, children: w }, n)),
502
+ /* @__PURE__ */ e("div", { ref: a })
503
503
  ] })
504
504
  ] });
505
- }, bt = ({
505
+ }, wt = ({
506
506
  namespace: t,
507
- podName: a
507
+ podName: r
508
508
  }) => {
509
- const [l, p] = m(!1), [h, y] = m(""), [g, u] = m("sh"), [C, v] = m([]), r = z(null), o = z(null), c = z(null);
510
- E(() => (t && a && b(), () => {
509
+ const [l, p] = m(!1), [h, y] = m(""), [g, u] = m("sh"), [C, v] = m([]), a = D(null), o = D(null), c = D(null);
510
+ N(() => (t && r && b(), () => {
511
511
  var n;
512
- return (n = r.current) == null ? void 0 : n.close();
513
- }), [t, a]);
512
+ return (n = a.current) == null ? void 0 : n.close();
513
+ }), [t, r]);
514
514
  const b = () => {
515
- const n = window.location.protocol === "https:" ? "wss:" : "ws:", d = window.location.host, f = `${n}//${d}/z-team/ops/k8s/ws/exec?namespace=${t}&name=${a}&command=${g}`, x = new WebSocket(f);
516
- r.current = x, x.onopen = () => {
517
- p(!0), v(($) => [...$, `Connected to ${t}/${a} (${g})`]), S.success("终端已连接");
518
- }, x.onmessage = ($) => {
519
- v((F) => [...F.slice(-500), $.data]), setTimeout(() => {
515
+ const n = window.location.protocol === "https:" ? "wss:" : "ws:", d = window.location.host, f = `${n}//${d}/z-team/ops/k8s/ws/exec?namespace=${t}&name=${r}&command=${g}`, x = new WebSocket(f);
516
+ a.current = x, x.onopen = () => {
517
+ p(!0), v((O) => [...O, `Connected to ${t}/${r} (${g})`]), I.success("终端已连接");
518
+ }, x.onmessage = (O) => {
519
+ v((z) => [...z.slice(-500), O.data]), setTimeout(() => {
520
520
  o.current && (o.current.scrollTop = o.current.scrollHeight);
521
521
  }, 50);
522
522
  }, x.onclose = () => {
523
- p(!1), v(($) => [...$, `
523
+ p(!1), v((O) => [...O, `
524
524
  --- 连接已关闭 ---`]);
525
525
  }, x.onerror = () => {
526
- p(!1), S.error("WebSocket 连接错误");
526
+ p(!1), I.error("WebSocket 连接错误");
527
527
  };
528
528
  }, P = () => {
529
- !h.trim() || !r.current || (r.current.readyState === WebSocket.OPEN ? (r.current.send(h), v((n) => [...n, `$ ${h}`]), y("")) : S.warning("WebSocket 未连接"));
530
- }, N = (n) => {
529
+ !h.trim() || !a.current || (a.current.readyState === WebSocket.OPEN ? (a.current.send(h), v((n) => [...n, `$ ${h}`]), y("")) : I.warning("WebSocket 未连接"));
530
+ }, A = (n) => {
531
531
  var d;
532
- n.key === "Enter" && P(), n.key === "Tab" && (n.preventDefault(), ((d = r.current) == null ? void 0 : d.readyState) === WebSocket.OPEN && r.current.send(" "));
533
- }, k = () => v([]);
532
+ n.key === "Enter" && P(), n.key === "Tab" && (n.preventDefault(), ((d = a.current) == null ? void 0 : d.readyState) === WebSocket.OPEN && a.current.send(" "));
533
+ }, w = () => v([]);
534
534
  return /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", height: "100%" }, children: [
535
535
  /* @__PURE__ */ s(_, { style: { marginBottom: 8 }, children: [
536
536
  /* @__PURE__ */ e(R, { color: l ? "success" : "error", children: l ? "● 已连接" : "● 已断开" }),
537
537
  /* @__PURE__ */ e(
538
- ae,
538
+ le,
539
539
  {
540
540
  value: g,
541
541
  onChange: u,
@@ -544,10 +544,10 @@ const yt = () => {
544
544
  options: ["sh", "bash", "/bin/sh", "/bin/bash"].map((n) => ({ label: n, value: n }))
545
545
  }
546
546
  ),
547
- /* @__PURE__ */ e(I, { size: "small", onClick: k, icon: /* @__PURE__ */ e(le, {}), children: "清空" }),
548
- /* @__PURE__ */ e(I, { size: "small", onClick: () => {
547
+ /* @__PURE__ */ e(S, { size: "small", onClick: w, icon: /* @__PURE__ */ e(ie, {}), children: "清空" }),
548
+ /* @__PURE__ */ e(S, { size: "small", onClick: () => {
549
549
  var n;
550
- (n = r.current) == null || n.close(), setTimeout(b, 200);
550
+ (n = a.current) == null || n.close(), setTimeout(b, 200);
551
551
  }, children: "重连" })
552
552
  ] }),
553
553
  /* @__PURE__ */ s(
@@ -599,14 +599,14 @@ const yt = () => {
599
599
  "$ ",
600
600
  t,
601
601
  "/",
602
- a
602
+ r
603
603
  ] }),
604
604
  /* @__PURE__ */ e(
605
605
  "input",
606
606
  {
607
607
  value: h,
608
608
  onChange: (n) => y(n.target.value),
609
- onKeyDown: N,
609
+ onKeyDown: A,
610
610
  placeholder: "输入命令后按 Enter...",
611
611
  disabled: !l,
612
612
  style: {
@@ -624,10 +624,10 @@ const yt = () => {
624
624
  }
625
625
  ),
626
626
  /* @__PURE__ */ e(
627
- I,
627
+ S,
628
628
  {
629
629
  type: "primary",
630
- icon: /* @__PURE__ */ e(xe, {}),
630
+ icon: /* @__PURE__ */ e(Se, {}),
631
631
  onClick: P,
632
632
  disabled: !l,
633
633
  children: "发送"
@@ -635,7 +635,7 @@ const yt = () => {
635
635
  )
636
636
  ] })
637
637
  ] });
638
- }, wt = (t) => {
638
+ }, vt = (t) => {
639
639
  switch (t) {
640
640
  case "Running":
641
641
  return "success";
@@ -648,16 +648,16 @@ const yt = () => {
648
648
  default:
649
649
  return "default";
650
650
  }
651
- }, kt = () => {
652
- const [t, a] = m([]), [l, p] = m(!1), [h, y] = m(""), [g, u] = m("*"), [C, v] = m([]), [r, o] = m(!1), [c, b] = m(null), [P, N] = m("logs"), [k, n] = m("");
653
- E(() => {
651
+ }, xt = () => {
652
+ const [t, r] = m([]), [l, p] = m(!1), [h, y] = m(""), [g, u] = m("*"), [C, v] = m([]), [a, o] = m(!1), [c, b] = m(null), [P, A] = m("logs"), [w, n] = m("");
653
+ N(() => {
654
654
  d();
655
- }, []), E(() => {
655
+ }, []), N(() => {
656
656
  f();
657
657
  }, [g]);
658
658
  const d = async () => {
659
659
  try {
660
- const i = await ht();
660
+ const i = await ft();
661
661
  v(Array.isArray(i.data) ? ["*", ...i.data] : ["*"]);
662
662
  } catch {
663
663
  v(["*"]);
@@ -665,40 +665,40 @@ const yt = () => {
665
665
  }, f = async () => {
666
666
  p(!0), y("");
667
667
  try {
668
- const i = await dt(g);
669
- a(Array.isArray(i.data) ? i.data : []);
668
+ const i = await mt(g);
669
+ r(Array.isArray(i.data) ? i.data : []);
670
670
  } catch (i) {
671
- a([]), y(String((i == null ? void 0 : i.message) || i));
671
+ r([]), y(String((i == null ? void 0 : i.message) || i));
672
672
  } finally {
673
673
  p(!1);
674
674
  }
675
675
  }, x = async (i) => {
676
- var O;
677
- b(i), N("logs"), o(!0);
676
+ var $;
677
+ b(i), A("logs"), o(!0);
678
678
  try {
679
- const G = await ut(i.namespace, i.name, 200);
680
- n(((O = G == null ? void 0 : G.data) == null ? void 0 : O.logs) ?? "");
681
- } catch (G) {
682
- n(`加载日志失败:${String((G == null ? void 0 : G.message) || G)}`);
679
+ const E = await pt(i.namespace, i.name, 200);
680
+ n((($ = E == null ? void 0 : E.data) == null ? void 0 : $.logs) ?? "");
681
+ } catch (E) {
682
+ n(`加载日志失败:${String((E == null ? void 0 : E.message) || E)}`);
683
683
  }
684
- }, $ = async (i) => {
684
+ }, O = async (i) => {
685
685
  try {
686
- await mt(i.namespace, i.name), S.success(`${i.name} 已重启`), f();
686
+ await ht(i.namespace, i.name), I.success(`${i.name} 已重启`), f();
687
687
  } catch {
688
- S.error("重启失败");
688
+ I.error("重启失败");
689
689
  }
690
- }, F = async (i) => {
690
+ }, z = async (i) => {
691
691
  try {
692
- await pt(i.namespace, i.name), S.success(`${i.name} 已删除`), f();
692
+ await yt(i.namespace, i.name), I.success(`${i.name} 已删除`), f();
693
693
  } catch {
694
- S.error("删除失败");
694
+ I.error("删除失败");
695
695
  }
696
- }, de = [
696
+ }, me = [
697
697
  {
698
698
  title: "名称",
699
699
  dataIndex: "name",
700
700
  key: "name",
701
- render: (i, O) => /* @__PURE__ */ e("a", { onClick: () => x(O), children: i })
701
+ render: (i, $) => /* @__PURE__ */ e("a", { onClick: () => x($), children: i })
702
702
  },
703
703
  { title: "命名空间", dataIndex: "namespace", key: "namespace", width: 120 },
704
704
  { title: "节点", dataIndex: "nodeName", key: "nodeName", width: 130 },
@@ -708,7 +708,7 @@ const yt = () => {
708
708
  dataIndex: "status",
709
709
  key: "status",
710
710
  width: 100,
711
- render: (i) => /* @__PURE__ */ e(re, { status: wt(i), text: i })
711
+ render: (i) => /* @__PURE__ */ e(oe, { status: vt(i), text: i })
712
712
  },
713
713
  {
714
714
  title: "就绪",
@@ -723,10 +723,10 @@ const yt = () => {
723
723
  title: "操作",
724
724
  key: "action",
725
725
  width: 200,
726
- render: (i, O) => /* @__PURE__ */ s(_, { children: [
727
- /* @__PURE__ */ e(I, { type: "link", size: "small", onClick: () => x(O), children: "日志" }),
728
- /* @__PURE__ */ e(B, { title: "确认重启此 Pod?", onConfirm: () => $(O), children: /* @__PURE__ */ e(I, { size: "small", type: "primary", ghost: !0, children: "重启" }) }),
729
- /* @__PURE__ */ e(B, { title: "确认删除此 Pod?", onConfirm: () => F(O), children: /* @__PURE__ */ e(I, { type: "link", size: "small", danger: !0, children: "删除" }) })
726
+ render: (i, $) => /* @__PURE__ */ s(_, { children: [
727
+ /* @__PURE__ */ e(S, { type: "link", size: "small", onClick: () => x($), children: "日志" }),
728
+ /* @__PURE__ */ e(W, { title: "确认重启此 Pod?", onConfirm: () => O($), children: /* @__PURE__ */ e(S, { size: "small", type: "primary", ghost: !0, children: "重启" }) }),
729
+ /* @__PURE__ */ e(W, { title: "确认删除此 Pod?", onConfirm: () => z($), children: /* @__PURE__ */ e(S, { type: "link", size: "small", danger: !0, children: "删除" }) })
730
730
  ] })
731
731
  }
732
732
  ];
@@ -734,7 +734,7 @@ const yt = () => {
734
734
  /* @__PURE__ */ s(_, { style: { marginBottom: 16 }, children: [
735
735
  /* @__PURE__ */ e("span", { children: "命名空间:" }),
736
736
  /* @__PURE__ */ e(
737
- ae,
737
+ le,
738
738
  {
739
739
  value: g,
740
740
  onChange: u,
@@ -742,7 +742,7 @@ const yt = () => {
742
742
  options: C.map((i) => ({ label: i, value: i }))
743
743
  }
744
744
  ),
745
- /* @__PURE__ */ e(I, { icon: /* @__PURE__ */ e(Y, {}), onClick: f, loading: l, children: "刷新" })
745
+ /* @__PURE__ */ e(S, { icon: /* @__PURE__ */ e(Y, {}), onClick: f, loading: l, children: "刷新" })
746
746
  ] }),
747
747
  h && /* @__PURE__ */ e(
748
748
  V,
@@ -755,10 +755,10 @@ const yt = () => {
755
755
  }
756
756
  ),
757
757
  /* @__PURE__ */ e(
758
- ce,
758
+ de,
759
759
  {
760
760
  rows: t,
761
- columns: de,
761
+ columns: me,
762
762
  rowKey: "name",
763
763
  loading: l,
764
764
  scroll: { x: 1e3 },
@@ -770,24 +770,24 @@ const yt = () => {
770
770
  }
771
771
  ),
772
772
  /* @__PURE__ */ e(
773
- ye,
773
+ ge,
774
774
  {
775
775
  title: c ? `${c.name} (${c.namespace})` : "",
776
776
  placement: "right",
777
777
  size: "large",
778
- open: r,
778
+ open: a,
779
779
  onClose: () => o(!1),
780
780
  children: /* @__PURE__ */ e(
781
- fe,
781
+ be,
782
782
  {
783
783
  activeKey: P,
784
- onChange: N,
784
+ onChange: A,
785
785
  items: [
786
786
  {
787
787
  key: "logs",
788
788
  label: "实时日志",
789
789
  children: c ? /* @__PURE__ */ e(
790
- gt,
790
+ kt,
791
791
  {
792
792
  namespace: c.namespace,
793
793
  podName: c.name
@@ -798,7 +798,7 @@ const yt = () => {
798
798
  key: "exec",
799
799
  label: "终端",
800
800
  children: /* @__PURE__ */ e("div", { style: { padding: 20 }, children: /* @__PURE__ */ e(
801
- bt,
801
+ wt,
802
802
  {
803
803
  namespace: (c == null ? void 0 : c.namespace) ?? "",
804
804
  podName: (c == null ? void 0 : c.name) ?? ""
@@ -812,28 +812,28 @@ const yt = () => {
812
812
  )
813
813
  ] });
814
814
  };
815
- async function K(t, a) {
816
- return ie(`/hpa${t}`, a);
815
+ async function K(t, r) {
816
+ return ue(`/hpa${t}`, r);
817
817
  }
818
- const vt = () => {
819
- const [t, a] = m([]), [l, p] = m(!1), [h, y] = m(""), [g, u] = m(!1), [C, v] = m(!1), [r] = H.useForm();
820
- E(() => {
818
+ const It = () => {
819
+ const [t, r] = m([]), [l, p] = m(!1), [h, y] = m(""), [g, u] = m(!1), [C, v] = m(!1), [a] = G.useForm();
820
+ N(() => {
821
821
  o();
822
822
  }, []);
823
823
  const o = async () => {
824
824
  p(!0), y("");
825
825
  try {
826
826
  const n = await K("/list?namespace=*");
827
- a(Array.isArray(n.data) ? n.data : []);
827
+ r(Array.isArray(n.data) ? n.data : []);
828
828
  } catch (n) {
829
- a([]), y(String((n == null ? void 0 : n.message) || n));
829
+ r([]), y(String((n == null ? void 0 : n.message) || n));
830
830
  } finally {
831
831
  p(!1);
832
832
  }
833
833
  }, c = () => {
834
- v(!1), r.resetFields(), r.setFieldsValue({ minReplicas: 1, maxReplicas: 10, cpuTarget: 80 }), u(!0);
834
+ v(!1), a.resetFields(), a.setFieldsValue({ minReplicas: 1, maxReplicas: 10, cpuTarget: 80 }), u(!0);
835
835
  }, b = (n) => {
836
- v(!0), r.setFieldsValue({
836
+ v(!0), a.setFieldsValue({
837
837
  name: n.name,
838
838
  namespace: n.namespace,
839
839
  deploymentName: n.scaleTargetRef,
@@ -843,7 +843,7 @@ const vt = () => {
843
843
  }), u(!0);
844
844
  }, P = async () => {
845
845
  try {
846
- const n = await r.validateFields();
846
+ const n = await a.validateFields();
847
847
  C ? (await K("/update", {
848
848
  method: "POST",
849
849
  body: JSON.stringify({
@@ -852,24 +852,24 @@ const vt = () => {
852
852
  minReplicas: n.minReplicas,
853
853
  maxReplicas: n.maxReplicas
854
854
  })
855
- }), S.success("HPA 更新成功")) : (await K("/create", {
855
+ }), I.success("HPA 更新成功")) : (await K("/create", {
856
856
  method: "POST",
857
857
  body: JSON.stringify(n)
858
- }), S.success("HPA 创建成功")), u(!1), o();
858
+ }), I.success("HPA 创建成功")), u(!1), o();
859
859
  } catch {
860
- S.error("操作失败");
860
+ I.error("操作失败");
861
861
  }
862
- }, N = async (n) => {
862
+ }, A = async (n) => {
863
863
  try {
864
- await K(`/delete/${n.namespace}/${n.name}`, { method: "DELETE" }), S.success("HPA 已删除"), o();
864
+ await K(`/delete/${n.namespace}/${n.name}`, { method: "DELETE" }), I.success("HPA 已删除"), o();
865
865
  } catch {
866
- S.error("删除失败");
866
+ I.error("删除失败");
867
867
  }
868
868
  };
869
869
  return /* @__PURE__ */ s("div", { children: [
870
870
  /* @__PURE__ */ s(_, { style: { marginBottom: 16 }, children: [
871
- /* @__PURE__ */ e(I, { type: "primary", icon: /* @__PURE__ */ e(Se, {}), onClick: c, children: "新建 HPA" }),
872
- /* @__PURE__ */ e(I, { icon: /* @__PURE__ */ e(Y, {}), onClick: o, loading: l, children: "刷新" })
871
+ /* @__PURE__ */ e(S, { type: "primary", icon: /* @__PURE__ */ e(Ce, {}), onClick: c, children: "新建 HPA" }),
872
+ /* @__PURE__ */ e(S, { icon: /* @__PURE__ */ e(Y, {}), onClick: o, loading: l, children: "刷新" })
873
873
  ] }),
874
874
  h && /* @__PURE__ */ e(
875
875
  V,
@@ -882,7 +882,7 @@ const vt = () => {
882
882
  }
883
883
  ),
884
884
  /* @__PURE__ */ e(
885
- ce,
885
+ de,
886
886
  {
887
887
  rows: t,
888
888
  columns: [
@@ -922,8 +922,8 @@ const vt = () => {
922
922
  key: "action",
923
923
  width: 150,
924
924
  render: (n, d) => /* @__PURE__ */ s(_, { children: [
925
- /* @__PURE__ */ e(I, { type: "link", size: "small", onClick: () => b(d), children: "编辑" }),
926
- /* @__PURE__ */ e(B, { title: `删除 HPA ${d.name}?`, onConfirm: () => N(d), children: /* @__PURE__ */ e(I, { type: "link", size: "small", danger: !0, children: "删除" }) })
925
+ /* @__PURE__ */ e(S, { type: "link", size: "small", onClick: () => b(d), children: "编辑" }),
926
+ /* @__PURE__ */ e(W, { title: `删除 HPA ${d.name}?`, onConfirm: () => A(d), children: /* @__PURE__ */ e(S, { type: "link", size: "small", danger: !0, children: "删除" }) })
927
927
  ] })
928
928
  }
929
929
  ],
@@ -937,26 +937,26 @@ const vt = () => {
937
937
  }
938
938
  ),
939
939
  /* @__PURE__ */ e(
940
- ge,
940
+ ke,
941
941
  {
942
942
  title: C ? "编辑 HPA" : "新建 HPA",
943
943
  open: g,
944
944
  onOk: P,
945
945
  onCancel: () => u(!1),
946
- children: /* @__PURE__ */ s(H, { form: r, layout: "vertical", children: [
947
- /* @__PURE__ */ e(H.Item, { name: "namespace", label: "命名空间", rules: [{ required: !0 }], children: /* @__PURE__ */ e(j, { disabled: C }) }),
948
- /* @__PURE__ */ e(H.Item, { name: "name", label: "HPA 名称", rules: [{ required: !0 }], children: /* @__PURE__ */ e(j, { disabled: C }) }),
949
- /* @__PURE__ */ e(H.Item, { name: "deploymentName", label: "目标 Deployment", rules: [{ required: !0 }], children: /* @__PURE__ */ e(j, { disabled: C, placeholder: "namespace/deploymentName" }) }),
946
+ children: /* @__PURE__ */ s(G, { form: a, layout: "vertical", children: [
947
+ /* @__PURE__ */ e(G.Item, { name: "namespace", label: "命名空间", rules: [{ required: !0 }], children: /* @__PURE__ */ e(X, { disabled: C }) }),
948
+ /* @__PURE__ */ e(G.Item, { name: "name", label: "HPA 名称", rules: [{ required: !0 }], children: /* @__PURE__ */ e(X, { disabled: C }) }),
949
+ /* @__PURE__ */ e(G.Item, { name: "deploymentName", label: "目标 Deployment", rules: [{ required: !0 }], children: /* @__PURE__ */ e(X, { disabled: C, placeholder: "namespace/deploymentName" }) }),
950
950
  /* @__PURE__ */ s(_, { children: [
951
- /* @__PURE__ */ e(H.Item, { name: "minReplicas", label: "最小副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(X, { min: 0, max: 100 }) }),
952
- /* @__PURE__ */ e(H.Item, { name: "maxReplicas", label: "最大副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(X, { min: 1, max: 100 }) })
951
+ /* @__PURE__ */ e(G.Item, { name: "minReplicas", label: "最小副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(Z, { min: 0, max: 100 }) }),
952
+ /* @__PURE__ */ e(G.Item, { name: "maxReplicas", label: "最大副本", rules: [{ required: !0 }], children: /* @__PURE__ */ e(Z, { min: 1, max: 100 }) })
953
953
  ] }),
954
- /* @__PURE__ */ e(H.Item, { name: "cpuTarget", label: "CPU 目标 (%)", children: /* @__PURE__ */ e(X, { min: 1, max: 100 }) })
954
+ /* @__PURE__ */ e(G.Item, { name: "cpuTarget", label: "CPU 目标 (%)", children: /* @__PURE__ */ e(Z, { min: 1, max: 100 }) })
955
955
  ] })
956
956
  }
957
957
  )
958
958
  ] });
959
- }, xt = [
959
+ }, ne = re(() => import("@yuku123/z-ops-component/pages").then((t) => ({ default: t.Workspaces }))), St = re(() => import("@yuku123/z-ops-component/pages").then((t) => ({ default: t.ImageTags }))), Ct = [
960
960
  {
961
961
  title: "DevOps 运维",
962
962
  icon: /* @__PURE__ */ e(J, {}),
@@ -978,49 +978,49 @@ const vt = () => {
978
978
  {
979
979
  key: "devops-pods",
980
980
  label: "Pod 管理",
981
- icon: /* @__PURE__ */ e(oe, {}),
981
+ icon: /* @__PURE__ */ e(ce, {}),
982
982
  path: "/ops/devops/pods",
983
983
  desc: "Pod 列表、日志、终端"
984
984
  },
985
985
  {
986
986
  key: "devops-hpa",
987
987
  label: "弹性伸缩",
988
- icon: /* @__PURE__ */ e(D, {}),
988
+ icon: /* @__PURE__ */ e(L, {}),
989
989
  path: "/ops/devops/hpa",
990
990
  desc: "HPA 自动扩缩容策略"
991
991
  },
992
992
  {
993
993
  key: "devops-registry",
994
- label: "镜像仓库",
995
- icon: /* @__PURE__ */ e(D, {}),
994
+ label: "镜像 Tag 台账",
995
+ icon: /* @__PURE__ */ e(L, {}),
996
996
  path: "/ops/devops/registry",
997
- desc: "容器镜像统一管理"
997
+ desc: "镜像 Tag 台账(/api/ops/image-tag)"
998
998
  },
999
999
  {
1000
1000
  key: "devops-pipeline",
1001
1001
  label: "流水线",
1002
- icon: /* @__PURE__ */ e(Ie, {}),
1002
+ icon: /* @__PURE__ */ e(Pe, {}),
1003
1003
  path: "/ops/devops/pipeline",
1004
1004
  desc: "CI/CD 流水线编排"
1005
1005
  },
1006
1006
  {
1007
1007
  key: "devops-release",
1008
1008
  label: "发布管理",
1009
- icon: /* @__PURE__ */ e(Ce, {}),
1009
+ icon: /* @__PURE__ */ e(_e, {}),
1010
1010
  path: "/ops/devops/release",
1011
1011
  desc: "应用发布与回滚"
1012
1012
  },
1013
1013
  {
1014
1014
  key: "devops-monitor",
1015
1015
  label: "监控告警",
1016
- icon: /* @__PURE__ */ e(Pe, {}),
1016
+ icon: /* @__PURE__ */ e(Re, {}),
1017
1017
  path: "/ops/devops/monitor",
1018
1018
  desc: "Prometheus/Grafana 监控"
1019
1019
  },
1020
1020
  {
1021
1021
  key: "devops-logs",
1022
1022
  label: "日志管理",
1023
- icon: /* @__PURE__ */ e(_e, {}),
1023
+ icon: /* @__PURE__ */ e(Oe, {}),
1024
1024
  path: "/ops/devops/logs",
1025
1025
  desc: "Loki 集中日志查询"
1026
1026
  },
@@ -1040,48 +1040,48 @@ const vt = () => {
1040
1040
  {
1041
1041
  key: "ops-channel",
1042
1042
  label: "渠道管理",
1043
- icon: /* @__PURE__ */ e(Re, {}),
1043
+ icon: /* @__PURE__ */ e($e, {}),
1044
1044
  path: "/ops/channel",
1045
1045
  desc: "部署渠道配置与管理"
1046
1046
  },
1047
1047
  {
1048
1048
  key: "ops-env",
1049
1049
  label: "环境管理",
1050
- icon: /* @__PURE__ */ e(D, {}),
1050
+ icon: /* @__PURE__ */ e(L, {}),
1051
1051
  path: "/ops/delivery",
1052
1052
  desc: "运行环境配置与管理"
1053
1053
  },
1054
1054
  {
1055
1055
  key: "ops-deploy",
1056
1056
  label: "部署管理",
1057
- icon: /* @__PURE__ */ e($e, {}),
1057
+ icon: /* @__PURE__ */ e(Ae, {}),
1058
1058
  path: "/ops/deployment",
1059
1059
  desc: "应用部署与发布管理"
1060
1060
  },
1061
1061
  {
1062
1062
  key: "ops-repo",
1063
- label: "仓库管理",
1063
+ label: "工作区与仓库",
1064
1064
  icon: /* @__PURE__ */ e(ee, {}),
1065
1065
  path: "/ops/repo-mgmt",
1066
- desc: "代码仓库与镜像管理"
1066
+ desc: "运维工作区 + Git 仓库台账"
1067
1067
  }
1068
1068
  ]
1069
1069
  },
1070
1070
  {
1071
1071
  title: "资源管理",
1072
- icon: /* @__PURE__ */ e(D, {}),
1072
+ icon: /* @__PURE__ */ e(L, {}),
1073
1073
  items: [
1074
1074
  {
1075
1075
  key: "resource",
1076
1076
  label: "资源管理",
1077
- icon: /* @__PURE__ */ e(D, {}),
1077
+ icon: /* @__PURE__ */ e(L, {}),
1078
1078
  path: "/resource/domain",
1079
1079
  desc: "域名、ECS、RDS、OSS 管理"
1080
1080
  }
1081
1081
  ]
1082
1082
  }
1083
1083
  ];
1084
- function L({ label: t }) {
1084
+ function M({ label: t }) {
1085
1085
  return /* @__PURE__ */ s("div", { style: { padding: 40, textAlign: "center", color: "#999" }, children: [
1086
1086
  /* @__PURE__ */ s("h2", { children: [
1087
1087
  "🚧 ",
@@ -1090,7 +1090,7 @@ function L({ label: t }) {
1090
1090
  /* @__PURE__ */ e("p", { children: "功能开发中..." })
1091
1091
  ] });
1092
1092
  }
1093
- function St({ label: t, reason: a, message: l = "该页面未孵化,因为后端接口尚不可用" }) {
1093
+ function Pt({ label: t, reason: r, message: l = "该页面未孵化,因为后端接口尚不可用" }) {
1094
1094
  return /* @__PURE__ */ s("div", { style: { padding: 40, maxWidth: 720, margin: "0 auto" }, children: [
1095
1095
  /* @__PURE__ */ s("h2", { style: { textAlign: "center" }, children: [
1096
1096
  "🧪 ",
@@ -1102,14 +1102,14 @@ function St({ label: t, reason: a, message: l = "该页面未孵化,因为后
1102
1102
  type: "warning",
1103
1103
  showIcon: !0,
1104
1104
  message: l,
1105
- description: a
1105
+ description: r
1106
1106
  }
1107
1107
  )
1108
1108
  ] });
1109
1109
  }
1110
- function A({ label: t }) {
1110
+ function H({ label: t }) {
1111
1111
  return /* @__PURE__ */ e(
1112
- St,
1112
+ Pt,
1113
1113
  {
1114
1114
  label: t,
1115
1115
  message: "该页面未孵化,因为组件从来不在本仓",
@@ -1117,21 +1117,21 @@ function A({ label: t }) {
1117
1117
  }
1118
1118
  );
1119
1119
  }
1120
- function ne() {
1121
- const { pathname: t } = se();
1120
+ function se() {
1121
+ const { pathname: t } = ae();
1122
1122
  return /* @__PURE__ */ e(q, { to: t, replace: !0 });
1123
1123
  }
1124
- const It = [...Te, "/script"], Ct = [
1124
+ const _t = [...He, "/script"], Rt = [
1125
1125
  // ─── 运维中心 ───
1126
1126
  // ⚠ 这一族路由的组件从来没有从 z-ops 迁进来(见 UnmigratedPage 注释)。原先直接写
1127
1127
  // <ChannelPage/> 之类会在**模块求值期**抛 ReferenceError 并白屏整个前端,不是只坏这一页。
1128
1128
  { path: "/ops", element: /* @__PURE__ */ e(q, { to: "/ops/devops", replace: !0 }) },
1129
- { path: "/ops/channel", element: /* @__PURE__ */ e(A, { label: "渠道管理" }) },
1130
- { path: "/ops/delivery", element: /* @__PURE__ */ e(A, { label: "环境管理" }) },
1131
- { path: "/ops/deployment", element: /* @__PURE__ */ e(A, { label: "部署管理" }) },
1132
- { path: "/ops/deployment/:id", element: /* @__PURE__ */ e(A, { label: "部署管理" }) },
1133
- { path: "/ops/repo-mgmt", element: /* @__PURE__ */ e(A, { label: "仓库管理" }) },
1134
- { path: "/ops/git-platform", element: /* @__PURE__ */ e(A, { label: "仓库管理" }) },
1129
+ { path: "/ops/channel", element: /* @__PURE__ */ e(H, { label: "渠道管理" }) },
1130
+ { path: "/ops/delivery", element: /* @__PURE__ */ e(H, { label: "环境管理" }) },
1131
+ { path: "/ops/deployment", element: /* @__PURE__ */ e(H, { label: "部署管理" }) },
1132
+ { path: "/ops/deployment/:id", element: /* @__PURE__ */ e(H, { label: "部署管理" }) },
1133
+ { path: "/ops/repo-mgmt", element: /* @__PURE__ */ e(ne, {}) },
1134
+ { path: "/ops/git-platform", element: /* @__PURE__ */ e(ne, {}) },
1135
1135
  // ─── DevOps 子路由(K8s 管理面:2026-11-09 复活,数据源改由主壳 OpsK8sController 提供)───
1136
1136
  // ⚠ 历史:这 4 条曾挂真组件,但 API_BASE '/z-team/ops/k8s' 的 handler 只在 z-ops 仓的
1137
1137
  // z-ops-web 里,主壳 boot jar 的 BOOT-INF/lib 里 0 个 z-ops-* ⇒ 实测 GET /z-team/ops/k8s/nodes
@@ -1143,46 +1143,46 @@ const It = [...Te, "/script"], Ct = [
1143
1143
  // 而两侧 JWT secret 不同(主壳 zgw-jwt/jwt-secret vs z-ops sso-jwt/sso-jwt-secret)⇒ 必被挡;
1144
1144
  // 给 z-ops 加 @NoLogin 又等于把「删 Pod / 改 HPA」公开到 NodePort 30886。
1145
1145
  { path: "/ops/devops", element: /* @__PURE__ */ e(q, { to: "/ops/devops/dashboard", replace: !0 }) },
1146
- { path: "/ops/devops/dashboard", element: /* @__PURE__ */ e(yt, {}) },
1147
- { path: "/ops/devops/nodes", element: /* @__PURE__ */ e(ft, {}) },
1148
- { path: "/ops/devops/pods", element: /* @__PURE__ */ e(kt, {}) },
1149
- { path: "/ops/devops/hpa", element: /* @__PURE__ */ e(vt, {}) },
1150
- { path: "/ops/devops/registry", element: /* @__PURE__ */ e(L, { label: "镜像仓库" }) },
1151
- { path: "/ops/devops/pipeline", element: /* @__PURE__ */ e(L, { label: "流水线" }) },
1152
- { path: "/ops/devops/release", element: /* @__PURE__ */ e(L, { label: "发布管理" }) },
1153
- { path: "/ops/devops/monitor", element: /* @__PURE__ */ e(L, { label: "监控告警" }) },
1154
- { path: "/ops/devops/logs", element: /* @__PURE__ */ e(L, { label: "日志管理" }) },
1155
- { path: "/ops/devops/dba", element: /* @__PURE__ */ e(L, { label: "DBA 工单" }) },
1146
+ { path: "/ops/devops/dashboard", element: /* @__PURE__ */ e(gt, {}) },
1147
+ { path: "/ops/devops/nodes", element: /* @__PURE__ */ e(bt, {}) },
1148
+ { path: "/ops/devops/pods", element: /* @__PURE__ */ e(xt, {}) },
1149
+ { path: "/ops/devops/hpa", element: /* @__PURE__ */ e(It, {}) },
1150
+ { path: "/ops/devops/registry", element: /* @__PURE__ */ e(St, {}) },
1151
+ { path: "/ops/devops/pipeline", element: /* @__PURE__ */ e(M, { label: "流水线" }) },
1152
+ { path: "/ops/devops/release", element: /* @__PURE__ */ e(M, { label: "发布管理" }) },
1153
+ { path: "/ops/devops/monitor", element: /* @__PURE__ */ e(M, { label: "监控告警" }) },
1154
+ { path: "/ops/devops/logs", element: /* @__PURE__ */ e(M, { label: "日志管理" }) },
1155
+ { path: "/ops/devops/dba", element: /* @__PURE__ */ e(M, { label: "DBA 工单" }) },
1156
1156
  // ─── 资源管理 ───
1157
1157
  { path: "/resource", element: /* @__PURE__ */ e(q, { to: "/resource/domain", replace: !0 }) },
1158
- { path: "/resource/domain", element: /* @__PURE__ */ e(A, { label: "域名管理" }) },
1159
- { path: "/resource/ecs", element: /* @__PURE__ */ e(A, { label: "ECS 管理" }) },
1160
- { path: "/resource/rds", element: /* @__PURE__ */ e(A, { label: "RDS 管理" }) },
1161
- { path: "/resource/oss", element: /* @__PURE__ */ e(A, { label: "OSS 管理" }) },
1158
+ { path: "/resource/domain", element: /* @__PURE__ */ e(H, { label: "域名管理" }) },
1159
+ { path: "/resource/ecs", element: /* @__PURE__ */ e(H, { label: "ECS 管理" }) },
1160
+ { path: "/resource/rds", element: /* @__PURE__ */ e(H, { label: "RDS 管理" }) },
1161
+ { path: "/resource/oss", element: /* @__PURE__ */ e(H, { label: "OSS 管理" }) },
1162
1162
  // ─── 已迁到中间件面的前缀 → 旧深链交还中间件面 ───
1163
1163
  // ⚠ 必须排在最后:matchWorkbenchPath 先全表精确、再全表通配,
1164
1164
  // 但本面自己的 /ops/* 与 /resource/* 都在前面,不会被这几条吃掉。
1165
- ...It.flatMap((t) => [
1166
- { path: t, element: /* @__PURE__ */ e(ne, {}) },
1167
- { path: `${t}/*`, element: /* @__PURE__ */ e(ne, {}) }
1165
+ ..._t.flatMap((t) => [
1166
+ { path: t, element: /* @__PURE__ */ e(se, {}) },
1167
+ { path: `${t}/*`, element: /* @__PURE__ */ e(se, {}) }
1168
1168
  ])
1169
1169
  ];
1170
- function Ht({
1170
+ function zt({
1171
1171
  activePathOverride: t,
1172
- menuOnly: a = !1
1172
+ menuOnly: r = !1
1173
1173
  } = {}) {
1174
1174
  return /* @__PURE__ */ e(
1175
- rt,
1175
+ ot,
1176
1176
  {
1177
- groups: xt,
1178
- routes: Ct,
1177
+ groups: Ct,
1178
+ routes: Rt,
1179
1179
  mode: "ops",
1180
1180
  emptyText: "请从左侧菜单选择运维模块",
1181
1181
  activePathOverride: t,
1182
- menuOnly: a
1182
+ menuOnly: r
1183
1183
  }
1184
1184
  );
1185
1185
  }
1186
1186
  export {
1187
- Ht as default
1187
+ zt as default
1188
1188
  };