@yuku123/z-team-component 0.2.144 → 0.2.146
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/{AdminModuleContent-CI41-loR.js → AdminModuleContent-CpPRtBhf.js} +1262 -1262
- package/dist/{ChangeLogView-CX_OBYdc.js → ChangeLogView-DKbqhsU3.js} +1 -1
- package/dist/{ComponentDoc-BHX2fG49.js → ComponentDoc-B11C4Swx.js} +1852 -1528
- package/dist/{InvitationManagementPage-BGAOTVOU.js → InvitationManagementPage-BgWcIOfq.js} +1 -1
- package/dist/{OnboardingPage-m7WDhG28.js → OnboardingPage-SDjCRah7.js} +2 -2
- package/dist/{ScheduledTasks-DqvvqROs.js → ScheduledTasks-D3BsnxdD.js} +9 -9
- package/dist/{SettingsModal-COXFhGnd.js → SettingsModal-Duhx6sgy.js} +4 -4
- package/dist/{SystemShell-Bds4cq9N.js → SystemShell-g5s21kjl.js} +7 -7
- package/dist/{admin-logs-BwDg5q4t.js → admin-logs-9JP7Zv_M.js} +1 -1
- package/dist/{api-G8KaVVN3.js → api-C_QGz3cC.js} +1 -1
- package/dist/{api-CskpHyom.js → api-D3tlBWV2.js} +1 -1
- package/dist/{browser-jb_PFvU3.js → browser-BTRhzc_h.js} +1 -1
- package/dist/{createWorkspaceWsHandler-ctpaXi2d.js → createWorkspaceWsHandler-iET70rhv.js} +1504 -1504
- package/dist/{index-Svv8bFhP.js → index-B3EuOSdc.js} +2 -2
- package/dist/{index-DmfZyJzc.js → index-B3LWKGqn.js} +2 -2
- package/dist/{index-DyTKK4_R.js → index-BN2CbrvD.js} +1 -1
- package/dist/{index-DGaDQP0Y.js → index-BUmvuw2J.js} +3 -3
- package/dist/{index-BgG4dDXJ.js → index-BYog_1zd.js} +3 -3
- package/dist/{index-DoXcaHVL.js → index-BZ88j8oo.js} +8 -8
- package/dist/{index-CI6Emdzl.js → index-Bo7aUfMi.js} +6 -6
- package/dist/{index-UM4UGCCT.js → index-BrN81F9K.js} +2 -2
- package/dist/{index-BOly7cia.js → index-C5LDveug.js} +1 -1
- package/dist/{index-DWxhaeje.js → index-CJSSITWe.js} +2 -2
- package/dist/{index-B7JFmBYe.js → index-CJvskwqR.js} +1 -1
- package/dist/{index-BYnrTKwB.js → index-CMIq6fEf.js} +8 -8
- package/dist/index-CPOQkuGS.js +20 -0
- package/dist/{index-CJKCpzvH.js → index-CYDSu-o0.js} +2 -2
- package/dist/{index-i8ZgRX12.js → index-CZBb5aGw.js} +4 -4
- package/dist/index-CkHB8H5z.js +1298 -0
- package/dist/{index-CUPU72rT.js → index-CqVXGc3e.js} +2 -2
- package/dist/{index-DZFSy0Rv.js → index-D9MtcOhY.js} +2 -2
- package/dist/{index-DQe837UG.js → index-D9SCuemi.js} +3 -3
- package/dist/{index-CRhxaCtd.js → index-DNCfDU4G.js} +10 -10
- package/dist/{index-aGZZ0IIh.js → index-DQ4-Q12f.js} +1 -1
- package/dist/{index-BMUQTAmb.js → index-DV94b3-C.js} +2 -2
- package/dist/{index-B17uPWGl.js → index-DgJ8YYTW.js} +4 -4
- package/dist/{index-iRJ67LFe.js → index-Dgvc35tE.js} +1 -1
- package/dist/{index-nj-cjKsf.js → index-DzLp4w3Q.js} +1 -1
- package/dist/{index-BZc2uUlh.js → index-wuz6Ltl2.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-DxMam1i4.js → instance-RPYQUlqG.js} +1 -1
- package/dist/{menuPermission-B3X5wSsa.js → menuPermission-3xJYTPxY.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-Ba49_sZR.js → send-default-agent-team-message-DIrk-E4F.js} +1 -1
- package/dist/{spark-md5-Dld54a-T.js → spark-md5-BoDlwjZ8.js} +13 -13
- package/dist/{training-BRcZMYpA.js → training-DwnE6mwX.js} +1 -1
- package/dist/{webide-DWzy29mH.js → webide-C-m4gDjl.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -2
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/index-DmrI2KwP.js +0 -1298
- package/dist/index-Dpcve4hK.js +0 -20
package/dist/index-DmrI2KwP.js
DELETED
|
@@ -1,1298 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as a, Fragment as yt } from "react/jsx-runtime";
|
|
2
|
-
import { ReloadOutlined as vt, SearchOutlined as gt, RightOutlined as Nt, TeamOutlined as ft, MessageOutlined as wt, AppstoreOutlined as Me, DeploymentUnitOutlined as bt, ThunderboltOutlined as Tt } from "@ant-design/icons";
|
|
3
|
-
import { Button as Q, Select as Pe, Spin as he, Empty as f, Tag as k, Input as j, Modal as Ct } from "antd";
|
|
4
|
-
import { useState as p, useCallback as y, useEffect as me, useMemo as Y, useRef as St } from "react";
|
|
5
|
-
import { u as B } from "./ComponentDoc-BHX2fG49.js";
|
|
6
|
-
import { h as W } from "./history-BlrA1eaW.js";
|
|
7
|
-
import { menuItems as Rt } from "@yuku123/z-product-component";
|
|
8
|
-
import { C as Pt } from "./createWorkspaceWsHandler-ctpaXi2d.js";
|
|
9
|
-
import { l as At, c as kt } from "./api-CskpHyom.js";
|
|
10
|
-
import { SidebarShell as It, MenuTree as Et } from "@yuku123/z-frontend-common/ui";
|
|
11
|
-
const Lt = "product-workspace", xe = "productCode";
|
|
12
|
-
function w(n) {
|
|
13
|
-
if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
|
|
14
|
-
return n.json();
|
|
15
|
-
}
|
|
16
|
-
async function Gt() {
|
|
17
|
-
const n = B.getState().token, c = await fetch(`/api/product/list${n ? `?token=${encodeURIComponent(n)}` : ""}`, {
|
|
18
|
-
credentials: "include",
|
|
19
|
-
headers: { Accept: "application/json" }
|
|
20
|
-
}), s = await w(c), o = Array.isArray(s) ? s : s == null ? void 0 : s.data;
|
|
21
|
-
return Array.isArray(o) ? o.map((v) => ({
|
|
22
|
-
...v,
|
|
23
|
-
productCode: String(v.productCode ?? v.code ?? ""),
|
|
24
|
-
name: String(v.name ?? v.productCode ?? v.code ?? "未命名")
|
|
25
|
-
})) : [];
|
|
26
|
-
}
|
|
27
|
-
async function Bt(n) {
|
|
28
|
-
try {
|
|
29
|
-
const c = await fetch(`/api/product/${encodeURIComponent(n)}`, {
|
|
30
|
-
credentials: "include",
|
|
31
|
-
headers: { Accept: "application/json" }
|
|
32
|
-
}), s = await w(c), o = (s == null ? void 0 : s.data) ?? s;
|
|
33
|
-
return o && typeof o == "object" ? { ...o, productCode: n } : null;
|
|
34
|
-
} catch {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async function $t(n) {
|
|
39
|
-
try {
|
|
40
|
-
const c = await fetch(`/api/product/${encodeURIComponent(n)}/atelier/workspace`, {
|
|
41
|
-
credentials: "include",
|
|
42
|
-
headers: { Accept: "application/json" }
|
|
43
|
-
}), s = await w(c), o = (s == null ? void 0 : s.data) ?? s;
|
|
44
|
-
return o && typeof o == "object" && Array.isArray(o.files) ? o.files : Array.isArray(o) ? o : [];
|
|
45
|
-
} catch {
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async function Ft(n, c) {
|
|
50
|
-
try {
|
|
51
|
-
const s = await fetch(
|
|
52
|
-
`/api/product/${encodeURIComponent(n)}/atelier/files/raw?path=${encodeURIComponent(c)}`,
|
|
53
|
-
{ credentials: "include", headers: { Accept: "text/html, application/json" } }
|
|
54
|
-
);
|
|
55
|
-
return s.ok ? await s.text() : null;
|
|
56
|
-
} catch {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function Ot(n) {
|
|
61
|
-
var o;
|
|
62
|
-
const c = (o = n.ext) == null ? void 0 : o.params;
|
|
63
|
-
if (!c || typeof c != "object") return null;
|
|
64
|
-
const s = c[xe];
|
|
65
|
-
return s == null ? null : String(s);
|
|
66
|
-
}
|
|
67
|
-
async function jt(n, c) {
|
|
68
|
-
try {
|
|
69
|
-
return (await At(c)).filter((o) => Ot(o) === n);
|
|
70
|
-
} catch {
|
|
71
|
-
return [];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async function qt(n, c, s) {
|
|
75
|
-
return kt(
|
|
76
|
-
{ scenario_code: Lt, name: c || `产品 ${n} 讨论组` },
|
|
77
|
-
s,
|
|
78
|
-
{ [xe]: n }
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function b(n) {
|
|
82
|
-
return n && typeof n == "object" && "data" in n ? n.data : n;
|
|
83
|
-
}
|
|
84
|
-
async function Ht() {
|
|
85
|
-
try {
|
|
86
|
-
const n = await fetch("/api/product/group/list", {
|
|
87
|
-
credentials: "include",
|
|
88
|
-
headers: { Accept: "application/json" }
|
|
89
|
-
}), c = await w(n), s = b(c);
|
|
90
|
-
return Array.isArray(s) ? s : [];
|
|
91
|
-
} catch {
|
|
92
|
-
return [];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
async function Dt(n) {
|
|
96
|
-
try {
|
|
97
|
-
const c = await fetch("/api/product/group", {
|
|
98
|
-
method: "POST",
|
|
99
|
-
credentials: "include",
|
|
100
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
101
|
-
body: JSON.stringify(n)
|
|
102
|
-
}), s = await w(c);
|
|
103
|
-
return b(s);
|
|
104
|
-
} catch {
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
async function Ut(n) {
|
|
109
|
-
try {
|
|
110
|
-
const c = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding/list`, {
|
|
111
|
-
credentials: "include",
|
|
112
|
-
headers: { Accept: "application/json" }
|
|
113
|
-
}), s = await w(c), o = b(s);
|
|
114
|
-
return Array.isArray(o) ? o : [];
|
|
115
|
-
} catch {
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
async function Mt(n, c) {
|
|
120
|
-
try {
|
|
121
|
-
const s = await fetch(`/api/product/${encodeURIComponent(n)}/app-binding`, {
|
|
122
|
-
method: "POST",
|
|
123
|
-
credentials: "include",
|
|
124
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
125
|
-
body: JSON.stringify(c)
|
|
126
|
-
}), o = await w(s);
|
|
127
|
-
return b(o);
|
|
128
|
-
} catch {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
async function xt(n) {
|
|
133
|
-
try {
|
|
134
|
-
const c = await fetch(`/api/product/${encodeURIComponent(n)}/requirement/list`, {
|
|
135
|
-
credentials: "include",
|
|
136
|
-
headers: { Accept: "application/json" }
|
|
137
|
-
}), s = await w(c), o = b(s);
|
|
138
|
-
return Array.isArray(o) ? o : [];
|
|
139
|
-
} catch {
|
|
140
|
-
return [];
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async function zt(n, c) {
|
|
144
|
-
try {
|
|
145
|
-
const s = await fetch(`/api/product/${encodeURIComponent(n)}/requirement`, {
|
|
146
|
-
method: "POST",
|
|
147
|
-
credentials: "include",
|
|
148
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
149
|
-
body: JSON.stringify(c)
|
|
150
|
-
}), o = await w(s);
|
|
151
|
-
return b(o);
|
|
152
|
-
} catch {
|
|
153
|
-
return null;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
async function q(n, c) {
|
|
157
|
-
try {
|
|
158
|
-
const s = await fetch(
|
|
159
|
-
`/api/product/${encodeURIComponent(n)}/${c}`,
|
|
160
|
-
{ credentials: "include", headers: { Accept: "application/json" } }
|
|
161
|
-
), o = await w(s), v = b(o);
|
|
162
|
-
return Array.isArray(v) ? v : [];
|
|
163
|
-
} catch {
|
|
164
|
-
return [];
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
async function Kt(n) {
|
|
168
|
-
return q(n, "glossary/list");
|
|
169
|
-
}
|
|
170
|
-
async function Vt(n) {
|
|
171
|
-
return q(n, "concept/list");
|
|
172
|
-
}
|
|
173
|
-
async function Jt(n) {
|
|
174
|
-
return q(n, "scenario/list");
|
|
175
|
-
}
|
|
176
|
-
async function Wt(n) {
|
|
177
|
-
return q(n, "design/list");
|
|
178
|
-
}
|
|
179
|
-
async function Qt(n) {
|
|
180
|
-
return q(n, "chat/sessions");
|
|
181
|
-
}
|
|
182
|
-
async function Yt(n) {
|
|
183
|
-
return q(n, "chat/proposals");
|
|
184
|
-
}
|
|
185
|
-
async function Zt() {
|
|
186
|
-
try {
|
|
187
|
-
const n = await fetch("/api/product/relation/types", {
|
|
188
|
-
credentials: "include",
|
|
189
|
-
headers: { Accept: "application/json" }
|
|
190
|
-
}), c = await w(n), s = b(c);
|
|
191
|
-
return s && typeof s == "object" ? s : {};
|
|
192
|
-
} catch {
|
|
193
|
-
return {};
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
async function Xt() {
|
|
197
|
-
try {
|
|
198
|
-
const n = await fetch("/api/product/architecture", {
|
|
199
|
-
credentials: "include",
|
|
200
|
-
headers: { Accept: "application/json" }
|
|
201
|
-
}), c = await w(n), s = b(c);
|
|
202
|
-
return s && typeof s == "object" ? {
|
|
203
|
-
products: Array.isArray(s.products) ? s.products : [],
|
|
204
|
-
groups: Array.isArray(s.groups) ? s.groups : [],
|
|
205
|
-
relations: Array.isArray(s.relations) ? s.relations : [],
|
|
206
|
-
appBindings: Array.isArray(s.appBindings) ? s.appBindings : []
|
|
207
|
-
} : { products: [], groups: [], relations: [], appBindings: [] };
|
|
208
|
-
} catch {
|
|
209
|
-
return { products: [], groups: [], relations: [], appBindings: [] };
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
async function ea(n) {
|
|
213
|
-
try {
|
|
214
|
-
const c = await fetch("/api/product/relation", {
|
|
215
|
-
method: "POST",
|
|
216
|
-
credentials: "include",
|
|
217
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
218
|
-
body: JSON.stringify(n)
|
|
219
|
-
}), s = await w(c);
|
|
220
|
-
return b(s);
|
|
221
|
-
} catch {
|
|
222
|
-
return null;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
async function ta(n) {
|
|
226
|
-
try {
|
|
227
|
-
return await fetch(`/api/product/relation/${n}`, {
|
|
228
|
-
method: "DELETE",
|
|
229
|
-
credentials: "include",
|
|
230
|
-
headers: { Accept: "application/json" }
|
|
231
|
-
}), !0;
|
|
232
|
-
} catch {
|
|
233
|
-
return !1;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
async function aa(n, c) {
|
|
237
|
-
try {
|
|
238
|
-
const s = await fetch(`/api/product/${encodeURIComponent(n)}/requirement/${c.id}`, {
|
|
239
|
-
method: "PUT",
|
|
240
|
-
credentials: "include",
|
|
241
|
-
headers: { Accept: "application/json", "Content-Type": "application/json" },
|
|
242
|
-
body: JSON.stringify(c)
|
|
243
|
-
}), o = await w(s);
|
|
244
|
-
return b(o);
|
|
245
|
-
} catch {
|
|
246
|
-
return null;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
const na = "_container_v1vhg_3", ra = "_header_v1vhg_11", sa = "_title_v1vhg_23", ia = "_subtitle_v1vhg_30", ca = "_actions_v1vhg_36", oa = "_stats_v1vhg_42", la = "_relForm_v1vhg_55", da = "_relFormLabel_v1vhg_66", pa = "_centerFill_v1vhg_72", ua = "_groups_v1vhg_79", ha = "_groupBlock_v1vhg_89", ma = "_groupHeader_v1vhg_95", _a = "_groupName_v1vhg_101", ya = "_groupCount_v1vhg_107", va = "_productGrid_v1vhg_112", ga = "_productCard_v1vhg_118", Na = "_cardHead_v1vhg_134", fa = "_cardName_v1vhg_141", wa = "_cardTag_v1vhg_150", ba = "_cardCode_v1vhg_156", Ta = "_cardDesc_v1vhg_161", Ca = "_cardSection_v1vhg_171", Sa = "_sectionLabel_v1vhg_180", Ra = "_bindList_v1vhg_185", Pa = "_bindTag_v1vhg_191", Aa = "_relList_v1vhg_196", ka = "_relRow_v1vhg_202", Ia = "_relTag_v1vhg_209", Ea = "_relTarget_v1vhg_215", La = "_relDel_v1vhg_225", h = {
|
|
250
|
-
container: na,
|
|
251
|
-
header: ra,
|
|
252
|
-
title: sa,
|
|
253
|
-
subtitle: ia,
|
|
254
|
-
actions: ca,
|
|
255
|
-
stats: oa,
|
|
256
|
-
relForm: la,
|
|
257
|
-
relFormLabel: da,
|
|
258
|
-
centerFill: pa,
|
|
259
|
-
groups: ua,
|
|
260
|
-
groupBlock: ha,
|
|
261
|
-
groupHeader: ma,
|
|
262
|
-
groupName: _a,
|
|
263
|
-
groupCount: ya,
|
|
264
|
-
productGrid: va,
|
|
265
|
-
productCard: ga,
|
|
266
|
-
cardHead: Na,
|
|
267
|
-
cardName: fa,
|
|
268
|
-
cardTag: wa,
|
|
269
|
-
cardCode: ba,
|
|
270
|
-
cardDesc: Ta,
|
|
271
|
-
cardSection: Ca,
|
|
272
|
-
sectionLabel: Sa,
|
|
273
|
-
bindList: Ra,
|
|
274
|
-
bindTag: Pa,
|
|
275
|
-
relList: Aa,
|
|
276
|
-
relRow: ka,
|
|
277
|
-
relTag: Ia,
|
|
278
|
-
relTarget: Ea,
|
|
279
|
-
relDel: La
|
|
280
|
-
};
|
|
281
|
-
function Ga() {
|
|
282
|
-
const [n, c] = p({ products: [], groups: [], relations: [], appBindings: [] }), [s, o] = p({}), [v, L] = p(!0), [d, H] = p(null), [l, D] = p(null), [T, Z] = p("DEPENDS_ON"), $ = y(async () => {
|
|
283
|
-
L(!0);
|
|
284
|
-
try {
|
|
285
|
-
const [u, _] = await Promise.all([Xt(), Zt()]);
|
|
286
|
-
c(u), o(_);
|
|
287
|
-
} finally {
|
|
288
|
-
L(!1);
|
|
289
|
-
}
|
|
290
|
-
}, []);
|
|
291
|
-
me(() => {
|
|
292
|
-
$();
|
|
293
|
-
}, [$]);
|
|
294
|
-
const I = y(
|
|
295
|
-
(u) => {
|
|
296
|
-
if (!u) return null;
|
|
297
|
-
const _ = n.groups.find((m) => m.groupCode === u);
|
|
298
|
-
return _ ? _.name : u;
|
|
299
|
-
},
|
|
300
|
-
[n.groups]
|
|
301
|
-
), _e = Y(() => {
|
|
302
|
-
const u = /* @__PURE__ */ new Map();
|
|
303
|
-
for (const _ of n.products) {
|
|
304
|
-
const m = _.groupCode ?? null;
|
|
305
|
-
u.has(m) || u.set(m, []), u.get(m).push(_);
|
|
306
|
-
}
|
|
307
|
-
return [...u.entries()].sort((_, m) => _[0] === null ? 1 : m[0] === null ? -1 : String(I(_[0])).localeCompare(String(I(m[0])), "zh"));
|
|
308
|
-
}, [n.products, I]), X = y(
|
|
309
|
-
(u) => n.appBindings.filter((_) => _.productCode === u),
|
|
310
|
-
[n.appBindings]
|
|
311
|
-
), U = y(
|
|
312
|
-
(u) => n.relations.filter((_) => _.productCode === u),
|
|
313
|
-
[n.relations]
|
|
314
|
-
), C = y(
|
|
315
|
-
(u) => {
|
|
316
|
-
const _ = n.products.find((m) => m.productCode === u);
|
|
317
|
-
return _ ? _.name : u;
|
|
318
|
-
},
|
|
319
|
-
[n.products]
|
|
320
|
-
), M = y(async () => {
|
|
321
|
-
if (!d || !l || d === l) return;
|
|
322
|
-
const u = await ea({
|
|
323
|
-
productCode: d,
|
|
324
|
-
relatedCode: l,
|
|
325
|
-
relationType: T,
|
|
326
|
-
description: `${C(d)} ${s[T] ?? T} ${C(l)}`
|
|
327
|
-
});
|
|
328
|
-
u && (c((_) => ({ ..._, relations: [..._.relations, u] })), H(null), D(null));
|
|
329
|
-
}, [d, l, T, s, C]), E = Y(
|
|
330
|
-
() => n.products.map((u) => ({
|
|
331
|
-
value: u.productCode,
|
|
332
|
-
label: `${u.name}(${u.productCode})`
|
|
333
|
-
})),
|
|
334
|
-
[n.products]
|
|
335
|
-
);
|
|
336
|
-
return /* @__PURE__ */ r("div", { className: h.container, children: [
|
|
337
|
-
/* @__PURE__ */ r("div", { className: h.header, children: [
|
|
338
|
-
/* @__PURE__ */ r("div", { children: [
|
|
339
|
-
/* @__PURE__ */ a("h2", { className: h.title, children: "架构全景" }),
|
|
340
|
-
/* @__PURE__ */ a("p", { className: h.subtitle, children: "租户下所有产品整顿成一张架构图:产品群 · 产品↔产品关系 · 挂接的中间件/应用" })
|
|
341
|
-
] }),
|
|
342
|
-
/* @__PURE__ */ r("div", { className: h.actions, children: [
|
|
343
|
-
/* @__PURE__ */ r("span", { className: h.stats, children: [
|
|
344
|
-
/* @__PURE__ */ a("b", { children: n.products.length }),
|
|
345
|
-
" 产品",
|
|
346
|
-
/* @__PURE__ */ a("b", { children: n.groups.length }),
|
|
347
|
-
" 群",
|
|
348
|
-
/* @__PURE__ */ a("b", { children: n.relations.length }),
|
|
349
|
-
" 关系",
|
|
350
|
-
/* @__PURE__ */ a("b", { children: n.appBindings.filter((u) => u.appType === "INFRA").length }),
|
|
351
|
-
" 基建"
|
|
352
|
-
] }),
|
|
353
|
-
/* @__PURE__ */ a(Q, { size: "small", icon: /* @__PURE__ */ a(vt, {}), onClick: () => void $(), children: "刷新" })
|
|
354
|
-
] })
|
|
355
|
-
] }),
|
|
356
|
-
/* @__PURE__ */ r("div", { className: h.relForm, children: [
|
|
357
|
-
/* @__PURE__ */ a("span", { className: h.relFormLabel, children: "新建产品关系:" }),
|
|
358
|
-
/* @__PURE__ */ a(
|
|
359
|
-
Pe,
|
|
360
|
-
{
|
|
361
|
-
size: "small",
|
|
362
|
-
placeholder: "起点产品",
|
|
363
|
-
value: d,
|
|
364
|
-
onChange: H,
|
|
365
|
-
options: E,
|
|
366
|
-
style: { width: 200 },
|
|
367
|
-
showSearch: !0,
|
|
368
|
-
optionFilterProp: "label"
|
|
369
|
-
}
|
|
370
|
-
),
|
|
371
|
-
/* @__PURE__ */ a(
|
|
372
|
-
Pe,
|
|
373
|
-
{
|
|
374
|
-
size: "small",
|
|
375
|
-
placeholder: "关系类型",
|
|
376
|
-
value: T,
|
|
377
|
-
onChange: (u) => Z(u),
|
|
378
|
-
style: { width: 130 },
|
|
379
|
-
options: Object.entries(s).map(([u, _]) => ({ value: u, label: _ }))
|
|
380
|
-
}
|
|
381
|
-
),
|
|
382
|
-
/* @__PURE__ */ a(
|
|
383
|
-
Pe,
|
|
384
|
-
{
|
|
385
|
-
size: "small",
|
|
386
|
-
placeholder: "终点产品",
|
|
387
|
-
value: l,
|
|
388
|
-
onChange: D,
|
|
389
|
-
options: E,
|
|
390
|
-
style: { width: 200 },
|
|
391
|
-
showSearch: !0,
|
|
392
|
-
optionFilterProp: "label"
|
|
393
|
-
}
|
|
394
|
-
),
|
|
395
|
-
/* @__PURE__ */ a(
|
|
396
|
-
Q,
|
|
397
|
-
{
|
|
398
|
-
size: "small",
|
|
399
|
-
type: "primary",
|
|
400
|
-
onClick: () => void M(),
|
|
401
|
-
disabled: !d || !l || d === l,
|
|
402
|
-
children: "建立关系"
|
|
403
|
-
}
|
|
404
|
-
)
|
|
405
|
-
] }),
|
|
406
|
-
v ? /* @__PURE__ */ a("div", { className: h.centerFill, children: /* @__PURE__ */ a(he, {}) }) : n.products.length === 0 ? /* @__PURE__ */ a("div", { className: h.centerFill, children: /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "暂无产品,先在产品库创建" }) }) : /* @__PURE__ */ a("div", { className: h.groups, children: _e.map(([u, _]) => /* @__PURE__ */ r("div", { className: h.groupBlock, children: [
|
|
407
|
-
/* @__PURE__ */ r("div", { className: h.groupHeader, children: [
|
|
408
|
-
/* @__PURE__ */ a("span", { className: h.groupName, children: I(u) ? `📦 ${I(u)}` : "🗂 未分组" }),
|
|
409
|
-
/* @__PURE__ */ r("span", { className: h.groupCount, children: [
|
|
410
|
-
_.length,
|
|
411
|
-
" 个产品"
|
|
412
|
-
] })
|
|
413
|
-
] }),
|
|
414
|
-
/* @__PURE__ */ a("div", { className: h.productGrid, children: _.map((m) => {
|
|
415
|
-
const ee = X(m.productCode ?? ""), x = U(m.productCode ?? "");
|
|
416
|
-
return /* @__PURE__ */ r("div", { className: h.productCard, children: [
|
|
417
|
-
/* @__PURE__ */ r("div", { className: h.cardHead, children: [
|
|
418
|
-
/* @__PURE__ */ a("span", { className: h.cardName, title: m.name, children: m.name }),
|
|
419
|
-
m.status && /* @__PURE__ */ a(k, { className: h.cardTag, children: m.status })
|
|
420
|
-
] }),
|
|
421
|
-
/* @__PURE__ */ a("div", { className: h.cardCode, children: m.productCode }),
|
|
422
|
-
m.description && /* @__PURE__ */ a("div", { className: h.cardDesc, title: m.description, children: m.description }),
|
|
423
|
-
ee.length > 0 && /* @__PURE__ */ r("div", { className: h.cardSection, children: [
|
|
424
|
-
/* @__PURE__ */ a("div", { className: h.sectionLabel, children: "挂接" }),
|
|
425
|
-
/* @__PURE__ */ a("div", { className: h.bindList, children: ee.map((g) => /* @__PURE__ */ r(
|
|
426
|
-
k,
|
|
427
|
-
{
|
|
428
|
-
className: h.bindTag,
|
|
429
|
-
color: g.appType === "INFRA" ? "purple" : "geekblue",
|
|
430
|
-
children: [
|
|
431
|
-
g.appType === "INFRA" ? "🏗" : "🧩",
|
|
432
|
-
" ",
|
|
433
|
-
g.appName
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
|
-
g.id
|
|
437
|
-
)) })
|
|
438
|
-
] }),
|
|
439
|
-
x.length > 0 && /* @__PURE__ */ r("div", { className: h.cardSection, children: [
|
|
440
|
-
/* @__PURE__ */ a("div", { className: h.sectionLabel, children: "关系" }),
|
|
441
|
-
/* @__PURE__ */ a("div", { className: h.relList, children: x.map((g) => /* @__PURE__ */ r("div", { className: h.relRow, children: [
|
|
442
|
-
/* @__PURE__ */ a(
|
|
443
|
-
k,
|
|
444
|
-
{
|
|
445
|
-
className: h.relTag,
|
|
446
|
-
color: g.relationType === "DEPENDS_ON" ? "orange" : g.relationType === "BUILT_ON" ? "cyan" : "blue",
|
|
447
|
-
children: s[g.relationType] ?? g.relationType
|
|
448
|
-
}
|
|
449
|
-
),
|
|
450
|
-
/* @__PURE__ */ a("span", { className: h.relTarget, title: C(g.relatedCode), children: C(g.relatedCode) }),
|
|
451
|
-
/* @__PURE__ */ a(
|
|
452
|
-
"button",
|
|
453
|
-
{
|
|
454
|
-
type: "button",
|
|
455
|
-
className: h.relDel,
|
|
456
|
-
onClick: async () => {
|
|
457
|
-
await ta(g.id), c((G) => ({
|
|
458
|
-
...G,
|
|
459
|
-
relations: G.relations.filter((z) => z.id !== g.id)
|
|
460
|
-
}));
|
|
461
|
-
},
|
|
462
|
-
title: "删除关系",
|
|
463
|
-
children: "✕"
|
|
464
|
-
}
|
|
465
|
-
)
|
|
466
|
-
] }, g.id)) })
|
|
467
|
-
] })
|
|
468
|
-
] }, m.productCode);
|
|
469
|
-
}) })
|
|
470
|
-
] }, u ?? "__none__")) })
|
|
471
|
-
] });
|
|
472
|
-
}
|
|
473
|
-
const Ba = "_container_1y8rs_5", $a = "_libraryView_1y8rs_14", Fa = "_libraryHeader_1y8rs_22", Oa = "_libraryHeadRow_1y8rs_32", ja = "_libraryTitle_1y8rs_40", qa = "_librarySubtitle_1y8rs_47", Ha = "_librarySearch_1y8rs_53", Da = "_libraryBody_1y8rs_58", Ua = "_productGrid_1y8rs_65", Ma = "_productCard_1y8rs_71", xa = "_cardCode_1y8rs_91", za = "_cardName_1y8rs_104", Ka = "_cardDesc_1y8rs_113", Va = "_cardFoot_1y8rs_124", Ja = "_cardEnter_1y8rs_132", Wa = "_cardTag_1y8rs_140", Qa = "_left_1y8rs_146", Ya = "_leftHeader_1y8rs_156", Za = "_leftTitleRow_1y8rs_162", Xa = "_leftTitle_1y8rs_162", en = "_backBtn_1y8rs_179", tn = "_sectionBar_1y8rs_209", an = "_sectionTab_1y8rs_219", nn = "_sectionTabActive_1y8rs_241", rn = "_sectionIcon_1y8rs_248", sn = "_leftBody_1y8rs_253", cn = "_fileList_1y8rs_264", on = "_fileTreeHint_1y8rs_303", ln = "_fileRow_1y8rs_309", dn = "_fileRowActive_1y8rs_323", pn = "_fileRowIcon_1y8rs_327", un = "_fileRowName_1y8rs_332", hn = "_fileKindTag_1y8rs_341", mn = "_center_1y8rs_349", _n = "_centerFill_1y8rs_358", yn = "_renderArea_1y8rs_413", vn = "_renderIframe_1y8rs_423", gn = "_renderCode_1y8rs_429", Nn = "_right_1y8rs_442", fn = "_chatSide_1y8rs_453", wn = "_chatSideHeader_1y8rs_459", bn = "_chatSideTitle_1y8rs_468", Tn = "_chatGroupList_1y8rs_477", Cn = "_chatGroupRow_1y8rs_486", Sn = "_chatGroupRowActive_1y8rs_500", Rn = "_chatGroupName_1y8rs_504", Pn = "_chatGroupTime_1y8rs_513", An = "_chatPane_1y8rs_520", kn = "_chatPaneHeader_1y8rs_526", In = "_chatPaneTitle_1y8rs_535", En = "_chatPaneBody_1y8rs_544", Ln = "_groupChips_1y8rs_555", Gn = "_groupChip_1y8rs_555", Bn = "_groupChipActive_1y8rs_578", $n = "_groupNewBtn_1y8rs_584", Fn = "_cardGroup_1y8rs_599", On = "_overviewArea_1y8rs_609", jn = "_overviewHeader_1y8rs_614", qn = "_overviewTitle_1y8rs_618", Hn = "_overviewSubtitle_1y8rs_625", Dn = "_overviewTabs_1y8rs_631", Un = "_overviewTab_1y8rs_631", Mn = "_overviewTabActive_1y8rs_654", xn = "_overviewPanel_1y8rs_660", zn = "_reqForm_1y8rs_668", Kn = "_reqList_1y8rs_674", Vn = "_reqRow_1y8rs_680", Jn = "_reqTitle_1y8rs_689", Wn = "_reqTag_1y8rs_698", Qn = "_reqStatusTag_1y8rs_704", Yn = "_reqTime_1y8rs_717", Zn = "_appForm_1y8rs_724", Xn = "_appTypeSelect_1y8rs_731", er = "_appList_1y8rs_742", tr = "_appRow_1y8rs_748", ar = "_appIcon_1y8rs_757", nr = "_appName_1y8rs_762", rr = "_appCode_1y8rs_772", sr = "_appTag_1y8rs_778", ir = "_appGo_1y8rs_784", cr = "_appInfraNote_1y8rs_799", or = "_appUnbind_1y8rs_805", lr = "_statsRow_1y8rs_822", dr = "_statItem_1y8rs_833", pr = "_domainBlock_1y8rs_847", ur = "_domainBlockTitle_1y8rs_855", hr = "_domainEmpty_1y8rs_862", mr = "_domainList_1y8rs_870", _r = "_domainRow_1y8rs_876", yr = "_domainName_1y8rs_885", vr = "_domainDesc_1y8rs_899", gr = "_designHint_1y8rs_910", Nr = "_designList_1y8rs_919", fr = "_designRow_1y8rs_925", wr = "_designIcon_1y8rs_934", br = "_designName_1y8rs_939", Tr = "_designTime_1y8rs_949", Cr = "_overviewEntryBtn_1y8rs_956", t = {
|
|
474
|
-
container: Ba,
|
|
475
|
-
libraryView: $a,
|
|
476
|
-
libraryHeader: Fa,
|
|
477
|
-
libraryHeadRow: Oa,
|
|
478
|
-
libraryTitle: ja,
|
|
479
|
-
librarySubtitle: qa,
|
|
480
|
-
librarySearch: Ha,
|
|
481
|
-
libraryBody: Da,
|
|
482
|
-
productGrid: Ua,
|
|
483
|
-
productCard: Ma,
|
|
484
|
-
cardCode: xa,
|
|
485
|
-
cardName: za,
|
|
486
|
-
cardDesc: Ka,
|
|
487
|
-
cardFoot: Va,
|
|
488
|
-
cardEnter: Ja,
|
|
489
|
-
cardTag: Wa,
|
|
490
|
-
left: Qa,
|
|
491
|
-
leftHeader: Ya,
|
|
492
|
-
leftTitleRow: Za,
|
|
493
|
-
leftTitle: Xa,
|
|
494
|
-
backBtn: en,
|
|
495
|
-
sectionBar: tn,
|
|
496
|
-
sectionTab: an,
|
|
497
|
-
sectionTabActive: nn,
|
|
498
|
-
sectionIcon: rn,
|
|
499
|
-
leftBody: sn,
|
|
500
|
-
fileList: cn,
|
|
501
|
-
fileTreeHint: on,
|
|
502
|
-
fileRow: ln,
|
|
503
|
-
fileRowActive: dn,
|
|
504
|
-
fileRowIcon: pn,
|
|
505
|
-
fileRowName: un,
|
|
506
|
-
fileKindTag: hn,
|
|
507
|
-
center: mn,
|
|
508
|
-
centerFill: _n,
|
|
509
|
-
renderArea: yn,
|
|
510
|
-
renderIframe: vn,
|
|
511
|
-
renderCode: gn,
|
|
512
|
-
right: Nn,
|
|
513
|
-
chatSide: fn,
|
|
514
|
-
chatSideHeader: wn,
|
|
515
|
-
chatSideTitle: bn,
|
|
516
|
-
chatGroupList: Tn,
|
|
517
|
-
chatGroupRow: Cn,
|
|
518
|
-
chatGroupRowActive: Sn,
|
|
519
|
-
chatGroupName: Rn,
|
|
520
|
-
chatGroupTime: Pn,
|
|
521
|
-
chatPane: An,
|
|
522
|
-
chatPaneHeader: kn,
|
|
523
|
-
chatPaneTitle: In,
|
|
524
|
-
chatPaneBody: En,
|
|
525
|
-
groupChips: Ln,
|
|
526
|
-
groupChip: Gn,
|
|
527
|
-
groupChipActive: Bn,
|
|
528
|
-
groupNewBtn: $n,
|
|
529
|
-
cardGroup: Fn,
|
|
530
|
-
overviewArea: On,
|
|
531
|
-
overviewHeader: jn,
|
|
532
|
-
overviewTitle: qn,
|
|
533
|
-
overviewSubtitle: Hn,
|
|
534
|
-
overviewTabs: Dn,
|
|
535
|
-
overviewTab: Un,
|
|
536
|
-
overviewTabActive: Mn,
|
|
537
|
-
overviewPanel: xn,
|
|
538
|
-
reqForm: zn,
|
|
539
|
-
reqList: Kn,
|
|
540
|
-
reqRow: Vn,
|
|
541
|
-
reqTitle: Jn,
|
|
542
|
-
reqTag: Wn,
|
|
543
|
-
reqStatusTag: Qn,
|
|
544
|
-
reqTime: Yn,
|
|
545
|
-
appForm: Zn,
|
|
546
|
-
appTypeSelect: Xn,
|
|
547
|
-
appList: er,
|
|
548
|
-
appRow: tr,
|
|
549
|
-
appIcon: ar,
|
|
550
|
-
appName: nr,
|
|
551
|
-
appCode: rr,
|
|
552
|
-
appTag: sr,
|
|
553
|
-
appGo: ir,
|
|
554
|
-
appInfraNote: cr,
|
|
555
|
-
appUnbind: or,
|
|
556
|
-
statsRow: lr,
|
|
557
|
-
statItem: dr,
|
|
558
|
-
domainBlock: pr,
|
|
559
|
-
domainBlockTitle: ur,
|
|
560
|
-
domainEmpty: hr,
|
|
561
|
-
domainList: mr,
|
|
562
|
-
domainRow: _r,
|
|
563
|
-
domainName: yr,
|
|
564
|
-
domainDesc: vr,
|
|
565
|
-
designHint: gr,
|
|
566
|
-
designList: Nr,
|
|
567
|
-
designRow: fr,
|
|
568
|
-
designIcon: wr,
|
|
569
|
-
designName: br,
|
|
570
|
-
designTime: Tr,
|
|
571
|
-
overviewEntryBtn: Cr
|
|
572
|
-
};
|
|
573
|
-
function Sr(n) {
|
|
574
|
-
return {
|
|
575
|
-
id: String(n.id),
|
|
576
|
-
name: n.name,
|
|
577
|
-
description: n.description ?? "",
|
|
578
|
-
workspace_path: n.workspacePath || n.name,
|
|
579
|
-
status: n.status,
|
|
580
|
-
created_at: n.createTime ?? "",
|
|
581
|
-
scenario_id: String(n.id),
|
|
582
|
-
scenario_code: n.scenarioCode,
|
|
583
|
-
scenario_name: n.scenarioName ?? n.name
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
const Rr = [
|
|
587
|
-
{
|
|
588
|
-
title: "产品域",
|
|
589
|
-
icon: /* @__PURE__ */ a(Me, {}),
|
|
590
|
-
items: [
|
|
591
|
-
{ key: "prod-library", label: "产品库", icon: /* @__PURE__ */ a(Me, {}) },
|
|
592
|
-
{
|
|
593
|
-
key: "prod-architecture",
|
|
594
|
-
label: "架构全景",
|
|
595
|
-
icon: /* @__PURE__ */ a(bt, {}),
|
|
596
|
-
title: "租户下所有产品的架构关系(产品↔产品、产品↔中间件)"
|
|
597
|
-
}
|
|
598
|
-
]
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
title: "产品工作台",
|
|
602
|
-
icon: /* @__PURE__ */ a(Tt, {}),
|
|
603
|
-
items: Rt.map((n) => ({
|
|
604
|
-
key: n.key,
|
|
605
|
-
label: n.label,
|
|
606
|
-
icon: n.icon,
|
|
607
|
-
path: n.key
|
|
608
|
-
}))
|
|
609
|
-
}
|
|
610
|
-
];
|
|
611
|
-
function ze(n) {
|
|
612
|
-
const c = n.toLowerCase();
|
|
613
|
-
return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(c) ? "design" : /\.(md|markdown|txt|docx?)$/.test(c) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(c) ? "code" : "other";
|
|
614
|
-
}
|
|
615
|
-
function Ke(n, c = "") {
|
|
616
|
-
const s = [];
|
|
617
|
-
for (const o of n ?? []) {
|
|
618
|
-
const v = o.path || `${c}${o.name ?? ""}`, L = o.name || v.split("/").pop() || v, d = o.type === "dir" || Array.isArray(o.children);
|
|
619
|
-
s.push({ path: v, name: L, dir: d, kind: ze(v), depth: c.split("/").filter(Boolean).length }), d && Array.isArray(o.children) && s.push(...Ke(o.children, `${v}/`));
|
|
620
|
-
}
|
|
621
|
-
return s;
|
|
622
|
-
}
|
|
623
|
-
function Or() {
|
|
624
|
-
const n = B((e) => e.token), c = B((e) => e.selectProject), [s, o] = p([]), [v, L] = p(!0), [d, H] = p(null), [l, D] = p(null), [T, Z] = p(!1), [$, I] = p([]), [_e, X] = p(!1), [U, C] = p(null), [M, E] = p(null), [u, _] = p("other"), [m, ee] = p(""), [x, g] = p("library"), [G, z] = p([]), [Ae, ye] = p(null), [te, ke] = p(!1), [Ve, ae] = p("list"), R = St(null), [ve, Ie] = p([]), [K, Ee] = p(null), [ne, ge] = p([]), [re, Ne] = p([]), [P, F] = p("req"), [V, Le] = p(""), [se, Je] = p([]), [ie, We] = p([]), [ce, Qe] = p([]), [oe, Ye] = p([]), [le, Ze] = p([]), [Ge, Xe] = p([]), fe = y(
|
|
625
|
-
async (e) => {
|
|
626
|
-
H(e), Z(!0), C(null), E(null), ae("list"), ye(null), F("req");
|
|
627
|
-
const i = await Bt(e);
|
|
628
|
-
D(i);
|
|
629
|
-
const N = await jt(e, n);
|
|
630
|
-
z(N);
|
|
631
|
-
const S = await Ut(e);
|
|
632
|
-
ge(S);
|
|
633
|
-
const ue = await xt(e);
|
|
634
|
-
Ne(ue);
|
|
635
|
-
const [Re, J, pt, ut, ht, mt] = await Promise.all([
|
|
636
|
-
Kt(e),
|
|
637
|
-
Vt(e),
|
|
638
|
-
Jt(e),
|
|
639
|
-
Wt(e),
|
|
640
|
-
Qt(e),
|
|
641
|
-
Yt(e)
|
|
642
|
-
]);
|
|
643
|
-
Je(Re), We(J), Qe(pt), Ye(ut), Ze(ht), Xe(mt), X(!0);
|
|
644
|
-
const _t = await $t(e);
|
|
645
|
-
I(_t), X(!1);
|
|
646
|
-
},
|
|
647
|
-
[n]
|
|
648
|
-
), Be = y(async () => {
|
|
649
|
-
L(!0);
|
|
650
|
-
try {
|
|
651
|
-
const e = await Gt();
|
|
652
|
-
o(e);
|
|
653
|
-
const i = await Ht();
|
|
654
|
-
Ie(i);
|
|
655
|
-
try {
|
|
656
|
-
const N = new URLSearchParams(window.location.search).get("product");
|
|
657
|
-
if (N) {
|
|
658
|
-
const S = e.find((ue) => ue.productCode === N);
|
|
659
|
-
if (S) {
|
|
660
|
-
fe(S.productCode);
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
} catch {
|
|
665
|
-
}
|
|
666
|
-
} catch {
|
|
667
|
-
o([]);
|
|
668
|
-
} finally {
|
|
669
|
-
L(!1);
|
|
670
|
-
}
|
|
671
|
-
}, [fe]);
|
|
672
|
-
me(() => {
|
|
673
|
-
Be();
|
|
674
|
-
}, [Be]);
|
|
675
|
-
const et = y(() => {
|
|
676
|
-
if (!d) return;
|
|
677
|
-
const e = new URLSearchParams();
|
|
678
|
-
e.set("product", d), l != null && l.name && e.set("productName", l.name), W.push(`/lc/apps?${e.toString()}`);
|
|
679
|
-
}, [d, l == null ? void 0 : l.name]), tt = y(() => {
|
|
680
|
-
if (!d) return;
|
|
681
|
-
const e = new URLSearchParams();
|
|
682
|
-
e.set("product", d), l != null && l.name && e.set("productName", l.name), W.push(`/test/qa/dashboard?${e.toString()}`);
|
|
683
|
-
}, [d, l == null ? void 0 : l.name]), we = y(() => {
|
|
684
|
-
H(null), Z(!1), D(null), I([]), z([]), C(null), E(null), ye(null), ae("list"), R.current !== void 0 && B.setState({ currentProject: R.current }), R.current = void 0;
|
|
685
|
-
}, []);
|
|
686
|
-
me(() => {
|
|
687
|
-
new URLSearchParams(window.location.search).get("view") === "architecture" && g("architecture");
|
|
688
|
-
}, []);
|
|
689
|
-
const $e = y(
|
|
690
|
-
(e) => {
|
|
691
|
-
T && we(), g(e);
|
|
692
|
-
const i = new URL(window.location.href);
|
|
693
|
-
i.searchParams.set("view", e), W.replace(`${i.pathname}${i.search}${i.hash}`);
|
|
694
|
-
},
|
|
695
|
-
[T, we]
|
|
696
|
-
), Fe = y((e) => {
|
|
697
|
-
W.push(e);
|
|
698
|
-
}, []), Oe = T ? null : x === "architecture" ? "prod-architecture" : "prod-library", je = y(
|
|
699
|
-
(e, i) => {
|
|
700
|
-
e === "产品域" ? $e(i.key === "prod-architecture" ? "architecture" : "library") : i.path && Fe(i.path);
|
|
701
|
-
},
|
|
702
|
-
[$e, Fe]
|
|
703
|
-
), at = Y(
|
|
704
|
-
() => Rr.map((e) => ({
|
|
705
|
-
key: e.title,
|
|
706
|
-
title: e.title,
|
|
707
|
-
items: e.items.map((i) => ({
|
|
708
|
-
key: i.key,
|
|
709
|
-
label: i.label,
|
|
710
|
-
icon: i.icon,
|
|
711
|
-
title: i.title,
|
|
712
|
-
active: Oe === i.key,
|
|
713
|
-
onClick: () => je(e.title, i)
|
|
714
|
-
}))
|
|
715
|
-
})),
|
|
716
|
-
[Oe, je]
|
|
717
|
-
), qe = y(async () => {
|
|
718
|
-
if (!d || !V.trim()) return;
|
|
719
|
-
const e = await zt(d, {
|
|
720
|
-
title: V.trim(),
|
|
721
|
-
priority: "P2"
|
|
722
|
-
});
|
|
723
|
-
e && (Ne((i) => [...i, e]), Le(""));
|
|
724
|
-
}, [d, V]), nt = ["OPEN", "IN_PROGRESS", "DONE", "CLOSED"], [de] = p(nt), rt = y(
|
|
725
|
-
async (e) => {
|
|
726
|
-
if (!d || e.id == null) return;
|
|
727
|
-
const i = String(e.status ?? "OPEN"), N = de.indexOf(i), S = de[(N + 1) % de.length];
|
|
728
|
-
await aa(d, { id: e.id, status: S }) && Ne((Re) => Re.map((J) => J.id === e.id ? { ...J, status: S } : J));
|
|
729
|
-
},
|
|
730
|
-
[d, de]
|
|
731
|
-
), [A, pe] = p({
|
|
732
|
-
appCode: "",
|
|
733
|
-
appName: "",
|
|
734
|
-
appType: "APP"
|
|
735
|
-
}), st = y(async () => {
|
|
736
|
-
if (!d || !A.appCode.trim() || !A.appName.trim()) return;
|
|
737
|
-
const e = await Mt(d, A);
|
|
738
|
-
e && (ge((i) => [...i, e]), pe({ appCode: "", appName: "", appType: "APP" }));
|
|
739
|
-
}, [d, A]), it = y(
|
|
740
|
-
async (e) => {
|
|
741
|
-
d && (await unbindProductApp(d, e), ge((i) => i.filter((N) => N.id !== e)));
|
|
742
|
-
},
|
|
743
|
-
[d]
|
|
744
|
-
), [O, be] = p({ groupCode: "", name: "" }), [ct, Te] = p(!1), He = y(async () => {
|
|
745
|
-
if (!O.groupCode.trim() || !O.name.trim()) return !1;
|
|
746
|
-
const e = await Dt(O);
|
|
747
|
-
return e ? (Ie((i) => [...i, e]), be({ groupCode: "", name: "" }), !0) : !1;
|
|
748
|
-
}, [O]), ot = y(async () => {
|
|
749
|
-
await He() && Te(!1);
|
|
750
|
-
}, [He]), lt = y(
|
|
751
|
-
async (e) => {
|
|
752
|
-
if (!d) return;
|
|
753
|
-
C(e), E(null);
|
|
754
|
-
const i = ze(e);
|
|
755
|
-
_(i);
|
|
756
|
-
const N = await Ft(d, e);
|
|
757
|
-
E(N ?? "");
|
|
758
|
-
},
|
|
759
|
-
[d]
|
|
760
|
-
), Ce = y(
|
|
761
|
-
async (e) => {
|
|
762
|
-
if (!e) return;
|
|
763
|
-
const i = Sr(e);
|
|
764
|
-
R.current = B.getState().currentProject, ye(e.id), ae("chat"), c(i);
|
|
765
|
-
},
|
|
766
|
-
[c]
|
|
767
|
-
), dt = y(async () => {
|
|
768
|
-
if (!(!d || te)) {
|
|
769
|
-
ke(!0);
|
|
770
|
-
try {
|
|
771
|
-
const e = await qt(
|
|
772
|
-
d,
|
|
773
|
-
`${(l == null ? void 0 : l.name) || d} · 讨论组 ${G.length + 1}`,
|
|
774
|
-
n
|
|
775
|
-
);
|
|
776
|
-
z((i) => [...i, e]), await Ce(e);
|
|
777
|
-
} finally {
|
|
778
|
-
ke(!1);
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}, [d, te, G.length, l == null ? void 0 : l.name, n, Ce]);
|
|
782
|
-
me(() => () => {
|
|
783
|
-
R.current !== void 0 && B.setState({ currentProject: R.current });
|
|
784
|
-
}, [Ae]);
|
|
785
|
-
const Se = Y(() => Ke($), [$]), De = Y(
|
|
786
|
-
() => s.filter((e) => !(m && !e.name.includes(m) && !e.productCode.includes(m) || K && e.groupCode !== K)),
|
|
787
|
-
[s, m, K]
|
|
788
|
-
), Ue = y(
|
|
789
|
-
(e) => {
|
|
790
|
-
if (!e) return null;
|
|
791
|
-
const i = ve.find((N) => N.groupCode === e);
|
|
792
|
-
return i ? i.name : e;
|
|
793
|
-
},
|
|
794
|
-
[ve]
|
|
795
|
-
);
|
|
796
|
-
return /* @__PURE__ */ r("div", { className: t.container, children: [
|
|
797
|
-
/* @__PURE__ */ a(It, { title: "产品", width: 220, storageKey: "ft_product_sidebar_collapsed", children: /* @__PURE__ */ a(Et, { groups: at, defaultCollapsed: !0 }) }),
|
|
798
|
-
T ? /* @__PURE__ */ r(yt, { children: [
|
|
799
|
-
/* @__PURE__ */ r("aside", { className: t.left, children: [
|
|
800
|
-
/* @__PURE__ */ r("div", { className: t.leftHeader, children: [
|
|
801
|
-
/* @__PURE__ */ r("div", { className: t.leftTitleRow, children: [
|
|
802
|
-
/* @__PURE__ */ a("button", { type: "button", className: t.backBtn, onClick: we, title: "返回产品库", children: "←" }),
|
|
803
|
-
/* @__PURE__ */ a("span", { className: t.leftTitle, title: (l == null ? void 0 : l.name) || d || "", children: (l == null ? void 0 : l.name) || d })
|
|
804
|
-
] }),
|
|
805
|
-
/* @__PURE__ */ r("div", { className: t.sectionBar, children: [
|
|
806
|
-
/* @__PURE__ */ r("span", { className: `${t.sectionTab} ${t.sectionTabActive}`, children: [
|
|
807
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "📦" }),
|
|
808
|
-
" 产品"
|
|
809
|
-
] }),
|
|
810
|
-
/* @__PURE__ */ r("button", { type: "button", className: t.sectionTab, onClick: et, title: "进入研发工作台(z-lc)", children: [
|
|
811
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "💻" }),
|
|
812
|
-
" 研发"
|
|
813
|
-
] }),
|
|
814
|
-
/* @__PURE__ */ r("button", { type: "button", className: t.sectionTab, onClick: tt, title: "进入测试工作台(QA)", children: [
|
|
815
|
-
/* @__PURE__ */ a("span", { className: t.sectionIcon, children: "🧪" }),
|
|
816
|
-
" 测试"
|
|
817
|
-
] })
|
|
818
|
-
] })
|
|
819
|
-
] }),
|
|
820
|
-
/* @__PURE__ */ r("div", { className: t.leftBody, children: [
|
|
821
|
-
/* @__PURE__ */ a(
|
|
822
|
-
"button",
|
|
823
|
-
{
|
|
824
|
-
type: "button",
|
|
825
|
-
className: t.overviewEntryBtn,
|
|
826
|
-
onClick: () => {
|
|
827
|
-
C(null), E(null);
|
|
828
|
-
},
|
|
829
|
-
title: "回到产品总览(沉淀台)",
|
|
830
|
-
children: "📋 产品总览 · 返回沉淀台"
|
|
831
|
-
}
|
|
832
|
-
),
|
|
833
|
-
/* @__PURE__ */ a("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
|
|
834
|
-
_e ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(he, { size: "small" }) }) : Se.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ a("div", { className: t.fileList, children: Se.map((e) => /* @__PURE__ */ r(
|
|
835
|
-
"div",
|
|
836
|
-
{
|
|
837
|
-
className: `${t.fileRow} ${U === e.path ? t.fileRowActive : ""}`,
|
|
838
|
-
style: { paddingLeft: 12 + e.depth * 16 },
|
|
839
|
-
onClick: () => !e.dir && lt(e.path),
|
|
840
|
-
children: [
|
|
841
|
-
/* @__PURE__ */ a("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
|
|
842
|
-
/* @__PURE__ */ a("span", { className: t.fileRowName, children: e.name }),
|
|
843
|
-
e.kind === "design" && /* @__PURE__ */ a(k, { className: t.fileKindTag, color: "blue", children: "设计稿" })
|
|
844
|
-
]
|
|
845
|
-
},
|
|
846
|
-
e.path
|
|
847
|
-
)) })
|
|
848
|
-
] })
|
|
849
|
-
] }),
|
|
850
|
-
/* @__PURE__ */ a("main", { className: t.center, children: U == null ? /* @__PURE__ */ r("div", { className: t.overviewArea, children: [
|
|
851
|
-
/* @__PURE__ */ r("div", { className: t.overviewHeader, children: [
|
|
852
|
-
/* @__PURE__ */ a("h2", { className: t.overviewTitle, children: "产品总览" }),
|
|
853
|
-
/* @__PURE__ */ a("p", { className: t.overviewSubtitle, children: "「关于这个产品的一切」沉淀在这里:需求 · 应用群 · 领域资产 · 设计稿 · 聊天蒸馏" })
|
|
854
|
-
] }),
|
|
855
|
-
/* @__PURE__ */ r("div", { className: t.statsRow, children: [
|
|
856
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
857
|
-
/* @__PURE__ */ a("b", { children: re.length }),
|
|
858
|
-
" 需求"
|
|
859
|
-
] }),
|
|
860
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
861
|
-
/* @__PURE__ */ a("b", { children: ne.length }),
|
|
862
|
-
" 应用"
|
|
863
|
-
] }),
|
|
864
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
865
|
-
/* @__PURE__ */ a("b", { children: se.length }),
|
|
866
|
-
" 术语"
|
|
867
|
-
] }),
|
|
868
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
869
|
-
/* @__PURE__ */ a("b", { children: ie.length }),
|
|
870
|
-
" 概念"
|
|
871
|
-
] }),
|
|
872
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
873
|
-
/* @__PURE__ */ a("b", { children: ce.length }),
|
|
874
|
-
" 专家团"
|
|
875
|
-
] }),
|
|
876
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
877
|
-
/* @__PURE__ */ a("b", { children: oe.length }),
|
|
878
|
-
" 设计稿"
|
|
879
|
-
] }),
|
|
880
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
881
|
-
/* @__PURE__ */ a("b", { children: le.length }),
|
|
882
|
-
" 会话"
|
|
883
|
-
] }),
|
|
884
|
-
/* @__PURE__ */ r("span", { className: t.statItem, children: [
|
|
885
|
-
/* @__PURE__ */ a("b", { children: Se.filter((e) => !e.dir).length }),
|
|
886
|
-
" 文件"
|
|
887
|
-
] })
|
|
888
|
-
] }),
|
|
889
|
-
/* @__PURE__ */ r("div", { className: t.overviewTabs, children: [
|
|
890
|
-
/* @__PURE__ */ r(
|
|
891
|
-
"button",
|
|
892
|
-
{
|
|
893
|
-
type: "button",
|
|
894
|
-
className: `${t.overviewTab} ${P === "req" ? t.overviewTabActive : ""}`,
|
|
895
|
-
onClick: () => F("req"),
|
|
896
|
-
children: [
|
|
897
|
-
"需求(",
|
|
898
|
-
re.length,
|
|
899
|
-
")"
|
|
900
|
-
]
|
|
901
|
-
}
|
|
902
|
-
),
|
|
903
|
-
/* @__PURE__ */ r(
|
|
904
|
-
"button",
|
|
905
|
-
{
|
|
906
|
-
type: "button",
|
|
907
|
-
className: `${t.overviewTab} ${P === "apps" ? t.overviewTabActive : ""}`,
|
|
908
|
-
onClick: () => F("apps"),
|
|
909
|
-
children: [
|
|
910
|
-
"应用群(",
|
|
911
|
-
ne.length,
|
|
912
|
-
")"
|
|
913
|
-
]
|
|
914
|
-
}
|
|
915
|
-
),
|
|
916
|
-
/* @__PURE__ */ r(
|
|
917
|
-
"button",
|
|
918
|
-
{
|
|
919
|
-
type: "button",
|
|
920
|
-
className: `${t.overviewTab} ${P === "domain" ? t.overviewTabActive : ""}`,
|
|
921
|
-
onClick: () => F("domain"),
|
|
922
|
-
children: [
|
|
923
|
-
"领域资产(",
|
|
924
|
-
se.length + ie.length + ce.length,
|
|
925
|
-
")"
|
|
926
|
-
]
|
|
927
|
-
}
|
|
928
|
-
),
|
|
929
|
-
/* @__PURE__ */ r(
|
|
930
|
-
"button",
|
|
931
|
-
{
|
|
932
|
-
type: "button",
|
|
933
|
-
className: `${t.overviewTab} ${P === "design" ? t.overviewTabActive : ""}`,
|
|
934
|
-
onClick: () => F("design"),
|
|
935
|
-
children: [
|
|
936
|
-
"设计稿(",
|
|
937
|
-
oe.length,
|
|
938
|
-
")"
|
|
939
|
-
]
|
|
940
|
-
}
|
|
941
|
-
),
|
|
942
|
-
/* @__PURE__ */ r(
|
|
943
|
-
"button",
|
|
944
|
-
{
|
|
945
|
-
type: "button",
|
|
946
|
-
className: `${t.overviewTab} ${P === "chat" ? t.overviewTabActive : ""}`,
|
|
947
|
-
onClick: () => F("chat"),
|
|
948
|
-
children: [
|
|
949
|
-
"聊天蒸馏(",
|
|
950
|
-
le.length,
|
|
951
|
-
")"
|
|
952
|
-
]
|
|
953
|
-
}
|
|
954
|
-
)
|
|
955
|
-
] }),
|
|
956
|
-
P === "req" ? /* @__PURE__ */ r("div", { className: t.overviewPanel, children: [
|
|
957
|
-
/* @__PURE__ */ r("div", { className: t.reqForm, children: [
|
|
958
|
-
/* @__PURE__ */ a(
|
|
959
|
-
j,
|
|
960
|
-
{
|
|
961
|
-
placeholder: "新增需求标题(针对本产品)",
|
|
962
|
-
value: V,
|
|
963
|
-
onChange: (e) => Le(e.target.value),
|
|
964
|
-
onPressEnter: () => void qe(),
|
|
965
|
-
style: { flex: 1 }
|
|
966
|
-
}
|
|
967
|
-
),
|
|
968
|
-
/* @__PURE__ */ a(Q, { type: "primary", onClick: () => void qe(), disabled: !V.trim(), children: "添加需求" })
|
|
969
|
-
] }),
|
|
970
|
-
re.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有需求,先落一条" }) : /* @__PURE__ */ a("div", { className: t.reqList, children: re.map((e) => /* @__PURE__ */ r("div", { className: t.reqRow, children: [
|
|
971
|
-
/* @__PURE__ */ a("span", { className: t.reqTitle, title: e.title, children: e.title }),
|
|
972
|
-
/* @__PURE__ */ a(k, { className: t.reqTag, color: e.priority === "P0" ? "red" : e.priority === "P1" ? "orange" : "blue", children: e.priority || "P2" }),
|
|
973
|
-
/* @__PURE__ */ a(
|
|
974
|
-
k,
|
|
975
|
-
{
|
|
976
|
-
className: t.reqStatusTag,
|
|
977
|
-
onClick: () => void rt(e),
|
|
978
|
-
title: "点击流转状态(OPEN → IN_PROGRESS → DONE → CLOSED)",
|
|
979
|
-
children: e.status || "OPEN"
|
|
980
|
-
}
|
|
981
|
-
),
|
|
982
|
-
/* @__PURE__ */ a("span", { className: t.reqTime, children: String(e.createdAt ?? "").slice(0, 10) })
|
|
983
|
-
] }, e.id)) })
|
|
984
|
-
] }) : P === "apps" ? /* @__PURE__ */ r("div", { className: t.overviewPanel, children: [
|
|
985
|
-
/* @__PURE__ */ r("div", { className: t.appForm, children: [
|
|
986
|
-
/* @__PURE__ */ a(
|
|
987
|
-
j,
|
|
988
|
-
{
|
|
989
|
-
placeholder: "应用编码(如 z-lc 应用 code)",
|
|
990
|
-
value: A.appCode,
|
|
991
|
-
onChange: (e) => pe((i) => ({ ...i, appCode: e.target.value })),
|
|
992
|
-
style: { flex: 1 }
|
|
993
|
-
}
|
|
994
|
-
),
|
|
995
|
-
/* @__PURE__ */ a(
|
|
996
|
-
j,
|
|
997
|
-
{
|
|
998
|
-
placeholder: "应用名称",
|
|
999
|
-
value: A.appName,
|
|
1000
|
-
onChange: (e) => pe((i) => ({ ...i, appName: e.target.value })),
|
|
1001
|
-
style: { width: 150 }
|
|
1002
|
-
}
|
|
1003
|
-
),
|
|
1004
|
-
/* @__PURE__ */ r(
|
|
1005
|
-
"select",
|
|
1006
|
-
{
|
|
1007
|
-
className: t.appTypeSelect,
|
|
1008
|
-
value: A.appType,
|
|
1009
|
-
onChange: (e) => pe((i) => ({ ...i, appType: e.target.value })),
|
|
1010
|
-
children: [
|
|
1011
|
-
/* @__PURE__ */ a("option", { value: "APP", children: "应用" }),
|
|
1012
|
-
/* @__PURE__ */ a("option", { value: "INFRA", children: "基建" })
|
|
1013
|
-
]
|
|
1014
|
-
}
|
|
1015
|
-
),
|
|
1016
|
-
/* @__PURE__ */ a(
|
|
1017
|
-
Q,
|
|
1018
|
-
{
|
|
1019
|
-
type: "primary",
|
|
1020
|
-
onClick: () => void st(),
|
|
1021
|
-
disabled: !A.appCode.trim() || !A.appName.trim(),
|
|
1022
|
-
children: "绑定"
|
|
1023
|
-
}
|
|
1024
|
-
)
|
|
1025
|
-
] }),
|
|
1026
|
-
ne.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有应用群,绑定支撑这个产品的应用/基建" }) : /* @__PURE__ */ a("div", { className: t.appList, children: ne.map((e) => /* @__PURE__ */ r("div", { className: t.appRow, children: [
|
|
1027
|
-
/* @__PURE__ */ a("span", { className: t.appIcon, children: e.appType === "INFRA" ? "🏗" : "🧩" }),
|
|
1028
|
-
/* @__PURE__ */ a("span", { className: t.appName, title: e.appName, children: e.appName }),
|
|
1029
|
-
/* @__PURE__ */ a("span", { className: t.appCode, children: e.appCode }),
|
|
1030
|
-
/* @__PURE__ */ a(
|
|
1031
|
-
k,
|
|
1032
|
-
{
|
|
1033
|
-
className: t.appTag,
|
|
1034
|
-
color: e.appType === "INFRA" ? "purple" : "geekblue",
|
|
1035
|
-
children: e.appType === "INFRA" ? "基建" : "应用"
|
|
1036
|
-
}
|
|
1037
|
-
),
|
|
1038
|
-
e.appType === "APP" ? /* @__PURE__ */ a(
|
|
1039
|
-
"button",
|
|
1040
|
-
{
|
|
1041
|
-
type: "button",
|
|
1042
|
-
className: t.appGo,
|
|
1043
|
-
onClick: () => {
|
|
1044
|
-
const i = new URLSearchParams();
|
|
1045
|
-
i.set("product", d || ""), l != null && l.name && i.set("productName", l.name), i.set("app", e.appCode), W.push(`/lc/apps?${i.toString()}`);
|
|
1046
|
-
},
|
|
1047
|
-
children: "去研发"
|
|
1048
|
-
}
|
|
1049
|
-
) : /* @__PURE__ */ a("span", { className: t.appInfraNote, children: "横切多产品" }),
|
|
1050
|
-
/* @__PURE__ */ a(
|
|
1051
|
-
"button",
|
|
1052
|
-
{
|
|
1053
|
-
type: "button",
|
|
1054
|
-
className: t.appUnbind,
|
|
1055
|
-
onClick: () => void it(e.id),
|
|
1056
|
-
title: "解绑",
|
|
1057
|
-
children: "✕"
|
|
1058
|
-
}
|
|
1059
|
-
)
|
|
1060
|
-
] }, e.id)) })
|
|
1061
|
-
] }) : P === "domain" ? /* @__PURE__ */ r("div", { className: t.overviewPanel, children: [
|
|
1062
|
-
/* @__PURE__ */ r("div", { className: t.domainBlock, children: [
|
|
1063
|
-
/* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "📖 统一语言 · 术语" }),
|
|
1064
|
-
se.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有术语,先在对话里对齐统一语言" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: se.map((e, i) => /* @__PURE__ */ r("div", { className: t.domainRow, children: [
|
|
1065
|
-
/* @__PURE__ */ a("span", { className: t.domainName, children: String(e.term ?? e.term_code ?? "") }),
|
|
1066
|
-
/* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.definition ?? "") })
|
|
1067
|
-
] }, String(e.id ?? i))) })
|
|
1068
|
-
] }),
|
|
1069
|
-
/* @__PURE__ */ r("div", { className: t.domainBlock, children: [
|
|
1070
|
-
/* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "🧬 领域概念" }),
|
|
1071
|
-
ie.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有概念模型" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: ie.map((e, i) => /* @__PURE__ */ r("div", { className: t.domainRow, children: [
|
|
1072
|
-
/* @__PURE__ */ a("span", { className: t.domainName, children: String(e.name ?? e.code ?? "") }),
|
|
1073
|
-
/* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.description ?? "") })
|
|
1074
|
-
] }, String(e.id ?? i))) })
|
|
1075
|
-
] }),
|
|
1076
|
-
/* @__PURE__ */ r("div", { className: t.domainBlock, children: [
|
|
1077
|
-
/* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "🎬 用户专家团" }),
|
|
1078
|
-
ce.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有专家团,描述目标用户的典型操作链路" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: ce.map((e, i) => /* @__PURE__ */ r("div", { className: t.domainRow, children: [
|
|
1079
|
-
/* @__PURE__ */ a("span", { className: t.domainName, children: String(e.title ?? e.name ?? "") }),
|
|
1080
|
-
/* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.description ?? "") })
|
|
1081
|
-
] }, String(e.id ?? i))) })
|
|
1082
|
-
] })
|
|
1083
|
-
] }) : P === "design" ? /* @__PURE__ */ r("div", { className: t.overviewPanel, children: [
|
|
1084
|
-
/* @__PURE__ */ a("div", { className: t.designHint, children: "设计稿在左侧文件树(标注「设计稿」标签);点选后在中间渲染区直渲 raw HTML" }),
|
|
1085
|
-
oe.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有设计稿记录" }) : /* @__PURE__ */ a("div", { className: t.designList, children: oe.map((e, i) => /* @__PURE__ */ r("div", { className: t.designRow, children: [
|
|
1086
|
-
/* @__PURE__ */ a("span", { className: t.designIcon, children: "🖼" }),
|
|
1087
|
-
/* @__PURE__ */ a("span", { className: t.designName, children: String(e.title ?? e.name ?? "") }),
|
|
1088
|
-
/* @__PURE__ */ a("span", { className: t.designTime, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 10) })
|
|
1089
|
-
] }, String(e.id ?? i))) })
|
|
1090
|
-
] }) : /* @__PURE__ */ r("div", { className: t.overviewPanel, children: [
|
|
1091
|
-
/* @__PURE__ */ r("div", { className: t.domainBlock, children: [
|
|
1092
|
-
/* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "💬 群聊会话" }),
|
|
1093
|
-
le.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有群聊会话,右侧「发起聊天」开始" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: le.map((e, i) => /* @__PURE__ */ r("div", { className: t.domainRow, children: [
|
|
1094
|
-
/* @__PURE__ */ a("span", { className: t.domainName, children: String(e.title ?? e.session_code ?? "") }),
|
|
1095
|
-
/* @__PURE__ */ a("span", { className: t.domainDesc, children: String(e.updated_at ?? e.created_at ?? "").slice(0, 16).replace("T", " ") })
|
|
1096
|
-
] }, String(e.id ?? i))) })
|
|
1097
|
-
] }),
|
|
1098
|
-
/* @__PURE__ */ r("div", { className: t.domainBlock, children: [
|
|
1099
|
-
/* @__PURE__ */ a("div", { className: t.domainBlockTitle, children: "📌 蒸馏提案" }),
|
|
1100
|
-
Ge.length === 0 ? /* @__PURE__ */ a("div", { className: t.domainEmpty, children: "还没有提案(聊天中沉淀的需求/设计提案会出现在这里)" }) : /* @__PURE__ */ a("div", { className: t.domainList, children: Ge.map((e, i) => {
|
|
1101
|
-
let N = {};
|
|
1102
|
-
try {
|
|
1103
|
-
N = JSON.parse(String(e.payload ?? "{}"));
|
|
1104
|
-
} catch {
|
|
1105
|
-
}
|
|
1106
|
-
const S = String(e.proposal_type ?? "requirement");
|
|
1107
|
-
return /* @__PURE__ */ r("div", { className: t.domainRow, children: [
|
|
1108
|
-
/* @__PURE__ */ r("span", { className: t.domainName, children: [
|
|
1109
|
-
/* @__PURE__ */ a(k, { className: t.reqTag, color: S === "design" ? "geekblue" : "blue", children: S }),
|
|
1110
|
-
String(N.title ?? "")
|
|
1111
|
-
] }),
|
|
1112
|
-
/* @__PURE__ */ a("span", { className: t.domainDesc, children: String(N.description ?? "") })
|
|
1113
|
-
] }, String(e.id ?? i));
|
|
1114
|
-
}) })
|
|
1115
|
-
] })
|
|
1116
|
-
] })
|
|
1117
|
-
] }) : M == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(he, {}) }) : /* @__PURE__ */ a("div", { className: t.renderArea, children: u === "design" ? (
|
|
1118
|
-
/* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
|
|
1119
|
-
/* @__PURE__ */ a(
|
|
1120
|
-
"iframe",
|
|
1121
|
-
{
|
|
1122
|
-
className: t.renderIframe,
|
|
1123
|
-
srcDoc: M,
|
|
1124
|
-
title: U,
|
|
1125
|
-
sandbox: "allow-scripts allow-same-origin"
|
|
1126
|
-
}
|
|
1127
|
-
)
|
|
1128
|
-
) : /* @__PURE__ */ a("pre", { className: t.renderCode, children: M || "(空文件)" }) }) }),
|
|
1129
|
-
/* @__PURE__ */ a("aside", { className: t.right, children: Ve === "list" ? /* @__PURE__ */ r("div", { className: t.chatSide, children: [
|
|
1130
|
-
/* @__PURE__ */ r("div", { className: t.chatSideHeader, children: [
|
|
1131
|
-
/* @__PURE__ */ r("span", { className: t.chatSideTitle, children: [
|
|
1132
|
-
/* @__PURE__ */ a(ft, {}),
|
|
1133
|
-
" 聊天组"
|
|
1134
|
-
] }),
|
|
1135
|
-
/* @__PURE__ */ r(
|
|
1136
|
-
Q,
|
|
1137
|
-
{
|
|
1138
|
-
size: "small",
|
|
1139
|
-
type: "primary",
|
|
1140
|
-
ghost: !0,
|
|
1141
|
-
loading: te,
|
|
1142
|
-
onClick: dt,
|
|
1143
|
-
children: [
|
|
1144
|
-
/* @__PURE__ */ a(wt, {}),
|
|
1145
|
-
" 发起聊天"
|
|
1146
|
-
]
|
|
1147
|
-
}
|
|
1148
|
-
)
|
|
1149
|
-
] }),
|
|
1150
|
-
/* @__PURE__ */ a("div", { className: t.chatGroupList, children: G.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : G.map((e) => /* @__PURE__ */ r(
|
|
1151
|
-
"div",
|
|
1152
|
-
{
|
|
1153
|
-
className: `${t.chatGroupRow} ${Ae === e.id ? t.chatGroupRowActive : ""}`,
|
|
1154
|
-
onClick: () => !te && Ce(e),
|
|
1155
|
-
children: [
|
|
1156
|
-
/* @__PURE__ */ a("span", { className: t.chatGroupName, title: e.name, children: e.name }),
|
|
1157
|
-
/* @__PURE__ */ a("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
|
|
1158
|
-
]
|
|
1159
|
-
},
|
|
1160
|
-
e.id
|
|
1161
|
-
)) })
|
|
1162
|
-
] }) : /* @__PURE__ */ r("div", { className: t.chatPane, children: [
|
|
1163
|
-
/* @__PURE__ */ r("div", { className: t.chatPaneHeader, children: [
|
|
1164
|
-
/* @__PURE__ */ a(
|
|
1165
|
-
"button",
|
|
1166
|
-
{
|
|
1167
|
-
type: "button",
|
|
1168
|
-
className: t.backBtn,
|
|
1169
|
-
onClick: () => {
|
|
1170
|
-
ae("list"), R.current !== void 0 && B.setState({ currentProject: R.current }), R.current = void 0;
|
|
1171
|
-
},
|
|
1172
|
-
title: "返回聊天组列表",
|
|
1173
|
-
children: "←"
|
|
1174
|
-
}
|
|
1175
|
-
),
|
|
1176
|
-
/* @__PURE__ */ r("span", { className: t.chatPaneTitle, children: [
|
|
1177
|
-
"群聊 · ",
|
|
1178
|
-
(l == null ? void 0 : l.name) || d
|
|
1179
|
-
] })
|
|
1180
|
-
] }),
|
|
1181
|
-
/* @__PURE__ */ a("div", { className: t.chatPaneBody, children: /* @__PURE__ */ a(Pt, { hideTabs: !0 }) })
|
|
1182
|
-
] }) })
|
|
1183
|
-
] }) : x === "architecture" ? (
|
|
1184
|
-
/* ═══ 架构全景:架构语言的表达面 ═══ */
|
|
1185
|
-
/* @__PURE__ */ a(Ga, {})
|
|
1186
|
-
) : (
|
|
1187
|
-
/* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
|
|
1188
|
-
/* @__PURE__ */ r("div", { className: t.libraryView, children: [
|
|
1189
|
-
/* @__PURE__ */ r("div", { className: t.libraryHeader, children: [
|
|
1190
|
-
/* @__PURE__ */ r("div", { className: t.libraryHeadRow, children: [
|
|
1191
|
-
/* @__PURE__ */ r("div", { children: [
|
|
1192
|
-
/* @__PURE__ */ a("h2", { className: t.libraryTitle, children: "产品库" }),
|
|
1193
|
-
/* @__PURE__ */ a("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊 · 应用群" })
|
|
1194
|
-
] }),
|
|
1195
|
-
/* @__PURE__ */ a(
|
|
1196
|
-
j,
|
|
1197
|
-
{
|
|
1198
|
-
prefix: /* @__PURE__ */ a(gt, {}),
|
|
1199
|
-
placeholder: "搜索产品",
|
|
1200
|
-
value: m,
|
|
1201
|
-
onChange: (e) => ee(e.target.value),
|
|
1202
|
-
allowClear: !0,
|
|
1203
|
-
className: t.librarySearch
|
|
1204
|
-
}
|
|
1205
|
-
)
|
|
1206
|
-
] }),
|
|
1207
|
-
/* @__PURE__ */ r("div", { className: t.groupChips, children: [
|
|
1208
|
-
/* @__PURE__ */ a(
|
|
1209
|
-
"button",
|
|
1210
|
-
{
|
|
1211
|
-
type: "button",
|
|
1212
|
-
className: `${t.groupChip} ${K === null ? t.groupChipActive : ""}`,
|
|
1213
|
-
onClick: () => Ee(null),
|
|
1214
|
-
children: "全部"
|
|
1215
|
-
}
|
|
1216
|
-
),
|
|
1217
|
-
ve.map((e) => /* @__PURE__ */ a(
|
|
1218
|
-
"button",
|
|
1219
|
-
{
|
|
1220
|
-
type: "button",
|
|
1221
|
-
className: `${t.groupChip} ${K === e.groupCode ? t.groupChipActive : ""}`,
|
|
1222
|
-
onClick: () => Ee(e.groupCode),
|
|
1223
|
-
title: e.description || e.name,
|
|
1224
|
-
children: e.name
|
|
1225
|
-
},
|
|
1226
|
-
e.groupCode
|
|
1227
|
-
)),
|
|
1228
|
-
/* @__PURE__ */ a(
|
|
1229
|
-
"button",
|
|
1230
|
-
{
|
|
1231
|
-
type: "button",
|
|
1232
|
-
className: t.groupNewBtn,
|
|
1233
|
-
onClick: () => Te(!0),
|
|
1234
|
-
title: "新建产品群",
|
|
1235
|
-
children: "+ 新建产品群"
|
|
1236
|
-
}
|
|
1237
|
-
)
|
|
1238
|
-
] })
|
|
1239
|
-
] }),
|
|
1240
|
-
/* @__PURE__ */ a("div", { className: t.libraryBody, children: v ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(he, {}) }) : De.length === 0 ? /* @__PURE__ */ a(f, { image: f.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ a("div", { className: t.productGrid, children: De.map((e) => /* @__PURE__ */ r(
|
|
1241
|
-
"button",
|
|
1242
|
-
{
|
|
1243
|
-
type: "button",
|
|
1244
|
-
className: t.productCard,
|
|
1245
|
-
onClick: () => void fe(e.productCode),
|
|
1246
|
-
children: [
|
|
1247
|
-
/* @__PURE__ */ a("span", { className: t.cardCode, children: e.productCode }),
|
|
1248
|
-
/* @__PURE__ */ a("span", { className: t.cardName, title: e.name, children: e.name }),
|
|
1249
|
-
/* @__PURE__ */ a("span", { className: t.cardDesc, children: e.description || "暂无产品描述" }),
|
|
1250
|
-
/* @__PURE__ */ r("span", { className: t.cardFoot, children: [
|
|
1251
|
-
/* @__PURE__ */ r("span", { className: t.cardEnter, children: [
|
|
1252
|
-
"进入产品 ",
|
|
1253
|
-
/* @__PURE__ */ a(Nt, {})
|
|
1254
|
-
] }),
|
|
1255
|
-
Ue(e.groupCode) && /* @__PURE__ */ a("span", { className: t.cardGroup, children: Ue(e.groupCode) }),
|
|
1256
|
-
e.status && /* @__PURE__ */ a(k, { className: t.cardTag, children: e.status })
|
|
1257
|
-
] })
|
|
1258
|
-
]
|
|
1259
|
-
},
|
|
1260
|
-
e.productCode
|
|
1261
|
-
)) }) }),
|
|
1262
|
-
/* @__PURE__ */ a(
|
|
1263
|
-
Ct,
|
|
1264
|
-
{
|
|
1265
|
-
title: "新建产品群",
|
|
1266
|
-
open: ct,
|
|
1267
|
-
onOk: () => void ot(),
|
|
1268
|
-
onCancel: () => Te(!1),
|
|
1269
|
-
okText: "创建",
|
|
1270
|
-
cancelText: "取消",
|
|
1271
|
-
destroyOnClose: !0,
|
|
1272
|
-
children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: 12, paddingTop: 8 }, children: [
|
|
1273
|
-
/* @__PURE__ */ a(
|
|
1274
|
-
j,
|
|
1275
|
-
{
|
|
1276
|
-
placeholder: "群码(唯一标识,如 ppt-studio)",
|
|
1277
|
-
value: O.groupCode,
|
|
1278
|
-
onChange: (e) => be((i) => ({ ...i, groupCode: e.target.value }))
|
|
1279
|
-
}
|
|
1280
|
-
),
|
|
1281
|
-
/* @__PURE__ */ a(
|
|
1282
|
-
j,
|
|
1283
|
-
{
|
|
1284
|
-
placeholder: "群名(如 PPT 智造群)",
|
|
1285
|
-
value: O.name,
|
|
1286
|
-
onChange: (e) => be((i) => ({ ...i, name: e.target.value }))
|
|
1287
|
-
}
|
|
1288
|
-
)
|
|
1289
|
-
] })
|
|
1290
|
-
}
|
|
1291
|
-
)
|
|
1292
|
-
] })
|
|
1293
|
-
)
|
|
1294
|
-
] });
|
|
1295
|
-
}
|
|
1296
|
-
export {
|
|
1297
|
-
Or as default
|
|
1298
|
-
};
|