@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.
Files changed (48) hide show
  1. package/dist/{ChangeLogView-Mn5LSUvJ.js → ChangeLogView-BhvD1usg.js} +1 -1
  2. package/dist/{ComponentDoc-BKGd6D6u.js → ComponentDoc-Dbog-ROg.js} +3 -3
  3. package/dist/{InvitationManagementPage-DHORbfXF.js → InvitationManagementPage-FpWSld69.js} +1 -1
  4. package/dist/{OnboardingPage-ChIsu-TY.js → OnboardingPage-CEB7EZD8.js} +2 -2
  5. package/dist/{ScheduledTasks-CorjHXG-.js → ScheduledTasks-DMx7-HAn.js} +6 -6
  6. package/dist/SystemShell-Dlpy5DZH.js +712 -0
  7. package/dist/{admin-logs-Ckzi7TeC.js → admin-logs-HL0SNlQ5.js} +1 -1
  8. package/dist/{api-BIwuQUnn.js → api-C-Y_mxLq.js} +1 -1
  9. package/dist/{api-DWN5lt_h.js → api-Cgf9Zvk8.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-CZ6H2AZV.js → createWorkspaceWsHandler-C4AE3shS.js} +3 -3
  11. package/dist/{index-DJl3h5Bg.js → index-1-xc0Fmq.js} +1 -1
  12. package/dist/{index-715e6ItU.js → index-BBaPF4oF.js} +8 -8
  13. package/dist/{index-BVhOg_hh.js → index-BSyFSAmv.js} +5 -5
  14. package/dist/{index-CxDonxJ5.js → index-BYyuwkoJ.js} +3 -3
  15. package/dist/{index-T_vi7gwn.js → index-BZpOPuCa.js} +1 -1
  16. package/dist/{index-DFVMc2Wx.js → index-BbMM1410.js} +2 -2
  17. package/dist/{index--JKduFbf.js → index-BrfH3igf.js} +3 -3
  18. package/dist/{index-BWpXdOkG.js → index-BuUjKN5w.js} +1 -1
  19. package/dist/{index-C8ylej1n.js → index-CAvY86GA.js} +1 -1
  20. package/dist/{index-DPzDdcFg.js → index-CV2D2UQv.js} +4 -4
  21. package/dist/{index-ioMD3Wyv.js → index-CnHOeSAo.js} +2 -2
  22. package/dist/{index-CH56FdB5.js → index-Ct89In-K.js} +2 -2
  23. package/dist/{index-DTx26k4L.js → index-CtX68AZj.js} +2 -2
  24. package/dist/{index-D9uZ2Jjj.js → index-CwRr3k-Y.js} +1 -1
  25. package/dist/{index-VEeHoEbx.js → index-DK4iCG0v.js} +2 -2
  26. package/dist/{index-vdWWTTZg.js → index-DKbZVSzh.js} +3 -3
  27. package/dist/{index-BPSoaoFx.js → index-DalMaLkT.js} +6 -6
  28. package/dist/{index-DBBmrczh.js → index-Dd40mcAz.js} +3 -3
  29. package/dist/index-Dn29Q5QZ.js +143 -0
  30. package/dist/index-N2IBdYQH.js +394 -0
  31. package/dist/{index-DG9KRcB7.js → index-d2s8WYki.js} +6 -6
  32. package/dist/{index-kAxFJq-Q.js → index-j1byhHWV.js} +3 -3
  33. package/dist/{index-2iqK5Tkw.js → index-kdesqA-H.js} +2 -2
  34. package/dist/{index-CSagljyv.js → index-n6e49cm3.js} +3 -3
  35. package/dist/{index-D1s4BGKe.js → index-nnLPmHli.js} +2 -2
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-CUl18UjH.js → instance-DmL5Z2wc.js} +1 -1
  38. package/dist/{menuPermission-rZ0KSqFi.js → menuPermission-Bu40OObn.js} +3 -3
  39. package/dist/pages.js +1 -1
  40. package/dist/{send-default-agent-team-message-BEsgdoRU.js → send-default-agent-team-message-DPRCcmZq.js} +1 -1
  41. package/dist/{sso-user-BW1vguVf.js → sso-user-DyqailS7.js} +1 -1
  42. package/dist/{training-Csa_y6lO.js → training-C5Fs8r2U.js} +1 -1
  43. package/dist/{webide-DBov-2vp.js → webide-DwbwUqaR.js} +3 -3
  44. package/dist/z-team-component.css +1 -1
  45. package/package.json +1 -1
  46. package/dist/SystemShell-iAK8aCSW.js +0 -688
  47. package/dist/index-BoL8kFkC.js +0 -118
  48. package/dist/index-l4NMXF0T.js +0 -354
@@ -1,118 +0,0 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useState as y, useMemo as d } from "react";
3
- import { useNavigate as G, useLocation as k } from "react-router-dom";
4
- import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
5
- import R from "@yuku123/z-lc-component";
6
- import { f as U, M as x } from "./menuPermission-rZ0KSqFi.js";
7
- import { u as b } from "./ComponentDoc-BKGd6D6u.js";
8
- const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
9
- shell: D,
10
- sidebar: E,
11
- sidebarHeader: P,
12
- menuList: j,
13
- menuGroup: K,
14
- menuGroupHeader: T,
15
- menuGroupLabel: B,
16
- menuGroupArrow: F,
17
- menuSubList: q,
18
- menuSubItemWrap: z,
19
- menuSubItem: J,
20
- menuSubItemActive: Q,
21
- menuSubItemIcon: V,
22
- menuSubItemLabel: X,
23
- main: Y
24
- }, r = [
25
- {
26
- title: "应用",
27
- items: [
28
- { key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(v, {}), path: "apps" }
29
- ]
30
- },
31
- {
32
- title: "建模",
33
- items: [
34
- { key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
35
- { key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(w, {}), path: "db-import" },
36
- { key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(H, {}), path: "admin/ai" }
37
- ]
38
- },
39
- {
40
- title: "配置",
41
- items: [
42
- { key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(M, {}), path: "admin/dicts" },
43
- { key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(W, {}), path: "admin/relations" },
44
- { key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(C, {}), path: "admin/views" },
45
- { key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e($, {}), path: "admin/pipelines" },
46
- { key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(p, {}), path: "admin/workflows" }
47
- ]
48
- },
49
- {
50
- title: "运行",
51
- items: [
52
- { key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(g, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
53
- { key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(p, {}), path: "admin/deployments" }
54
- ]
55
- }
56
- ], c = "/lc";
57
- function Z(l) {
58
- if (!l.startsWith(c)) return null;
59
- const m = l.slice(c.length).replace(/^\//, "");
60
- for (const o of r)
61
- for (const s of o.items)
62
- if (m === s.path || m.startsWith(`${s.path}/`)) return s.key;
63
- return null;
64
- }
65
- function le() {
66
- const l = G(), { pathname: m } = k(), o = b((n) => n.currentUser), s = b((n) => n.permissionState), [_, h] = y(
67
- new Set(r.map((n) => n.title))
68
- ), S = d(
69
- () => s === "failed" ? r : U(r, o),
70
- [o, s]
71
- ), I = d(() => Z(m), [m]), f = (n) => {
72
- h((u) => {
73
- const i = new Set(u);
74
- return i.has(n) ? i.delete(n) : i.add(n), i;
75
- });
76
- };
77
- return /* @__PURE__ */ a("div", { className: t.shell, children: [
78
- /* @__PURE__ */ a("aside", { className: t.sidebar, children: [
79
- /* @__PURE__ */ a("div", { className: t.sidebarHeader, children: [
80
- /* @__PURE__ */ e(L, {}),
81
- /* @__PURE__ */ e("span", { children: "研发工作台" })
82
- ] }),
83
- /* @__PURE__ */ e(x, {}),
84
- /* @__PURE__ */ e("nav", { className: t.menuList, children: S.map((n) => {
85
- const u = !_.has(n.title);
86
- return /* @__PURE__ */ a("div", { className: t.menuGroup, children: [
87
- /* @__PURE__ */ a(
88
- "div",
89
- {
90
- className: t.menuGroupHeader,
91
- onClick: () => f(n.title),
92
- children: [
93
- /* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
94
- /* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: u ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(O, {}) })
95
- ]
96
- }
97
- ),
98
- u && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((i) => /* @__PURE__ */ a(
99
- "li",
100
- {
101
- className: `${t.menuSubItemWrap} ${t.menuSubItem} ${I === i.key ? t.menuSubItemActive : ""}`,
102
- onClick: () => l(`${c}/${i.path}`),
103
- children: [
104
- /* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: i.icon }),
105
- /* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: i.label })
106
- ]
107
- },
108
- i.key
109
- )) })
110
- ] }, n.title);
111
- }) })
112
- ] }),
113
- /* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(R, {}) })
114
- ] });
115
- }
116
- export {
117
- le as default
118
- };
@@ -1,354 +0,0 @@
1
- import { jsx as a, jsxs as s, Fragment as ne } from "react/jsx-runtime";
2
- import { SearchOutlined as se, RightOutlined as oe, TeamOutlined as le, MessageOutlined as de } from "@ant-design/icons";
3
- import { Input as ue, Spin as k, Empty as _, Tag as U, Button as he } from "antd";
4
- import { useState as l, useRef as _e, useCallback as p, useEffect as D, useMemo as V } from "react";
5
- import { u as f } from "./ComponentDoc-BKGd6D6u.js";
6
- import { C as me } from "./createWorkspaceWsHandler-CZ6H2AZV.js";
7
- import { l as fe, c as pe } from "./api-DWN5lt_h.js";
8
- const ve = "product-workspace", z = "productCode";
9
- function E(r) {
10
- if (!r.ok) throw new Error(`产品接口失败 (${r.status})`);
11
- return r.json();
12
- }
13
- async function ye() {
14
- const r = f.getState().token, n = await fetch(`/api/product/list${r ? `?token=${encodeURIComponent(r)}` : ""}`, {
15
- credentials: "include",
16
- headers: { Accept: "application/json" }
17
- }), c = await E(n), i = Array.isArray(c) ? c : c == null ? void 0 : c.data;
18
- return Array.isArray(i) ? i.map((d) => ({
19
- ...d,
20
- productCode: String(d.productCode ?? d.code ?? ""),
21
- name: String(d.name ?? d.productCode ?? d.code ?? "未命名")
22
- })) : [];
23
- }
24
- async function Ne(r) {
25
- try {
26
- const n = await fetch(`/api/product/${encodeURIComponent(r)}`, {
27
- credentials: "include",
28
- headers: { Accept: "application/json" }
29
- }), c = await E(n), i = (c == null ? void 0 : c.data) ?? c;
30
- return i && typeof i == "object" ? { ...i, productCode: r } : null;
31
- } catch {
32
- return null;
33
- }
34
- }
35
- async function we(r) {
36
- try {
37
- const n = await fetch(`/api/product/${encodeURIComponent(r)}/atelier/workspace`, {
38
- credentials: "include",
39
- headers: { Accept: "application/json" }
40
- }), c = await E(n), i = (c == null ? void 0 : c.data) ?? c;
41
- return i && typeof i == "object" && Array.isArray(i.files) ? i.files : Array.isArray(i) ? i : [];
42
- } catch {
43
- return [];
44
- }
45
- }
46
- async function Ce(r, n) {
47
- try {
48
- const c = await fetch(
49
- `/api/product/${encodeURIComponent(r)}/atelier/files/raw?path=${encodeURIComponent(n)}`,
50
- { credentials: "include", headers: { Accept: "text/html, application/json" } }
51
- );
52
- return c.ok ? await c.text() : null;
53
- } catch {
54
- return null;
55
- }
56
- }
57
- function Te(r) {
58
- var i;
59
- const n = (i = r.ext) == null ? void 0 : i.params;
60
- if (!n || typeof n != "object") return null;
61
- const c = n[z];
62
- return c == null ? null : String(c);
63
- }
64
- async function Pe(r, n) {
65
- try {
66
- return (await fe(n)).filter((i) => Te(i) === r);
67
- } catch {
68
- return [];
69
- }
70
- }
71
- async function ge(r, n, c) {
72
- return pe(
73
- { scenario_code: ve, name: n || `产品 ${r} 讨论组` },
74
- c,
75
- { [z]: r }
76
- );
77
- }
78
- const Se = "_container_1aidv_5", be = "_libraryView_1aidv_14", Re = "_libraryHeader_1aidv_22", Ae = "_libraryTitle_1aidv_34", Ge = "_librarySubtitle_1aidv_41", ke = "_librarySearch_1aidv_47", Ee = "_libraryBody_1aidv_52", Ie = "_productGrid_1aidv_59", je = "_productCard_1aidv_65", He = "_cardCode_1aidv_85", Fe = "_cardName_1aidv_98", $e = "_cardDesc_1aidv_107", Be = "_cardFoot_1aidv_118", Le = "_cardEnter_1aidv_126", xe = "_cardTag_1aidv_134", Me = "_left_1aidv_140", Oe = "_leftHeader_1aidv_150", Ke = "_leftTitleRow_1aidv_156", Ue = "_leftTitle_1aidv_156", De = "_backBtn_1aidv_173", Ve = "_leftBody_1aidv_202", ze = "_fileList_1aidv_213", We = "_fileTreeHint_1aidv_252", qe = "_fileRow_1aidv_258", Je = "_fileRowActive_1aidv_272", Ye = "_fileRowIcon_1aidv_276", Qe = "_fileRowName_1aidv_281", Xe = "_fileKindTag_1aidv_290", Ze = "_center_1aidv_298", et = "_centerFill_1aidv_307", tt = "_renderArea_1aidv_362", at = "_renderIframe_1aidv_372", rt = "_renderCode_1aidv_378", ct = "_right_1aidv_391", it = "_chatSide_1aidv_402", nt = "_chatSideHeader_1aidv_408", st = "_chatSideTitle_1aidv_417", ot = "_chatGroupList_1aidv_426", lt = "_chatGroupRow_1aidv_435", dt = "_chatGroupRowActive_1aidv_449", ut = "_chatGroupName_1aidv_453", ht = "_chatGroupTime_1aidv_462", _t = "_chatPane_1aidv_469", mt = "_chatPaneHeader_1aidv_475", ft = "_chatPaneTitle_1aidv_484", pt = "_chatPaneBody_1aidv_493", t = {
79
- container: Se,
80
- libraryView: be,
81
- libraryHeader: Re,
82
- libraryTitle: Ae,
83
- librarySubtitle: Ge,
84
- librarySearch: ke,
85
- libraryBody: Ee,
86
- productGrid: Ie,
87
- productCard: je,
88
- cardCode: He,
89
- cardName: Fe,
90
- cardDesc: $e,
91
- cardFoot: Be,
92
- cardEnter: Le,
93
- cardTag: xe,
94
- left: Me,
95
- leftHeader: Oe,
96
- leftTitleRow: Ke,
97
- leftTitle: Ue,
98
- backBtn: De,
99
- leftBody: Ve,
100
- fileList: ze,
101
- fileTreeHint: We,
102
- fileRow: qe,
103
- fileRowActive: Je,
104
- fileRowIcon: Ye,
105
- fileRowName: Qe,
106
- fileKindTag: Xe,
107
- center: Ze,
108
- centerFill: et,
109
- renderArea: tt,
110
- renderIframe: at,
111
- renderCode: rt,
112
- right: ct,
113
- chatSide: it,
114
- chatSideHeader: nt,
115
- chatSideTitle: st,
116
- chatGroupList: ot,
117
- chatGroupRow: lt,
118
- chatGroupRowActive: dt,
119
- chatGroupName: ut,
120
- chatGroupTime: ht,
121
- chatPane: _t,
122
- chatPaneHeader: mt,
123
- chatPaneTitle: ft,
124
- chatPaneBody: pt
125
- };
126
- function vt(r) {
127
- return {
128
- id: String(r.id),
129
- name: r.name,
130
- description: r.description ?? "",
131
- workspace_path: r.workspacePath || r.name,
132
- status: r.status,
133
- created_at: r.createTime ?? "",
134
- scenario_id: String(r.id),
135
- scenario_code: r.scenarioCode,
136
- scenario_name: r.scenarioName ?? r.name
137
- };
138
- }
139
- function W(r) {
140
- const n = r.toLowerCase();
141
- return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(n) ? "design" : /\.(md|markdown|txt|docx?)$/.test(n) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(n) ? "code" : "other";
142
- }
143
- function q(r, n = "") {
144
- const c = [];
145
- for (const i of r ?? []) {
146
- const d = i.path || `${n}${i.name ?? ""}`, y = i.name || d.split("/").pop() || d, u = i.type === "dir" || Array.isArray(i.children);
147
- c.push({ path: d, name: y, dir: u, kind: W(d), depth: n.split("/").filter(Boolean).length }), u && Array.isArray(i.children) && c.push(...q(i.children, `${d}/`));
148
- }
149
- return c;
150
- }
151
- function St() {
152
- const r = f((e) => e.token), n = f((e) => e.selectProject), [c, i] = l([]), [d, y] = l(!0), [u, I] = l(null), [o, j] = l(null), [J, H] = l(!1), [F, $] = l([]), [Y, B] = l(!1), [P, g] = l(null), [S, N] = l(null), [Q, X] = l("other"), [v, Z] = l(""), [w, b] = l([]), [L, R] = l(null), [C, x] = l(!1), [ee, T] = l("list"), h = _e(null), M = p(async () => {
153
- y(!0);
154
- try {
155
- const e = await ye();
156
- i(e);
157
- } catch {
158
- i([]);
159
- } finally {
160
- y(!1);
161
- }
162
- }, []);
163
- D(() => {
164
- M();
165
- }, [M]);
166
- const te = p(
167
- async (e) => {
168
- I(e), H(!0), g(null), N(null), T("list"), R(null);
169
- const m = await Ne(e);
170
- j(m);
171
- const G = await Pe(e, r);
172
- b(G), B(!0);
173
- const ie = await we(e);
174
- $(ie), B(!1);
175
- },
176
- [r]
177
- ), ae = p(() => {
178
- I(null), H(!1), j(null), $([]), b([]), g(null), N(null), R(null), T("list"), h.current !== void 0 && f.setState({ currentProject: h.current }), h.current = void 0;
179
- }, []), re = p(
180
- async (e) => {
181
- if (!u) return;
182
- g(e), N(null);
183
- const m = W(e);
184
- X(m);
185
- const G = await Ce(u, e);
186
- N(G ?? "");
187
- },
188
- [u]
189
- ), A = p(
190
- async (e) => {
191
- if (!e) return;
192
- const m = vt(e);
193
- h.current = f.getState().currentProject, R(e.id), T("chat"), n(m);
194
- },
195
- [n]
196
- ), ce = p(async () => {
197
- if (!(!u || C)) {
198
- x(!0);
199
- try {
200
- const e = await ge(
201
- u,
202
- `${(o == null ? void 0 : o.name) || u} · 讨论组 ${w.length + 1}`,
203
- r
204
- );
205
- b((m) => [...m, e]), await A(e);
206
- } finally {
207
- x(!1);
208
- }
209
- }
210
- }, [u, C, w.length, o == null ? void 0 : o.name, r, A]);
211
- D(() => () => {
212
- h.current !== void 0 && f.setState({ currentProject: h.current });
213
- }, [L]);
214
- const O = V(() => q(F), [F]), K = V(
215
- () => c.filter((e) => !v || e.name.includes(v) || e.productCode.includes(v)),
216
- [c, v]
217
- );
218
- return /* @__PURE__ */ a("div", { className: t.container, children: J ? /* @__PURE__ */ s(ne, { children: [
219
- /* @__PURE__ */ s("aside", { className: t.left, children: [
220
- /* @__PURE__ */ a("div", { className: t.leftHeader, children: /* @__PURE__ */ s("div", { className: t.leftTitleRow, children: [
221
- /* @__PURE__ */ a("button", { type: "button", className: t.backBtn, onClick: ae, title: "返回产品库", children: "←" }),
222
- /* @__PURE__ */ a("span", { className: t.leftTitle, title: (o == null ? void 0 : o.name) || u || "", children: (o == null ? void 0 : o.name) || u })
223
- ] }) }),
224
- /* @__PURE__ */ s("div", { className: t.leftBody, children: [
225
- /* @__PURE__ */ a("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
226
- Y ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(k, { size: "small" }) }) : O.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ a("div", { className: t.fileList, children: O.map((e) => /* @__PURE__ */ s(
227
- "div",
228
- {
229
- className: `${t.fileRow} ${P === e.path ? t.fileRowActive : ""}`,
230
- style: { paddingLeft: 12 + e.depth * 16 },
231
- onClick: () => !e.dir && re(e.path),
232
- children: [
233
- /* @__PURE__ */ a("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
234
- /* @__PURE__ */ a("span", { className: t.fileRowName, children: e.name }),
235
- e.kind === "design" && /* @__PURE__ */ a(U, { className: t.fileKindTag, color: "blue", children: "设计稿" })
236
- ]
237
- },
238
- e.path
239
- )) })
240
- ] })
241
- ] }),
242
- /* @__PURE__ */ a("main", { className: t.center, children: P == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "点击左侧文件查看渲染" }) }) : S == null ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(k, {}) }) : /* @__PURE__ */ a("div", { className: t.renderArea, children: Q === "design" ? (
243
- /* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
244
- /* @__PURE__ */ a(
245
- "iframe",
246
- {
247
- className: t.renderIframe,
248
- srcDoc: S,
249
- title: P,
250
- sandbox: "allow-scripts allow-same-origin"
251
- }
252
- )
253
- ) : /* @__PURE__ */ a("pre", { className: t.renderCode, children: S || "(空文件)" }) }) }),
254
- /* @__PURE__ */ a("aside", { className: t.right, children: ee === "list" ? /* @__PURE__ */ s("div", { className: t.chatSide, children: [
255
- /* @__PURE__ */ s("div", { className: t.chatSideHeader, children: [
256
- /* @__PURE__ */ s("span", { className: t.chatSideTitle, children: [
257
- /* @__PURE__ */ a(le, {}),
258
- " 聊天组"
259
- ] }),
260
- /* @__PURE__ */ s(
261
- he,
262
- {
263
- size: "small",
264
- type: "primary",
265
- ghost: !0,
266
- loading: C,
267
- onClick: ce,
268
- children: [
269
- /* @__PURE__ */ a(de, {}),
270
- " 发起聊天"
271
- ]
272
- }
273
- )
274
- ] }),
275
- /* @__PURE__ */ a("div", { className: t.chatGroupList, children: w.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : w.map((e) => /* @__PURE__ */ s(
276
- "div",
277
- {
278
- className: `${t.chatGroupRow} ${L === e.id ? t.chatGroupRowActive : ""}`,
279
- onClick: () => !C && A(e),
280
- children: [
281
- /* @__PURE__ */ a("span", { className: t.chatGroupName, title: e.name, children: e.name }),
282
- /* @__PURE__ */ a("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
283
- ]
284
- },
285
- e.id
286
- )) })
287
- ] }) : /* @__PURE__ */ s("div", { className: t.chatPane, children: [
288
- /* @__PURE__ */ s("div", { className: t.chatPaneHeader, children: [
289
- /* @__PURE__ */ a(
290
- "button",
291
- {
292
- type: "button",
293
- className: t.backBtn,
294
- onClick: () => {
295
- T("list"), h.current !== void 0 && f.setState({ currentProject: h.current }), h.current = void 0;
296
- },
297
- title: "返回聊天组列表",
298
- children: "←"
299
- }
300
- ),
301
- /* @__PURE__ */ s("span", { className: t.chatPaneTitle, children: [
302
- "群聊 · ",
303
- (o == null ? void 0 : o.name) || u
304
- ] })
305
- ] }),
306
- /* @__PURE__ */ a("div", { className: t.chatPaneBody, children: /* @__PURE__ */ a(me, { hideTabs: !0 }) })
307
- ] }) })
308
- ] }) : (
309
- /* ═══ 产品库视图:全宽产品卡片网格,点卡片直接进入 ═══ */
310
- /* @__PURE__ */ s("div", { className: t.libraryView, children: [
311
- /* @__PURE__ */ s("div", { className: t.libraryHeader, children: [
312
- /* @__PURE__ */ s("div", { children: [
313
- /* @__PURE__ */ a("h2", { className: t.libraryTitle, children: "产品库" }),
314
- /* @__PURE__ */ a("p", { className: t.librarySubtitle, children: "选择产品进入工作区:文件 · 设计稿 · 群聊" })
315
- ] }),
316
- /* @__PURE__ */ a(
317
- ue,
318
- {
319
- prefix: /* @__PURE__ */ a(se, {}),
320
- placeholder: "搜索产品",
321
- value: v,
322
- onChange: (e) => Z(e.target.value),
323
- allowClear: !0,
324
- className: t.librarySearch
325
- }
326
- )
327
- ] }),
328
- /* @__PURE__ */ a("div", { className: t.libraryBody, children: d ? /* @__PURE__ */ a("div", { className: t.centerFill, children: /* @__PURE__ */ a(k, {}) }) : K.length === 0 ? /* @__PURE__ */ a(_, { image: _.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ a("div", { className: t.productGrid, children: K.map((e) => /* @__PURE__ */ s(
329
- "button",
330
- {
331
- type: "button",
332
- className: t.productCard,
333
- onClick: () => void te(e.productCode),
334
- children: [
335
- /* @__PURE__ */ a("span", { className: t.cardCode, children: e.productCode }),
336
- /* @__PURE__ */ a("span", { className: t.cardName, title: e.name, children: e.name }),
337
- /* @__PURE__ */ a("span", { className: t.cardDesc, children: e.description || "暂无产品描述" }),
338
- /* @__PURE__ */ s("span", { className: t.cardFoot, children: [
339
- /* @__PURE__ */ s("span", { className: t.cardEnter, children: [
340
- "进入产品 ",
341
- /* @__PURE__ */ a(oe, {})
342
- ] }),
343
- e.status && /* @__PURE__ */ a(U, { className: t.cardTag, children: e.status })
344
- ] })
345
- ]
346
- },
347
- e.productCode
348
- )) }) })
349
- ] })
350
- ) });
351
- }
352
- export {
353
- St as default
354
- };