@yuku123/z-team-component 0.2.132 → 0.2.134
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/{index-BkzBYfhO.js → AdminModuleContent-DjEqlai_.js} +13552 -14053
- package/dist/{ChangeLogView-SwacGpsw.js → ChangeLogView-BQCxD0g7.js} +1 -1
- package/dist/{ComponentDoc-Dh5YhLCI.js → ComponentDoc-C1yrRq6Y.js} +707 -713
- package/dist/{InvitationManagementPage-CjEcLOGB.js → InvitationManagementPage-Bbl_HXlG.js} +1 -1
- package/dist/{OnboardingPage-DvNt71kX.js → OnboardingPage-BoYhlfWE.js} +2 -2
- package/dist/{ScheduledTasks-COgb4MZJ.js → ScheduledTasks-0FX6xhIs.js} +6 -6
- package/dist/SystemShell-DNRHYsgT.js +978 -0
- package/dist/{admin-logs-CExsxQ5h.js → admin-logs-OZ3s7ssr.js} +1 -1
- package/dist/{api-DXw93E7c.js → api-B0ComkTL.js} +1 -1
- package/dist/{api-C9kTgVc2.js → api-BgrPNvTB.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BwDUTYXH.js → createWorkspaceWsHandler-CkgJR6Oo.js} +3 -3
- package/dist/{index-D2DFKRUf.js → index-9fGksFL5.js} +1 -1
- package/dist/{index-mEgmHNRO.js → index-Bbs7DMqZ.js} +1 -1
- package/dist/{index-CF3xDZ7q.js → index-Bf-Az5am.js} +4 -4
- package/dist/index-Bf57pWxm.js +311 -0
- package/dist/{index-D_J1ZCy8.js → index-BiCIEDbX.js} +3 -3
- package/dist/{index-DmV6xR7C.js → index-BtCyMeHe.js} +3 -3
- package/dist/{index-9rfSVSTh.js → index-C1sQehbP.js} +2 -2
- package/dist/index-CHLZ4xCe.js +1176 -0
- package/dist/{index-B3uLo8-F.js → index-CM6iVhI3.js} +3 -3
- package/dist/{index-DLK7DuCr.js → index-Cg88iPqc.js} +3 -3
- package/dist/{index-CXEYA7rt.js → index-Cn2CVr2m.js} +2 -2
- package/dist/{index-Ci6_CBwE.js → index-DTKd1x9H.js} +3 -3
- package/dist/{index-DM6XeWFk.js → index-DXvw5NUH.js} +2383 -2416
- package/dist/{index-ftuPuj0s.js → index-Dg_qr92O.js} +1 -1
- package/dist/{index-DMfYPIkB.js → index-Dj88QNYQ.js} +2 -2
- package/dist/{index-t2nMJUPu.js → index-Dx6dKBLL.js} +1 -1
- package/dist/{index-Bs9odXxd.js → index-DxH2PsDU.js} +6 -6
- package/dist/{index-DZ0fYNO9.js → index-Dy5HesOM.js} +11 -11
- package/dist/{index-Ceu-yckM.js → index-M_hPRTgh.js} +12 -12
- package/dist/{index-BoY7L8C4.js → index-TaAkEm82.js} +3 -2
- package/dist/{index-B2Dfbi8J.js → index-dti6XFQV.js} +2 -2
- package/dist/{index-BNPq7yBg.js → index-glQgW-8f.js} +2 -2
- package/dist/{index-CntZHojY.js → index-mHqvjT5a.js} +2 -2
- package/dist/{index-COobH4Vi.js → index-vqAJt3qL.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-DD3kbAUh.js → instance-BXN17-Ol.js} +1 -1
- package/dist/{menuPermission-v0881tid.js → menuPermission-Bw3hPi8i.js} +3 -3
- package/dist/menuTree-Ctcz41N8.js +303 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-Cug0T_7J.js → send-default-agent-team-message-DM0C9VL-.js} +1 -1
- package/dist/{sso-user-CnVXqYR7.js → sso-user-F62YVj4w.js} +1 -1
- package/dist/{training-BS23m-yy.js → training-Df00Ilsm.js} +1 -1
- package/dist/{webide-BPJ1IpZq.js → webide-Iw2coFFL.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -1
- package/dist/SystemShell-CSXcsiNp.js +0 -752
- package/dist/index-BTJ83JLl.js +0 -1073
- package/dist/index-CU6jFFl5.js +0 -112
- package/dist/index-CZCKpsry.js +0 -607
- package/dist/useSidebarResize--Avuabb1.js +0 -46
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as f, A as p, a, f as s, B as r, D as $, b as i } from "./ComponentDoc-
|
|
1
|
+
import { u as f, A as p, a, f as s, B as r, D as $, b as i } from "./ComponentDoc-C1yrRq6Y.js";
|
|
2
2
|
async function m() {
|
|
3
3
|
f.getState().token && await p().catch(() => {
|
|
4
4
|
}), localStorage.removeItem("token"), localStorage.removeItem("z_team_token"), localStorage.removeItem("userInfo"), localStorage.removeItem("USER_INFO"), localStorage.removeItem("z_ctc_token"), localStorage.removeItem("ctcUrl"), window.USER_INFO = void 0, f.setState({ currentUser: null, token: "", currentProject: void 0 });
|
|
@@ -3,12 +3,12 @@ import { ShareAltOutlined as Za, EditOutlined as eo, EyeOutlined as vi, FileText
|
|
|
3
3
|
import { message as ze, Drawer as bs, Spin as dt, Input as An, Button as rt, Segmented as Fi, Modal as mn, AutoComplete as Hi, Typography as Ut, Checkbox as ls, Space as on, Radio as aa, Skeleton as Mn, Popover as lo, Timeline as oa, Tag as ct, Tooltip as zn, Tree as qi, Empty as rn, Dropdown as ji, Progress as Gi, Collapse as ia } from "antd";
|
|
4
4
|
import it, { useState as C, useRef as Ne, useEffect as ie, useCallback as j, useMemo as be, useContext as Wi, createContext as Ui, useLayoutEffect as co, memo as uo, useImperativeHandle as Vi } from "react";
|
|
5
5
|
import { createPortal as mo } from "react-dom";
|
|
6
|
-
import { a as ye, aD as hn, f as xe, b as Ke, B as Pe, D as Ze, a5 as zi, u as F, n as Wt, aE as ho,
|
|
7
|
-
import { d as Lr, e as Br, j as Rr, r as Pr, g as $r, h as Dr } from "./instance-
|
|
6
|
+
import { a as ye, aD as hn, f as xe, b as Ke, B as Pe, D as Ze, a5 as zi, u as F, n as Wt, aE as ho, aw as po, w as Q, aA as Ji, aF as vs, aG as Jn, t as Ie, aH as Ki, aI as Qi, aJ as Yi, ao as qe, aK as Xi, aL as go, aM as _o, aN as Ns, aO as Zi, aP as fo, aQ as ko, aR as yo, aS as bo, aT as cs, aU as Ts, aV as er, aW as tr, aX as nr, aY as sr, aZ as ar, a_ as or, a$ as Bt, b0 as Rt, b1 as ir, b2 as rr, b3 as lr, e as ln, b4 as cr, b5 as dr, b6 as ur, b7 as mr, b8 as hr, b9 as pr, ba as gr, bb as _r, bc as fr, bd as kr, be as Cs, bf as yr, bg as br, z as vr, bh as Nr, bi as ra, bj as vo, T as Ss, bk as St, bl as la, s as Tr, bm as Cr, bn as Sr, bo as ca, an as da, bp as wr, bq as Ir, br as Ar, bs as ua, bt as xr } from "./ComponentDoc-C1yrRq6Y.js";
|
|
7
|
+
import { d as Lr, e as Br, j as Rr, r as Pr, g as $r, h as Dr } from "./instance-BXN17-Ol.js";
|
|
8
8
|
import gt from "react-markdown";
|
|
9
9
|
import In from "rehype-highlight";
|
|
10
10
|
import _t from "remark-gfm";
|
|
11
|
-
import { i as Er, u as Mr, e as Or, j as Fr, k as Hr, t as qr } from "./admin-logs-
|
|
11
|
+
import { i as Er, u as Mr, e as Or, j as Fr, k as Hr, t as qr } from "./admin-logs-OZ3s7ssr.js";
|
|
12
12
|
import je from "handlebars";
|
|
13
13
|
async function jr(e) {
|
|
14
14
|
try {
|
|
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { CopyOutlined as re, ReloadOutlined as Ae, PlusOutlined as Be, DeleteOutlined as qe, ClearOutlined as Ge, CloseOutlined as Je, SendOutlined as We, RobotOutlined as xe, CloudServerOutlined as Qe, MessageOutlined as Ve, KeyOutlined as Ye, ApiOutlined as Xe, ToolOutlined as Ze, BarChartOutlined as et } from "@ant-design/icons";
|
|
3
3
|
import { useState as f, useEffect as Z, useCallback as F, useRef as pe, useMemo as Ie, Suspense as tt, lazy as at } from "react";
|
|
4
4
|
import { Table as _e, Tooltip as ae, Tabs as Me, Input as fe, Button as z, Modal as ke, Drawer as be, Spin as ne, Statistic as K, message as J, Tag as Y, Select as nt, Checkbox as ot } from "antd";
|
|
5
|
-
import { u as Pe } from "./ComponentDoc-
|
|
5
|
+
import { u as Pe } from "./ComponentDoc-C1yrRq6Y.js";
|
|
6
6
|
import { AgentAppList as st, McpPage as lt, SkillMarket as rt } from "@yuku123/z-agent-component";
|
|
7
7
|
const de = "ft_gateway_default_ak", Ee = "system-default", ee = "", ye = "";
|
|
8
8
|
function te(a = {}) {
|
|
@@ -6,9 +6,9 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
|
|
|
6
6
|
import Vp, { defaultUrlTransform as KA } from "react-markdown";
|
|
7
7
|
import gp from "rehype-highlight";
|
|
8
8
|
import Jp from "remark-gfm";
|
|
9
|
-
import { a5 as xa, a6 as jA, u as Dp } from "./ComponentDoc-
|
|
10
|
-
import { u as ia, v as oA, x as fA, y as lA, h as xA, z as iA, B as cA, E as TA, G as vA, H as up, I as Yp, J as mp, K as yp, M as Ip, O as FA, Q as dA, V as OA, X as XA } from "./index-
|
|
11
|
-
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-
|
|
9
|
+
import { a5 as xa, a6 as jA, u as Dp } from "./ComponentDoc-C1yrRq6Y.js";
|
|
10
|
+
import { u as ia, v as oA, x as fA, y as lA, h as xA, z as iA, B as cA, E as TA, G as vA, H as up, I as Yp, J as mp, K as yp, M as Ip, O as FA, Q as dA, V as OA, X as XA } from "./index-DXvw5NUH.js";
|
|
11
|
+
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-CkgJR6Oo.js";
|
|
12
12
|
import { h as r } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
|
|
14
14
|
editorView: gA,
|
|
@@ -1681,7 +1681,7 @@ const Rt = [
|
|
|
1681
1681
|
draftDeleteBtn: T0,
|
|
1682
1682
|
markdown: v0
|
|
1683
1683
|
}, F0 = HA(
|
|
1684
|
-
() => import("./index-
|
|
1684
|
+
() => import("./index-Cn2CVr2m.js").then((a) => ({ default: a.MarketContent }))
|
|
1685
1685
|
);
|
|
1686
1686
|
function d0(a) {
|
|
1687
1687
|
const n = [], x = a.split(`
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { r as q, h as Q, s as V } from "./sso-user-F62YVj4w.js";
|
|
3
|
+
import { TeamOutlined as X, UserOutlined as Y, MenuFoldOutlined as ee, DownOutlined as U, RightOutlined as $, LogoutOutlined as ne } from "@ant-design/icons";
|
|
4
|
+
import { Dropdown as te, Avatar as ae } from "antd";
|
|
5
|
+
import { useState as x, useMemo as se, useCallback as C, useEffect as re } from "react";
|
|
6
|
+
import { h as G } from "./history-BlrA1eaW.js";
|
|
7
|
+
import { E as oe, h as ce } from "./index-Dg_qr92O.js";
|
|
8
|
+
import { M, u as ue, S as ie } from "./menuTree-Ctcz41N8.js";
|
|
9
|
+
import { u as E, k as me } from "./ComponentDoc-C1yrRq6Y.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { s as le } from "./admin-logs-OZ3s7ssr.js";
|
|
12
|
+
import de from "./AdminModuleContent-DjEqlai_.js";
|
|
13
|
+
const he = "_adminLayout_e0cuy_3", _e = "_topBanner_e0cuy_40", pe = "_bannerLeft_e0cuy_52", be = "_bannerLogo_e0cuy_58", ye = "_bannerBrand_e0cuy_65", ge = "_bannerProduct_e0cuy_71", we = "_bannerSubtitle_e0cuy_78", Ie = "_bannerRight_e0cuy_84", fe = "_modeBtn_e0cuy_115", Se = "_headerUser_e0cuy_135", ve = "_headerUsername_e0cuy_149", Be = "_adminBody_e0cuy_160", ke = "_sidebar_e0cuy_168", Pe = "_menuSection_e0cuy_179", Ae = "_collapseAllBtn_e0cuy_193", Ne = "_menuList_e0cuy_210", Le = "_menuItem_e0cuy_219", Re = "_menuItemActive_e0cuy_241", Oe = "_menuGroupRowOpen_e0cuy_252", Ue = "_menuGroupRowBranch_e0cuy_262", $e = "_menuItemIcon_e0cuy_266", xe = "_dragBar_e0cuy_284", Ce = "_dragBarActive_e0cuy_305", Ge = "_contentArea_e0cuy_310", Ee = "_contentBody_e0cuy_318", Me = "_menuItemGroup_e0cuy_329", We = "_menuExpandIcon_e0cuy_334", De = "_menuSubList_e0cuy_342", Fe = "_menuItemOnPath_e0cuy_372", Te = "_menuSubItem_e0cuy_376", je = "_menuSubItemActive_e0cuy_393", ze = "_menuSubItemBranch_e0cuy_411", He = "_menuSubItemBranchOpen_e0cuy_415", Ze = "_menuSubItemBranchActive_e0cuy_425", Je = "_menuSubItemRow_e0cuy_435", Ke = "_menuNestedList_e0cuy_441", e = {
|
|
14
|
+
adminLayout: he,
|
|
15
|
+
topBanner: _e,
|
|
16
|
+
bannerLeft: pe,
|
|
17
|
+
bannerLogo: be,
|
|
18
|
+
bannerBrand: ye,
|
|
19
|
+
bannerProduct: ge,
|
|
20
|
+
bannerSubtitle: we,
|
|
21
|
+
bannerRight: Ie,
|
|
22
|
+
modeBtn: fe,
|
|
23
|
+
headerUser: Se,
|
|
24
|
+
headerUsername: ve,
|
|
25
|
+
adminBody: Be,
|
|
26
|
+
sidebar: ke,
|
|
27
|
+
menuSection: Pe,
|
|
28
|
+
collapseAllBtn: Ae,
|
|
29
|
+
menuList: Ne,
|
|
30
|
+
menuItem: Le,
|
|
31
|
+
menuItemActive: Re,
|
|
32
|
+
menuGroupRowOpen: Oe,
|
|
33
|
+
menuGroupRowBranch: Ue,
|
|
34
|
+
menuItemIcon: $e,
|
|
35
|
+
dragBar: xe,
|
|
36
|
+
dragBarActive: Ce,
|
|
37
|
+
contentArea: Ge,
|
|
38
|
+
contentBody: Ee,
|
|
39
|
+
menuItemGroup: Me,
|
|
40
|
+
menuExpandIcon: We,
|
|
41
|
+
menuSubList: De,
|
|
42
|
+
menuItemOnPath: Fe,
|
|
43
|
+
menuSubItem: Te,
|
|
44
|
+
menuSubItemActive: je,
|
|
45
|
+
menuSubItemBranch: ze,
|
|
46
|
+
menuSubItemBranchOpen: He,
|
|
47
|
+
menuSubItemBranchActive: Ze,
|
|
48
|
+
menuSubItemRow: Je,
|
|
49
|
+
menuNestedList: Ke
|
|
50
|
+
}, qe = `${window.publicPath ?? "/"}logo.png`;
|
|
51
|
+
function Qe() {
|
|
52
|
+
const c = new URLSearchParams(window.location.search), o = c.get("menu"), a = o;
|
|
53
|
+
if (a === "statistics")
|
|
54
|
+
return "statistics-global";
|
|
55
|
+
if (a === "statistics-scenario-multi" || a === "statistics-scenario-daily" || a === "statistics-scenario-comprehensive")
|
|
56
|
+
return "statistics-scenario";
|
|
57
|
+
if (a === "knowledge")
|
|
58
|
+
return c.get("tab") === "notes" ? "knowledge-notes" : "knowledge-base";
|
|
59
|
+
if (a === "evaluation-group-chat")
|
|
60
|
+
return "evaluation-group-chat-snapshot";
|
|
61
|
+
if (o === "evaluation-group-chat-trend")
|
|
62
|
+
return B("evaluation-group-chat-audits"), "evaluation-group-chat-audits";
|
|
63
|
+
if (o === "evaluation-group-chat-datasets") {
|
|
64
|
+
const s = new URL(window.location.href);
|
|
65
|
+
return s.searchParams.set("menu", "evaluation-group-chat-config"), s.searchParams.delete("tab"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-config";
|
|
66
|
+
}
|
|
67
|
+
if (o === "evaluation-group-chat-specs") {
|
|
68
|
+
const s = new URL(window.location.href);
|
|
69
|
+
return s.searchParams.set("menu", "evaluation-group-chat-config"), s.searchParams.set("tab", "specs"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-config";
|
|
70
|
+
}
|
|
71
|
+
if (o === "evaluation-group-chat-workspace") {
|
|
72
|
+
const s = new URL(window.location.href);
|
|
73
|
+
return s.searchParams.set("menu", "evaluation-group-chat-audits"), s.searchParams.get("tab") === "monitor" ? s.searchParams.set("tab", "monitor") : s.searchParams.set("tab", "browse"), window.history.replaceState(window.history.state, "", s.toString()), "evaluation-group-chat-audits";
|
|
74
|
+
}
|
|
75
|
+
return a && ie.includes(a) ? a : c.get("instanceId") ? "statistics-ops" : "scenario";
|
|
76
|
+
}
|
|
77
|
+
function W(c, o = M) {
|
|
78
|
+
var a;
|
|
79
|
+
for (const s of o) {
|
|
80
|
+
if (s.key === c) return [];
|
|
81
|
+
if ((a = s.children) != null && a.length) {
|
|
82
|
+
const m = W(c, s.children);
|
|
83
|
+
if (m) return [s.key, ...m];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
function v(c, o) {
|
|
89
|
+
var a;
|
|
90
|
+
return c.key === o || !!((a = c.children) != null && a.some((s) => v(s, o)));
|
|
91
|
+
}
|
|
92
|
+
function B(c, o) {
|
|
93
|
+
const a = new URL(window.location.href);
|
|
94
|
+
a.searchParams.set("menu", c), a.searchParams.delete("tab"), a.searchParams.delete("roundId"), o != null && o !== "" ? a.searchParams.set("instanceId", String(o)) : a.searchParams.delete("instanceId"), window.history.replaceState(window.history.state, "", a.toString());
|
|
95
|
+
}
|
|
96
|
+
function mn({
|
|
97
|
+
onSwitchToCollaboration: c,
|
|
98
|
+
onOpenProject: o,
|
|
99
|
+
onOpenTodo: a,
|
|
100
|
+
embedded: s = !1
|
|
101
|
+
}) {
|
|
102
|
+
const [m, k] = x(Qe), [P, g] = x(() => {
|
|
103
|
+
const n = new URLSearchParams(window.location.search);
|
|
104
|
+
return !n.has("menu") && !n.has("instanceId") ? /* @__PURE__ */ new Set() : new Set(W(m) ?? []);
|
|
105
|
+
}), { currentUser: r, updateCurrentUser: w } = E(), {
|
|
106
|
+
width: A,
|
|
107
|
+
dragging: D,
|
|
108
|
+
onHandlePointerDown: F,
|
|
109
|
+
resetWidth: T
|
|
110
|
+
} = ue("zteam.sidebar.admin", 176, 160, 420), j = (n) => !n || ce(r, n), z = se(() => {
|
|
111
|
+
const n = (d) => d.map(
|
|
112
|
+
(l) => {
|
|
113
|
+
var y;
|
|
114
|
+
return (y = l.children) != null && y.length ? { ...l, children: n(l.children) } : l;
|
|
115
|
+
}
|
|
116
|
+
).filter(
|
|
117
|
+
(l) => j(l.permission) && // 叶子直接保留;分组需有存活的子菜单(子菜单全部无权限时隐藏父级组)
|
|
118
|
+
(!l.children || l.children.length > 0)
|
|
119
|
+
);
|
|
120
|
+
return n(M);
|
|
121
|
+
}, [r == null ? void 0 : r.permissions, r == null ? void 0 : r.is_global_admin]), I = C((n) => {
|
|
122
|
+
k(n), B(n);
|
|
123
|
+
}, []), H = C(
|
|
124
|
+
(n) => {
|
|
125
|
+
if (a) {
|
|
126
|
+
a(n);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
G.push(`/workspace?mode=workbench&todoId=${n}`);
|
|
130
|
+
},
|
|
131
|
+
[a]
|
|
132
|
+
);
|
|
133
|
+
re(() => {
|
|
134
|
+
if (r) return;
|
|
135
|
+
const n = q();
|
|
136
|
+
!n || !Q(n) || (w(V(n)), E.getState().token, me().then((d) => w(d)).catch(() => {
|
|
137
|
+
}));
|
|
138
|
+
}, [r, w]);
|
|
139
|
+
const Z = r != null && r.avatar && (r.avatar.startsWith("http") || r.avatar.startsWith("data:")) ? r.avatar : void 0, J = [
|
|
140
|
+
{
|
|
141
|
+
key: "logout",
|
|
142
|
+
icon: /* @__PURE__ */ t(ne, {}),
|
|
143
|
+
label: "退出登录",
|
|
144
|
+
onClick: () => {
|
|
145
|
+
le();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
], K = () => /* @__PURE__ */ t(
|
|
149
|
+
de,
|
|
150
|
+
{
|
|
151
|
+
menuKey: m,
|
|
152
|
+
onEnterProject: c,
|
|
153
|
+
onOpenProject: o,
|
|
154
|
+
onOpenTodo: H,
|
|
155
|
+
onJumpToMenu: (n, d) => {
|
|
156
|
+
k(n), B(n, d);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
return /* @__PURE__ */ i("div", { className: `team-workspace-root ${e.adminLayout}`, children: [
|
|
161
|
+
!s && /* @__PURE__ */ i("header", { className: e.topBanner, children: [
|
|
162
|
+
/* @__PURE__ */ i("div", { className: e.bannerLeft, children: [
|
|
163
|
+
/* @__PURE__ */ t(
|
|
164
|
+
"img",
|
|
165
|
+
{
|
|
166
|
+
src: qe,
|
|
167
|
+
alt: "Z-OPC",
|
|
168
|
+
className: e.bannerLogo
|
|
169
|
+
}
|
|
170
|
+
),
|
|
171
|
+
/* @__PURE__ */ i("div", { className: e.bannerBrand, children: [
|
|
172
|
+
/* @__PURE__ */ t("span", { className: e.bannerProduct, children: "Z-OPC" }),
|
|
173
|
+
/* @__PURE__ */ t("span", { className: e.bannerSubtitle, children: "一人公司基建 · 运营工作台" })
|
|
174
|
+
] })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ i("div", { className: e.bannerRight, children: [
|
|
177
|
+
/* @__PURE__ */ i(
|
|
178
|
+
"button",
|
|
179
|
+
{
|
|
180
|
+
type: "button",
|
|
181
|
+
className: e.modeBtn,
|
|
182
|
+
onClick: () => {
|
|
183
|
+
c ? c() : G.push("/workspace");
|
|
184
|
+
},
|
|
185
|
+
title: "切换到协作工作台",
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ t(X, {}),
|
|
188
|
+
/* @__PURE__ */ t("span", { children: "协作工作台" })
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
r ? /* @__PURE__ */ t(
|
|
193
|
+
te,
|
|
194
|
+
{
|
|
195
|
+
menu: { items: J },
|
|
196
|
+
placement: "bottomRight",
|
|
197
|
+
trigger: ["click"],
|
|
198
|
+
children: /* @__PURE__ */ i("div", { className: e.headerUser, children: [
|
|
199
|
+
/* @__PURE__ */ t(
|
|
200
|
+
ae,
|
|
201
|
+
{
|
|
202
|
+
size: 28,
|
|
203
|
+
src: Z,
|
|
204
|
+
icon: /* @__PURE__ */ t(Y, {}),
|
|
205
|
+
style: {
|
|
206
|
+
backgroundColor: "#2F70F1",
|
|
207
|
+
flexShrink: 0
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
/* @__PURE__ */ t("span", { className: e.headerUsername, children: r.display_name })
|
|
212
|
+
] })
|
|
213
|
+
}
|
|
214
|
+
) : null
|
|
215
|
+
] })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ i("div", { className: e.adminBody, children: [
|
|
218
|
+
/* @__PURE__ */ i("aside", { className: e.sidebar, style: { width: A, minWidth: A }, children: [
|
|
219
|
+
/* @__PURE__ */ i("div", { className: e.menuSection, children: [
|
|
220
|
+
/* @__PURE__ */ t("span", { children: "配置管理" }),
|
|
221
|
+
/* @__PURE__ */ t(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
type: "button",
|
|
225
|
+
className: e.collapseAllBtn,
|
|
226
|
+
onClick: () => g(/* @__PURE__ */ new Set()),
|
|
227
|
+
title: "全部收起",
|
|
228
|
+
children: /* @__PURE__ */ t(ee, {})
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ t("ul", { className: e.menuList, children: z.map((n) => {
|
|
233
|
+
var N;
|
|
234
|
+
const d = !!((N = n.children) != null && N.length), l = P.has(n.key), y = v(n, m), f = d ? n.children.findIndex((u) => v(u, m)) : -1;
|
|
235
|
+
return /* @__PURE__ */ i("li", { className: e.menuItemGroup, children: [
|
|
236
|
+
/* @__PURE__ */ i(
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
className: `${e.menuItem} ${l ? e.menuGroupRowOpen : ""} ${y ? e.menuGroupRowBranch : ""} ${m === n.key && !d ? e.menuItemActive : ""}`,
|
|
240
|
+
onClick: () => {
|
|
241
|
+
d ? g((u) => {
|
|
242
|
+
const _ = new Set(u);
|
|
243
|
+
return _.has(n.key) ? _.delete(n.key) : _.add(n.key), _;
|
|
244
|
+
}) : I(n.key);
|
|
245
|
+
},
|
|
246
|
+
children: [
|
|
247
|
+
/* @__PURE__ */ t("span", { className: e.menuItemIcon, children: n.icon }),
|
|
248
|
+
/* @__PURE__ */ t("span", { children: n.label }),
|
|
249
|
+
d && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: l ? /* @__PURE__ */ t(U, {}) : /* @__PURE__ */ t($, {}) })
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
d && l && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: n.children.map((u, _) => {
|
|
254
|
+
var O;
|
|
255
|
+
const p = !!((O = u.children) != null && O.length), S = P.has(u.key), L = f >= 0 && _ <= f, R = p ? u.children.findIndex(
|
|
256
|
+
(h) => h.key === m
|
|
257
|
+
) : -1;
|
|
258
|
+
return /* @__PURE__ */ i(
|
|
259
|
+
"li",
|
|
260
|
+
{
|
|
261
|
+
className: `${e.menuItemGroup} ${L ? e.menuItemOnPath : ""}`,
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ i(
|
|
264
|
+
"div",
|
|
265
|
+
{
|
|
266
|
+
className: `${e.menuSubItem} ${e.menuSubItemRow} ${p ? e.menuSubItemBranch : ""} ${p && S ? e.menuSubItemBranchOpen : ""} ${_ === f ? e.menuSubItemBranchActive : ""} ${L ? e.menuItemOnPath : ""} ${m === u.key && !p ? e.menuSubItemActive : ""}`,
|
|
267
|
+
onClick: () => {
|
|
268
|
+
p ? g((h) => {
|
|
269
|
+
const b = new Set(h);
|
|
270
|
+
return b.has(u.key) ? b.delete(u.key) : b.add(u.key), b;
|
|
271
|
+
}) : I(u.key);
|
|
272
|
+
},
|
|
273
|
+
children: [
|
|
274
|
+
/* @__PURE__ */ t("span", { children: u.label }),
|
|
275
|
+
p && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: S ? /* @__PURE__ */ t(U, {}) : /* @__PURE__ */ t($, {}) })
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
),
|
|
279
|
+
p && S && /* @__PURE__ */ t("ul", { className: e.menuNestedList, children: u.children.map((h, b) => /* @__PURE__ */ t(
|
|
280
|
+
"li",
|
|
281
|
+
{
|
|
282
|
+
className: `${e.menuSubItem} ${R >= 0 && b <= R ? e.menuItemOnPath : ""} ${m === h.key ? e.menuSubItemActive : ""}`,
|
|
283
|
+
onClick: () => I(h.key),
|
|
284
|
+
children: h.label
|
|
285
|
+
},
|
|
286
|
+
h.key
|
|
287
|
+
)) })
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
u.key
|
|
291
|
+
);
|
|
292
|
+
}) })
|
|
293
|
+
] }, n.key);
|
|
294
|
+
}) })
|
|
295
|
+
] }),
|
|
296
|
+
/* @__PURE__ */ t(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
className: `${e.dragBar} ${D ? e.dragBarActive : ""}`,
|
|
300
|
+
onPointerDown: F,
|
|
301
|
+
onDoubleClick: T,
|
|
302
|
+
title: "拖动调整菜单宽度,双击恢复默认"
|
|
303
|
+
}
|
|
304
|
+
),
|
|
305
|
+
/* @__PURE__ */ t("main", { className: e.contentArea, children: /* @__PURE__ */ t("div", { className: e.contentBody, children: /* @__PURE__ */ t(oe, { children: K() }) }) })
|
|
306
|
+
] })
|
|
307
|
+
] });
|
|
308
|
+
}
|
|
309
|
+
export {
|
|
310
|
+
mn as default
|
|
311
|
+
};
|
|
@@ -2,11 +2,11 @@ import { jsxs as r, jsx as a, Fragment as lt } from "react/jsx-runtime";
|
|
|
2
2
|
import { ReloadOutlined as dt, AppstoreOutlined as pt, DeploymentUnitOutlined as ut, SearchOutlined as mt, RightOutlined as ht, TeamOutlined as _t, MessageOutlined as gt } from "@ant-design/icons";
|
|
3
3
|
import { Button as Q, Select as Ae, Spin as ue, Empty as f, Tag as I, Input as O } from "antd";
|
|
4
4
|
import { useState as p, useCallback as g, useEffect as me, useMemo as he, useRef as vt } from "react";
|
|
5
|
-
import { u as $ } from "./ComponentDoc-
|
|
5
|
+
import { u as $ } from "./ComponentDoc-C1yrRq6Y.js";
|
|
6
6
|
import { h as W } from "./history-BlrA1eaW.js";
|
|
7
7
|
import { menuItems as Nt } from "@yuku123/z-product-component";
|
|
8
|
-
import { C as yt } from "./createWorkspaceWsHandler-
|
|
9
|
-
import { l as ft, c as wt } from "./api-
|
|
8
|
+
import { C as yt } from "./createWorkspaceWsHandler-CkgJR6Oo.js";
|
|
9
|
+
import { l as ft, c as wt } from "./api-BgrPNvTB.js";
|
|
10
10
|
const bt = "product-workspace", qe = "productCode";
|
|
11
11
|
function w(n) {
|
|
12
12
|
if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
|
|
@@ -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 q } 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-F62YVj4w.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, z as he, j as be, k as _e } from "./ComponentDoc-
|
|
10
|
+
import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-C1yrRq6Y.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-DM0C9VL-.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,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import v, { useState as d, useEffect as _, useMemo as h } from "react";
|
|
3
3
|
import { useLocation as N } from "react-router-dom";
|
|
4
|
-
import { E as b, F as g } from "./ComponentDoc-
|
|
5
|
-
import { i as K, P as x } from "./index-
|
|
4
|
+
import { E as b, F as g } from "./ComponentDoc-C1yrRq6Y.js";
|
|
5
|
+
import { i as K, P as x } from "./index-Dg_qr92O.js";
|
|
6
6
|
const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_retry_2v7mc_31", A = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
|
|
7
7
|
banner: E,
|
|
8
8
|
dot: F,
|