@yuku123/z-team-component 0.2.140 → 0.2.142
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-DDB35gOh.js → AdminModuleContent-DIntalEE.js} +10526 -10697
- package/dist/{ChangeLogView-AKOZ6Ski.js → ChangeLogView-BG0idpcI.js} +1 -1
- package/dist/{ComponentDoc-SiXXhka1.js → ComponentDoc-DmA8kQED.js} +1318 -1313
- package/dist/{InvitationManagementPage-CRbABOKe.js → InvitationManagementPage-BmvQrlzu.js} +1 -1
- package/dist/{OnboardingPage-BNJopRYO.js → OnboardingPage-BNqu7ED-.js} +2 -2
- package/dist/ScheduledTasks-BpLYITou.js +12005 -0
- package/dist/SystemShell-CHJGJAor.js +859 -0
- package/dist/{admin-logs-B3IxooG2.js → admin-logs-CGbHioxz.js} +5 -5
- package/dist/{api-DmBlT5MH.js → api-CVAq8S_3.js} +1 -1
- package/dist/{api-DW8nsucC.js → api-DTQ6gite.js} +1 -1
- package/dist/createWorkspaceWsHandler-eEZssgTR.js +11757 -0
- package/dist/{ctc-sso-DtJHC-2M.js → ctc-sso-Hj8fdMY0.js} +8 -6
- package/dist/{index-VmRWH4U5.js → index-1hUJPdXC.js} +9 -9
- package/dist/{index-C24QsGsG.js → index-B02tvvRk.js} +1 -1
- package/dist/{index-BSqUODiN.js → index-BLDm7Ltq.js} +30 -31
- package/dist/index-BXas8GPY.js +1840 -0
- package/dist/{index-CvHMXrAD.js → index-BiKw2Cl_.js} +1 -1
- package/dist/index-BlDMnzJF.js +18 -0
- package/dist/{index-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
- package/dist/{index-Du95tdVf.js → index-BruNw5wQ.js} +29 -30
- package/dist/{index-BV64kKse.js → index-ByWmrjar.js} +2 -2
- package/dist/{index-DCAO83Wb.js → index-C6TJo_6f.js} +1325 -1187
- package/dist/{index-DDOfdrn4.js → index-CSuF7xTK.js} +3954 -3985
- package/dist/index-CkFZb89W.js +1298 -0
- package/dist/{index-C1nr0UeB.js → index-ClaU3cVV.js} +20 -21
- package/dist/{index-C7DSDopw.js → index-CnHG8LvQ.js} +26 -27
- package/dist/{index-CXjen4Gx.js → index-CwohTaZ3.js} +342 -389
- package/dist/{index-CJ7dJejJ.js → index-D2qy0vH-.js} +17 -17
- package/dist/{index-DHrMSEVJ.js → index-D6jssKSM.js} +1 -1
- package/dist/{index-l9KH8r7F.js → index-DCbdksxa.js} +780 -792
- package/dist/{index-D-G4mbxH.js → index-DNofgrle.js} +2 -2
- package/dist/{index-D7thpI99.js → index-DUEGauT8.js} +1 -1
- package/dist/index-DnA9mLM4.js +136 -0
- package/dist/{index-CEoS_jEa.js → index-DoQpFpjM.js} +6 -6
- package/dist/{index-DjbLq5lI.js → index-G4_ZNL1t.js} +2 -2
- package/dist/{index-DULYXalY.js → index-WYKbD2Kc.js} +9 -9
- package/dist/{index-D440bEgm.js → index-ZTJ7n_J_.js} +199 -193
- package/dist/{index-Hv2KDG7i.js → index-iFIFnLjk.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/instance-Ce0ksjOY.js +116 -0
- package/dist/{menuPermission-DxknHmt8.js → menuPermission-CXN-JDku.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DYytBtLc.js → send-default-agent-team-message-Caz3lGg6.js} +1 -1
- package/dist/{training-CKYPSkUP.js → training-ry7fCVV4.js} +1 -1
- package/dist/{webide-JAalC_Wr.js → webide-DyvaibPK.js} +1161 -1317
- package/dist/z-team-component.css +1 -1
- package/package.json +5 -5
- package/dist/ScheduledTasks-Cn_CEZ-B.js +0 -12006
- package/dist/SystemShell-B8Tyluzu.js +0 -893
- package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
- package/dist/createWorkspaceWsHandler-5MHgQGfJ.js +0 -12902
- package/dist/index-BT4oQJby.js +0 -228
- package/dist/index-DrDFy5jN.js +0 -139
- package/dist/index-DvslXAjT.js +0 -1323
- package/dist/index-NIu3OKHi.js +0 -1868
- package/dist/instance-B4SrJ-BY.js +0 -186
- package/dist/sso-user-DN6kSAc0.js +0 -43
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
const d = "/kapi/z-ctc/api";
|
|
2
|
+
function m() {
|
|
2
3
|
if (typeof window > "u") return null;
|
|
3
4
|
try {
|
|
4
5
|
const t = localStorage.getItem("USER_INFO");
|
|
@@ -16,7 +17,7 @@ function d() {
|
|
|
16
17
|
return null;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
async function
|
|
20
|
+
async function f() {
|
|
20
21
|
const t = () => {
|
|
21
22
|
localStorage.removeItem("USER_INFO"), window.USER_INFO = void 0;
|
|
22
23
|
};
|
|
@@ -104,14 +105,15 @@ async function u() {
|
|
|
104
105
|
return null;
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function g() {
|
|
108
109
|
const t = new URL(window.location.href);
|
|
109
110
|
t.searchParams.has("_from_login") || t.searchParams.set("_from_login", "1");
|
|
110
111
|
const a = `/login?redirect=${encodeURIComponent(t.toString())}`;
|
|
111
112
|
window.location.href = a;
|
|
112
113
|
}
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
-
f
|
|
116
|
-
|
|
115
|
+
d as C,
|
|
116
|
+
f,
|
|
117
|
+
g as r,
|
|
118
|
+
m as s
|
|
117
119
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
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 {
|
|
5
|
-
import { i as K, P as x } from "./index-
|
|
6
|
-
const E = "_banner_2v7mc_1",
|
|
4
|
+
import { H as b, I as g } from "./ComponentDoc-DmA8kQED.js";
|
|
5
|
+
import { i as K, P as x } from "./index-WYKbD2Kc.js";
|
|
6
|
+
const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_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
|
-
dot:
|
|
9
|
-
text:
|
|
10
|
-
retry:
|
|
11
|
-
dismiss:
|
|
8
|
+
dot: S,
|
|
9
|
+
text: f,
|
|
10
|
+
retry: A,
|
|
11
|
+
dismiss: F,
|
|
12
12
|
details: P,
|
|
13
13
|
method: k,
|
|
14
14
|
status: C,
|
|
@@ -61,7 +61,7 @@ const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_re
|
|
|
61
61
|
)
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
|
-
class
|
|
64
|
+
class H extends v.Component {
|
|
65
65
|
constructor() {
|
|
66
66
|
super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
|
|
67
67
|
}
|
|
@@ -89,5 +89,5 @@ class T extends v.Component {
|
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
91
|
B as P,
|
|
92
|
-
|
|
92
|
+
H as R
|
|
93
93
|
};
|
|
@@ -3,7 +3,7 @@ import { ReloadOutlined as oe, SearchOutlined as re, ThunderboltOutlined as ie }
|
|
|
3
3
|
import { message as R, Spin as ce, Space as de, Button as A, Tabs as ue, Tag as g, Input as M, Select as he, Popconfirm as me, Modal as pe } from "antd";
|
|
4
4
|
import { ListTable as I } from "@yuku123/z-frontend-common/ui";
|
|
5
5
|
import { useState as c, useCallback as P, useEffect as U, useMemo as ye } from "react";
|
|
6
|
-
import { a as J } from "./ComponentDoc-
|
|
6
|
+
import { a as J } from "./ComponentDoc-DmA8kQED.js";
|
|
7
7
|
function fe() {
|
|
8
8
|
return typeof window > "u" ? !1 : window.ZTEAM_USE_KAPI === !0;
|
|
9
9
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { r as q,
|
|
3
|
-
import { TeamOutlined as
|
|
4
|
-
import { Dropdown as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { h as
|
|
7
|
-
import { E as
|
|
8
|
-
import { M, u as
|
|
9
|
-
import { u as E, k as me } from "./ComponentDoc-SiXXhka1.js";
|
|
2
|
+
import { u as U, r as q, k as Q, l as V, m as X } from "./ComponentDoc-DmA8kQED.js";
|
|
3
|
+
import { TeamOutlined as Y, UserOutlined as ee, MenuFoldOutlined as ne, DownOutlined as $, RightOutlined as x, LogoutOutlined as te } from "@ant-design/icons";
|
|
4
|
+
import { Dropdown as ae, Avatar as se } from "antd";
|
|
5
|
+
import { useState as C, useMemo as re, useCallback as G, useEffect as oe } from "react";
|
|
6
|
+
import { h as E } from "./history-BlrA1eaW.js";
|
|
7
|
+
import { E as ce, h as ue } from "./index-WYKbD2Kc.js";
|
|
8
|
+
import { M, u as ie, S as me } from "./menuTree-BjchjhUw.js";
|
|
10
9
|
/* empty css */
|
|
11
|
-
import { s as le } from "./admin-logs-
|
|
12
|
-
import de from "./AdminModuleContent-
|
|
10
|
+
import { s as le } from "./admin-logs-CGbHioxz.js";
|
|
11
|
+
import de from "./AdminModuleContent-DIntalEE.js";
|
|
13
12
|
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
13
|
adminLayout: he,
|
|
15
14
|
topBanner: _e,
|
|
@@ -72,7 +71,7 @@ function Qe() {
|
|
|
72
71
|
const s = new URL(window.location.href);
|
|
73
72
|
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
73
|
}
|
|
75
|
-
return a &&
|
|
74
|
+
return a && me.includes(a) ? a : c.get("instanceId") ? "statistics-ops" : "scenario";
|
|
76
75
|
}
|
|
77
76
|
function W(c, o = M) {
|
|
78
77
|
var a;
|
|
@@ -93,21 +92,21 @@ function B(c, o) {
|
|
|
93
92
|
const a = new URL(window.location.href);
|
|
94
93
|
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
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function un({
|
|
97
96
|
onSwitchToCollaboration: c,
|
|
98
97
|
onOpenProject: o,
|
|
99
98
|
onOpenTodo: a,
|
|
100
99
|
embedded: s = !1
|
|
101
100
|
}) {
|
|
102
|
-
const [m, k] =
|
|
101
|
+
const [m, k] = C(Qe), [P, g] = C(() => {
|
|
103
102
|
const n = new URLSearchParams(window.location.search);
|
|
104
103
|
return !n.has("menu") && !n.has("instanceId") ? /* @__PURE__ */ new Set() : new Set(W(m) ?? []);
|
|
105
|
-
}), { currentUser: r, updateCurrentUser: w } =
|
|
104
|
+
}), { currentUser: r, updateCurrentUser: w } = U(), {
|
|
106
105
|
width: A,
|
|
107
106
|
dragging: D,
|
|
108
107
|
onHandlePointerDown: F,
|
|
109
108
|
resetWidth: T
|
|
110
|
-
} =
|
|
109
|
+
} = ie("zteam.sidebar.admin", 176, 160, 420), j = (n) => !n || ue(r, n), z = re(() => {
|
|
111
110
|
const n = (d) => d.map(
|
|
112
111
|
(l) => {
|
|
113
112
|
var y;
|
|
@@ -118,28 +117,28 @@ function mn({
|
|
|
118
117
|
(!l.children || l.children.length > 0)
|
|
119
118
|
);
|
|
120
119
|
return n(M);
|
|
121
|
-
}, [r == null ? void 0 : r.permissions, r == null ? void 0 : r.is_global_admin]), I =
|
|
120
|
+
}, [r == null ? void 0 : r.permissions, r == null ? void 0 : r.is_global_admin]), I = G((n) => {
|
|
122
121
|
k(n), B(n);
|
|
123
|
-
}, []), H =
|
|
122
|
+
}, []), H = G(
|
|
124
123
|
(n) => {
|
|
125
124
|
if (a) {
|
|
126
125
|
a(n);
|
|
127
126
|
return;
|
|
128
127
|
}
|
|
129
|
-
|
|
128
|
+
E.push(`/workspace?mode=workbench&todoId=${n}`);
|
|
130
129
|
},
|
|
131
130
|
[a]
|
|
132
131
|
);
|
|
133
|
-
|
|
132
|
+
oe(() => {
|
|
134
133
|
if (r) return;
|
|
135
134
|
const n = q();
|
|
136
|
-
!n || !Q(n) || (w(V(n)),
|
|
135
|
+
!n || !Q(n) || (w(V(n)), U.getState().token, X().then((d) => w(d)).catch(() => {
|
|
137
136
|
}));
|
|
138
137
|
}, [r, w]);
|
|
139
138
|
const Z = r != null && r.avatar && (r.avatar.startsWith("http") || r.avatar.startsWith("data:")) ? r.avatar : void 0, J = [
|
|
140
139
|
{
|
|
141
140
|
key: "logout",
|
|
142
|
-
icon: /* @__PURE__ */ t(
|
|
141
|
+
icon: /* @__PURE__ */ t(te, {}),
|
|
143
142
|
label: "退出登录",
|
|
144
143
|
onClick: () => {
|
|
145
144
|
le();
|
|
@@ -180,28 +179,28 @@ function mn({
|
|
|
180
179
|
type: "button",
|
|
181
180
|
className: e.modeBtn,
|
|
182
181
|
onClick: () => {
|
|
183
|
-
c ? c() :
|
|
182
|
+
c ? c() : E.push("/workspace");
|
|
184
183
|
},
|
|
185
184
|
title: "切换到协作工作台",
|
|
186
185
|
children: [
|
|
187
|
-
/* @__PURE__ */ t(
|
|
186
|
+
/* @__PURE__ */ t(Y, {}),
|
|
188
187
|
/* @__PURE__ */ t("span", { children: "协作工作台" })
|
|
189
188
|
]
|
|
190
189
|
}
|
|
191
190
|
),
|
|
192
191
|
r ? /* @__PURE__ */ t(
|
|
193
|
-
|
|
192
|
+
ae,
|
|
194
193
|
{
|
|
195
194
|
menu: { items: J },
|
|
196
195
|
placement: "bottomRight",
|
|
197
196
|
trigger: ["click"],
|
|
198
197
|
children: /* @__PURE__ */ i("div", { className: e.headerUser, children: [
|
|
199
198
|
/* @__PURE__ */ t(
|
|
200
|
-
|
|
199
|
+
se,
|
|
201
200
|
{
|
|
202
201
|
size: 28,
|
|
203
202
|
src: Z,
|
|
204
|
-
icon: /* @__PURE__ */ t(
|
|
203
|
+
icon: /* @__PURE__ */ t(ee, {}),
|
|
205
204
|
style: {
|
|
206
205
|
backgroundColor: "#2F70F1",
|
|
207
206
|
flexShrink: 0
|
|
@@ -225,7 +224,7 @@ function mn({
|
|
|
225
224
|
className: e.collapseAllBtn,
|
|
226
225
|
onClick: () => g(/* @__PURE__ */ new Set()),
|
|
227
226
|
title: "全部收起",
|
|
228
|
-
children: /* @__PURE__ */ t(
|
|
227
|
+
children: /* @__PURE__ */ t(ne, {})
|
|
229
228
|
}
|
|
230
229
|
)
|
|
231
230
|
] }),
|
|
@@ -246,7 +245,7 @@ function mn({
|
|
|
246
245
|
children: [
|
|
247
246
|
/* @__PURE__ */ t("span", { className: e.menuItemIcon, children: n.icon }),
|
|
248
247
|
/* @__PURE__ */ t("span", { children: n.label }),
|
|
249
|
-
d && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: l ? /* @__PURE__ */ t(
|
|
248
|
+
d && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: l ? /* @__PURE__ */ t($, {}) : /* @__PURE__ */ t(x, {}) })
|
|
250
249
|
]
|
|
251
250
|
}
|
|
252
251
|
),
|
|
@@ -272,7 +271,7 @@ function mn({
|
|
|
272
271
|
},
|
|
273
272
|
children: [
|
|
274
273
|
/* @__PURE__ */ t("span", { children: u.label }),
|
|
275
|
-
p && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: S ? /* @__PURE__ */ t(
|
|
274
|
+
p && /* @__PURE__ */ t("span", { className: e.menuExpandIcon, children: S ? /* @__PURE__ */ t($, {}) : /* @__PURE__ */ t(x, {}) })
|
|
276
275
|
]
|
|
277
276
|
}
|
|
278
277
|
),
|
|
@@ -302,10 +301,10 @@ function mn({
|
|
|
302
301
|
title: "拖动调整菜单宽度,双击恢复默认"
|
|
303
302
|
}
|
|
304
303
|
),
|
|
305
|
-
/* @__PURE__ */ t("main", { className: e.contentArea, children: /* @__PURE__ */ t("div", { className: e.contentBody, children: /* @__PURE__ */ t(
|
|
304
|
+
/* @__PURE__ */ t("main", { className: e.contentArea, children: /* @__PURE__ */ t("div", { className: e.contentBody, children: /* @__PURE__ */ t(ce, { children: K() }) }) })
|
|
306
305
|
] })
|
|
307
306
|
] });
|
|
308
307
|
}
|
|
309
308
|
export {
|
|
310
|
-
|
|
309
|
+
un as default
|
|
311
310
|
};
|