@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.
- package/dist/{InvitationManagementPage-CQeyYIFy.js → InvitationManagementPage-ByJuWwA_.js} +9 -9
- package/dist/{OnboardingPage-MFpxbJfG.js → OnboardingPage-D58h1JK_.js} +2 -2
- package/dist/ProjectApp-oUbzb0Io.js +3818 -0
- package/dist/SmartWorkbench.module-xRRmpTTw.js +85 -0
- package/dist/{SystemShell-BYTJWWuI.js → SystemShell-D4mGsT0X.js} +153 -151
- package/dist/{api-DenFi56H.js → api-3-Ykp2ll.js} +1 -1
- package/dist/index-B8mNsH88.js +1411 -0
- package/dist/{index-C7Wzkrlq.js → index-BwFEDHy3.js} +815 -767
- package/dist/{index-hPzswwk2.js → index-CDKg_qI5.js} +1 -1
- package/dist/index-CRac8IT2.js +914 -0
- package/dist/{index-BQJDuC7Q.js → index-D2S8FrNc.js} +1 -1
- package/dist/{index-EPyR_fx0.js → index-DOVOWiGU.js} +2448 -2468
- package/dist/{index-DZqp2pLG.js → index-DYDba1NC.js} +64 -55
- package/dist/index-Da3doGtf.js +1743 -0
- package/dist/{index-BjzLHR2n.js → index-Dky6GVc1.js} +1 -3
- package/dist/index.js +1 -1
- package/dist/pages.js +5 -4
- package/dist/z-team-component.css +2 -2
- package/package.json +2 -2
- package/dist/DebugPlayground-cxffrMgF.js +0 -15
- package/dist/ProjectApp-DQPIDWGP.js +0 -4591
- package/dist/SmartWorkbench.module-DzQskKT0.js +0 -85
- package/dist/index-Bsh58cwF.js +0 -975
- package/dist/index-CjtT4p5I.js +0 -1327
- package/dist/index-pfzY68PH.js +0 -1408
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { AppLayout as
|
|
2
|
-
import { a as
|
|
3
|
-
import { C as
|
|
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
|
|
6
|
-
import { Card as
|
|
7
|
-
import { ReloadOutlined as
|
|
8
|
-
|
|
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
|
|
13
|
+
function U() {
|
|
15
14
|
const [r] = i(!1), [d] = i([]);
|
|
16
15
|
return /* @__PURE__ */ a(
|
|
17
|
-
|
|
16
|
+
g,
|
|
18
17
|
{
|
|
19
18
|
title: /* @__PURE__ */ a("span", { children: [
|
|
20
|
-
/* @__PURE__ */ t(
|
|
19
|
+
/* @__PURE__ */ t(A, { style: { marginRight: 8 } }),
|
|
21
20
|
"Agent 群组 IM"
|
|
22
21
|
] }),
|
|
23
22
|
extra: /* @__PURE__ */ a(R, { children: [
|
|
24
|
-
/* @__PURE__ */ t(
|
|
25
|
-
/* @__PURE__ */ t(
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
|
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
|
-
},
|
|
70
|
+
}, D = {
|
|
72
71
|
GIT: { text: "GIT 模式", color: "blue" },
|
|
73
72
|
SHARED: { text: "SHARED 模式", color: "purple" }
|
|
74
73
|
};
|
|
75
|
-
function
|
|
76
|
-
const [r, d] = i([]), [
|
|
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
|
|
85
|
+
return b(() => {
|
|
87
86
|
m();
|
|
88
87
|
}, []), /* @__PURE__ */ a(
|
|
89
|
-
|
|
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(
|
|
97
|
-
/* @__PURE__ */ t(
|
|
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
|
-
|
|
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
|
-
|
|
110
|
+
x,
|
|
112
111
|
{
|
|
113
112
|
rowKey: "containerId",
|
|
114
113
|
size: "small",
|
|
115
|
-
loading:
|
|
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 =
|
|
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 =
|
|
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:
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
};
|