@yuku123/z-team-component 0.2.32 → 0.2.36

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,18 +1,19 @@
1
- import { AppLayout as H, ErrorBoundary as _, LoginPage as j, StatusTag as z, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
- import { a as y } from "./ComponentDoc-oOU-0zBg.js";
3
- import { b as J, E as Q, c as X, M as Y, d as Z, O as $, e as ee, R as te, f as re, g as ae, T as oe, h as ne, r as le, r as ie, s as se } from "./ComponentDoc-oOU-0zBg.js";
1
+ import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as _, defaultStatusMap as j } from "@yuku123/z-frontend-common";
2
+ import { a as T } from "./ComponentDoc-B2qJmtU6.js";
3
+ import { b as F, E as V, c as J, M as Q, d as X, O as Y, e as Z, R as $, f as ee, g as te, T as re, h as ae, r as oe, r as ne, s as le } from "./ComponentDoc-B2qJmtU6.js";
4
4
  import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
5
- import { useState as n, useEffect as T } from "react";
6
- import { Alert as I, Space as g, Button as l, Tag as c, Result as R } from "antd";
7
- import { ReloadOutlined as x, UserAddOutlined as b, TeamOutlined as E, PlusOutlined as w, CodeOutlined as A } from "@ant-design/icons";
8
- import { ListTable as f } from "@yuku123/z-frontend-common/ui";
9
- const G = y, O = {
5
+ import { useState as n, useEffect as y } from "react";
6
+ import { Alert as I, Space as x, Button as s, Tag as c } from "antd";
7
+ import { ReloadOutlined as f, UserAddOutlined as R, TeamOutlined as E, PlusOutlined as w, CodeOutlined as b } from "@ant-design/icons";
8
+ import { ListTable as g } from "@yuku123/z-frontend-common/ui";
9
+ import { D as ie } from "./DebugPlayground-cxffrMgF.js";
10
+ const B = T, O = {
10
11
  LEADER: "red",
11
12
  WORKER: "blue",
12
13
  OBSERVER: "default"
13
14
  };
14
- function K() {
15
- const [i] = n(!1), [s] = n([]);
15
+ function G() {
16
+ const [l] = n(!1), [i] = n([]);
16
17
  return /* @__PURE__ */ r(h, { children: [
17
18
  /* @__PURE__ */ e(
18
19
  I,
@@ -25,17 +26,17 @@ function K() {
25
26
  }
26
27
  ),
27
28
  /* @__PURE__ */ e(
28
- f,
29
+ g,
29
30
  {
30
31
  cardTitle: /* @__PURE__ */ r("span", { children: [
31
32
  /* @__PURE__ */ e(E, { style: { marginRight: 8 } }),
32
33
  "Agent 群组 IM"
33
34
  ] }),
34
- cardExtra: /* @__PURE__ */ r(g, { children: [
35
- /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(x, {}), loading: i, children: "刷新" }),
36
- /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(b, {}), disabled: !0, children: "创建群组" })
35
+ cardExtra: /* @__PURE__ */ r(x, { children: [
36
+ /* @__PURE__ */ e(s, { icon: /* @__PURE__ */ e(f, {}), loading: l, children: "刷新" }),
37
+ /* @__PURE__ */ e(s, { type: "primary", icon: /* @__PURE__ */ e(R, {}), disabled: !0, children: "创建群组" })
37
38
  ] }),
38
- rows: s,
39
+ rows: i,
39
40
  columns: [
40
41
  { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
41
42
  { title: "群组名称", dataIndex: "teamName", width: 200 },
@@ -50,7 +51,7 @@ function K() {
50
51
  { title: "更新时间", dataIndex: "updatedAt", width: 180 }
51
52
  ],
52
53
  rowKey: "teamCode",
53
- loading: i,
54
+ loading: l,
54
55
  searchKeys: ["teamCode", "teamName"],
55
56
  searchPlaceholder: "按群组编码 / 名称过滤",
56
57
  emptyTitle: "暂无群组",
@@ -59,27 +60,27 @@ function K() {
59
60
  )
60
61
  ] });
61
62
  }
62
- const M = {
63
+ const A = {
63
64
  CREATING: { text: "创建中", color: "processing" },
64
65
  RUNNING: { text: "运行中", color: "success" },
65
66
  STOPPED: { text: "已停止", color: "default" },
66
67
  ERROR: { text: "错误", color: "error" }
67
- }, D = {
68
+ }, M = {
68
69
  GIT: { text: "GIT 模式", color: "blue" },
69
70
  SHARED: { text: "SHARED 模式", color: "purple" }
70
71
  };
71
- function U() {
72
- const [i, s] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
72
+ function K() {
73
+ const [l, i] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
73
74
  a(!0), m(null);
74
75
  try {
75
- s([]);
76
+ i([]);
76
77
  } catch (t) {
77
78
  m((t == null ? void 0 : t.message) || "加载失败");
78
79
  } finally {
79
80
  a(!1);
80
81
  }
81
82
  };
82
- return T(() => {
83
+ return y(() => {
83
84
  p();
84
85
  }, []), /* @__PURE__ */ r(h, { children: [
85
86
  u && /* @__PURE__ */ e(
@@ -93,17 +94,17 @@ function U() {
93
94
  }
94
95
  ),
95
96
  /* @__PURE__ */ e(
96
- f,
97
+ g,
97
98
  {
98
99
  cardTitle: /* @__PURE__ */ r("span", { children: [
99
- /* @__PURE__ */ e(A, { style: { marginRight: 8 } }),
100
+ /* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
100
101
  "WebIDE 容器管理"
101
102
  ] }),
102
- cardExtra: /* @__PURE__ */ r(g, { children: [
103
- /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(x, {}), onClick: p, loading: d, children: "刷新" }),
104
- /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
103
+ cardExtra: /* @__PURE__ */ r(x, { children: [
104
+ /* @__PURE__ */ e(s, { icon: /* @__PURE__ */ e(f, {}), onClick: p, loading: d, children: "刷新" }),
105
+ /* @__PURE__ */ e(s, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
105
106
  ] }),
106
- rows: i,
107
+ rows: l,
107
108
  columns: [
108
109
  { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
109
110
  {
@@ -111,7 +112,7 @@ function U() {
111
112
  dataIndex: "mode",
112
113
  width: 120,
113
114
  render: (t) => {
114
- const o = D[t] || { text: t, color: "default" };
115
+ const o = M[t] || { text: t, color: "default" };
115
116
  return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
116
117
  }
117
118
  },
@@ -122,7 +123,7 @@ function U() {
122
123
  dataIndex: "status",
123
124
  width: 120,
124
125
  render: (t) => {
125
- const o = M[t] || { text: t, color: "default" };
126
+ const o = A[t] || { text: t, color: "default" };
126
127
  return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
127
128
  }
128
129
  },
@@ -139,40 +140,30 @@ function U() {
139
140
  )
140
141
  ] });
141
142
  }
142
- function W() {
143
- return /* @__PURE__ */ e(
144
- R,
145
- {
146
- title: "Debug Playground",
147
- subTitle: "AI 调试沙盒功能开发中...",
148
- extra: /* @__PURE__ */ e(l, { type: "primary", children: "敬请期待" })
149
- }
150
- );
151
- }
152
143
  export {
153
- K as AgentTeamIM,
154
- H as AppLayout,
155
- J as CurlImportModal,
156
- W as DebugPlayground,
157
- Q as EndpointsTab,
158
- X as EnvironmentsTab,
159
- _ as ErrorBoundary,
160
- j as LoginPage,
161
- Y as MockPlatform,
162
- Z as MockTemplateHelper,
163
- $ as OpenApiImportModal,
164
- ee as Overview,
165
- te as RecordingsTab,
166
- re as RequestLogsTab,
167
- ae as ScenariosTab,
168
- z as StatusTag,
169
- oe as TestCasesTab,
170
- U as Webide,
171
- y as authRequest,
172
- ne as createRequest,
173
- G as ctcRequest,
174
- le as default,
175
- F as defaultStatusMap,
176
- ie as request,
177
- se as setupInterceptors
144
+ G as AgentTeamIM,
145
+ k as AppLayout,
146
+ F as CurlImportModal,
147
+ ie as DebugPlayground,
148
+ V as EndpointsTab,
149
+ J as EnvironmentsTab,
150
+ v as ErrorBoundary,
151
+ H as LoginPage,
152
+ Q as MockPlatform,
153
+ X as MockTemplateHelper,
154
+ Y as OpenApiImportModal,
155
+ Z as Overview,
156
+ $ as RecordingsTab,
157
+ ee as RequestLogsTab,
158
+ te as ScenariosTab,
159
+ _ as StatusTag,
160
+ re as TestCasesTab,
161
+ K as Webide,
162
+ T as authRequest,
163
+ ae as createRequest,
164
+ B as ctcRequest,
165
+ oe as default,
166
+ j as defaultStatusMap,
167
+ ne as request,
168
+ le as setupInterceptors
178
169
  };