@yuku123/z-frontend-common 0.1.3 → 0.1.4

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.
@@ -1,12 +1,12 @@
1
- var Ps = Object.defineProperty;
2
- var zs = (t, a, n) => a in t ? Ps(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n;
3
- var qt = (t, a, n) => zs(t, typeof a != "symbol" ? a + "" : a, n);
1
+ var zs = Object.defineProperty;
2
+ var Ds = (t, a, n) => a in t ? zs(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n;
3
+ var qt = (t, a, n) => Ds(t, typeof a != "symbol" ? a + "" : a, n);
4
4
  import Lt, { useState as o, useRef as Ke, useEffect as ue, useCallback as bt } from "react";
5
- import { Layout as Ye, Spin as Je, Menu as xs, Tag as R, Card as Z, Form as l, Input as T, Button as y, message as d, Alert as pe, Space as B, Typography as Ce, Row as le, Col as q, Statistic as me, Dropdown as Ds, Avatar as ps, Cascader as _s, Divider as Gt, Tabs as Ze, Checkbox as hs, Empty as de, List as qe, App as Ms, Tooltip as je, Badge as $t, Popconfirm as Pe, Tree as Fs, Modal as ae, Drawer as Ue, Select as ce, Table as xe, Switch as ut, InputNumber as ke, DatePicker as Ht, Upload as Ls, Descriptions as W } from "antd";
6
- import { MenuUnfoldOutlined as ms, MenuFoldOutlined as js, UserOutlined as Ve, LockOutlined as at, BugOutlined as $s, ReloadOutlined as be, SettingOutlined as Dt, FileTextOutlined as Me, AuditOutlined as Bs, DownOutlined as Us, LogoutOutlined as qs, TeamOutlined as it, SafetyOutlined as Gs, AppstoreOutlined as Hs, ClusterOutlined as Ws, SafetyCertificateOutlined as Js, LinkOutlined as Ks, CodeOutlined as Oe, RobotOutlined as Ys, MobileOutlined as Vs, MailOutlined as Xs, SendOutlined as ys, PoweroffOutlined as Zs, CheckCircleOutlined as Bt, MessageOutlined as Qs, PlusOutlined as Re, FolderOpenOutlined as Wt, FolderOutlined as Jt, DeleteOutlined as Te, FileOutlined as en, PlayCircleOutlined as Xe, PauseOutlined as tn, ThunderboltOutlined as ot, HolderOutlined as Kt, CopyOutlined as ct, DatabaseOutlined as kt, FormatPainterOutlined as Yt, EditOutlined as Qe, ExportOutlined as gs, HistoryOutlined as sn, DownloadOutlined as Vt, CloudUploadOutlined as _t, FileAddOutlined as nn, ImportOutlined as dt, SearchOutlined as fs, InfoCircleOutlined as rn, FunctionOutlined as jt, ExperimentOutlined as ln, GlobalOutlined as bs, NodeIndexOutlined as an, UndoOutlined as on, FileSearchOutlined as cn, VideoCameraOutlined as Ot, StopOutlined as dn, EyeOutlined as un, DashboardOutlined as xn } from "@ant-design/icons";
5
+ import { Layout as Ye, Spin as Je, Menu as xs, Tag as R, Card as Z, Form as l, Input as T, Button as y, message as d, Alert as pe, Space as B, Typography as Ce, Row as le, Col as q, Statistic as me, Dropdown as _s, Avatar as ps, Cascader as Ms, Divider as Gt, Tabs as Ze, Checkbox as hs, Empty as de, List as qe, App as Fs, Tooltip as je, Badge as $t, Popconfirm as Pe, Tree as Ls, Modal as ae, Drawer as Ue, Select as ce, Table as xe, Switch as ut, InputNumber as ke, DatePicker as Ht, Upload as $s, Descriptions as W } from "antd";
6
+ import { MenuUnfoldOutlined as ms, MenuFoldOutlined as js, UserOutlined as Ve, LockOutlined as at, BugOutlined as Bs, ReloadOutlined as be, SettingOutlined as Dt, FileTextOutlined as Me, AuditOutlined as Us, DownOutlined as qs, LogoutOutlined as Gs, TeamOutlined as it, SafetyOutlined as Hs, AppstoreOutlined as Ws, ClusterOutlined as Js, SafetyCertificateOutlined as Ks, LinkOutlined as Ys, CodeOutlined as Oe, RobotOutlined as Vs, MobileOutlined as Xs, MailOutlined as Zs, SendOutlined as ys, PoweroffOutlined as Qs, CheckCircleOutlined as Bt, MessageOutlined as en, PlusOutlined as Re, FolderOpenOutlined as Wt, FolderOutlined as Jt, DeleteOutlined as Te, FileOutlined as tn, PlayCircleOutlined as Xe, PauseOutlined as sn, ThunderboltOutlined as ot, HolderOutlined as Kt, CopyOutlined as ct, DatabaseOutlined as kt, FormatPainterOutlined as Yt, EditOutlined as Qe, ExportOutlined as gs, HistoryOutlined as nn, DownloadOutlined as Vt, CloudUploadOutlined as _t, FileAddOutlined as rn, ImportOutlined as dt, SearchOutlined as fs, InfoCircleOutlined as ln, FunctionOutlined as jt, ExperimentOutlined as an, GlobalOutlined as bs, NodeIndexOutlined as on, UndoOutlined as cn, FileSearchOutlined as dn, VideoCameraOutlined as Ot, StopOutlined as un, EyeOutlined as xn, DashboardOutlined as pn } from "@ant-design/icons";
7
7
  import { useNavigate as Tt, useLocation as Cs, Outlet as ws, Link as Rt, useSearchParams as ks, useParams as Ts } from "react-router-dom";
8
8
  import Is from "axios";
9
- import { PageContainer as Ss, ProCard as et, ProTable as pn } from "@ant-design/pro-components";
9
+ import { PageContainer as Ss, ProCard as et, ProTable as hn } from "@ant-design/pro-components";
10
10
  var yt = { exports: {} }, tt = {};
11
11
  /**
12
12
  * @license React
@@ -18,7 +18,7 @@ var yt = { exports: {} }, tt = {};
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
20
  var Xt;
21
- function hn() {
21
+ function mn() {
22
22
  if (Xt) return tt;
23
23
  Xt = 1;
24
24
  var t = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
@@ -50,7 +50,7 @@ var st = {};
50
50
  * LICENSE file in the root directory of this source tree.
51
51
  */
52
52
  var Zt;
53
- function mn() {
53
+ function jn() {
54
54
  return Zt || (Zt = 1, process.env.NODE_ENV !== "production" && (function() {
55
55
  function t(i) {
56
56
  if (i == null) return null;
@@ -281,11 +281,11 @@ React keys must be passed directly to JSX without using spread:
281
281
  })()), st;
282
282
  }
283
283
  var Qt;
284
- function jn() {
285
- return Qt || (Qt = 1, process.env.NODE_ENV === "production" ? yt.exports = hn() : yt.exports = mn()), yt.exports;
284
+ function yn() {
285
+ return Qt || (Qt = 1, process.env.NODE_ENV === "production" ? yt.exports = mn() : yt.exports = jn()), yt.exports;
286
286
  }
287
- var e = jn();
288
- const { Header: yn, Sider: gn, Content: fn } = Ye;
287
+ var e = yn();
288
+ const { Header: gn, Sider: fn, Content: bn } = Ye;
289
289
  function Br({
290
290
  menuItems: t = [],
291
291
  appTitle: a = "One Company",
@@ -297,7 +297,7 @@ function Br({
297
297
  j(A);
298
298
  };
299
299
  return /* @__PURE__ */ e.jsxs(Ye, { style: { minHeight: "100vh" }, children: [
300
- /* @__PURE__ */ e.jsxs(gn, { trigger: null, collapsible: !0, collapsed: w, children: [
300
+ /* @__PURE__ */ e.jsxs(fn, { trigger: null, collapsible: !0, collapsed: w, children: [
301
301
  /* @__PURE__ */ e.jsx("div", { style: {
302
302
  height: 64,
303
303
  display: "flex",
@@ -319,7 +319,7 @@ function Br({
319
319
  )
320
320
  ] }),
321
321
  /* @__PURE__ */ e.jsxs(Ye, { children: [
322
- /* @__PURE__ */ e.jsxs(yn, { style: {
322
+ /* @__PURE__ */ e.jsxs(gn, { style: {
323
323
  padding: "0 16px",
324
324
  background: "#fff",
325
325
  display: "flex",
@@ -329,11 +329,11 @@ function Br({
329
329
  /* @__PURE__ */ e.jsx("span", { onClick: () => c(!w), style: { fontSize: 18, cursor: "pointer" }, children: w ? /* @__PURE__ */ e.jsx(ms, {}) : /* @__PURE__ */ e.jsx(js, {}) }),
330
330
  g
331
331
  ] }),
332
- /* @__PURE__ */ e.jsx(fn, { style: { margin: 16, padding: 24, background: "#fff", minHeight: 280 }, children: /* @__PURE__ */ e.jsx(ws, {}) })
332
+ /* @__PURE__ */ e.jsx(bn, { style: { margin: 16, padding: 24, background: "#fff", minHeight: 280 }, children: /* @__PURE__ */ e.jsx(ws, {}) })
333
333
  ] })
334
334
  ] });
335
335
  }
336
- const bn = {
336
+ const Cn = {
337
337
  1: { color: "green", text: "正常" },
338
338
  0: { color: "red", text: "禁用" },
339
339
  pending: { color: "orange", text: "待处理" },
@@ -341,17 +341,17 @@ const bn = {
341
341
  rejected: { color: "red", text: "已拒绝" }
342
342
  };
343
343
  function Ur({ status: t, map: a }) {
344
- const n = (a == null ? void 0 : a[t]) || bn[t] || { color: "default", text: String(t) };
344
+ const n = (a == null ? void 0 : a[t]) || Cn[t] || { color: "default", text: String(t) };
345
345
  return /* @__PURE__ */ e.jsx(R, { color: n.color, children: n.text });
346
346
  }
347
- function Cn(t) {
347
+ function wn(t) {
348
348
  if (t && typeof t == "object" && "code" in t && "data" in t) {
349
349
  const a = t;
350
350
  return a.code !== 200 ? Promise.reject(new Error(a.message || "请求失败")) : a.data;
351
351
  }
352
352
  return t;
353
353
  }
354
- function wn(t, a = {}) {
354
+ function kn(t, a = {}) {
355
355
  const {
356
356
  tokenKey: n = "token",
357
357
  userInfoKey: g = "userInfo",
@@ -361,7 +361,7 @@ function wn(t, a = {}) {
361
361
  const c = localStorage.getItem(n);
362
362
  return c && (w.headers.Authorization = `Bearer ${c}`), w;
363
363
  }), t.interceptors.response.use(
364
- (w) => Cn(w.data),
364
+ (w) => wn(w.data),
365
365
  (w) => {
366
366
  var c, j, N;
367
367
  return ((c = w.response) == null ? void 0 : c.status) === 401 ? (localStorage.removeItem(n), localStorage.removeItem(g), window.location.href = E) : ((j = w.response) == null ? void 0 : j.status) === 403 ? console.error("没有权限访问该资源") : ((N = w.response) == null ? void 0 : N.status) === 500 && console.error("服务器内部错误"), Promise.reject(w);
@@ -373,13 +373,13 @@ function vs(t = {}) {
373
373
  baseURL: t.baseURL ?? "/api",
374
374
  timeout: t.timeout ?? 1e4
375
375
  });
376
- return wn(a, {
376
+ return kn(a, {
377
377
  tokenKey: t.tokenKey,
378
378
  userInfoKey: t.userInfoKey,
379
379
  unauthorizedRedirect: t.unauthorizedRedirect
380
380
  }), a;
381
381
  }
382
- const ne = vs(), kn = vs();
382
+ const ne = vs(), Es = vs();
383
383
  function qr({
384
384
  title: t = "统一管理平台",
385
385
  loginApi: a = "/auth/login",
@@ -444,7 +444,7 @@ class Gr extends Lt.Component {
444
444
  {
445
445
  type: "error",
446
446
  showIcon: !0,
447
- icon: /* @__PURE__ */ e.jsx($s, {}),
447
+ icon: /* @__PURE__ */ e.jsx(Bs, {}),
448
448
  message: n,
449
449
  description: /* @__PURE__ */ e.jsxs("div", { children: [
450
450
  /* @__PURE__ */ e.jsx("div", { style: { marginBottom: 8 }, children: g || "当前组件发生了异常,已被错误边界捕获。其他功能仍可正常使用。" }),
@@ -501,7 +501,7 @@ const { Title: Tn, Text: In, Paragraph: es } = Ce, Hr = () => /* @__PURE__ */ e.
501
501
  {
502
502
  title: "工作流",
503
503
  value: 0,
504
- prefix: /* @__PURE__ */ e.jsx(Bs, {})
504
+ prefix: /* @__PURE__ */ e.jsx(Us, {})
505
505
  }
506
506
  ) }) }),
507
507
  /* @__PURE__ */ e.jsx(q, { span: 6, children: /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx(
@@ -526,7 +526,7 @@ const { Title: Tn, Text: In, Paragraph: es } = Ce, Hr = () => /* @__PURE__ */ e.
526
526
  /* @__PURE__ */ e.jsx("li", { children: "元数据 - API与应用管理" })
527
527
  ] })
528
528
  ] })
529
- ] }), Sn = "_layout_1puwg_1", vn = "_header_1puwg_5", En = "_logo_1puwg_15", On = "_logoText_1puwg_20", Rn = "_headerRight_1puwg_26", Nn = "_userInfo_1puwg_31", An = "_userName_1puwg_38", Pn = "_mainLayout_1puwg_43", zn = "_sider_1puwg_48", Dn = "_menu_1puwg_53", _n = "_collapsedBtn_1puwg_57", Mn = "_content_1puwg_74", we = {
529
+ ] }), Wr = Es, Sn = "_layout_1puwg_1", vn = "_header_1puwg_5", En = "_logo_1puwg_15", On = "_logoText_1puwg_20", Rn = "_headerRight_1puwg_26", Nn = "_userInfo_1puwg_31", An = "_userName_1puwg_38", Pn = "_mainLayout_1puwg_43", zn = "_sider_1puwg_48", Dn = "_menu_1puwg_53", _n = "_collapsedBtn_1puwg_57", Mn = "_content_1puwg_74", we = {
530
530
  layout: Sn,
531
531
  header: vn,
532
532
  logo: En,
@@ -541,11 +541,11 @@ const { Title: Tn, Text: In, Paragraph: es } = Ce, Hr = () => /* @__PURE__ */ e.
541
541
  content: Mn
542
542
  };
543
543
  let Fn = "/api";
544
- function Es() {
544
+ function Os() {
545
545
  return Is.create({ baseURL: Fn, timeout: 15e3 });
546
546
  }
547
- const _e = Es();
548
- Es();
547
+ const _e = Os();
548
+ Os();
549
549
  _e.interceptors.request.use((t) => {
550
550
  const a = localStorage.getItem("token");
551
551
  return a && (t.headers.Authorization = `Bearer ${a}`), t;
@@ -568,7 +568,7 @@ function Bn(t) {
568
568
  delete: (a) => _e.delete(`/${t}/${a}`).then((n) => n.data)
569
569
  };
570
570
  }
571
- const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn } = Ce, Wr = ({ compact: t = !1 } = {}) => {
571
+ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn } = Ce, Jr = ({ compact: t = !1 } = {}) => {
572
572
  const a = Cs(), n = Tt(), [g, E] = o(!1), [w, c] = o("管理员"), [j, N] = o(null), [C, A] = o([]), [p, m] = o([]), F = Ke(n);
573
573
  F.current = n, ue(() => {
574
574
  if (!localStorage.getItem("token")) {
@@ -632,12 +632,12 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
632
632
  },
633
633
  {
634
634
  key: "4a/role",
635
- icon: /* @__PURE__ */ e.jsx(Gs, {}),
635
+ icon: /* @__PURE__ */ e.jsx(Hs, {}),
636
636
  label: "角色管理"
637
637
  },
638
638
  {
639
639
  key: "4a/application",
640
- icon: /* @__PURE__ */ e.jsx(Hs, {}),
640
+ icon: /* @__PURE__ */ e.jsx(Ws, {}),
641
641
  label: "应用管理"
642
642
  },
643
643
  {
@@ -647,17 +647,17 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
647
647
  },
648
648
  {
649
649
  key: "4a/org",
650
- icon: /* @__PURE__ */ e.jsx(Ws, {}),
650
+ icon: /* @__PURE__ */ e.jsx(Js, {}),
651
651
  label: "组织管理"
652
652
  },
653
653
  {
654
654
  key: "4a/permission",
655
- icon: /* @__PURE__ */ e.jsx(Js, {}),
655
+ icon: /* @__PURE__ */ e.jsx(Ks, {}),
656
656
  label: "权限管理"
657
657
  },
658
658
  {
659
659
  key: "4a/surl",
660
- icon: /* @__PURE__ */ e.jsx(Ks, {}),
660
+ icon: /* @__PURE__ */ e.jsx(Ys, {}),
661
661
  label: "短链管理"
662
662
  },
663
663
  {
@@ -667,7 +667,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
667
667
  },
668
668
  {
669
669
  key: "agent-team",
670
- icon: /* @__PURE__ */ e.jsx(Ys, {}),
670
+ icon: /* @__PURE__ */ e.jsx(Vs, {}),
671
671
  label: "Agent 群组 IM"
672
672
  },
673
673
  {
@@ -687,7 +687,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
687
687
  /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(Un, { className: we.header, children: [
688
688
  /* @__PURE__ */ e.jsx("div", { className: we.logo, children: /* @__PURE__ */ e.jsx("span", { className: we.logoText, children: "Z-CTC 统一用户中心" }) }),
689
689
  /* @__PURE__ */ e.jsx("div", { className: we.headerRight, children: /* @__PURE__ */ e.jsx(B, { size: 24, children: /* @__PURE__ */ e.jsx(
690
- Ds,
690
+ _s,
691
691
  {
692
692
  overlay: /* @__PURE__ */ e.jsxs("div", { style: {
693
693
  background: "#fff",
@@ -704,7 +704,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
704
704
  }, children: [
705
705
  /* @__PURE__ */ e.jsx("span", { style: { fontSize: "14px", color: "#666" }, children: "租户域" }),
706
706
  /* @__PURE__ */ e.jsx(
707
- _s,
707
+ Ms,
708
708
  {
709
709
  value: p,
710
710
  onChange: (D) => m(D),
@@ -776,7 +776,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
776
776
  }, onClick: () => {
777
777
  localStorage.removeItem("token"), localStorage.removeItem("userInfo"), n("/ctc/login");
778
778
  }, children: [
779
- /* @__PURE__ */ e.jsx(qs, {}),
779
+ /* @__PURE__ */ e.jsx(Gs, {}),
780
780
  " 退出登录"
781
781
  ] })
782
782
  ] })
@@ -786,7 +786,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
786
786
  children: /* @__PURE__ */ e.jsxs("div", { className: we.userInfo, children: [
787
787
  /* @__PURE__ */ e.jsx(ps, { icon: /* @__PURE__ */ e.jsx(Ve, {}), size: "small" }),
788
788
  /* @__PURE__ */ e.jsx(Hn, { className: we.userName, children: w }),
789
- /* @__PURE__ */ e.jsx(Us, {})
789
+ /* @__PURE__ */ e.jsx(qs, {})
790
790
  ] })
791
791
  }
792
792
  ) }) })
@@ -832,7 +832,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
832
832
  content: Jn,
833
833
  card: Kn,
834
834
  header: Yn
835
- }, { Title: Vn, Text: Jr } = Ce, Xn = (t) => kn.post("/ctc/auth/login", t), Zn = () => Promise.resolve({ code: 0, message: "功能暂未开放" }), Kr = () => {
835
+ }, { Title: Vn, Text: Kr } = Ce, Xn = (t) => Es.post("/ctc/auth/login", t), Zn = () => Promise.resolve({ code: 0, message: "功能暂未开放" }), Yr = () => {
836
836
  const t = Tt(), [a, n] = o("login"), [g, E] = o("account"), [w, c] = o(!1), [j, N] = o(0), [C] = l.useForm(), A = async () => {
837
837
  d.info("验证码功能暂未开放");
838
838
  }, p = async (f) => {
@@ -896,7 +896,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
896
896
  T,
897
897
  {
898
898
  size: "large",
899
- prefix: g === "phone" ? /* @__PURE__ */ e.jsx(Vs, {}) : /* @__PURE__ */ e.jsx(Xs, {}),
899
+ prefix: g === "phone" ? /* @__PURE__ */ e.jsx(Xs, {}) : /* @__PURE__ */ e.jsx(Zs, {}),
900
900
  placeholder: g === "phone" ? "手机号" : "邮箱",
901
901
  disabled: j > 0
902
902
  }
@@ -1031,7 +1031,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
1031
1031
  maxWidth: 400,
1032
1032
  margin: "0 auto",
1033
1033
  width: "100%"
1034
- }, Yr = () => {
1034
+ }, Vr = () => {
1035
1035
  const [t, a] = o({}), [n] = o("account"), [g, E] = o(!1), w = Tt(), c = async (N) => {
1036
1036
  E(!0);
1037
1037
  try {
@@ -1132,7 +1132,7 @@ const K = Bn("mock"), { Header: Un, Sider: qn, Content: Gn } = Ye, { Text: Hn }
1132
1132
  WORKER: "blue",
1133
1133
  OBSERVER: "default"
1134
1134
  };
1135
- function Vr() {
1135
+ function Xr() {
1136
1136
  const [t, a] = o([]), [n, g] = o(null), [E, w] = o([]), [c, j] = o(!1), [N, C] = o(!1), [A, p] = o("disconnected"), [m, F] = o([]), [f, G] = o(""), [O, D] = o([]), I = Ke(null), S = async () => {
1137
1137
  j(!0);
1138
1138
  try {
@@ -1265,7 +1265,7 @@ function Vr() {
1265
1265
  ] }) : "请选择团队",
1266
1266
  headerBordered: !0,
1267
1267
  extra: /* @__PURE__ */ e.jsxs(B, { children: [
1268
- A === "connected" ? /* @__PURE__ */ e.jsx(y, { icon: /* @__PURE__ */ e.jsx(Zs, {}), onClick: L, children: "断开" }) : /* @__PURE__ */ e.jsx(y, { type: "primary", icon: /* @__PURE__ */ e.jsx(Bt, {}), onClick: b, children: "连接" }),
1268
+ A === "connected" ? /* @__PURE__ */ e.jsx(y, { icon: /* @__PURE__ */ e.jsx(Qs, {}), onClick: L, children: "断开" }) : /* @__PURE__ */ e.jsx(y, { type: "primary", icon: /* @__PURE__ */ e.jsx(Bt, {}), onClick: b, children: "连接" }),
1269
1269
  /* @__PURE__ */ e.jsx(R, { color: Q[A], children: V[A] })
1270
1270
  ] }),
1271
1271
  children: [
@@ -1367,9 +1367,9 @@ const nt = {
1367
1367
  DONE: "blue",
1368
1368
  ARCHIVED: "default"
1369
1369
  };
1370
- function Xr() {
1370
+ function Zr() {
1371
1371
  var ie, Ut;
1372
- const { message: t } = Ms.useApp(), a = localStorage.getItem("userInfo") || "{}";
1372
+ const { message: t } = Fs.useApp(), a = localStorage.getItem("userInfo") || "{}";
1373
1373
  let n = {};
1374
1374
  try {
1375
1375
  n = JSON.parse(a);
@@ -1444,10 +1444,10 @@ function Xr() {
1444
1444
  const oe = new WebSocket(se);
1445
1445
  oe.onopen = () => {
1446
1446
  $("connected");
1447
- }, oe.onmessage = (Ns) => {
1447
+ }, oe.onmessage = (As) => {
1448
1448
  try {
1449
- const As = JSON.parse(Ns.data);
1450
- Et(As);
1449
+ const Ps = JSON.parse(As.data);
1450
+ Et(Ps);
1451
1451
  } catch {
1452
1452
  }
1453
1453
  }, oe.onerror = () => {
@@ -1583,7 +1583,7 @@ function Xr() {
1583
1583
  return {
1584
1584
  key: h.absolutePath,
1585
1585
  title: /* @__PURE__ */ e.jsxs("span", { children: [
1586
- h.isDirectory ? /* @__PURE__ */ e.jsx(Jt, { style: { marginRight: 4, color: "#faad14" } }) : /* @__PURE__ */ e.jsx(en, { style: { marginRight: 4, color: "#8c8c8c" } }),
1586
+ h.isDirectory ? /* @__PURE__ */ e.jsx(Jt, { style: { marginRight: 4, color: "#faad14" } }) : /* @__PURE__ */ e.jsx(tn, { style: { marginRight: 4, color: "#8c8c8c" } }),
1587
1587
  h.name,
1588
1588
  h.isDirectory && h.totalDescendants > 0 ? /* @__PURE__ */ e.jsxs("span", { style: { color: "#bfbfbf", marginLeft: 6, fontSize: 11 }, children: [
1589
1589
  "(",
@@ -1619,7 +1619,7 @@ function Xr() {
1619
1619
  justifyContent: "space-between"
1620
1620
  }, children: [
1621
1621
  /* @__PURE__ */ e.jsxs(B, { size: 4, children: [
1622
- /* @__PURE__ */ e.jsx(Qs, { style: { color: "#1677ff" } }),
1622
+ /* @__PURE__ */ e.jsx(en, { style: { color: "#1677ff" } }),
1623
1623
  /* @__PURE__ */ e.jsx("strong", { children: "工作项" })
1624
1624
  ] }),
1625
1625
  /* @__PURE__ */ e.jsxs(B, { size: 4, children: [
@@ -1792,7 +1792,7 @@ function Xr() {
1792
1792
  style: { marginTop: 40 }
1793
1793
  }
1794
1794
  ) : /* @__PURE__ */ e.jsx(
1795
- Fs,
1795
+ Ls,
1796
1796
  {
1797
1797
  treeData: G,
1798
1798
  defaultExpandAll: !1,
@@ -2083,7 +2083,7 @@ const Ge = {
2083
2083
  GIT: { text: "GIT 模式", color: "blue" },
2084
2084
  SHARED: { text: "SHARED 模式", color: "purple" }
2085
2085
  };
2086
- function Zr() {
2086
+ function Qr() {
2087
2087
  const t = Ke(void 0), [a, n] = o(!1), [g, E] = o(!1), [w, c] = o([]), [j, N] = o(null), [C, A] = o(!1), [p] = l.useForm(), m = async () => {
2088
2088
  try {
2089
2089
  const S = await Ge.listContainers();
@@ -2196,7 +2196,7 @@ function Zr() {
2196
2196
  {
2197
2197
  type: "text",
2198
2198
  size: "small",
2199
- icon: /* @__PURE__ */ e.jsx(tn, {}),
2199
+ icon: /* @__PURE__ */ e.jsx(sn, {}),
2200
2200
  onClick: () => G(z.containerId),
2201
2201
  children: "停止"
2202
2202
  }
@@ -2235,7 +2235,7 @@ function Zr() {
2235
2235
  },
2236
2236
  children: [
2237
2237
  /* @__PURE__ */ e.jsx(
2238
- pn,
2238
+ hn,
2239
2239
  {
2240
2240
  actionRef: t,
2241
2241
  rowKey: "containerId",
@@ -2338,7 +2338,7 @@ function lr() {
2338
2338
  const [t, a] = o("GIT");
2339
2339
  return { mode: t, setMode: a };
2340
2340
  }
2341
- const { Option: Os } = ce, { TextArea: Rs } = T, It = [
2341
+ const { Option: Rs } = ce, { TextArea: Ns } = T, It = [
2342
2342
  { type: "STRING", label: "字符串", icon: /* @__PURE__ */ e.jsx(Me, {}), color: "#1677ff", desc: "短文本 (默认 VARCHAR 255)" },
2343
2343
  { type: "TEXT", label: "长文本", icon: /* @__PURE__ */ e.jsx(Me, {}), color: "#13c2c2", desc: "TEXT 类型, 无长度限制" },
2344
2344
  { type: "INT", label: "整数", icon: "#", color: "#722ed1", desc: "INT 整数" },
@@ -2894,7 +2894,7 @@ function or({ form: t, editing: a }) {
2894
2894
  message: "字母数字下划线"
2895
2895
  }], children: /* @__PURE__ */ e.jsx(T, { placeholder: "默认 = entityCode" }) })
2896
2896
  ] }),
2897
- /* @__PURE__ */ e.jsx(l.Item, { name: "description", label: "描述", children: /* @__PURE__ */ e.jsx(Rs, { rows: 2 }) }),
2897
+ /* @__PURE__ */ e.jsx(l.Item, { name: "description", label: "描述", children: /* @__PURE__ */ e.jsx(Ns, { rows: 2 }) }),
2898
2898
  /* @__PURE__ */ e.jsx(l.List, { name: "fields", children: (n, { add: g, remove: E }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2899
2899
  /* @__PURE__ */ e.jsx("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ e.jsx(
2900
2900
  y,
@@ -2929,7 +2929,7 @@ function or({ form: t, editing: a }) {
2929
2929
  dataIndex: "fieldType",
2930
2930
  width: 120,
2931
2931
  render: (w, c, j) => /* @__PURE__ */ e.jsx(l.Item, { name: [j, "fieldType"], noStyle: !0, children: /* @__PURE__ */ e.jsx(ce, { size: "small", children: It.map(
2932
- (N) => /* @__PURE__ */ e.jsx(Os, { value: N.type, children: N.type }, N.type)
2932
+ (N) => /* @__PURE__ */ e.jsx(Rs, { value: N.type, children: N.type }, N.type)
2933
2933
  ) }) })
2934
2934
  },
2935
2935
  {
@@ -2997,7 +2997,7 @@ function cr({ field: t, onChange: a }) {
2997
2997
  value: t.fieldType || "STRING",
2998
2998
  onChange: (n) => a({ fieldType: n }),
2999
2999
  style: { width: "100%" },
3000
- children: It.map((n) => /* @__PURE__ */ e.jsxs(Os, { value: n.type, children: [
3000
+ children: It.map((n) => /* @__PURE__ */ e.jsxs(Rs, { value: n.type, children: [
3001
3001
  n.label,
3002
3002
  " (",
3003
3003
  n.type,
@@ -3065,7 +3065,7 @@ function cr({ field: t, onChange: a }) {
3065
3065
  }
3066
3066
  ) }),
3067
3067
  /* @__PURE__ */ e.jsx(l.Item, { label: "备注", children: /* @__PURE__ */ e.jsx(
3068
- Rs,
3068
+ Ns,
3069
3069
  {
3070
3070
  rows: 2,
3071
3071
  value: t.description || "",
@@ -3316,7 +3316,7 @@ function ur() {
3316
3316
  }
3317
3317
  );
3318
3318
  }
3319
- const Qr = () => {
3319
+ const el = () => {
3320
3320
  const { entity: t } = Ts();
3321
3321
  return t ? t === "_model" ? /* @__PURE__ */ e.jsx(ar, {}) : /* @__PURE__ */ e.jsx(ur, {}) : /* @__PURE__ */ e.jsxs("div", { style: { padding: 24 }, children: [
3322
3322
  "缺少实体编码. 请访问 ",
@@ -3325,7 +3325,7 @@ const Qr = () => {
3325
3325
  /* @__PURE__ */ e.jsx("code", { children: "/form/{entityCode}" }),
3326
3326
  " 运行时 CRUD."
3327
3327
  ] });
3328
- }, { Text: rt, Paragraph: el } = Ce, { TextArea: xr } = T, rs = {
3328
+ }, { Text: rt, Paragraph: tl } = Ce, { TextArea: xr } = T, rs = {
3329
3329
  PENDING: "default",
3330
3330
  GENERATING: "processing",
3331
3331
  READY: "success",
@@ -3339,7 +3339,7 @@ const Qr = () => {
3339
3339
  ReactPage: "purple",
3340
3340
  File: "default"
3341
3341
  };
3342
- function tl() {
3342
+ function sl() {
3343
3343
  const a = new URLSearchParams(window.location.search).get("appCode") || "demo", [n] = o(a), [g, E] = o([]), [w, c] = o(!1), [j, N] = o(!1), [C, A] = o(!1), [p, m] = o([]), [F, f] = o(null), [G, O] = o([]), [D] = l.useForm();
3344
3344
  ue(() => {
3345
3345
  I(), S();
@@ -3454,7 +3454,7 @@ function tl() {
3454
3454
  /* @__PURE__ */ e.jsxs(B, { style: { marginBottom: 16 }, children: [
3455
3455
  /* @__PURE__ */ e.jsx(y, { icon: /* @__PURE__ */ e.jsx(be, {}), onClick: I, children: "刷新" }),
3456
3456
  /* @__PURE__ */ e.jsx(y, { type: "primary", icon: /* @__PURE__ */ e.jsx(gs, {}), onClick: () => N(!0), children: "导出代码" }),
3457
- /* @__PURE__ */ e.jsx(y, { icon: /* @__PURE__ */ e.jsx(sn, {}), onClick: () => d.info(`共 ${g.length} 个历史批次`), children: "历史" })
3457
+ /* @__PURE__ */ e.jsx(y, { icon: /* @__PURE__ */ e.jsx(nn, {}), onClick: () => d.info(`共 ${g.length} 个历史批次`), children: "历史" })
3458
3458
  ] }),
3459
3459
  /* @__PURE__ */ e.jsx(
3460
3460
  xe,
@@ -3707,11 +3707,11 @@ function pr({ open: t, onClose: a, onSuccess: n, envOptions: g = [] }) {
3707
3707
  {
3708
3708
  key: "upload",
3709
3709
  label: /* @__PURE__ */ e.jsxs("span", { children: [
3710
- /* @__PURE__ */ e.jsx(nn, {}),
3710
+ /* @__PURE__ */ e.jsx(rn, {}),
3711
3711
  " 上传文件"
3712
3712
  ] }),
3713
3713
  children: /* @__PURE__ */ e.jsxs(
3714
- Ls.Dragger,
3714
+ $s.Dragger,
3715
3715
  {
3716
3716
  ref: S,
3717
3717
  accept: ".json,.yaml,.yml,application/json,text/yaml",
@@ -3794,7 +3794,7 @@ function pr({ open: t, onClose: a, onSuccess: n, envOptions: g = [] }) {
3794
3794
  function hr(t) {
3795
3795
  return { GET: "blue", POST: "green", PUT: "orange", DELETE: "red", PATCH: "purple" }[t] || "default";
3796
3796
  }
3797
- const { Text: lt, Paragraph: sl } = Ce, is = [
3797
+ const { Text: lt, Paragraph: nl } = Ce, is = [
3798
3798
  {
3799
3799
  group: "基础数据",
3800
3800
  icon: /* @__PURE__ */ e.jsx(Oe, {}),
@@ -3890,7 +3890,7 @@ function mr({ onInsert: t, form: a, formField: n = "responseTemplate" }) {
3890
3890
  "/",
3891
3891
  C
3892
3892
  ] }),
3893
- /* @__PURE__ */ e.jsx(je, { title: "点击按钮即可插入到上方响应模板;点击 syntax 文本可复制", children: /* @__PURE__ */ e.jsx(rn, { style: { color: "#999" } }) })
3893
+ /* @__PURE__ */ e.jsx(je, { title: "点击按钮即可插入到上方响应模板;点击 syntax 文本可复制", children: /* @__PURE__ */ e.jsx(ln, { style: { color: "#999" } }) })
3894
3894
  ] }),
3895
3895
  extra: /* @__PURE__ */ e.jsx(
3896
3896
  T,
@@ -4388,7 +4388,7 @@ function Mt({ activeEnvCode: t }) {
4388
4388
  Ue,
4389
4389
  {
4390
4390
  title: /* @__PURE__ */ e.jsxs(B, { children: [
4391
- /* @__PURE__ */ e.jsx(ln, {}),
4391
+ /* @__PURE__ */ e.jsx(an, {}),
4392
4392
  "端点详情: ",
4393
4393
  f == null ? void 0 : f.mockCode
4394
4394
  ] }),
@@ -4722,7 +4722,7 @@ function kr() {
4722
4722
  {
4723
4723
  size: "small",
4724
4724
  type: "link",
4725
- icon: /* @__PURE__ */ e.jsx(an, {}),
4725
+ icon: /* @__PURE__ */ e.jsx(on, {}),
4726
4726
  onClick: () => S(L.scenarioCode),
4727
4727
  children: "实例"
4728
4728
  }
@@ -4732,7 +4732,7 @@ function kr() {
4732
4732
  {
4733
4733
  size: "small",
4734
4734
  type: "link",
4735
- icon: /* @__PURE__ */ e.jsx(on, {}),
4735
+ icon: /* @__PURE__ */ e.jsx(cn, {}),
4736
4736
  onClick: () => I(L.scenarioCode),
4737
4737
  children: "重置"
4738
4738
  }
@@ -5371,7 +5371,7 @@ function Rr() {
5371
5371
  Ue,
5372
5372
  {
5373
5373
  title: /* @__PURE__ */ e.jsxs(B, { children: [
5374
- /* @__PURE__ */ e.jsx(cn, {}),
5374
+ /* @__PURE__ */ e.jsx(dn, {}),
5375
5375
  "用例执行结果"
5376
5376
  ] }),
5377
5377
  open: A,
@@ -5671,7 +5671,7 @@ function Nr() {
5671
5671
  size: "small",
5672
5672
  type: "link",
5673
5673
  danger: !0,
5674
- icon: /* @__PURE__ */ e.jsx(dn, {}),
5674
+ icon: /* @__PURE__ */ e.jsx(un, {}),
5675
5675
  onClick: () => r(x.recordingCode),
5676
5676
  children: "停止"
5677
5677
  }
@@ -6039,7 +6039,7 @@ function Pr() {
6039
6039
  {
6040
6040
  size: "small",
6041
6041
  type: "link",
6042
- icon: /* @__PURE__ */ e.jsx(un, {}),
6042
+ icon: /* @__PURE__ */ e.jsx(xn, {}),
6043
6043
  onClick: () => G(S),
6044
6044
  children: "详情"
6045
6045
  }
@@ -6223,7 +6223,7 @@ const { Text: Ee } = Ce, us = [
6223
6223
  { key: "recordings", label: "录制回放", component: Nr },
6224
6224
  { key: "request-logs", label: "请求日志", component: Pr }
6225
6225
  ];
6226
- function nl() {
6226
+ function rl() {
6227
6227
  var A;
6228
6228
  const [t, a] = o("endpoints"), [n, g] = o([]), [E, w] = o("default"), [c, j] = o(null);
6229
6229
  ue(() => {
@@ -6248,7 +6248,7 @@ function nl() {
6248
6248
  return (A = us.find((p) => p.key === t)) == null || A.component, /* @__PURE__ */ e.jsxs("div", { children: [
6249
6249
  /* @__PURE__ */ e.jsx(Z, { style: { marginBottom: 16 }, bodyStyle: { padding: 16 }, children: /* @__PURE__ */ e.jsxs(B, { size: "large", wrap: !0, children: [
6250
6250
  /* @__PURE__ */ e.jsxs(B, { children: [
6251
- /* @__PURE__ */ e.jsx(xn, { style: { fontSize: 18, color: "#1890ff" } }),
6251
+ /* @__PURE__ */ e.jsx(pn, { style: { fontSize: 18, color: "#1890ff" } }),
6252
6252
  /* @__PURE__ */ e.jsx(Ee, { strong: !0, style: { fontSize: 16 }, children: "Mock 平台" }),
6253
6253
  /* @__PURE__ */ e.jsx(R, { color: "blue", children: "WireMock 级" })
6254
6254
  ] }),
@@ -6314,23 +6314,23 @@ function nl() {
6314
6314
  )
6315
6315
  ] });
6316
6316
  }
6317
- const rl = common;
6317
+ const ll = common;
6318
6318
  export {
6319
- Vr as AgentTeamIM,
6319
+ Xr as AgentTeamIM,
6320
6320
  Br as AppLayout,
6321
- Kr as CtcAuthPage,
6322
- Wr as CtcLayout,
6323
- Yr as CtcLogin,
6321
+ Yr as CtcAuthPage,
6322
+ Jr as CtcLayout,
6323
+ Vr as CtcLogin,
6324
6324
  Ir as CurlImportModal,
6325
6325
  Mt as EndpointsTab,
6326
6326
  Ft as EnvironmentsTab,
6327
6327
  Gr as ErrorBoundary,
6328
6328
  qr as LoginPage,
6329
6329
  ar as LowCodeModel,
6330
- Qr as LowCodePage,
6330
+ el as LowCodePage,
6331
6331
  ur as LowCodeRuntime,
6332
- tl as MaterializePage,
6333
- nl as MockPlatform,
6332
+ sl as MaterializePage,
6333
+ rl as MockPlatform,
6334
6334
  mr as MockTemplateHelper,
6335
6335
  pr as OpenApiImportModal,
6336
6336
  Hr as Overview,
@@ -6339,12 +6339,13 @@ export {
6339
6339
  kr as ScenariosTab,
6340
6340
  Ur as StatusTag,
6341
6341
  Rr as TestCasesTab,
6342
- Xr as UserPanel,
6343
- Zr as Webide,
6344
- kn as authRequest,
6342
+ Zr as UserPanel,
6343
+ Qr as Webide,
6344
+ Es as authRequest,
6345
6345
  vs as createRequest,
6346
- rl as default,
6347
- bn as defaultStatusMap,
6346
+ Wr as ctcRequest,
6347
+ ll as default,
6348
+ Cn as defaultStatusMap,
6348
6349
  ne as request,
6349
- wn as setupInterceptors
6350
+ kn as setupInterceptors
6350
6351
  };