@yuku123/z-team-component 0.2.28 → 0.2.30
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/{ChangeLogView-CG-o5YP1.js → ChangeLogView-FLd1wS8H.js} +1 -1
- package/dist/{InvitationManagementPage-DpA3Xlq1.js → InvitationManagementPage-CttWZdu8.js} +87 -82
- package/dist/{OnboardingPage-DFRAwruv.js → OnboardingPage-CAI-P20Q.js} +2 -2
- package/dist/ProjectApp-ZR_QUlPs.js +3839 -0
- package/dist/{SystemShell-BLXTOqFb.js → SystemShell-BKNdXqXt.js} +1 -1
- package/dist/{admin-logs-C2V1ElH9.js → admin-logs-Dv86pFvY.js} +2 -2
- package/dist/{api--Fg0hL9Y.js → api-19TXED_O.js} +52 -39
- package/dist/api-BNwdLozd.js +20 -0
- package/dist/{createWorkspaceWsHandler-CqGqcTh_.js → createWorkspaceWsHandler-CBk4DqP4.js} +6 -5
- package/dist/{index-hPzswwk2.js → index-B5_xKK08.js} +1139 -1152
- package/dist/{index-D5u3BjCZ.js → index-BIJnjJd5.js} +2 -2
- package/dist/{index-BylksTyk.js → index-BKwpQ-HW.js} +136 -134
- package/dist/{index-bbwTcNjB.js → index-BTLD5gUt.js} +3 -3
- package/dist/{index-C9BOtjtQ.js → index-BTaLAs80.js} +9 -9
- package/dist/{index-CiMxCTOS.js → index-B_EBV24V.js} +1 -1
- package/dist/{index-BafC42Cl.js → index-Bd57t_yF.js} +1 -1
- package/dist/{index-C2aPiQSz.js → index-BjqYiZpC.js} +3 -3
- package/dist/{index-BaCiSbPR.js → index-BoGVJ0hC.js} +1 -1
- package/dist/{index-C01UUprh.js → index-BpuJ9Njb.js} +7016 -6946
- package/dist/{index-CcFJEYgr.js → index-C815hPWS.js} +55 -52
- package/dist/{index-DIxwe_pk.js → index-C8GK1bOQ.js} +358 -347
- package/dist/{index-DvIHX7lZ.js → index-CcpWacSZ.js} +243 -236
- package/dist/{index-Da7ls5q6.js → index-DOPkM2W8.js} +6 -6
- package/dist/index-DQNZE7Go.js +169 -0
- package/dist/{index-BYEx4vlI.js → index-DR_FCf71.js} +1134 -1132
- package/dist/{index-CTD7k9dP.js → index-DYgD6BuB.js} +4 -4
- package/dist/{index-dSnK7qcL.js → index-DdN9Apqq.js} +5 -5
- package/dist/{index-CPF3LS0x.js → index-DuGWlMWm.js} +3 -3
- package/dist/index-JMzBzwiO.js +1746 -0
- package/dist/{index-Dao4uqQd.js → index-x4-W5ClM.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{instance-1QEDBRqA.js → instance-D951fRuD.js} +1 -1
- package/dist/pages.js +5 -4
- package/dist/{schedule-C89oiqIR.js → schedule-DD50-7cs.js} +1 -1
- package/dist/{send-default-agent-team-message-CxkWi3XC.js → send-default-agent-team-message-Bbs2rMNf.js} +1 -1
- package/dist/{sso-user-BE1Ell5F.js → sso-user-BEY5ICaR.js} +1 -1
- package/dist/{training-o-vSBkqP.js → training-B-9tNFQw.js} +1 -1
- package/dist/{useAppStore-wgWaxcyc.js → useAppStore-BQN-26ns.js} +1 -1
- package/dist/{webide-BxD6cYe-.js → webide-P867RFZi.js} +4 -4
- package/dist/z-team-component.css +1 -1
- package/package.json +3 -3
- package/dist/ProjectApp-BquB_X7K.js +0 -4591
- package/dist/api-CX7MUpws.js +0 -19
- package/dist/index-CcTdM5kT.js +0 -178
- package/dist/index-pfzY68PH.js +0 -1408
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { f as ie, r as $ } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as le, h as K, s as J } from "./sso-user-
|
|
3
|
+
import { r as le, h as K, s as J } from "./sso-user-BEY5ICaR.js";
|
|
4
4
|
import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
7
|
import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as ke, C as we } from "./createWorkspaceWsHandler-
|
|
11
|
-
import { u as r, f as Se, T as ve } from "./useAppStore-
|
|
12
|
-
import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api
|
|
13
|
-
import { l as Pe, j as Te } from "./instance-
|
|
10
|
+
import { c as ke, C as we } from "./createWorkspaceWsHandler-CBk4DqP4.js";
|
|
11
|
+
import { u as r, f as Se, T as ve } from "./useAppStore-BQN-26ns.js";
|
|
12
|
+
import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api-19TXED_O.js";
|
|
13
|
+
import { l as Pe, j as Te } from "./instance-D951fRuD.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as xe } from "./admin-logs-
|
|
15
|
+
import { s as xe } from "./admin-logs-Dv86pFvY.js";
|
|
16
16
|
function Ie(p, d) {
|
|
17
17
|
N(() => {
|
|
18
18
|
if (p == null)
|
|
@@ -0,0 +1,169 @@
|
|
|
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 "./ProjectApp-ZR_QUlPs.js";
|
|
3
|
+
import { C as F, E as V, b as J, M as Q, c as X, O as Y, d as Z, R as $, e as ee, f as te, T as re, g as ae, r as oe, r as ne, s as le } from "./ProjectApp-ZR_QUlPs.js";
|
|
4
|
+
import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
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 = {
|
|
11
|
+
LEADER: "red",
|
|
12
|
+
WORKER: "blue",
|
|
13
|
+
OBSERVER: "default"
|
|
14
|
+
};
|
|
15
|
+
function G() {
|
|
16
|
+
const [l] = n(!1), [i] = n([]);
|
|
17
|
+
return /* @__PURE__ */ r(h, { children: [
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
|
+
I,
|
|
20
|
+
{
|
|
21
|
+
type: "info",
|
|
22
|
+
showIcon: !0,
|
|
23
|
+
style: { marginBottom: 16 },
|
|
24
|
+
title: "IM 群组 (含 STOMP 实时消息) 后端服务尚未启动",
|
|
25
|
+
description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
g,
|
|
30
|
+
{
|
|
31
|
+
cardTitle: /* @__PURE__ */ r("span", { children: [
|
|
32
|
+
/* @__PURE__ */ e(E, { style: { marginRight: 8 } }),
|
|
33
|
+
"Agent 群组 IM"
|
|
34
|
+
] }),
|
|
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: "创建群组" })
|
|
38
|
+
] }),
|
|
39
|
+
rows: i,
|
|
40
|
+
columns: [
|
|
41
|
+
{ title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
|
|
42
|
+
{ title: "群组名称", dataIndex: "teamName", width: 200 },
|
|
43
|
+
{
|
|
44
|
+
title: "我的角色",
|
|
45
|
+
dataIndex: "role",
|
|
46
|
+
width: 120,
|
|
47
|
+
render: (a) => /* @__PURE__ */ e(c, { color: O[a] || "default", children: a || "-" })
|
|
48
|
+
},
|
|
49
|
+
{ title: "成员数", dataIndex: "memberCount", width: 100 },
|
|
50
|
+
{ title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
|
|
51
|
+
{ title: "更新时间", dataIndex: "updatedAt", width: 180 }
|
|
52
|
+
],
|
|
53
|
+
rowKey: "teamCode",
|
|
54
|
+
loading: l,
|
|
55
|
+
searchKeys: ["teamCode", "teamName"],
|
|
56
|
+
searchPlaceholder: "按群组编码 / 名称过滤",
|
|
57
|
+
emptyTitle: "暂无群组",
|
|
58
|
+
emptyDescription: "当前还没有 IM 群组。"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
const A = {
|
|
64
|
+
CREATING: { text: "创建中", color: "processing" },
|
|
65
|
+
RUNNING: { text: "运行中", color: "success" },
|
|
66
|
+
STOPPED: { text: "已停止", color: "default" },
|
|
67
|
+
ERROR: { text: "错误", color: "error" }
|
|
68
|
+
}, M = {
|
|
69
|
+
GIT: { text: "GIT 模式", color: "blue" },
|
|
70
|
+
SHARED: { text: "SHARED 模式", color: "purple" }
|
|
71
|
+
};
|
|
72
|
+
function K() {
|
|
73
|
+
const [l, i] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
|
|
74
|
+
a(!0), m(null);
|
|
75
|
+
try {
|
|
76
|
+
i([]);
|
|
77
|
+
} catch (t) {
|
|
78
|
+
m((t == null ? void 0 : t.message) || "加载失败");
|
|
79
|
+
} finally {
|
|
80
|
+
a(!1);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
return y(() => {
|
|
84
|
+
p();
|
|
85
|
+
}, []), /* @__PURE__ */ r(h, { children: [
|
|
86
|
+
u && /* @__PURE__ */ e(
|
|
87
|
+
I,
|
|
88
|
+
{
|
|
89
|
+
type: "warning",
|
|
90
|
+
showIcon: !0,
|
|
91
|
+
style: { marginBottom: 16 },
|
|
92
|
+
title: "后端 API 暂未连接",
|
|
93
|
+
description: u
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ e(
|
|
97
|
+
g,
|
|
98
|
+
{
|
|
99
|
+
cardTitle: /* @__PURE__ */ r("span", { children: [
|
|
100
|
+
/* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
|
|
101
|
+
"WebIDE 容器管理"
|
|
102
|
+
] }),
|
|
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" })
|
|
106
|
+
] }),
|
|
107
|
+
rows: l,
|
|
108
|
+
columns: [
|
|
109
|
+
{ title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
|
|
110
|
+
{
|
|
111
|
+
title: "模式",
|
|
112
|
+
dataIndex: "mode",
|
|
113
|
+
width: 120,
|
|
114
|
+
render: (t) => {
|
|
115
|
+
const o = M[t] || { text: t, color: "default" };
|
|
116
|
+
return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{ title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
|
|
120
|
+
{ title: "分支", dataIndex: "branch", width: 120 },
|
|
121
|
+
{
|
|
122
|
+
title: "状态",
|
|
123
|
+
dataIndex: "status",
|
|
124
|
+
width: 120,
|
|
125
|
+
render: (t) => {
|
|
126
|
+
const o = A[t] || { text: t, color: "default" };
|
|
127
|
+
return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{ title: "创建时间", dataIndex: "createdAt", width: 180 }
|
|
131
|
+
],
|
|
132
|
+
rowKey: "containerId",
|
|
133
|
+
loading: d,
|
|
134
|
+
scroll: { x: 1e3 },
|
|
135
|
+
searchKeys: ["containerId", "branch"],
|
|
136
|
+
searchPlaceholder: "按容器 ID / 分支过滤",
|
|
137
|
+
emptyTitle: "暂无容器",
|
|
138
|
+
emptyDescription: "后端 z-webide 服务尚未启动"
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
] });
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
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
|
|
169
|
+
};
|