@yuku123/z-team-component 0.2.52 → 0.2.53
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-nPAmM1X0.js → ChangeLogView-Dm7C3S14.js} +1 -1
- package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-y1NfPcHG.js} +506 -461
- package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-Btw9iVOl.js} +1 -1
- package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-wF0OrgfD.js} +2 -2
- package/dist/ScheduledTasks-CzzgG3n8.js +9417 -0
- package/dist/{SystemShell-4OiqvM11.js → SystemShell-BSCmnOxf.js} +1 -1
- package/dist/{admin-logs-D6HtRcK6.js → admin-logs-vR556ORQ.js} +2 -2
- package/dist/{api-BT968Uwc.js → api-Bs0qYxjL.js} +1 -1
- package/dist/{api-C78tCfne.js → api-Jfnj1ybB.js} +287 -270
- package/dist/createWorkspaceWsHandler-obuYWncQ.js +12820 -0
- package/dist/{index-BAY37t4f.js → index-B3LhKHBx.js} +4 -4
- package/dist/{index-CR3sbzOU.js → index-BNShjps9.js} +7 -7
- package/dist/{index-DxFZKDq-.js → index-BXiuxhgz.js} +6 -6
- package/dist/{index-CdlfWFvS.js → index-BbkE7r8M.js} +1 -1
- package/dist/index-BtWtVMgY.js +474 -0
- package/dist/{index-DpcrvKsK.js → index-C5WSr14Z.js} +1 -1
- package/dist/{index-D9AqC2O-.js → index-CYViRXQo.js} +1 -1
- package/dist/{index-Bdu31aRV.js → index-Ck_D109M.js} +2 -2
- package/dist/index-CnEWSsKt.js +582 -0
- package/dist/{index-B11_fFjX.js → index-CxrBnzg2.js} +1 -1
- package/dist/index-DRrBkbr_.js +100 -0
- package/dist/index-DUmgSTQu.js +9179 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/{index-LwKUkzKI.js → index-Di_vaPxC.js} +3 -3
- package/dist/{index-B_C7H9WL.js → index-Dj5_8ulz.js} +5 -5
- package/dist/{index-qK6pyAGy.js → index-DmZdGNnh.js} +4 -4
- package/dist/index-DqUOCs_a.js +242 -0
- package/dist/{index-DFY3lzq0.js → index-DroZE6Bv.js} +3 -3
- package/dist/{index-BAK7UDvY.js → index-JLtVgwZv.js} +1 -1
- package/dist/index-Onqu_VQO.js +2828 -0
- package/dist/index-Pk7OkJrk.js +1133 -0
- package/dist/index-WIsi8fln.js +339 -0
- package/dist/{index-ClA0896K.js → index-gxEdw4X4.js} +4 -4
- package/dist/index-tADa82Fa.js +130 -0
- package/dist/{index-BX1Wd9x9.js → index-yS7XIUis.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-D5dhjbgg.js → instance-B0DZJnee.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/schedule-D3jTrI1R.js +497 -0
- package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-CbqHaohM.js} +1 -1
- package/dist/{sso-user-Bi9_l9yi.js → sso-user-Dw_wwYa-.js} +1 -1
- package/dist/{training-Ba09KItE.js → training-CETtJBNQ.js} +1 -1
- package/dist/{useAppStore-ibJyVIAX.js → useAppStore-s-CLa-nF.js} +19 -19
- package/dist/webide-6j4OVoNA.js +7845 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
- package/dist/index-7nSly-MA.js +0 -405
- package/dist/index-B3-0eXYQ.js +0 -844
- package/dist/index-Cp3DAwNx.js +0 -13862
- package/dist/index-NaBR2aQE.js +0 -6685
- package/dist/index-UsGqMo11.js +0 -848
- package/dist/schedule-C-4ksDPw.js +0 -239
- package/dist/webide-RsFP9pHM.js +0 -8087
package/dist/index-7nSly-MA.js
DELETED
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
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-Bi9_l9yi.js";
|
|
4
|
-
import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
|
-
import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
|
|
6
|
-
import B from "query-string";
|
|
7
|
-
import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
|
|
8
|
-
import { useLocation as be } from "react-router-dom";
|
|
9
|
-
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as ke, C as we } from "./createWorkspaceWsHandler-mq-UTF2O.js";
|
|
11
|
-
import { u as r, f as Se, T as ve } from "./useAppStore-ibJyVIAX.js";
|
|
12
|
-
import { o as ye, l as Ne, m as je, n as Ce, e as ee } from "./api-C78tCfne.js";
|
|
13
|
-
import { l as Pe, j as Te } from "./instance-D5dhjbgg.js";
|
|
14
|
-
/* empty css */
|
|
15
|
-
import { s as xe } from "./admin-logs-D6HtRcK6.js";
|
|
16
|
-
function Ie(p, d) {
|
|
17
|
-
N(() => {
|
|
18
|
-
if (p == null)
|
|
19
|
-
return;
|
|
20
|
-
r.getState().setObserverStatus(null);
|
|
21
|
-
const i = () => {
|
|
22
|
-
const m = r.getState();
|
|
23
|
-
m.loadMessages().catch(() => {
|
|
24
|
-
}), m.loadRunningExecutions().catch(() => {
|
|
25
|
-
});
|
|
26
|
-
const u = m.activeTaskChat;
|
|
27
|
-
u != null && u.taskId && m.loadTaskMessages(u.taskId).catch(() => {
|
|
28
|
-
}), m.loadFileTree(void 0, !0).catch(() => {
|
|
29
|
-
});
|
|
30
|
-
}, f = ye((m) => {
|
|
31
|
-
r.getState().setWsState(m);
|
|
32
|
-
});
|
|
33
|
-
Ne(p, d, i), r.getState().loadRunningExecutions().catch(() => {
|
|
34
|
-
});
|
|
35
|
-
const n = r.getState(), { handler: E, dispose: g } = ke({
|
|
36
|
-
projectId: p,
|
|
37
|
-
token: d,
|
|
38
|
-
updateExecution: n.updateExecution,
|
|
39
|
-
registerExecutionStart: n.registerExecutionStart,
|
|
40
|
-
clearExecution: n.clearExecution,
|
|
41
|
-
applyExecutionCancelled: n.applyExecutionCancelled,
|
|
42
|
-
addMessage: n.addMessage,
|
|
43
|
-
addTaskMessage: n.addTaskMessage,
|
|
44
|
-
deleteMessage: n.deleteMessage,
|
|
45
|
-
updateMessageReadStatus: n.updateMessageReadStatus,
|
|
46
|
-
loadFileTree: n.loadFileTree
|
|
47
|
-
}), w = je(E);
|
|
48
|
-
return () => {
|
|
49
|
-
w(), g(), Ce(), f(), r.getState().setObserverStatus(null);
|
|
50
|
-
};
|
|
51
|
-
}, [p, d]);
|
|
52
|
-
}
|
|
53
|
-
const Le = `${window.publicPath ?? "/"}logo.svg`;
|
|
54
|
-
function te() {
|
|
55
|
-
const { pathname: p, search: d } = A.location, i = B.parse(d);
|
|
56
|
-
if (!i.projectId && !i.project_id)
|
|
57
|
-
return;
|
|
58
|
-
delete i.projectId, delete i.project_id;
|
|
59
|
-
const f = B.stringify(i);
|
|
60
|
-
A.replace({
|
|
61
|
-
pathname: p,
|
|
62
|
-
search: f ? `?${f}` : ""
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function He() {
|
|
66
|
-
const p = be(), [d, i] = y("list"), [f, n] = y("chat"), [E, g] = y("team"), [w, m] = y(""), [u, Q] = y(!1), [ae, I] = y(!1), {
|
|
67
|
-
currentProject: S,
|
|
68
|
-
currentUser: W,
|
|
69
|
-
projects: L,
|
|
70
|
-
loading: re,
|
|
71
|
-
members: R,
|
|
72
|
-
token: ne,
|
|
73
|
-
loadProjects: z,
|
|
74
|
-
expandProject: H,
|
|
75
|
-
updateCurrentUser: j,
|
|
76
|
-
requestChatScrollBottom: k
|
|
77
|
-
} = r(), b = Y(() => {
|
|
78
|
-
const e = B.parse(p.search), a = String(e.projectId ?? e.project_id ?? "").trim();
|
|
79
|
-
if (!a)
|
|
80
|
-
return null;
|
|
81
|
-
const o = Number(a);
|
|
82
|
-
return Number.isFinite(o) && o > 0 ? o : null;
|
|
83
|
-
}, [p.search]), O = M(!1), C = M(!1), P = M(!1), V = M(b);
|
|
84
|
-
V.current = b, Ie(S == null ? void 0 : S.id, ne), N(() => (document.body.classList.add("team-phone-workspace-route"), () => {
|
|
85
|
-
document.body.classList.remove("team-phone-workspace-route");
|
|
86
|
-
}), []);
|
|
87
|
-
const oe = G(
|
|
88
|
-
(e) => {
|
|
89
|
-
n("chat"), g(e), k(e, !0);
|
|
90
|
-
},
|
|
91
|
-
[k]
|
|
92
|
-
);
|
|
93
|
-
N(() => {
|
|
94
|
-
let e = !1, a = 0;
|
|
95
|
-
const o = 100;
|
|
96
|
-
let T = !1, F = 0;
|
|
97
|
-
const _ = 3, v = (h) => {
|
|
98
|
-
const s = r.getState().token;
|
|
99
|
-
if (V.current != null) {
|
|
100
|
-
e || (j(J(h)), Q(!0)), ee().then((U) => {
|
|
101
|
-
e || j(U);
|
|
102
|
-
}).catch(() => {
|
|
103
|
-
!e && s && (localStorage.removeItem("z_team_token"), r.setState({ token: "" }));
|
|
104
|
-
});
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
ee().then((U) => {
|
|
108
|
-
e || j(U);
|
|
109
|
-
}).catch(() => {
|
|
110
|
-
e || (s && (localStorage.removeItem("z_team_token"), r.setState({ token: "" })), j(J(h)));
|
|
111
|
-
}).finally(() => {
|
|
112
|
-
e || Q(!0);
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
return (() => {
|
|
116
|
-
if (e)
|
|
117
|
-
return;
|
|
118
|
-
const h = async () => {
|
|
119
|
-
if (e)
|
|
120
|
-
return;
|
|
121
|
-
let s = le();
|
|
122
|
-
if ((!s || !K(s)) && !T) {
|
|
123
|
-
T = !0;
|
|
124
|
-
try {
|
|
125
|
-
const c = await ie();
|
|
126
|
-
c.kind === "authenticated" ? s = c.user : c.kind === "unauthenticated" && (F += 1);
|
|
127
|
-
} catch {
|
|
128
|
-
} finally {
|
|
129
|
-
T = !1;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
if (s && K(s)) {
|
|
133
|
-
v(s);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (F >= _) {
|
|
137
|
-
$();
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (a += 1, a >= o) {
|
|
141
|
-
$();
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
window.setTimeout(() => {
|
|
145
|
-
h();
|
|
146
|
-
}, 150);
|
|
147
|
-
};
|
|
148
|
-
h();
|
|
149
|
-
})(), () => {
|
|
150
|
-
e = !0;
|
|
151
|
-
};
|
|
152
|
-
}, [j]), N(() => {
|
|
153
|
-
W && z();
|
|
154
|
-
}, [W, z]), N(() => {
|
|
155
|
-
var o;
|
|
156
|
-
if (!u || b != null || d === "project" || P.current)
|
|
157
|
-
return;
|
|
158
|
-
const e = r.getState(), a = (o = e.currentProject) == null ? void 0 : o.id;
|
|
159
|
-
a == null || !e.expandedProjectIds.includes(String(a)) || (i("project"), n("chat"), g("team"), k("team", !0));
|
|
160
|
-
}, [u, b, d, k]);
|
|
161
|
-
const se = G(
|
|
162
|
-
async (e) => {
|
|
163
|
-
P.current = !1, I(!0);
|
|
164
|
-
try {
|
|
165
|
-
await H(e), i("project"), n("chat"), g("team");
|
|
166
|
-
const a = r.getState();
|
|
167
|
-
a.currentProject && await a.refreshProjectPanels(
|
|
168
|
-
String(a.currentProject.id),
|
|
169
|
-
a.projectSwitchSeq,
|
|
170
|
-
!1
|
|
171
|
-
), k("team", !0);
|
|
172
|
-
} finally {
|
|
173
|
-
I(!1);
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
[H, k]
|
|
177
|
-
);
|
|
178
|
-
N(() => {
|
|
179
|
-
var _;
|
|
180
|
-
if (!u || b == null || O.current || C.current)
|
|
181
|
-
return;
|
|
182
|
-
const e = b == null ? "" : String(b), a = r.getState();
|
|
183
|
-
if (String(((_ = a.currentProject) == null ? void 0 : _.id) ?? "") === e && a.expandedProjectIds.includes(e)) {
|
|
184
|
-
O.current = !0, te(), P.current = !1, i("project"), n("chat"), g("team"), r.getState().loadMessages().catch(() => {
|
|
185
|
-
});
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
let o = !1;
|
|
189
|
-
C.current = !0, I(!0);
|
|
190
|
-
const T = async () => {
|
|
191
|
-
const v = Date.now() + 4e3;
|
|
192
|
-
for (; Date.now() < v; ) {
|
|
193
|
-
if (o)
|
|
194
|
-
return;
|
|
195
|
-
const x = r.getState();
|
|
196
|
-
if (!x.loading || x.projects.length > 0)
|
|
197
|
-
return;
|
|
198
|
-
await new Promise((h) => setTimeout(h, 50));
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
return (async () => {
|
|
202
|
-
try {
|
|
203
|
-
if (await T(), o)
|
|
204
|
-
return;
|
|
205
|
-
let {
|
|
206
|
-
token: v,
|
|
207
|
-
projects: x,
|
|
208
|
-
expandProject: h
|
|
209
|
-
} = r.getState(), s = x.find((c) => c.id === e);
|
|
210
|
-
if (!s) {
|
|
211
|
-
const c = await Pe(e, v);
|
|
212
|
-
if (o)
|
|
213
|
-
return;
|
|
214
|
-
if (c.status === "NOT_FOUND" || !c.scenarioInstance) {
|
|
215
|
-
ge.info("无此工程");
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
if (s = await Te(e, v), o)
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (o || !s)
|
|
222
|
-
return;
|
|
223
|
-
if (O.current = !0, await h(s), !o) {
|
|
224
|
-
P.current = !1, i("project"), n("chat"), g("team"), te();
|
|
225
|
-
const c = r.getState();
|
|
226
|
-
c.currentProject && await c.refreshProjectPanels(
|
|
227
|
-
String(c.currentProject.id),
|
|
228
|
-
c.projectSwitchSeq,
|
|
229
|
-
!1
|
|
230
|
-
), k("team", !0);
|
|
231
|
-
}
|
|
232
|
-
} catch {
|
|
233
|
-
} finally {
|
|
234
|
-
I(!1), C.current = !1, r.getState().loadProjects();
|
|
235
|
-
}
|
|
236
|
-
})(), () => {
|
|
237
|
-
o = !0, C.current && (C.current = !1);
|
|
238
|
-
};
|
|
239
|
-
}, [u, b]);
|
|
240
|
-
const Z = Y(() => {
|
|
241
|
-
const e = w.trim().toLowerCase();
|
|
242
|
-
return e ? L.filter(
|
|
243
|
-
(a) => a.name.toLowerCase().includes(e) || (a.scenario_name ?? "").toLowerCase().includes(e)
|
|
244
|
-
) : L;
|
|
245
|
-
}, [w, L]), ce = G(() => {
|
|
246
|
-
P.current = !0, i("list"), n("chat");
|
|
247
|
-
}, []);
|
|
248
|
-
return !u || !W ? /* @__PURE__ */ t("div", { className: "phone-workspace phone-workspace-loading", children: /* @__PURE__ */ t(q, { description: "正在接入 4A 统一登录…" }) }) : /* @__PURE__ */ l("div", { className: "phone-workspace", children: [
|
|
249
|
-
/* @__PURE__ */ l("header", { className: "phone-workspace-header", children: [
|
|
250
|
-
d === "project" ? /* @__PURE__ */ t(
|
|
251
|
-
D,
|
|
252
|
-
{
|
|
253
|
-
type: "text",
|
|
254
|
-
icon: /* @__PURE__ */ t(de, {}),
|
|
255
|
-
className: "phone-workspace-back",
|
|
256
|
-
onClick: ce,
|
|
257
|
-
"aria-label": "返回项目列表"
|
|
258
|
-
}
|
|
259
|
-
) : /* @__PURE__ */ t(
|
|
260
|
-
"img",
|
|
261
|
-
{
|
|
262
|
-
src: Le,
|
|
263
|
-
alt: "Z-Team",
|
|
264
|
-
className: "phone-workspace-logo",
|
|
265
|
-
onClick: () => A.push("/welcome"),
|
|
266
|
-
style: { cursor: "pointer" }
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
/* @__PURE__ */ t("div", { className: "phone-workspace-header-title", children: d === "list" ? /* @__PURE__ */ t(
|
|
270
|
-
"span",
|
|
271
|
-
{
|
|
272
|
-
className: "phone-workspace-brand",
|
|
273
|
-
onClick: () => A.push("/welcome"),
|
|
274
|
-
style: { cursor: "pointer" },
|
|
275
|
-
children: "Z-Team"
|
|
276
|
-
}
|
|
277
|
-
) : /* @__PURE__ */ t("span", { className: "phone-workspace-project-name", children: (S == null ? void 0 : S.name) ?? "工程" }) }),
|
|
278
|
-
/* @__PURE__ */ l("div", { className: "phone-workspace-header-actions", children: [
|
|
279
|
-
d === "list" ? /* @__PURE__ */ t(
|
|
280
|
-
D,
|
|
281
|
-
{
|
|
282
|
-
type: "text",
|
|
283
|
-
icon: /* @__PURE__ */ t(ue, {}),
|
|
284
|
-
onClick: () => {
|
|
285
|
-
},
|
|
286
|
-
"aria-label": "新建"
|
|
287
|
-
}
|
|
288
|
-
) : null,
|
|
289
|
-
/* @__PURE__ */ t(
|
|
290
|
-
D,
|
|
291
|
-
{
|
|
292
|
-
type: "text",
|
|
293
|
-
icon: /* @__PURE__ */ t(pe, {}),
|
|
294
|
-
onClick: () => {
|
|
295
|
-
xe();
|
|
296
|
-
},
|
|
297
|
-
"aria-label": "退出"
|
|
298
|
-
}
|
|
299
|
-
)
|
|
300
|
-
] })
|
|
301
|
-
] }),
|
|
302
|
-
/* @__PURE__ */ t("main", { className: "phone-workspace-main", children: d === "list" ? /* @__PURE__ */ l("div", { className: "phone-workspace-list", children: [
|
|
303
|
-
/* @__PURE__ */ t("div", { className: "phone-workspace-search", children: /* @__PURE__ */ t(
|
|
304
|
-
he,
|
|
305
|
-
{
|
|
306
|
-
allowClear: !0,
|
|
307
|
-
prefix: /* @__PURE__ */ t(me, {}),
|
|
308
|
-
placeholder: "搜索项目",
|
|
309
|
-
value: w,
|
|
310
|
-
onChange: (e) => m(e.target.value)
|
|
311
|
-
}
|
|
312
|
-
) }),
|
|
313
|
-
re && L.length === 0 ? /* @__PURE__ */ t("div", { className: "phone-workspace-list-loading", children: /* @__PURE__ */ t(q, { description: "加载项目…" }) }) : Z.length === 0 ? /* @__PURE__ */ t(
|
|
314
|
-
X,
|
|
315
|
-
{
|
|
316
|
-
description: w ? "无匹配项目" : "暂无项目",
|
|
317
|
-
className: "phone-workspace-empty"
|
|
318
|
-
}
|
|
319
|
-
) : /* @__PURE__ */ t("ul", { className: "phone-project-list", children: Z.map((e) => {
|
|
320
|
-
const a = Se(
|
|
321
|
-
e.created_at
|
|
322
|
-
);
|
|
323
|
-
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
|
|
324
|
-
"button",
|
|
325
|
-
{
|
|
326
|
-
type: "button",
|
|
327
|
-
className: "phone-project-item",
|
|
328
|
-
onClick: () => {
|
|
329
|
-
se(e);
|
|
330
|
-
},
|
|
331
|
-
children: [
|
|
332
|
-
/* @__PURE__ */ l("div", { className: "phone-project-item-main", children: [
|
|
333
|
-
/* @__PURE__ */ t("span", { className: "phone-project-item-name", children: e.name }),
|
|
334
|
-
e.scenario_name || a ? /* @__PURE__ */ l("div", { className: "phone-project-item-meta", children: [
|
|
335
|
-
e.scenario_name ? /* @__PURE__ */ t("span", { className: "phone-project-item-scenario", children: e.scenario_name }) : null,
|
|
336
|
-
a ? /* @__PURE__ */ t("span", { className: "phone-project-item-time", children: a }) : null
|
|
337
|
-
] }) : null
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ t(
|
|
340
|
-
fe,
|
|
341
|
-
{
|
|
342
|
-
color: e.role === "ADMIN" ? "blue" : "default",
|
|
343
|
-
className: "phone-project-item-tag",
|
|
344
|
-
children: e.role === "ADMIN" ? "我创建" : "参与"
|
|
345
|
-
}
|
|
346
|
-
)
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
) }, e.id);
|
|
350
|
-
}) })
|
|
351
|
-
] }) : /* @__PURE__ */ l("div", { className: "phone-workspace-detail", children: [
|
|
352
|
-
/* @__PURE__ */ l("div", { className: "phone-project-toolbar", children: [
|
|
353
|
-
/* @__PURE__ */ t("div", { className: "phone-project-toolbar-main", children: /* @__PURE__ */ t(
|
|
354
|
-
"button",
|
|
355
|
-
{
|
|
356
|
-
type: "button",
|
|
357
|
-
className: f === "chat" ? "phone-toolbar-tab phone-toolbar-active" : "phone-toolbar-tab",
|
|
358
|
-
onClick: () => oe("team"),
|
|
359
|
-
children: "协作"
|
|
360
|
-
}
|
|
361
|
-
) }),
|
|
362
|
-
/* @__PURE__ */ l(
|
|
363
|
-
"button",
|
|
364
|
-
{
|
|
365
|
-
type: "button",
|
|
366
|
-
className: f === "members" ? "phone-toolbar-tab phone-toolbar-members phone-toolbar-active" : "phone-toolbar-tab phone-toolbar-members",
|
|
367
|
-
onClick: () => n("members"),
|
|
368
|
-
children: [
|
|
369
|
-
"成员 (",
|
|
370
|
-
R.length,
|
|
371
|
-
")"
|
|
372
|
-
]
|
|
373
|
-
}
|
|
374
|
-
)
|
|
375
|
-
] }),
|
|
376
|
-
/* @__PURE__ */ t("div", { className: "phone-workspace-detail-body", children: f === "members" ? /* @__PURE__ */ t("ul", { className: "phone-member-list", children: R.length === 0 ? /* @__PURE__ */ t(X, { description: "暂无成员" }) : R.map((e) => /* @__PURE__ */ l("li", { className: "phone-member-item", children: [
|
|
377
|
-
/* @__PURE__ */ t("span", { className: "phone-member-avatar", children: e.member_type === "AGENT" ? "🤖" : "👤" }),
|
|
378
|
-
/* @__PURE__ */ l("div", { className: "phone-member-info", children: [
|
|
379
|
-
/* @__PURE__ */ t("span", { className: "phone-member-name", children: e.display_name }),
|
|
380
|
-
/* @__PURE__ */ l("span", { className: "phone-member-meta", children: [
|
|
381
|
-
e.member_type === "AGENT" ? "Agent" : "成员",
|
|
382
|
-
" ·",
|
|
383
|
-
" ",
|
|
384
|
-
e.role
|
|
385
|
-
] })
|
|
386
|
-
] })
|
|
387
|
-
] }, e.id)) }) : /* @__PURE__ */ t("div", { className: "phone-chat-host", children: /* @__PURE__ */ t(
|
|
388
|
-
we,
|
|
389
|
-
{
|
|
390
|
-
hideTabs: !0,
|
|
391
|
-
activeTab: E,
|
|
392
|
-
onActiveTabChange: (e) => (
|
|
393
|
-
// @ts-expect-error phase1 宽松化:tab 类型比 chatTab="team" 宽,业务代码未启用 content 模式
|
|
394
|
-
g(e)
|
|
395
|
-
)
|
|
396
|
-
}
|
|
397
|
-
) }) })
|
|
398
|
-
] }) }),
|
|
399
|
-
ae ? /* @__PURE__ */ t("div", { className: "phone-workspace-overlay", children: /* @__PURE__ */ t(q, { description: "正在打开工程…" }) }) : null,
|
|
400
|
-
/* @__PURE__ */ t(ve, {})
|
|
401
|
-
] });
|
|
402
|
-
}
|
|
403
|
-
export {
|
|
404
|
-
He as default
|
|
405
|
-
};
|