@yuku123/z-team-component 0.2.106 → 0.2.107
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-Mn5LSUvJ.js → ChangeLogView-BhvD1usg.js} +1 -1
- package/dist/{ComponentDoc-BKGd6D6u.js → ComponentDoc-Dbog-ROg.js} +3 -3
- package/dist/{InvitationManagementPage-DHORbfXF.js → InvitationManagementPage-FpWSld69.js} +1 -1
- package/dist/{OnboardingPage-ChIsu-TY.js → OnboardingPage-CEB7EZD8.js} +2 -2
- package/dist/{ScheduledTasks-CorjHXG-.js → ScheduledTasks-DMx7-HAn.js} +6 -6
- package/dist/SystemShell-Dlpy5DZH.js +712 -0
- package/dist/{admin-logs-Ckzi7TeC.js → admin-logs-HL0SNlQ5.js} +1 -1
- package/dist/{api-BIwuQUnn.js → api-C-Y_mxLq.js} +1 -1
- package/dist/{api-DWN5lt_h.js → api-Cgf9Zvk8.js} +1 -1
- package/dist/{createWorkspaceWsHandler-CZ6H2AZV.js → createWorkspaceWsHandler-C4AE3shS.js} +3 -3
- package/dist/{index-DJl3h5Bg.js → index-1-xc0Fmq.js} +1 -1
- package/dist/{index-715e6ItU.js → index-BBaPF4oF.js} +8 -8
- package/dist/{index-BVhOg_hh.js → index-BSyFSAmv.js} +5 -5
- package/dist/{index-CxDonxJ5.js → index-BYyuwkoJ.js} +3 -3
- package/dist/{index-T_vi7gwn.js → index-BZpOPuCa.js} +1 -1
- package/dist/{index-DFVMc2Wx.js → index-BbMM1410.js} +2 -2
- package/dist/{index--JKduFbf.js → index-BrfH3igf.js} +3 -3
- package/dist/{index-BWpXdOkG.js → index-BuUjKN5w.js} +1 -1
- package/dist/{index-C8ylej1n.js → index-CAvY86GA.js} +1 -1
- package/dist/{index-DPzDdcFg.js → index-CV2D2UQv.js} +4 -4
- package/dist/{index-ioMD3Wyv.js → index-CnHOeSAo.js} +2 -2
- package/dist/{index-CH56FdB5.js → index-Ct89In-K.js} +2 -2
- package/dist/{index-DTx26k4L.js → index-CtX68AZj.js} +2 -2
- package/dist/{index-D9uZ2Jjj.js → index-CwRr3k-Y.js} +1 -1
- package/dist/{index-VEeHoEbx.js → index-DK4iCG0v.js} +2 -2
- package/dist/{index-vdWWTTZg.js → index-DKbZVSzh.js} +3 -3
- package/dist/{index-BPSoaoFx.js → index-DalMaLkT.js} +6 -6
- package/dist/{index-DBBmrczh.js → index-Dd40mcAz.js} +3 -3
- package/dist/index-Dn29Q5QZ.js +143 -0
- package/dist/index-N2IBdYQH.js +394 -0
- package/dist/{index-DG9KRcB7.js → index-d2s8WYki.js} +6 -6
- package/dist/{index-kAxFJq-Q.js → index-j1byhHWV.js} +3 -3
- package/dist/{index-2iqK5Tkw.js → index-kdesqA-H.js} +2 -2
- package/dist/{index-CSagljyv.js → index-n6e49cm3.js} +3 -3
- package/dist/{index-D1s4BGKe.js → index-nnLPmHli.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{instance-CUl18UjH.js → instance-DmL5Z2wc.js} +1 -1
- package/dist/{menuPermission-rZ0KSqFi.js → menuPermission-Bu40OObn.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BEsgdoRU.js → send-default-agent-team-message-DPRCcmZq.js} +1 -1
- package/dist/{sso-user-BW1vguVf.js → sso-user-DyqailS7.js} +1 -1
- package/dist/{training-Csa_y6lO.js → training-C5Fs8r2U.js} +1 -1
- package/dist/{webide-DBov-2vp.js → webide-DwbwUqaR.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/SystemShell-iAK8aCSW.js +0 -688
- package/dist/index-BoL8kFkC.js +0 -118
- package/dist/index-l4NMXF0T.js +0 -354
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { jsx as a, jsxs as o, Fragment as le } from "react/jsx-runtime";
|
|
2
|
+
import { SearchOutlined as de, RightOutlined as pe, TeamOutlined as ue, MessageOutlined as he } from "@ant-design/icons";
|
|
3
|
+
import { Input as _e, Spin as E, Empty as _, Tag as z, Button as me } from "antd";
|
|
4
|
+
import { useState as d, useRef as fe, useCallback as m, useEffect as q, useMemo as W } from "react";
|
|
5
|
+
import { u as f } from "./ComponentDoc-Dbog-ROg.js";
|
|
6
|
+
import { h as J } from "./history-BlrA1eaW.js";
|
|
7
|
+
import { C as ke } from "./createWorkspaceWsHandler-C4AE3shS.js";
|
|
8
|
+
import { l as ye, c as Ne } from "./api-Cgf9Zvk8.js";
|
|
9
|
+
const Te = "product-workspace", Q = "productCode";
|
|
10
|
+
function j(c) {
|
|
11
|
+
if (!c.ok) throw new Error(`产品接口失败 (${c.status})`);
|
|
12
|
+
return c.json();
|
|
13
|
+
}
|
|
14
|
+
async function be() {
|
|
15
|
+
const c = f.getState().token, i = await fetch(`/api/product/list${c ? `?token=${encodeURIComponent(c)}` : ""}`, {
|
|
16
|
+
credentials: "include",
|
|
17
|
+
headers: { Accept: "application/json" }
|
|
18
|
+
}), n = await j(i), r = Array.isArray(n) ? n : n == null ? void 0 : n.data;
|
|
19
|
+
return Array.isArray(r) ? r.map((p) => ({
|
|
20
|
+
...p,
|
|
21
|
+
productCode: String(p.productCode ?? p.code ?? ""),
|
|
22
|
+
name: String(p.name ?? p.productCode ?? p.code ?? "未命名")
|
|
23
|
+
})) : [];
|
|
24
|
+
}
|
|
25
|
+
async function we(c) {
|
|
26
|
+
try {
|
|
27
|
+
const i = await fetch(`/api/product/${encodeURIComponent(c)}`, {
|
|
28
|
+
credentials: "include",
|
|
29
|
+
headers: { Accept: "application/json" }
|
|
30
|
+
}), n = await j(i), r = (n == null ? void 0 : n.data) ?? n;
|
|
31
|
+
return r && typeof r == "object" ? { ...r, productCode: c } : null;
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function ve(c) {
|
|
37
|
+
try {
|
|
38
|
+
const i = await fetch(`/api/product/${encodeURIComponent(c)}/atelier/workspace`, {
|
|
39
|
+
credentials: "include",
|
|
40
|
+
headers: { Accept: "application/json" }
|
|
41
|
+
}), n = await j(i), r = (n == null ? void 0 : n.data) ?? n;
|
|
42
|
+
return r && typeof r == "object" && Array.isArray(r.files) ? r.files : Array.isArray(r) ? r : [];
|
|
43
|
+
} catch {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async function Ce(c, i) {
|
|
48
|
+
try {
|
|
49
|
+
const n = await fetch(
|
|
50
|
+
`/api/product/${encodeURIComponent(c)}/atelier/files/raw?path=${encodeURIComponent(i)}`,
|
|
51
|
+
{ credentials: "include", headers: { Accept: "text/html, application/json" } }
|
|
52
|
+
);
|
|
53
|
+
return n.ok ? await n.text() : null;
|
|
54
|
+
} catch {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function Pe(c) {
|
|
59
|
+
var r;
|
|
60
|
+
const i = (r = c.ext) == null ? void 0 : r.params;
|
|
61
|
+
if (!i || typeof i != "object") return null;
|
|
62
|
+
const n = i[Q];
|
|
63
|
+
return n == null ? null : String(n);
|
|
64
|
+
}
|
|
65
|
+
async function ge(c, i) {
|
|
66
|
+
try {
|
|
67
|
+
return (await ye(i)).filter((r) => Pe(r) === c);
|
|
68
|
+
} catch {
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async function Se(c, i, n) {
|
|
73
|
+
return Ne(
|
|
74
|
+
{ scenario_code: Te, name: i || `产品 ${c} 讨论组` },
|
|
75
|
+
n,
|
|
76
|
+
{ [Q]: c }
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
const Re = "_container_1kksp_5", Ae = "_libraryView_1kksp_14", Ge = "_libraryHeader_1kksp_22", Ie = "_libraryTitle_1kksp_34", Ee = "_librarySubtitle_1kksp_41", je = "_librarySearch_1kksp_47", $e = "_libraryBody_1kksp_52", Be = "_productGrid_1kksp_59", He = "_productCard_1kksp_65", Le = "_cardCode_1kksp_85", Fe = "_cardName_1kksp_98", xe = "_cardDesc_1kksp_107", Me = "_cardFoot_1kksp_118", Oe = "_cardEnter_1kksp_126", Ue = "_cardTag_1kksp_134", Ke = "_left_1kksp_140", Ve = "_leftHeader_1kksp_150", ze = "_leftTitleRow_1kksp_156", qe = "_leftTitle_1kksp_156", We = "_backBtn_1kksp_173", Je = "_sectionBar_1kksp_203", Qe = "_sectionTab_1kksp_213", Ye = "_sectionTabActive_1kksp_235", Xe = "_sectionIcon_1kksp_242", Ze = "_leftBody_1kksp_247", De = "_fileList_1kksp_258", et = "_fileTreeHint_1kksp_297", tt = "_fileRow_1kksp_303", at = "_fileRowActive_1kksp_317", ct = "_fileRowIcon_1kksp_321", nt = "_fileRowName_1kksp_326", rt = "_fileKindTag_1kksp_335", st = "_center_1kksp_343", it = "_centerFill_1kksp_352", ot = "_renderArea_1kksp_407", lt = "_renderIframe_1kksp_417", dt = "_renderCode_1kksp_423", pt = "_right_1kksp_436", ut = "_chatSide_1kksp_447", ht = "_chatSideHeader_1kksp_453", _t = "_chatSideTitle_1kksp_462", mt = "_chatGroupList_1kksp_471", ft = "_chatGroupRow_1kksp_480", kt = "_chatGroupRowActive_1kksp_494", yt = "_chatGroupName_1kksp_498", Nt = "_chatGroupTime_1kksp_507", Tt = "_chatPane_1kksp_514", bt = "_chatPaneHeader_1kksp_520", wt = "_chatPaneTitle_1kksp_529", vt = "_chatPaneBody_1kksp_538", t = {
|
|
80
|
+
container: Re,
|
|
81
|
+
libraryView: Ae,
|
|
82
|
+
libraryHeader: Ge,
|
|
83
|
+
libraryTitle: Ie,
|
|
84
|
+
librarySubtitle: Ee,
|
|
85
|
+
librarySearch: je,
|
|
86
|
+
libraryBody: $e,
|
|
87
|
+
productGrid: Be,
|
|
88
|
+
productCard: He,
|
|
89
|
+
cardCode: Le,
|
|
90
|
+
cardName: Fe,
|
|
91
|
+
cardDesc: xe,
|
|
92
|
+
cardFoot: Me,
|
|
93
|
+
cardEnter: Oe,
|
|
94
|
+
cardTag: Ue,
|
|
95
|
+
left: Ke,
|
|
96
|
+
leftHeader: Ve,
|
|
97
|
+
leftTitleRow: ze,
|
|
98
|
+
leftTitle: qe,
|
|
99
|
+
backBtn: We,
|
|
100
|
+
sectionBar: Je,
|
|
101
|
+
sectionTab: Qe,
|
|
102
|
+
sectionTabActive: Ye,
|
|
103
|
+
sectionIcon: Xe,
|
|
104
|
+
leftBody: Ze,
|
|
105
|
+
fileList: De,
|
|
106
|
+
fileTreeHint: et,
|
|
107
|
+
fileRow: tt,
|
|
108
|
+
fileRowActive: at,
|
|
109
|
+
fileRowIcon: ct,
|
|
110
|
+
fileRowName: nt,
|
|
111
|
+
fileKindTag: rt,
|
|
112
|
+
center: st,
|
|
113
|
+
centerFill: it,
|
|
114
|
+
renderArea: ot,
|
|
115
|
+
renderIframe: lt,
|
|
116
|
+
renderCode: dt,
|
|
117
|
+
right: pt,
|
|
118
|
+
chatSide: ut,
|
|
119
|
+
chatSideHeader: ht,
|
|
120
|
+
chatSideTitle: _t,
|
|
121
|
+
chatGroupList: mt,
|
|
122
|
+
chatGroupRow: ft,
|
|
123
|
+
chatGroupRowActive: kt,
|
|
124
|
+
chatGroupName: yt,
|
|
125
|
+
chatGroupTime: Nt,
|
|
126
|
+
chatPane: Tt,
|
|
127
|
+
chatPaneHeader: bt,
|
|
128
|
+
chatPaneTitle: wt,
|
|
129
|
+
chatPaneBody: vt
|
|
130
|
+
};
|
|
131
|
+
function Ct(c) {
|
|
132
|
+
return {
|
|
133
|
+
id: String(c.id),
|
|
134
|
+
name: c.name,
|
|
135
|
+
description: c.description ?? "",
|
|
136
|
+
workspace_path: c.workspacePath || c.name,
|
|
137
|
+
status: c.status,
|
|
138
|
+
created_at: c.createTime ?? "",
|
|
139
|
+
scenario_id: String(c.id),
|
|
140
|
+
scenario_code: c.scenarioCode,
|
|
141
|
+
scenario_name: c.scenarioName ?? c.name
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function Y(c) {
|
|
145
|
+
const i = c.toLowerCase();
|
|
146
|
+
return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(i) ? "design" : /\.(md|markdown|txt|docx?)$/.test(i) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(i) ? "code" : "other";
|
|
147
|
+
}
|
|
148
|
+
function X(c, i = "") {
|
|
149
|
+
const n = [];
|
|
150
|
+
for (const r of c ?? []) {
|
|
151
|
+
const p = r.path || `${i}${r.name ?? ""}`, N = r.name || p.split("/").pop() || p, l = r.type === "dir" || Array.isArray(r.children);
|
|
152
|
+
n.push({ path: p, name: N, dir: l, kind: Y(p), depth: i.split("/").filter(Boolean).length }), l && Array.isArray(r.children) && n.push(...X(r.children, `${p}/`));
|
|
153
|
+
}
|
|
154
|
+
return n;
|
|
155
|
+
}
|
|
156
|
+
function jt() {
|
|
157
|
+
const c = f((e) => e.token), i = f((e) => e.selectProject), [n, r] = d([]), [p, N] = d(!0), [l, $] = d(null), [s, B] = d(null), [Z, H] = d(!1), [L, F] = d([]), [D, x] = d(!1), [C, P] = d(null), [g, T] = d(null), [ee, te] = d("other"), [y, ae] = d(""), [b, S] = d([]), [M, R] = d(null), [w, O] = d(!1), [ce, v] = d("list"), h = fe(null), A = m(
|
|
158
|
+
async (e) => {
|
|
159
|
+
$(e), H(!0), P(null), T(null), v("list"), R(null);
|
|
160
|
+
const u = await we(e);
|
|
161
|
+
B(u);
|
|
162
|
+
const k = await ge(e, c);
|
|
163
|
+
S(k), x(!0);
|
|
164
|
+
const I = await ve(e);
|
|
165
|
+
F(I), x(!1);
|
|
166
|
+
},
|
|
167
|
+
[c]
|
|
168
|
+
), U = m(async () => {
|
|
169
|
+
N(!0);
|
|
170
|
+
try {
|
|
171
|
+
const e = await be();
|
|
172
|
+
r(e);
|
|
173
|
+
try {
|
|
174
|
+
const u = new URLSearchParams(window.location.search).get("product");
|
|
175
|
+
if (u) {
|
|
176
|
+
const k = e.find((I) => I.productCode === u);
|
|
177
|
+
if (k) {
|
|
178
|
+
A(k.productCode);
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
} catch {
|
|
183
|
+
}
|
|
184
|
+
} catch {
|
|
185
|
+
r([]);
|
|
186
|
+
} finally {
|
|
187
|
+
N(!1);
|
|
188
|
+
}
|
|
189
|
+
}, [A]);
|
|
190
|
+
q(() => {
|
|
191
|
+
U();
|
|
192
|
+
}, [U]);
|
|
193
|
+
const ne = m(() => {
|
|
194
|
+
if (!l) return;
|
|
195
|
+
const e = new URLSearchParams();
|
|
196
|
+
e.set("product", l), s != null && s.name && e.set("productName", s.name), J.push(`/lc/apps?${e.toString()}`);
|
|
197
|
+
}, [l, s == null ? void 0 : s.name]), re = m(() => {
|
|
198
|
+
if (!l) return;
|
|
199
|
+
const e = new URLSearchParams();
|
|
200
|
+
e.set("product", l), s != null && s.name && e.set("productName", s.name), J.push(`/test/qa/dashboard?${e.toString()}`);
|
|
201
|
+
}, [l, s == null ? void 0 : s.name]), se = m(() => {
|
|
202
|
+
$(null), H(!1), B(null), F([]), S([]), P(null), T(null), R(null), v("list"), h.current !== void 0 && f.setState({ currentProject: h.current }), h.current = void 0;
|
|
203
|
+
}, []), ie = m(
|
|
204
|
+
async (e) => {
|
|
205
|
+
if (!l) return;
|
|
206
|
+
P(e), T(null);
|
|
207
|
+
const u = Y(e);
|
|
208
|
+
te(u);
|
|
209
|
+
const k = await Ce(l, e);
|
|
210
|
+
T(k ?? "");
|
|
211
|
+
},
|
|
212
|
+
[l]
|
|
213
|
+
), G = m(
|
|
214
|
+
async (e) => {
|
|
215
|
+
if (!e) return;
|
|
216
|
+
const u = Ct(e);
|
|
217
|
+
h.current = f.getState().currentProject, R(e.id), v("chat"), i(u);
|
|
218
|
+
},
|
|
219
|
+
[i]
|
|
220
|
+
), oe = m(async () => {
|
|
221
|
+
if (!(!l || w)) {
|
|
222
|
+
O(!0);
|
|
223
|
+
try {
|
|
224
|
+
const e = await Se(
|
|
225
|
+
l,
|
|
226
|
+
`${(s == null ? void 0 : s.name) || l} · 讨论组 ${b.length + 1}`,
|
|
227
|
+
c
|
|
228
|
+
);
|
|
229
|
+
S((u) => [...u, e]), await G(e);
|
|
230
|
+
} finally {
|
|
231
|
+
O(!1);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}, [l, w, b.length, s == null ? void 0 : s.name, c, G]);
|
|
235
|
+
q(() => () => {
|
|
236
|
+
h.current !== void 0 && f.setState({ currentProject: h.current });
|
|
237
|
+
}, [M]);
|
|
238
|
+
const K = W(() => X(L), [L]), V = W(
|
|
239
|
+
() => n.filter((e) => !y || e.name.includes(y) || e.productCode.includes(y)),
|
|
240
|
+
[n, y]
|
|
241
|
+
);
|
|
242
|
+
return /* @__PURE__ */ a("div", { className: t.container, children: Z ? /* @__PURE__ */ o(le, { children: [
|
|
243
|
+
/* @__PURE__ */ o("aside", { className: t.left, children: [
|
|
244
|
+
/* @__PURE__ */ o("div", { className: t.leftHeader, children: [
|
|
245
|
+
/* @__PURE__ */ o("div", { className: t.leftTitleRow, children: [
|
|
246
|
+
/* @__PURE__ */ a("button", { type: "button", className: t.backBtn, onClick: se, title: "返回产品库", children: "←" }),
|
|
247
|
+
/* @__PURE__ */ a("span", { className: t.leftTitle, title: (s == null ? void 0 : s.name) || l || "", children: (s == null ? void 0 : s.name) || l })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ o("div", { className: t.sectionBar, children: [
|
|
250
|
+
/* @__PURE__ */ o("span", { className: `${t.sectionTab} ${t.sectionTabActive}`, children: [
|
|
251
|
+
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "📦" }),
|
|
252
|
+
" 产品"
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ o("button", { type: "button", className: t.sectionTab, onClick: ne, title: "进入研发工作台(z-lc)", children: [
|
|
255
|
+
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "💻" }),
|
|
256
|
+
" 研发"
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ o("button", { type: "button", className: t.sectionTab, onClick: re, title: "进入测试工作台(QA)", children: [
|
|
259
|
+
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "🧪" }),
|
|
260
|
+
" 测试"
|
|
261
|
+
] })
|
|
262
|
+
] })
|
|
263
|
+
] }),
|
|
264
|
+
/* @__PURE__ */ o("div", { className: t.leftBody, children: [
|
|
265
|
+
/* @__PURE__ */ a("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
|
|
266
|
+
D ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(E, { size: "small" }) }) : K.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ a("div", { className: t.fileList, children: K.map((e) => /* @__PURE__ */ o(
|
|
267
|
+
"div",
|
|
268
|
+
{
|
|
269
|
+
className: `${t.fileRow} ${C === e.path ? t.fileRowActive : ""}`,
|
|
270
|
+
style: { paddingLeft: 12 + e.depth * 16 },
|
|
271
|
+
onClick: () => !e.dir && ie(e.path),
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ a("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
|
|
274
|
+
/* @__PURE__ */ a("span", { className: t.fileRowName, children: e.name }),
|
|
275
|
+
e.kind === "design" && /* @__PURE__ */ a(z, { className: t.fileKindTag, color: "blue", children: "设计稿" })
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
e.path
|
|
279
|
+
)) })
|
|
280
|
+
] })
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ a("main", { className: t.center, children: C == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "点击左侧文件查看渲染" }) }) : g == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(E, {}) }) : /* @__PURE__ */ a("div", { className: t.renderArea, children: ee === "design" ? (
|
|
283
|
+
/* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
|
|
284
|
+
/* @__PURE__ */ a(
|
|
285
|
+
"iframe",
|
|
286
|
+
{
|
|
287
|
+
className: t.renderIframe,
|
|
288
|
+
srcDoc: g,
|
|
289
|
+
title: C,
|
|
290
|
+
sandbox: "allow-scripts allow-same-origin"
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
) : /* @__PURE__ */ a("pre", { className: t.renderCode, children: g || "(空文件)" }) }) }),
|
|
294
|
+
/* @__PURE__ */ a("aside", { className: t.right, children: ce === "list" ? /* @__PURE__ */ o("div", { className: t.chatSide, children: [
|
|
295
|
+
/* @__PURE__ */ o("div", { className: t.chatSideHeader, children: [
|
|
296
|
+
/* @__PURE__ */ o("span", { className: t.chatSideTitle, children: [
|
|
297
|
+
/* @__PURE__ */ a(ue, {}),
|
|
298
|
+
" 聊天组"
|
|
299
|
+
] }),
|
|
300
|
+
/* @__PURE__ */ o(
|
|
301
|
+
me,
|
|
302
|
+
{
|
|
303
|
+
size: "small",
|
|
304
|
+
type: "primary",
|
|
305
|
+
ghost: !0,
|
|
306
|
+
loading: w,
|
|
307
|
+
onClick: oe,
|
|
308
|
+
children: [
|
|
309
|
+
/* @__PURE__ */ a(he, {}),
|
|
310
|
+
" 发起聊天"
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
)
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ a("div", { className: t.chatGroupList, children: b.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : b.map((e) => /* @__PURE__ */ o(
|
|
316
|
+
"div",
|
|
317
|
+
{
|
|
318
|
+
className: `${t.chatGroupRow} ${M === e.id ? t.chatGroupRowActive : ""}`,
|
|
319
|
+
onClick: () => !w && G(e),
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ a("span", { className: t.chatGroupName, title: e.name, children: e.name }),
|
|
322
|
+
/* @__PURE__ */ a("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
e.id
|
|
326
|
+
)) })
|
|
327
|
+
] }) : /* @__PURE__ */ o("div", { className: t.chatPane, children: [
|
|
328
|
+
/* @__PURE__ */ o("div", { className: t.chatPaneHeader, children: [
|
|
329
|
+
/* @__PURE__ */ a(
|
|
330
|
+
"button",
|
|
331
|
+
{
|
|
332
|
+
type: "button",
|
|
333
|
+
className: t.backBtn,
|
|
334
|
+
onClick: () => {
|
|
335
|
+
v("list"), h.current !== void 0 && f.setState({ currentProject: h.current }), h.current = void 0;
|
|
336
|
+
},
|
|
337
|
+
title: "返回聊天组列表",
|
|
338
|
+
children: "←"
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ o("span", { className: t.chatPaneTitle, children: [
|
|
342
|
+
"群聊 · ",
|
|
343
|
+
(s == null ? void 0 : s.name) || l
|
|
344
|
+
] })
|
|
345
|
+
] }),
|
|
346
|
+
/* @__PURE__ */ a("div", { className: t.chatPaneBody, children: /* @__PURE__ */ a(ke, { hideTabs: !0 }) })
|
|
347
|
+
] }) })
|
|
348
|
+
] }) : (
|
|
349
|
+
/* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
|
|
350
|
+
/* @__PURE__ */ o("div", { className: t.libraryView, children: [
|
|
351
|
+
/* @__PURE__ */ o("div", { className: t.libraryHeader, children: [
|
|
352
|
+
/* @__PURE__ */ o("div", { children: [
|
|
353
|
+
/* @__PURE__ */ a("h2", { className: t.libraryTitle, children: "产品库" }),
|
|
354
|
+
/* @__PURE__ */ a("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊" })
|
|
355
|
+
] }),
|
|
356
|
+
/* @__PURE__ */ a(
|
|
357
|
+
_e,
|
|
358
|
+
{
|
|
359
|
+
prefix: /* @__PURE__ */ a(de, {}),
|
|
360
|
+
placeholder: "搜索产品",
|
|
361
|
+
value: y,
|
|
362
|
+
onChange: (e) => ae(e.target.value),
|
|
363
|
+
allowClear: !0,
|
|
364
|
+
className: t.librarySearch
|
|
365
|
+
}
|
|
366
|
+
)
|
|
367
|
+
] }),
|
|
368
|
+
/* @__PURE__ */ a("div", { className: t.libraryBody, children: p ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(E, {}) }) : V.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ a("div", { className: t.productGrid, children: V.map((e) => /* @__PURE__ */ o(
|
|
369
|
+
"button",
|
|
370
|
+
{
|
|
371
|
+
type: "button",
|
|
372
|
+
className: t.productCard,
|
|
373
|
+
onClick: () => void A(e.productCode),
|
|
374
|
+
children: [
|
|
375
|
+
/* @__PURE__ */ a("span", { className: t.cardCode, children: e.productCode }),
|
|
376
|
+
/* @__PURE__ */ a("span", { className: t.cardName, title: e.name, children: e.name }),
|
|
377
|
+
/* @__PURE__ */ a("span", { className: t.cardDesc, children: e.description || "暂无产品描述" }),
|
|
378
|
+
/* @__PURE__ */ o("span", { className: t.cardFoot, children: [
|
|
379
|
+
/* @__PURE__ */ o("span", { className: t.cardEnter, children: [
|
|
380
|
+
"进入产品 ",
|
|
381
|
+
/* @__PURE__ */ a(pe, {})
|
|
382
|
+
] }),
|
|
383
|
+
e.status && /* @__PURE__ */ a(z, { className: t.cardTag, children: e.status })
|
|
384
|
+
] })
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
e.productCode
|
|
388
|
+
)) }) })
|
|
389
|
+
] })
|
|
390
|
+
) });
|
|
391
|
+
}
|
|
392
|
+
export {
|
|
393
|
+
jt as default
|
|
394
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { S as Tn, P as In } from "./webide-
|
|
2
|
+
import { S as Tn, P as In } from "./webide-DwbwUqaR.js";
|
|
3
3
|
import { message as Me, Tooltip as Qe, Dropdown as fn } from "antd";
|
|
4
4
|
import { MessageOutlined as Sn, MoreOutlined as st, DashboardOutlined as Ln, MenuUnfoldOutlined as lt, MenuFoldOutlined as ot, RightOutlined as it, SettingOutlined as An, TeamOutlined as ct, FolderOpenOutlined as rt, BarChartOutlined as dt, PieChartOutlined as ut, CodeOutlined as mt, LinkOutlined as pt, UnorderedListOutlined as On, FileTextOutlined as nn, ReadOutlined as ht, ConsoleSqlOutlined as gt, PlayCircleOutlined as bt, PlusOutlined as yt, ClockCircleOutlined as ft, AppstoreOutlined as vt } from "@ant-design/icons";
|
|
5
5
|
import { useState as d, useRef as Oe, useCallback as U, useEffect as A, useMemo as X } from "react";
|
|
6
|
-
import { u as re, _ as Dn, n as q, $ as Nt, a0 as _t, a1 as kt, a2 as Ct, a3 as wt, a4 as Tt, t as It, a5 as St, a6 as je, a7 as Lt, a8 as At } from "./ComponentDoc-
|
|
7
|
-
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-
|
|
8
|
-
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-
|
|
9
|
-
import { h as Bn, f as na } from "./index-
|
|
10
|
-
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks-
|
|
6
|
+
import { u as re, _ as Dn, n as q, $ as Nt, a0 as _t, a1 as kt, a2 as Ct, a3 as wt, a4 as Tt, t as It, a5 as St, a6 as je, a7 as Lt, a8 as At } from "./ComponentDoc-Dbog-ROg.js";
|
|
7
|
+
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-BBaPF4oF.js";
|
|
8
|
+
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-C4AE3shS.js";
|
|
9
|
+
import { h as Bn, f as na } from "./index-BZpOPuCa.js";
|
|
10
|
+
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks-DMx7-HAn.js";
|
|
11
11
|
import { TodoTab as Hn } from "@yuku123/z-task-component";
|
|
12
12
|
const la = "_sidebarInner_1vu3c_1", oa = "_header_1vu3c_8", ia = "_headerActions_1vu3c_19", ca = "_tabBar_1vu3c_26", ra = "_tab_1vu3c_26", da = "_tabActive_1vu3c_50", ua = "_btnSm_1vu3c_66", ma = "_agentSection_1vu3c_84", pa = "_agentItem_1vu3c_90", ha = "_agentItemActive_1vu3c_112", ga = "_agentAvatar_1vu3c_117", ba = "_agentName_1vu3c_130", ya = "_emptyState_1vu3c_156", fa = "_createInputRow_1vu3c_168", va = "_createInput_1vu3c_168", Na = "_createConfirmBtn_1vu3c_188", _a = "_contextMenu_1vu3c_205", ka = "_contextMenuItem_1vu3c_216", Ca = "_contextMenuItemDanger_1vu3c_231", wa = "_contextMenuDivider_1vu3c_239", Ta = "_renameOverlay_1vu3c_246", Ia = "_renameDialog_1vu3c_259", Sa = "_renameTitle_1vu3c_267", La = "_renameInput_1vu3c_274", Aa = "_renameActions_1vu3c_289", Oa = "_renameBtn_1vu3c_295", Da = "_renameBtnPrimary_1vu3c_309", $a = "_agentDetailBtn_1vu3c_326", xa = "_agentItemShared_1vu3c_358", Ba = "_agentInfo_1vu3c_362", Ra = "_agentOwner_1vu3c_374", Pa = "_sharedBadge_1vu3c_382", Ea = "_createLocalDialog_1vu3c_430", Ma = "_createLocalLabel_1vu3c_438", ja = "_agentTypeCards_1vu3c_446", Ha = "_agentTypeCard_1vu3c_446", Fa = "_agentTypeIcon_1vu3c_474", Ka = "_agentTypeBody_1vu3c_487", Wa = "_agentTypeTitle_1vu3c_494", Ua = "_agentTypeDesc_1vu3c_500", Va = "_agentTypeBadge_1vu3c_506", l = {
|
|
13
13
|
sidebarInner: la,
|
|
@@ -3,15 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
|
|
|
3
3
|
import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
|
|
4
4
|
import { ListTable as Ae, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
|
|
5
5
|
import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
|
|
6
|
-
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-
|
|
7
|
-
import { u as Ce, a9 as Wl } from "./ComponentDoc-
|
|
6
|
+
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-C5Fs8r2U.js";
|
|
7
|
+
import { u as Ce, a9 as Wl } from "./ComponentDoc-Dbog-ROg.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
9
|
import Hl from "dayjs";
|
|
10
10
|
import xt from "react-markdown";
|
|
11
11
|
import Tt from "remark-gfm";
|
|
12
12
|
import { h as be } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
|
|
14
|
-
import { h as ql } from "./index-
|
|
14
|
+
import { h as ql } from "./index-BZpOPuCa.js";
|
|
15
15
|
function Vl() {
|
|
16
16
|
const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
|
|
17
17
|
L(!0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
|
|
3
|
-
import { u as j } from "./ComponentDoc-
|
|
3
|
+
import { u as j } from "./ComponentDoc-Dbog-ROg.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { l as F, c as G, a as z, b as K, p as W } from "./api-
|
|
5
|
+
import { l as F, c as G, a as z, b as K, p as W } from "./api-Cgf9Zvk8.js";
|
|
6
6
|
const L = "dev_brain_scenario";
|
|
7
7
|
function q() {
|
|
8
8
|
var M;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as ne, h as X, s as oe } from "./sso-user-
|
|
3
|
+
import { r as ne, h as X, s as oe } from "./sso-user-DyqailS7.js";
|
|
4
4
|
import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { message as P, 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
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 { u as c, o as he, j as be, k as _e } from "./ComponentDoc-
|
|
10
|
+
import { u as c, o as he, j as be, k as _e } from "./ComponentDoc-Dbog-ROg.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { b as ye } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
-
import { a as ve, s as we } from "./send-default-agent-team-message-
|
|
13
|
+
import { a as ve, s as we } from "./send-default-agent-team-message-DPRCcmZq.js";
|
|
14
14
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
15
15
|
function ke(a) {
|
|
16
16
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as L, h as N, s as T } from "./sso-user-
|
|
3
|
+
import { r as L, h as N, s as T } from "./sso-user-DyqailS7.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 { u as m, g as Y, k as B } from "./ComponentDoc-
|
|
10
|
+
import { u as m, g as Y, k as B } from "./ComponentDoc-Dbog-ROg.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
13
13
|
function oe() {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, b as c } from "./ComponentDoc-
|
|
1
|
+
import { a as o, f as d, B as r, b as c } from "./ComponentDoc-Dbog-ROg.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
|
-
import { u as d } from "./ComponentDoc-
|
|
4
|
-
import { h as g } from "./index-
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { u as d } from "./ComponentDoc-Dbog-ROg.js";
|
|
4
|
+
import { h as g } from "./index-BZpOPuCa.js";
|
|
5
|
+
import { N as A } from "./index-BBaPF4oF.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
package/dist/pages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-Dbog-ROg.js";
|
|
2
2
|
import { createElement as e } from "react";
|
|
3
3
|
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
4
|
import "react/jsx-runtime";
|
|
@@ -6,9 +6,9 @@ import ur from "react-markdown";
|
|
|
6
6
|
import mr from "rehype-highlight";
|
|
7
7
|
import fr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-
|
|
10
|
-
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-
|
|
11
|
-
import { a as xr, f as Lr, c as Ar } from "./index-
|
|
9
|
+
import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-Dbog-ROg.js";
|
|
10
|
+
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-HL0SNlQ5.js";
|
|
11
|
+
import { a as xr, f as Lr, c as Ar } from "./index-BZpOPuCa.js";
|
|
12
12
|
import { findTodosLinkedToNote as Dr, buildTodoProjectContext as Rr, linkedTodoChipLabel as Or } from "@yuku123/z-task-component";
|
|
13
13
|
import Ne from "dayjs";
|
|
14
14
|
import "./echarts-B1OU1xr4.js";
|