@yuku123/z-team-component 0.2.7 → 0.2.9
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-BPxjj0Dg.js → InvitationManagementPage-Bu_T6Qnk.js} +2 -2
- package/dist/{OnboardingPage-Vvj77L6H.js → OnboardingPage-CVQsHBNI.js} +2 -2
- package/dist/ProjectApp-CZp1-5DE.js +5417 -0
- package/dist/admin-logs-CjrLXc1w.js +199 -0
- package/dist/api-C3oQuHQN.js +2153 -0
- package/dist/api-CGeI8Nl6.js +19 -0
- package/dist/{createWorkspaceWsHandler-DrV9AaO7.js → createWorkspaceWsHandler--EYvkQTh.js} +3568 -3269
- package/dist/{ctc-sso-C-QWy9F8.js → ctc-sso-B62FfkZg.js} +1 -0
- package/dist/index-89atN3Sn.js +3299 -0
- package/dist/index-B3WkjkoJ.js +13641 -0
- package/dist/{index-Bw02b5qJ.js → index-BAbMvA6l.js} +14819 -13930
- package/dist/{index-D-oG0ReT.js → index-BbXwe7Mu.js} +4 -4
- package/dist/{index-BK9rSfN3.js → index-BnXt3lMS.js} +10 -10
- package/dist/{index-DYXWNyaR.js → index-CC82pWGq.js} +18 -18
- package/dist/{index-Bh5PFiY9.js → index-CibhFgCi.js} +33 -32
- package/dist/{index-BaBdw0pt.js → index-DH7Mt7zI.js} +58 -63
- package/dist/{index-bRlb91E0.js → index-DL3Nsor4.js} +12431 -23734
- package/dist/{index-l8P_AuvD.js → index-DnqloQgt.js} +1 -1
- package/dist/{index-CuuZlPvb.js → index-EPCmZ1QV.js} +5 -5
- package/dist/{index-DM_AMiPz.js → index-psNYztRR.js} +37 -36
- package/dist/index.js +1 -1
- package/dist/instance-DUBRC_44.js +215 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DxD_vD7Z.js → send-default-agent-team-message-DHaZl06Z.js} +1 -1
- package/dist/{sso-user-D1eNVXkY.js → sso-user-BRC1vEjR.js} +1 -1
- package/dist/{useAppStore-C12Ala1u.js → useAppStore-D1Z2M3Za.js} +1 -1
- package/dist/z-team-component.css +2 -2
- package/package.json +6 -2
- package/dist/LowCodePage-CtC4Ca6N.js +0 -17
- package/dist/ProjectApp-Dp_yHlHK.js +0 -6724
- package/dist/api-DLBRWSFh.js +0 -20
- package/dist/api-W2_U7Nxd.js +0 -3866
- package/dist/ctc-signout-C_dAvsu5.js +0 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { f as z, r as v } from "./ctc-sso-
|
|
3
|
-
import { r as L, h as N, s as T } from "./sso-user-
|
|
2
|
+
import { f as z, r as v } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as L, h as N, s as T } from "./sso-user-BRC1vEjR.js";
|
|
4
4
|
import { CheckCircleFilled as q } from "@ant-design/icons";
|
|
5
5
|
import { Spin as R } from "antd";
|
|
6
6
|
import W from "query-string";
|
|
7
7
|
import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
|
|
8
8
|
import { useLocation as F } from "react-router-dom";
|
|
9
9
|
import { h as H } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as Y,
|
|
11
|
-
import { u as m } from "./useAppStore-
|
|
10
|
+
import { c as Y, h as B } from "./api-C3oQuHQN.js";
|
|
11
|
+
import { u as m } from "./useAppStore-D1Z2M3Za.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
function ne() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as F, useCallback as D, useEffect as R } from "react";
|
|
3
|
-
import { u as O } from "./useAppStore-
|
|
3
|
+
import { u as O } from "./useAppStore-D1Z2M3Za.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { T as P,
|
|
5
|
+
import { T as P, j as U } from "./api-C3oQuHQN.js";
|
|
6
6
|
async function y(o, s) {
|
|
7
7
|
const n = await o.text().catch(() => "");
|
|
8
8
|
let t = {};
|
|
@@ -92,7 +92,7 @@ async function J(o, s) {
|
|
|
92
92
|
}
|
|
93
93
|
const L = "dev_brain_scenario";
|
|
94
94
|
function ee() {
|
|
95
|
-
var
|
|
95
|
+
var E;
|
|
96
96
|
const [o, s] = d([]), [n, t] = d(
|
|
97
97
|
null
|
|
98
98
|
), [r, h] = d([]), [u, z] = d([]), [v, b] = d(""), [W, w] = d(!1), [g, S] = d(!1), [A, T] = d(""), C = F(null), { token: f } = O(), I = D(() => {
|
|
@@ -140,14 +140,14 @@ function ee() {
|
|
|
140
140
|
} finally {
|
|
141
141
|
w(!1);
|
|
142
142
|
}
|
|
143
|
-
},
|
|
143
|
+
}, j = async () => {
|
|
144
144
|
const e = v.trim();
|
|
145
145
|
if (!e || !n) return;
|
|
146
146
|
const c = u.filter((l) => l.memberType === "AGENT");
|
|
147
|
-
let p,
|
|
147
|
+
let p, M = "TEXT";
|
|
148
148
|
for (const l of c)
|
|
149
149
|
if (e.includes(`@${l.displayName}`)) {
|
|
150
|
-
p = String(l.id),
|
|
150
|
+
p = String(l.id), M = "AT_AGENT";
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
b("");
|
|
@@ -156,7 +156,7 @@ function ee() {
|
|
|
156
156
|
n.id,
|
|
157
157
|
{
|
|
158
158
|
content: e,
|
|
159
|
-
message_type:
|
|
159
|
+
message_type: M,
|
|
160
160
|
...p ? { at_agent_ref_id: p } : {}
|
|
161
161
|
},
|
|
162
162
|
f || void 0
|
|
@@ -388,11 +388,11 @@ function ee() {
|
|
|
388
388
|
maxHeight: 120,
|
|
389
389
|
fontSize: 13
|
|
390
390
|
},
|
|
391
|
-
placeholder: x.length > 0 ? `Type message. @${(
|
|
391
|
+
placeholder: x.length > 0 ? `Type message. @${(E = x[0]) == null ? void 0 : E.displayName} to mention agent.` : "Type message...",
|
|
392
392
|
value: v,
|
|
393
393
|
onChange: (e) => b(e.target.value),
|
|
394
394
|
onKeyDown: (e) => {
|
|
395
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
395
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), j());
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
),
|
|
@@ -408,7 +408,7 @@ function ee() {
|
|
|
408
408
|
cursor: "pointer",
|
|
409
409
|
fontSize: 13
|
|
410
410
|
},
|
|
411
|
-
onClick:
|
|
411
|
+
onClick: j,
|
|
412
412
|
children: "Send"
|
|
413
413
|
}
|
|
414
414
|
)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as ie, r as z } from "./ctc-sso-
|
|
3
|
-
import { r as ne, h as X, s as oe } from "./sso-user-
|
|
2
|
+
import { f as ie, r as z } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as ne, h as X, s as oe } from "./sso-user-BRC1vEjR.js";
|
|
4
4
|
import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { message as k, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
|
|
6
6
|
import pe from "query-string";
|
|
7
|
-
import { useState as f, useRef as Y, useMemo as K, useCallback as
|
|
7
|
+
import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
|
|
8
8
|
import { useLocation as ge } from "react-router-dom";
|
|
9
9
|
import { h as W } from "./history-BlrA1eaW.js";
|
|
10
|
-
import {
|
|
11
|
-
import { u as c } from "./useAppStore-
|
|
10
|
+
import { v as he, g as be, h as _e } from "./api-C3oQuHQN.js";
|
|
11
|
+
import { u as c } from "./useAppStore-D1Z2M3Za.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { b as ye } from "./mobile-client-O3yr9h6t.js";
|
|
14
|
-
import { a as
|
|
14
|
+
import { a as ve, s as we } from "./send-default-agent-team-message-DHaZl06Z.js";
|
|
15
15
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
16
16
|
function Pe(a) {
|
|
17
17
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
@@ -49,7 +49,7 @@ function De() {
|
|
|
49
49
|
m.scenarioCode ?? m.scenario_code ?? ""
|
|
50
50
|
).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [T, j] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]), P = Y(!1), x = Y(y);
|
|
51
51
|
x.current = y;
|
|
52
|
-
const C = K(() => o ? "" : "缺少参数 scenarioCode", [o]), S =
|
|
52
|
+
const C = K(() => o ? "" : "缺少参数 scenarioCode", [o]), S = w((e, r) => {
|
|
53
53
|
F((n) => [...n, e]), g(r);
|
|
54
54
|
}, []), ee = (e) => new Promise((r) => {
|
|
55
55
|
window.setTimeout(r, e);
|
|
@@ -60,7 +60,7 @@ function De() {
|
|
|
60
60
|
let e = !1, r = 0;
|
|
61
61
|
const n = 100;
|
|
62
62
|
let i = !1, s = 0;
|
|
63
|
-
const
|
|
63
|
+
const v = 3;
|
|
64
64
|
return (() => {
|
|
65
65
|
if (e)
|
|
66
66
|
return;
|
|
@@ -91,7 +91,7 @@ function De() {
|
|
|
91
91
|
}
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
if (s >=
|
|
94
|
+
if (s >= v) {
|
|
95
95
|
z();
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
@@ -106,7 +106,7 @@ function De() {
|
|
|
106
106
|
e = !0;
|
|
107
107
|
};
|
|
108
108
|
}, [C, d]);
|
|
109
|
-
const te =
|
|
109
|
+
const te = w(
|
|
110
110
|
async (e, r) => {
|
|
111
111
|
if (P.current)
|
|
112
112
|
return;
|
|
@@ -115,10 +115,10 @@ function De() {
|
|
|
115
115
|
try {
|
|
116
116
|
let s = [];
|
|
117
117
|
r.length > 0 && (g("正在上传图片…"), s = await he(r));
|
|
118
|
-
const
|
|
118
|
+
const v = ve(e, s), I = await be(
|
|
119
119
|
{
|
|
120
120
|
name: n,
|
|
121
|
-
description:
|
|
121
|
+
description: v,
|
|
122
122
|
workspace_path: n,
|
|
123
123
|
scenario_code: o
|
|
124
124
|
},
|
|
@@ -130,7 +130,7 @@ function De() {
|
|
|
130
130
|
String(u.currentProject.id),
|
|
131
131
|
u.projectSwitchSeq,
|
|
132
132
|
!1
|
|
133
|
-
), S("协作区已就绪", "正在发送协作消息…"), await
|
|
133
|
+
), S("协作区已就绪", "正在发送协作消息…"), await we(
|
|
134
134
|
I.id,
|
|
135
135
|
e,
|
|
136
136
|
i,
|
|
@@ -144,12 +144,12 @@ function De() {
|
|
|
144
144
|
);
|
|
145
145
|
} catch (s) {
|
|
146
146
|
P.current = !1, R("form");
|
|
147
|
-
const
|
|
148
|
-
j(
|
|
147
|
+
const v = s instanceof Error ? s.message : String(s);
|
|
148
|
+
j(v || "创建工程失败");
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
[S, p, a.search, o]
|
|
152
|
-
), L =
|
|
152
|
+
), L = w((e) => {
|
|
153
153
|
e.length && U((r) => {
|
|
154
154
|
const n = E - r.length;
|
|
155
155
|
if (n <= 0)
|
|
@@ -168,7 +168,7 @@ function De() {
|
|
|
168
168
|
}
|
|
169
169
|
return i;
|
|
170
170
|
});
|
|
171
|
-
}, []), re =
|
|
171
|
+
}, []), re = w((e) => {
|
|
172
172
|
U((r) => {
|
|
173
173
|
const n = r.find((i) => i.id === e);
|
|
174
174
|
return n && Q(n), r.filter((i) => i.id !== e);
|
|
@@ -177,7 +177,7 @@ function De() {
|
|
|
177
177
|
V(() => () => {
|
|
178
178
|
x.current.forEach(Q);
|
|
179
179
|
}, []);
|
|
180
|
-
const ae =
|
|
180
|
+
const ae = w(
|
|
181
181
|
(e) => {
|
|
182
182
|
const r = ke(e.clipboardData);
|
|
183
183
|
r.length > 0 && (e.preventDefault(), L(r));
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { i as $, t as x,
|
|
3
|
-
import { CheckCircleFilled as
|
|
4
|
-
import { Result as
|
|
5
|
-
import
|
|
6
|
-
import { useMemo as j, useState as f, useRef as
|
|
7
|
-
import { useLocation as
|
|
2
|
+
import { i as $, t as x, p as O, c as v, u as F } from "./api-C3oQuHQN.js";
|
|
3
|
+
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
|
+
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
|
+
import B from "query-string";
|
|
6
|
+
import { useMemo as j, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
|
+
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as y } from "./history-BlrA1eaW.js";
|
|
9
|
-
import {
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-DUBRC_44.js";
|
|
10
|
+
import { u as w } from "./useAppStore-D1Z2M3Za.js";
|
|
10
11
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
|
-
function
|
|
12
|
-
const m =
|
|
12
|
+
function ct() {
|
|
13
|
+
const m = W(), p = B.parse(m.search), o = String(
|
|
13
14
|
p.projectId ?? p.project_id ?? ""
|
|
14
15
|
).trim(), a = String(p.ticketId ?? p.ticket_id ?? "").trim(), e = j(() => {
|
|
15
16
|
if (!o)
|
|
16
17
|
return null;
|
|
17
18
|
const t = x(o);
|
|
18
19
|
return $(t) ? t : null;
|
|
19
|
-
}, [o]), u = w((t) => t.token), T = w((t) => t.expandProject), [h, l] = f(""), [P, n] = f("正在启动…"), [k, C] = f([]), g =
|
|
20
|
-
C((
|
|
20
|
+
}, [o]), u = w((t) => t.token), T = w((t) => t.expandProject), [h, l] = f(""), [P, n] = f("正在启动…"), [k, C] = f([]), g = q(!1), i = A((t, r) => {
|
|
21
|
+
C((s) => [...s, t]), n(r);
|
|
21
22
|
}, []), I = async (t) => {
|
|
22
|
-
|
|
23
|
+
i("协作区已就绪", "正在同步工程列表…"), await T(t), i("工作区已准备", "即将进入工作台…"), y.replace(
|
|
23
24
|
N({
|
|
24
25
|
projectId: t.id,
|
|
25
26
|
search: m.search
|
|
@@ -27,38 +28,38 @@ function nt() {
|
|
|
27
28
|
);
|
|
28
29
|
}, d = async (t) => {
|
|
29
30
|
n("正在确认工程信息…");
|
|
30
|
-
const r = await
|
|
31
|
+
const r = await Z(t, u);
|
|
31
32
|
if (r.status === "NOT_FOUND" || !r.scenarioInstance)
|
|
32
33
|
throw new Error("PROJECT_NOT_FOUND");
|
|
33
34
|
n("正在加入协作区…");
|
|
34
|
-
const
|
|
35
|
-
|
|
35
|
+
const s = await z(t, u);
|
|
36
|
+
i("已加入协作区", "正在打开协作区…"), await I(s);
|
|
36
37
|
}, E = async () => {
|
|
37
38
|
n("正在检查工单信息…");
|
|
38
|
-
const t = await
|
|
39
|
-
|
|
40
|
-
const r =
|
|
39
|
+
const t = await H(a);
|
|
40
|
+
i("工单信息已获取", "正在解析工程绑定…");
|
|
41
|
+
const r = O(t);
|
|
41
42
|
if (r != null) {
|
|
42
|
-
|
|
43
|
+
i("已定位协作区", `正在打开协作区 ${r}…`), await d(r);
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
45
46
|
n("正在初始化工程…");
|
|
46
|
-
const
|
|
47
|
-
|
|
47
|
+
const s = await v(
|
|
48
|
+
L(t, a),
|
|
48
49
|
u
|
|
49
50
|
);
|
|
50
51
|
n("正在关联工单…");
|
|
51
52
|
try {
|
|
52
|
-
await
|
|
53
|
+
await F(
|
|
53
54
|
a,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
s.id,
|
|
56
|
+
M(t)
|
|
56
57
|
);
|
|
57
58
|
} catch {
|
|
58
59
|
}
|
|
59
|
-
n("正在初始化工作区…"), await I(
|
|
60
|
+
n("正在初始化工作区…"), await I(s);
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
J(() => {
|
|
62
63
|
if (!g.current) {
|
|
63
64
|
if (g.current = !0, o && e == null) {
|
|
64
65
|
l("projectId 无效,请传入正整数");
|
|
@@ -101,16 +102,16 @@ function nt() {
|
|
|
101
102
|
}
|
|
102
103
|
})();
|
|
103
104
|
}
|
|
104
|
-
}, [
|
|
105
|
+
}, [i, e, o, a, u]);
|
|
105
106
|
const S = j(() => e != null && a ? `工单 ${a} · 工程 ${e}` : e != null ? `工程 ${e}` : a ? `工单 ${a}` : "", [e, a]);
|
|
106
107
|
return h ? /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ c(
|
|
107
|
-
|
|
108
|
+
D,
|
|
108
109
|
{
|
|
109
110
|
status: "error",
|
|
110
111
|
title: "无法打开工程",
|
|
111
112
|
subTitle: h,
|
|
112
113
|
extra: /* @__PURE__ */ c(
|
|
113
|
-
|
|
114
|
+
R,
|
|
114
115
|
{
|
|
115
116
|
type: "primary",
|
|
116
117
|
onClick: () => y.replace(
|
|
@@ -121,7 +122,7 @@ function nt() {
|
|
|
121
122
|
)
|
|
122
123
|
}
|
|
123
124
|
) }) : /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ _("div", { className: "from-ticket-page__panel", children: [
|
|
124
|
-
/* @__PURE__ */ c(
|
|
125
|
+
/* @__PURE__ */ c(U, { size: "large" }),
|
|
125
126
|
/* @__PURE__ */ c("p", { className: "from-ticket-page__step", children: P }),
|
|
126
127
|
S ? /* @__PURE__ */ c("p", { className: "from-ticket-page__hint", children: S }) : null,
|
|
127
128
|
k.length > 0 ? /* @__PURE__ */ c("ul", { className: "from-ticket-page__done-list", children: k.filter((t) => t.trim().length > 0).map((t, r) => /* @__PURE__ */ _(
|
|
@@ -129,7 +130,7 @@ function nt() {
|
|
|
129
130
|
{
|
|
130
131
|
className: "from-ticket-page__done-item",
|
|
131
132
|
children: [
|
|
132
|
-
/* @__PURE__ */ c(
|
|
133
|
+
/* @__PURE__ */ c(b, { className: "from-ticket-page__done-icon" }),
|
|
133
134
|
/* @__PURE__ */ c("span", { children: t })
|
|
134
135
|
]
|
|
135
136
|
},
|
|
@@ -138,5 +139,5 @@ function nt() {
|
|
|
138
139
|
] }) });
|
|
139
140
|
}
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
ct as default
|
|
142
143
|
};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { AppLayout as
|
|
2
|
-
import { a as
|
|
3
|
-
import { C as F, E as J,
|
|
4
|
-
import { jsxs as a, jsx as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { Card as
|
|
7
|
-
import { ReloadOutlined as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const G = T, S = {
|
|
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-CZp1-5DE.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-CZp1-5DE.js";
|
|
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 "./index-DL3Nsor4.js";
|
|
9
|
+
const G = y, A = {
|
|
11
10
|
LEADER: "red",
|
|
12
11
|
WORKER: "blue",
|
|
13
12
|
OBSERVER: "default"
|
|
14
13
|
};
|
|
15
14
|
function N() {
|
|
16
|
-
const [
|
|
15
|
+
const [r] = i(!1), [d] = i([]);
|
|
17
16
|
return /* @__PURE__ */ a(
|
|
18
|
-
|
|
17
|
+
h,
|
|
19
18
|
{
|
|
20
19
|
title: /* @__PURE__ */ a("span", { children: [
|
|
21
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ t(b, { style: { marginRight: 8 } }),
|
|
22
21
|
"Agent 群组 IM"
|
|
23
22
|
] }),
|
|
24
23
|
extra: /* @__PURE__ */ a(R, { children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), loading: r, children: "刷新" }),
|
|
25
|
+
/* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
|
|
27
26
|
] }),
|
|
28
27
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ t(
|
|
30
29
|
x,
|
|
31
30
|
{
|
|
32
31
|
type: "info",
|
|
@@ -36,12 +35,12 @@ function N() {
|
|
|
36
35
|
description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
|
|
37
36
|
}
|
|
38
37
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
g,
|
|
41
40
|
{
|
|
42
41
|
rowKey: "teamCode",
|
|
43
42
|
size: "small",
|
|
44
|
-
loading:
|
|
43
|
+
loading: r,
|
|
45
44
|
dataSource: d,
|
|
46
45
|
columns: [
|
|
47
46
|
{ title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
|
|
@@ -50,13 +49,13 @@ function N() {
|
|
|
50
49
|
title: "我的角色",
|
|
51
50
|
dataIndex: "role",
|
|
52
51
|
width: 120,
|
|
53
|
-
render: (
|
|
52
|
+
render: (o) => /* @__PURE__ */ t(c, { color: A[o] || "default", children: o || "-" })
|
|
54
53
|
},
|
|
55
54
|
{ title: "成员数", dataIndex: "memberCount", width: 100 },
|
|
56
55
|
{ title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
|
|
57
56
|
{ title: "更新时间", dataIndex: "updatedAt", width: 180 }
|
|
58
57
|
],
|
|
59
|
-
locale: { emptyText:
|
|
58
|
+
locale: { emptyText: r ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "暂无群组" }) },
|
|
60
59
|
pagination: { pageSize: 20 }
|
|
61
60
|
}
|
|
62
61
|
)
|
|
@@ -64,7 +63,7 @@ function N() {
|
|
|
64
63
|
}
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
|
-
const
|
|
66
|
+
const M = {
|
|
68
67
|
CREATING: { text: "创建中", color: "processing" },
|
|
69
68
|
RUNNING: { text: "运行中", color: "success" },
|
|
70
69
|
STOPPED: { text: "已停止", color: "default" },
|
|
@@ -74,31 +73,31 @@ const A = {
|
|
|
74
73
|
SHARED: { text: "SHARED 模式", color: "purple" }
|
|
75
74
|
};
|
|
76
75
|
function U() {
|
|
77
|
-
const [
|
|
78
|
-
|
|
76
|
+
const [r, d] = i([]), [l, o] = i(!1), [u, p] = i(null), m = async () => {
|
|
77
|
+
o(!0), p(null);
|
|
79
78
|
try {
|
|
80
79
|
d([]);
|
|
81
|
-
} catch (
|
|
82
|
-
p((
|
|
80
|
+
} catch (e) {
|
|
81
|
+
p((e == null ? void 0 : e.message) || "加载失败");
|
|
83
82
|
} finally {
|
|
84
|
-
|
|
83
|
+
o(!1);
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
|
-
return
|
|
86
|
+
return E(() => {
|
|
88
87
|
m();
|
|
89
88
|
}, []), /* @__PURE__ */ a(
|
|
90
|
-
|
|
89
|
+
h,
|
|
91
90
|
{
|
|
92
91
|
title: /* @__PURE__ */ a("span", { children: [
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ t(S, { style: { marginRight: 8 } }),
|
|
94
93
|
"WebIDE 容器管理"
|
|
95
94
|
] }),
|
|
96
95
|
extra: /* @__PURE__ */ a(R, { children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
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" })
|
|
99
98
|
] }),
|
|
100
99
|
children: [
|
|
101
|
-
u && /* @__PURE__ */
|
|
100
|
+
u && /* @__PURE__ */ t(
|
|
102
101
|
x,
|
|
103
102
|
{
|
|
104
103
|
type: "warning",
|
|
@@ -108,22 +107,22 @@ function U() {
|
|
|
108
107
|
description: u
|
|
109
108
|
}
|
|
110
109
|
),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
g,
|
|
113
112
|
{
|
|
114
113
|
rowKey: "containerId",
|
|
115
114
|
size: "small",
|
|
116
|
-
loading:
|
|
117
|
-
dataSource:
|
|
115
|
+
loading: l,
|
|
116
|
+
dataSource: r,
|
|
118
117
|
columns: [
|
|
119
118
|
{ title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
|
|
120
119
|
{
|
|
121
120
|
title: "模式",
|
|
122
121
|
dataIndex: "mode",
|
|
123
122
|
width: 120,
|
|
124
|
-
render: (
|
|
125
|
-
const
|
|
126
|
-
return /* @__PURE__ */
|
|
123
|
+
render: (e) => {
|
|
124
|
+
const n = C[e] || { text: e, color: "default" };
|
|
125
|
+
return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
|
|
127
126
|
}
|
|
128
127
|
},
|
|
129
128
|
{ title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
|
|
@@ -132,15 +131,15 @@ function U() {
|
|
|
132
131
|
title: "状态",
|
|
133
132
|
dataIndex: "status",
|
|
134
133
|
width: 120,
|
|
135
|
-
render: (
|
|
136
|
-
const
|
|
137
|
-
return /* @__PURE__ */
|
|
134
|
+
render: (e) => {
|
|
135
|
+
const n = M[e] || { text: e, color: "default" };
|
|
136
|
+
return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
|
|
138
137
|
}
|
|
139
138
|
},
|
|
140
139
|
{ title: "创建时间", dataIndex: "createdAt", width: 180 }
|
|
141
140
|
],
|
|
142
141
|
locale: {
|
|
143
|
-
emptyText:
|
|
142
|
+
emptyText: l ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
|
|
144
143
|
},
|
|
145
144
|
pagination: { pageSize: 20 },
|
|
146
145
|
scroll: { x: 1e3 }
|
|
@@ -152,32 +151,28 @@ function U() {
|
|
|
152
151
|
}
|
|
153
152
|
export {
|
|
154
153
|
N as AgentTeamIM,
|
|
155
|
-
|
|
154
|
+
k as AppLayout,
|
|
156
155
|
F as CurlImportModal,
|
|
157
|
-
|
|
156
|
+
dt as DebugPlayground,
|
|
158
157
|
J as EndpointsTab,
|
|
159
158
|
Q as EnvironmentsTab,
|
|
160
159
|
v as ErrorBoundary,
|
|
161
160
|
H as LoginPage,
|
|
162
|
-
X as
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
ae as Overview,
|
|
170
|
-
oe as RecordingsTab,
|
|
171
|
-
re as RequestLogsTab,
|
|
172
|
-
ie as ScenariosTab,
|
|
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,
|
|
173
168
|
K as StatusTag,
|
|
174
|
-
|
|
169
|
+
rt as TestCasesTab,
|
|
175
170
|
U as Webide,
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
y as authRequest,
|
|
172
|
+
ot as createRequest,
|
|
178
173
|
G as ctcRequest,
|
|
179
|
-
|
|
174
|
+
nt as default,
|
|
180
175
|
_ as defaultStatusMap,
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
it as request,
|
|
177
|
+
lt as setupInterceptors
|
|
183
178
|
};
|