@yuku123/z-team-component 0.2.26 → 0.2.29

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,32 +1,31 @@
1
- import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as K, defaultStatusMap as _ } from "@yuku123/z-frontend-common";
2
- import { a as y } from "./ProjectApp-DQPIDWGP.js";
3
- import { C as F, E as J, c as Q, M as X, d as Y, O as Z, e as $, R as tt, f as et, g as at, h as rt, j as ot, r as nt, r as it, s as lt } from "./ProjectApp-DQPIDWGP.js";
1
+ import { AppLayout as K, ErrorBoundary as _, LoginPage as j, StatusTag as V, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
+ import { a as T } from "./ProjectApp-oUbzb0Io.js";
3
+ import { C as Q, E as X, b as Y, M as Z, c as $, O as tt, d as et, R as at, e as rt, f as ot, T as nt, g as it, r as lt, r as st, s as dt } from "./ProjectApp-oUbzb0Io.js";
4
4
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
5
- import { useState as i, useEffect as E } from "react";
6
- import { Card as h, Alert as x, Table as g, Spin as I, Empty as f, Space as R, Button as s, Tag as c } from "antd";
7
- import { ReloadOutlined as T, UserAddOutlined as w, TeamOutlined as b, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
8
- import { D as dt } from "./DebugPlayground-cxffrMgF.js";
9
- const G = y, A = {
5
+ import { useState as i, useEffect as b } from "react";
6
+ import { Card as g, Alert as h, Table as x, Spin as I, Empty as f, Space as R, Button as l, Tag as c, Result as E } from "antd";
7
+ import { ReloadOutlined as y, UserAddOutlined as w, TeamOutlined as A, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
8
+ const N = T, M = {
10
9
  LEADER: "red",
11
10
  WORKER: "blue",
12
11
  OBSERVER: "default"
13
12
  };
14
- function N() {
13
+ function U() {
15
14
  const [r] = i(!1), [d] = i([]);
16
15
  return /* @__PURE__ */ a(
17
- h,
16
+ g,
18
17
  {
19
18
  title: /* @__PURE__ */ a("span", { children: [
20
- /* @__PURE__ */ t(b, { style: { marginRight: 8 } }),
19
+ /* @__PURE__ */ t(A, { style: { marginRight: 8 } }),
21
20
  "Agent 群组 IM"
22
21
  ] }),
23
22
  extra: /* @__PURE__ */ a(R, { children: [
24
- /* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), loading: r, children: "刷新" }),
25
- /* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
23
+ /* @__PURE__ */ t(l, { icon: /* @__PURE__ */ t(y, {}), loading: r, children: "刷新" }),
24
+ /* @__PURE__ */ t(l, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
26
25
  ] }),
27
26
  children: [
28
27
  /* @__PURE__ */ t(
29
- x,
28
+ h,
30
29
  {
31
30
  type: "info",
32
31
  showIcon: !0,
@@ -36,7 +35,7 @@ function N() {
36
35
  }
37
36
  ),
38
37
  /* @__PURE__ */ t(
39
- g,
38
+ x,
40
39
  {
41
40
  rowKey: "teamCode",
42
41
  size: "small",
@@ -49,7 +48,7 @@ function N() {
49
48
  title: "我的角色",
50
49
  dataIndex: "role",
51
50
  width: 120,
52
- render: (o) => /* @__PURE__ */ t(c, { color: A[o] || "default", children: o || "-" })
51
+ render: (o) => /* @__PURE__ */ t(c, { color: M[o] || "default", children: o || "-" })
53
52
  },
54
53
  { title: "成员数", dataIndex: "memberCount", width: 100 },
55
54
  { title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
@@ -63,17 +62,17 @@ function N() {
63
62
  }
64
63
  );
65
64
  }
66
- const M = {
65
+ const C = {
67
66
  CREATING: { text: "创建中", color: "processing" },
68
67
  RUNNING: { text: "运行中", color: "success" },
69
68
  STOPPED: { text: "已停止", color: "default" },
70
69
  ERROR: { text: "错误", color: "error" }
71
- }, C = {
70
+ }, D = {
72
71
  GIT: { text: "GIT 模式", color: "blue" },
73
72
  SHARED: { text: "SHARED 模式", color: "purple" }
74
73
  };
75
- function U() {
76
- const [r, d] = i([]), [l, o] = i(!1), [u, p] = i(null), m = async () => {
74
+ function W() {
75
+ const [r, d] = i([]), [s, o] = i(!1), [u, p] = i(null), m = async () => {
77
76
  o(!0), p(null);
78
77
  try {
79
78
  d([]);
@@ -83,22 +82,22 @@ function U() {
83
82
  o(!1);
84
83
  }
85
84
  };
86
- return E(() => {
85
+ return b(() => {
87
86
  m();
88
87
  }, []), /* @__PURE__ */ a(
89
- h,
88
+ g,
90
89
  {
91
90
  title: /* @__PURE__ */ a("span", { children: [
92
91
  /* @__PURE__ */ t(S, { style: { marginRight: 8 } }),
93
92
  "WebIDE 容器管理"
94
93
  ] }),
95
94
  extra: /* @__PURE__ */ a(R, { children: [
96
- /* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), onClick: m, loading: l, children: "刷新" }),
97
- /* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(O, {}), disabled: !0, children: "新建 WebIDE" })
95
+ /* @__PURE__ */ t(l, { icon: /* @__PURE__ */ t(y, {}), onClick: m, loading: s, children: "刷新" }),
96
+ /* @__PURE__ */ t(l, { type: "primary", icon: /* @__PURE__ */ t(O, {}), disabled: !0, children: "新建 WebIDE" })
98
97
  ] }),
99
98
  children: [
100
99
  u && /* @__PURE__ */ t(
101
- x,
100
+ h,
102
101
  {
103
102
  type: "warning",
104
103
  showIcon: !0,
@@ -108,11 +107,11 @@ function U() {
108
107
  }
109
108
  ),
110
109
  /* @__PURE__ */ t(
111
- g,
110
+ x,
112
111
  {
113
112
  rowKey: "containerId",
114
113
  size: "small",
115
- loading: l,
114
+ loading: s,
116
115
  dataSource: r,
117
116
  columns: [
118
117
  { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
@@ -121,7 +120,7 @@ function U() {
121
120
  dataIndex: "mode",
122
121
  width: 120,
123
122
  render: (e) => {
124
- const n = C[e] || { text: e, color: "default" };
123
+ const n = D[e] || { text: e, color: "default" };
125
124
  return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
126
125
  }
127
126
  },
@@ -132,14 +131,14 @@ function U() {
132
131
  dataIndex: "status",
133
132
  width: 120,
134
133
  render: (e) => {
135
- const n = M[e] || { text: e, color: "default" };
134
+ const n = C[e] || { text: e, color: "default" };
136
135
  return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
137
136
  }
138
137
  },
139
138
  { title: "创建时间", dataIndex: "createdAt", width: 180 }
140
139
  ],
141
140
  locale: {
142
- emptyText: l ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
141
+ emptyText: s ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
143
142
  },
144
143
  pagination: { pageSize: 20 },
145
144
  scroll: { x: 1e3 }
@@ -149,30 +148,40 @@ function U() {
149
148
  }
150
149
  );
151
150
  }
151
+ function k() {
152
+ return /* @__PURE__ */ t(
153
+ E,
154
+ {
155
+ title: "Debug Playground",
156
+ subTitle: "AI 调试沙盒功能开发中...",
157
+ extra: /* @__PURE__ */ t(l, { type: "primary", children: "敬请期待" })
158
+ }
159
+ );
160
+ }
152
161
  export {
153
- N as AgentTeamIM,
154
- k as AppLayout,
155
- F as CurlImportModal,
156
- dt as DebugPlayground,
157
- J as EndpointsTab,
158
- Q as EnvironmentsTab,
159
- v as ErrorBoundary,
160
- H as LoginPage,
161
- X as MockPlatform,
162
- Y as MockTemplateHelper,
163
- Z as OpenApiImportModal,
164
- $ as Overview,
165
- tt as RecordingsTab,
166
- et as RequestLogsTab,
167
- at as ScenariosTab,
168
- K as StatusTag,
169
- rt as TestCasesTab,
170
- U as Webide,
171
- y as authRequest,
172
- ot as createRequest,
173
- G as ctcRequest,
174
- nt as default,
175
- _ as defaultStatusMap,
176
- it as request,
177
- lt as setupInterceptors
162
+ U as AgentTeamIM,
163
+ K as AppLayout,
164
+ Q as CurlImportModal,
165
+ k as DebugPlayground,
166
+ X as EndpointsTab,
167
+ Y as EnvironmentsTab,
168
+ _ as ErrorBoundary,
169
+ j as LoginPage,
170
+ Z as MockPlatform,
171
+ $ as MockTemplateHelper,
172
+ tt as OpenApiImportModal,
173
+ et as Overview,
174
+ at as RecordingsTab,
175
+ rt as RequestLogsTab,
176
+ ot as ScenariosTab,
177
+ V as StatusTag,
178
+ nt as TestCasesTab,
179
+ W as Webide,
180
+ T as authRequest,
181
+ it as createRequest,
182
+ N as ctcRequest,
183
+ lt as default,
184
+ F as defaultStatusMap,
185
+ st as request,
186
+ dt as setupInterceptors
178
187
  };