@yuku123/z-team-component 0.2.104 → 0.2.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChangeLogView-DG-ogBff.js → ChangeLogView-B0ML82u0.js} +1 -1
- package/dist/{ComponentDoc-BW1SyDxk.js → ComponentDoc-C_289lsE.js} +12 -12
- package/dist/{InvitationManagementPage-hYvoPEcm.js → InvitationManagementPage-D2ezz4ZQ.js} +1 -1
- package/dist/{OnboardingPage-KDp-DrzY.js → OnboardingPage-BXsJ-kcJ.js} +2 -2
- package/dist/{ScheduledTasks-CErSDgyW.js → ScheduledTasks-Cn8BsDkN.js} +6 -6
- package/dist/{SystemShell-DvrY4Bl7.js → SystemShell-gcfNlt2L.js} +4 -4
- package/dist/{admin-logs-uPnnclwN.js → admin-logs-B6K1DwRL.js} +5 -5
- package/dist/api-BdP8mK8v.js +101 -0
- package/dist/{api-B__qdRIf.js → api-DxSgE7qw.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BXbn5-Ft.js → createWorkspaceWsHandler-DcNA1pfi.js} +3 -3
- package/dist/{index-D-xPVrY3.js → index-54iTaRVW.js} +1 -1
- package/dist/{index-0smeCTnr.js → index-BCw3Oxp1.js} +1255 -1255
- package/dist/{index-ByhCWenF.js → index-BDq0ofl2.js} +102 -188
- package/dist/{index-DtHoMz1H.js → index-BN-o5nZM.js} +1 -1
- package/dist/{index-BwJPAN8f.js → index-Bf1K9zpk.js} +19 -19
- package/dist/{index-Cb88Xdh4.js → index-BfMFQ6RD.js} +3 -3
- package/dist/{index-DIFIvVWE.js → index-C-8n6xxK.js} +2 -2
- package/dist/{index-aI2EXKED.js → index-C8m8s-SU.js} +26 -26
- package/dist/{index-BK3YDeXH.js → index-CXJXSmhB.js} +6 -6
- package/dist/{index-BnJ8UEeZ.js → index-CdugR2_4.js} +3 -3
- package/dist/{index-YVtm1SRy.js → index-CeCsncoT.js} +28 -28
- package/dist/{index-CkWKJORv.js → index-CgCB0-yK.js} +1 -1
- package/dist/{index-DcurzowX.js → index-Cjddvrij.js} +4 -4
- package/dist/{index-q_TPea69.js → index-D487Inba.js} +15 -15
- package/dist/{index-BOJm25by.js → index-DK71mfJn.js} +1 -1
- package/dist/{index-C9fGup9t.js → index-DLHcoHS9.js} +3 -3
- package/dist/{index-Cih0yoxc.js → index-DUiFk01c.js} +5 -5
- package/dist/{index-2isWwv1X.js → index-DgN13A-E.js} +9 -9
- package/dist/{index-DOgCfVB2.js → index-DpLamT1r.js} +2 -2
- package/dist/{index-DBnH-lRh.js → index-DszzQwsc.js} +1 -1
- package/dist/index-HJ3Kt-NT.js +358 -0
- package/dist/{index-BC8f-JP9.js → index-Nj-dlFKY.js} +3 -3
- package/dist/{index-C2_tfpEj.js → index-ZuYJoo9E.js} +2 -2
- package/dist/{index-DAGa9v8r.js → index-etyS3HY2.js} +2 -2
- package/dist/{index-CsaGecGX.js → index-jIh52A4c.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/{instance-pdQ_wAhB.js → instance-p-ezisoS.js} +5 -5
- package/dist/{menuPermission-CCQjJVXg.js → menuPermission-u3Gd_c8S.js} +11 -11
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BzeR4ahf.js → send-default-agent-team-message-BhIV6T6O.js} +1 -1
- package/dist/{sso-user-DI7oiDdc.js → sso-user-Ib1jhF7t.js} +1 -1
- package/dist/{training-Bz7Sr5yC.js → training-D3Uy5K_M.js} +1 -1
- package/dist/{webide-NcHLDiSn.js → webide-BGQnArzY.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { r as D, f as le } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as de, h as $, s as K } from "./sso-user-
|
|
3
|
+
import { r as de, h as $, s as K } from "./sso-user-Ib1jhF7t.js";
|
|
4
4
|
import { ArrowLeftOutlined as ue, PlusOutlined as pe, LogoutOutlined as me, SearchOutlined as he } from "@ant-design/icons";
|
|
5
5
|
import { Spin as O, Button as q, Input as fe, Empty as Y, Tag as ge, message as be } from "antd";
|
|
6
6
|
import Q from "query-string";
|
|
7
7
|
import { useState as y, useRef as E, useEffect as w, useMemo as J, useCallback as B } from "react";
|
|
8
8
|
import { useLocation as ke } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as we, C as Se } from "./createWorkspaceWsHandler-
|
|
11
|
-
import {
|
|
12
|
-
import { l as Pe, j as xe } from "./instance-
|
|
10
|
+
import { c as we, C as Se } from "./createWorkspaceWsHandler-DcNA1pfi.js";
|
|
11
|
+
import { u as i, Q as ye, U as ve, V as Ne, W as Te, X as je, Y as Ce, k as ee } from "./ComponentDoc-C_289lsE.js";
|
|
12
|
+
import { l as Pe, j as xe } from "./instance-p-ezisoS.js";
|
|
13
13
|
import { i as _e, s as Ee } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as Ae } from "./admin-logs-
|
|
15
|
+
import { s as Ae } from "./admin-logs-B6K1DwRL.js";
|
|
16
16
|
const ae = 2e4;
|
|
17
17
|
function Ie(o, s = ae, n = globalThis) {
|
|
18
18
|
let c = null;
|
|
@@ -56,14 +56,14 @@ function Oe({
|
|
|
56
56
|
timeoutMs: c = ae,
|
|
57
57
|
className: r
|
|
58
58
|
}) {
|
|
59
|
-
const [
|
|
59
|
+
const [T, h] = y(!1), g = E(n);
|
|
60
60
|
return g.current = n, w(() => {
|
|
61
61
|
const m = Ie(
|
|
62
62
|
() => h(!0),
|
|
63
63
|
c
|
|
64
64
|
);
|
|
65
65
|
return m.start(), () => m.stop();
|
|
66
|
-
}, [c]),
|
|
66
|
+
}, [c]), T ? /* @__PURE__ */ d("div", { className: r, children: [
|
|
67
67
|
/* @__PURE__ */ t(O, { description: "" }),
|
|
68
68
|
/* @__PURE__ */ t(
|
|
69
69
|
Le,
|
|
@@ -93,7 +93,7 @@ function Re(o, s) {
|
|
|
93
93
|
});
|
|
94
94
|
ve(o, s, n), i.getState().loadRunningExecutions().catch(() => {
|
|
95
95
|
});
|
|
96
|
-
const r = i.getState(), { handler:
|
|
96
|
+
const r = i.getState(), { handler: T, dispose: h } = we({
|
|
97
97
|
projectId: o,
|
|
98
98
|
token: s,
|
|
99
99
|
updateExecution: r.updateExecution,
|
|
@@ -105,9 +105,9 @@ function Re(o, s) {
|
|
|
105
105
|
deleteMessage: r.deleteMessage,
|
|
106
106
|
updateMessageReadStatus: r.updateMessageReadStatus,
|
|
107
107
|
loadFileTree: r.loadFileTree
|
|
108
|
-
}), g =
|
|
108
|
+
}), g = Ne(T);
|
|
109
109
|
return () => {
|
|
110
|
-
g(), h(),
|
|
110
|
+
g(), h(), Te(), c(), i.getState().setObserverStatus(null);
|
|
111
111
|
};
|
|
112
112
|
}, [o, s]);
|
|
113
113
|
}
|
|
@@ -124,7 +124,7 @@ function te() {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function Je() {
|
|
127
|
-
const o = ke(), [s, n] = y("list"), [c, r] = y("chat"), [
|
|
127
|
+
const o = ke(), [s, n] = y("list"), [c, r] = y("chat"), [T, h] = y("team"), [g, m] = y(""), [f, V] = y(!1), [re, I] = y(!1), {
|
|
128
128
|
currentProject: v,
|
|
129
129
|
currentUser: R,
|
|
130
130
|
projects: L,
|
|
@@ -133,7 +133,7 @@ function Je() {
|
|
|
133
133
|
token: oe,
|
|
134
134
|
loadProjects: z,
|
|
135
135
|
expandProject: H,
|
|
136
|
-
updateCurrentUser:
|
|
136
|
+
updateCurrentUser: j,
|
|
137
137
|
requestChatScrollBottom: S
|
|
138
138
|
} = i(), k = J(() => {
|
|
139
139
|
const e = Q.parse(o.search), a = String(e.projectId ?? e.project_id ?? "").trim();
|
|
@@ -160,20 +160,20 @@ function Je() {
|
|
|
160
160
|
let e = !1, a = 0;
|
|
161
161
|
const l = 100;
|
|
162
162
|
let x = !1, F = 0;
|
|
163
|
-
const M = 3,
|
|
163
|
+
const M = 3, N = (b) => {
|
|
164
164
|
const u = i.getState().token;
|
|
165
165
|
if (X.current != null) {
|
|
166
|
-
e || (
|
|
167
|
-
e ||
|
|
166
|
+
e || (j(K(b)), V(!0)), ee().then((G) => {
|
|
167
|
+
e || j(G);
|
|
168
168
|
}).catch(() => {
|
|
169
169
|
!e && u && (localStorage.removeItem("z_team_token"), i.setState({ token: "" }));
|
|
170
170
|
});
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
ee().then((G) => {
|
|
174
|
-
e ||
|
|
174
|
+
e || j(G);
|
|
175
175
|
}).catch(() => {
|
|
176
|
-
e || (u && (localStorage.removeItem("z_team_token"), i.setState({ token: "" })),
|
|
176
|
+
e || (u && (localStorage.removeItem("z_team_token"), i.setState({ token: "" })), j(K(b)));
|
|
177
177
|
}).finally(() => {
|
|
178
178
|
e || V(!0);
|
|
179
179
|
});
|
|
@@ -196,7 +196,7 @@ function Je() {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
if (u && $(u)) {
|
|
199
|
-
|
|
199
|
+
N(u);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
if (F >= M) {
|
|
@@ -215,7 +215,7 @@ function Je() {
|
|
|
215
215
|
})(), () => {
|
|
216
216
|
e = !0;
|
|
217
217
|
};
|
|
218
|
-
}, [
|
|
218
|
+
}, [j]), w(() => {
|
|
219
219
|
R && z();
|
|
220
220
|
}, [R, z]), w(() => {
|
|
221
221
|
var l;
|
|
@@ -254,8 +254,8 @@ function Je() {
|
|
|
254
254
|
let l = !1;
|
|
255
255
|
C.current = !0, I(!0);
|
|
256
256
|
const x = async () => {
|
|
257
|
-
const
|
|
258
|
-
for (; Date.now() <
|
|
257
|
+
const N = Date.now() + 4e3;
|
|
258
|
+
for (; Date.now() < N; ) {
|
|
259
259
|
if (l)
|
|
260
260
|
return;
|
|
261
261
|
const _ = i.getState();
|
|
@@ -269,19 +269,19 @@ function Je() {
|
|
|
269
269
|
if (await x(), l)
|
|
270
270
|
return;
|
|
271
271
|
let {
|
|
272
|
-
token:
|
|
272
|
+
token: N,
|
|
273
273
|
projects: _,
|
|
274
274
|
expandProject: b
|
|
275
275
|
} = i.getState(), u = _.find((p) => p.id === e);
|
|
276
276
|
if (!u) {
|
|
277
|
-
const p = await Pe(e,
|
|
277
|
+
const p = await Pe(e, N);
|
|
278
278
|
if (l)
|
|
279
279
|
return;
|
|
280
280
|
if (p.status === "NOT_FOUND" || !p.scenarioInstance) {
|
|
281
281
|
be.info("无此工程");
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
if (u = await xe(e,
|
|
284
|
+
if (u = await xe(e, N), l)
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
if (l || !u)
|
|
@@ -391,7 +391,7 @@ function Je() {
|
|
|
391
391
|
className: "phone-workspace-empty"
|
|
392
392
|
}
|
|
393
393
|
) : /* @__PURE__ */ t("ul", { className: "phone-project-list", children: Z.map((e) => {
|
|
394
|
-
const a =
|
|
394
|
+
const a = je(
|
|
395
395
|
e.created_at
|
|
396
396
|
);
|
|
397
397
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
|
|
@@ -462,7 +462,7 @@ function Je() {
|
|
|
462
462
|
Se,
|
|
463
463
|
{
|
|
464
464
|
hideTabs: !0,
|
|
465
|
-
activeTab:
|
|
465
|
+
activeTab: T,
|
|
466
466
|
onActiveTabChange: (e) => (
|
|
467
467
|
// @ts-expect-error phase1 宽松化:tab 类型比 chatTab="team" 宽,业务代码未启用 content 模式
|
|
468
468
|
h(e)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { S as Tn, P as In } from "./webide-
|
|
2
|
+
import { S as Tn, P as In } from "./webide-BGQnArzY.js";
|
|
3
3
|
import { message as Me, Tooltip as Qe, Dropdown as fn } from "antd";
|
|
4
4
|
import { MessageOutlined as Sn, MoreOutlined as st, DashboardOutlined as Ln, MenuUnfoldOutlined as lt, MenuFoldOutlined as ot, RightOutlined as it, SettingOutlined as An, TeamOutlined as ct, FolderOpenOutlined as rt, BarChartOutlined as dt, PieChartOutlined as ut, CodeOutlined as mt, LinkOutlined as pt, UnorderedListOutlined as On, FileTextOutlined as nn, ReadOutlined as ht, ConsoleSqlOutlined as gt, PlayCircleOutlined as bt, PlusOutlined as yt, ClockCircleOutlined as ft, AppstoreOutlined as vt } from "@ant-design/icons";
|
|
5
5
|
import { useState as d, useRef as Oe, useCallback as U, useEffect as A, useMemo as X } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-
|
|
8
|
-
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-
|
|
9
|
-
import { h as Bn, f as na } from "./index-
|
|
10
|
-
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks-
|
|
6
|
+
import { u as re, _ as Dn, n as q, $ as Nt, a0 as _t, a1 as kt, a2 as Ct, a3 as wt, a4 as Tt, t as It, a5 as St, a6 as je, a7 as Lt, a8 as At } from "./ComponentDoc-C_289lsE.js";
|
|
7
|
+
import { f as Xe, c as Ye, a as Ot, d as Dt, b as $n, s, T as $t, R as Je, D as Ke, e as xt, g as Bt, F as qe, P as Rt, L as Pt, A as Et, C as Mt, h as jt, i as Ht, p as Ft, j as Kt, k as vn, l as Nn, W as Wt, m as Ut, S as Vt, n as Gt, o as Zt, r as zt, q as Qt, U as Xt, t as Yt, u as Jt, v as qt } from "./index-DgN13A-E.js";
|
|
8
|
+
import { a as Fe, u as xn, i as ea, s as _n } from "./createWorkspaceWsHandler-DcNA1pfi.js";
|
|
9
|
+
import { h as Bn, f as na } from "./index-54iTaRVW.js";
|
|
10
|
+
import { W as en, b as We, T as Rn, c as Pn, a as En, L as Mn, P as jn, S as ta, E as aa, C as sa } from "./ScheduledTasks-Cn8BsDkN.js";
|
|
11
11
|
import { TodoTab as Hn } from "@yuku123/z-task-component";
|
|
12
12
|
const la = "_sidebarInner_1vu3c_1", oa = "_header_1vu3c_8", ia = "_headerActions_1vu3c_19", ca = "_tabBar_1vu3c_26", ra = "_tab_1vu3c_26", da = "_tabActive_1vu3c_50", ua = "_btnSm_1vu3c_66", ma = "_agentSection_1vu3c_84", pa = "_agentItem_1vu3c_90", ha = "_agentItemActive_1vu3c_112", ga = "_agentAvatar_1vu3c_117", ba = "_agentName_1vu3c_130", ya = "_emptyState_1vu3c_156", fa = "_createInputRow_1vu3c_168", va = "_createInput_1vu3c_168", Na = "_createConfirmBtn_1vu3c_188", _a = "_contextMenu_1vu3c_205", ka = "_contextMenuItem_1vu3c_216", Ca = "_contextMenuItemDanger_1vu3c_231", wa = "_contextMenuDivider_1vu3c_239", Ta = "_renameOverlay_1vu3c_246", Ia = "_renameDialog_1vu3c_259", Sa = "_renameTitle_1vu3c_267", La = "_renameInput_1vu3c_274", Aa = "_renameActions_1vu3c_289", Oa = "_renameBtn_1vu3c_295", Da = "_renameBtnPrimary_1vu3c_309", $a = "_agentDetailBtn_1vu3c_326", xa = "_agentItemShared_1vu3c_358", Ba = "_agentInfo_1vu3c_362", Ra = "_agentOwner_1vu3c_374", Pa = "_sharedBadge_1vu3c_382", Ea = "_createLocalDialog_1vu3c_430", Ma = "_createLocalLabel_1vu3c_438", ja = "_agentTypeCards_1vu3c_446", Ha = "_agentTypeCard_1vu3c_446", Fa = "_agentTypeIcon_1vu3c_474", Ka = "_agentTypeBody_1vu3c_487", Wa = "_agentTypeTitle_1vu3c_494", Ua = "_agentTypeDesc_1vu3c_500", Va = "_agentTypeBadge_1vu3c_506", l = {
|
|
13
13
|
sidebarInner: la,
|
|
@@ -3,15 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
|
|
|
3
3
|
import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
|
|
4
4
|
import { ListTable as Ae, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
|
|
5
5
|
import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
|
|
6
|
-
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-
|
|
7
|
-
import {
|
|
6
|
+
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-D3Uy5K_M.js";
|
|
7
|
+
import { u as Ce, a9 as Wl } from "./ComponentDoc-C_289lsE.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
9
|
import Hl from "dayjs";
|
|
10
10
|
import xt from "react-markdown";
|
|
11
11
|
import Tt from "remark-gfm";
|
|
12
12
|
import { h as be } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
|
|
14
|
-
import { h as ql } from "./index-
|
|
14
|
+
import { h as ql } from "./index-54iTaRVW.js";
|
|
15
15
|
function Vl() {
|
|
16
16
|
const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
|
|
17
17
|
L(!0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as re, useCallback as O } from "react";
|
|
3
|
-
import { a as
|
|
4
|
-
import { SearchOutlined as Ce, ReloadOutlined as Se, PlusOutlined as Te, FileZipOutlined as Z, CloudDownloadOutlined as Y, EditOutlined as he, UserSwitchOutlined as
|
|
5
|
-
import { message as
|
|
3
|
+
import { a as U, f as $, B, b as D, u as F } from "./ComponentDoc-C_289lsE.js";
|
|
4
|
+
import { SearchOutlined as Ce, ReloadOutlined as Se, PlusOutlined as Te, FileZipOutlined as Z, CloudDownloadOutlined as Y, EditOutlined as he, UserSwitchOutlined as be, ArrowLeftOutlined as fe, UserOutlined as Ue, CloudUploadOutlined as $e, PictureOutlined as de, EyeOutlined as Be } from "@ant-design/icons";
|
|
5
|
+
import { message as b, Input as H, Tooltip as se, Button as g, Spin as ce, Empty as De, Popconfirm as pe, Tag as ie, Modal as Re, Select as Pe, Upload as me, Tabs as Le } from "antd";
|
|
6
6
|
import ve from "react-markdown";
|
|
7
7
|
import _e from "rehype-highlight";
|
|
8
8
|
import ge from "remark-gfm";
|
|
9
|
-
import { M as na } from "./index-
|
|
9
|
+
import { M as na } from "./index-Cjddvrij.js";
|
|
10
10
|
function j(a) {
|
|
11
11
|
return a ? `?token=${encodeURIComponent(a)}` : "";
|
|
12
12
|
}
|
|
@@ -23,7 +23,7 @@ function X(a) {
|
|
|
23
23
|
async function Ie(a = {}, n = "") {
|
|
24
24
|
const l = new URLSearchParams();
|
|
25
25
|
n && l.set("token", n), a.category && l.set("category", a.category), a.keyword && l.set("keyword", a.keyword), a.mine && l.set("mine", "true");
|
|
26
|
-
const r = l.toString(), c = await
|
|
26
|
+
const r = l.toString(), c = await U(
|
|
27
27
|
`${B}/market/resources${r ? `?${r}` : ""}`,
|
|
28
28
|
$
|
|
29
29
|
);
|
|
@@ -33,7 +33,7 @@ async function Ie(a = {}, n = "") {
|
|
|
33
33
|
)).map(X);
|
|
34
34
|
}
|
|
35
35
|
async function ye(a, n = "") {
|
|
36
|
-
const l = await
|
|
36
|
+
const l = await U(
|
|
37
37
|
`${B}/market/resources/${a}${j(n)}`,
|
|
38
38
|
$
|
|
39
39
|
), r = await D(
|
|
@@ -45,7 +45,7 @@ async function ye(a, n = "") {
|
|
|
45
45
|
async function Me(a, n, l = "") {
|
|
46
46
|
const r = new URLSearchParams();
|
|
47
47
|
r.set("publish", n ? "true" : "false"), l && r.set("token", l);
|
|
48
|
-
const c = await
|
|
48
|
+
const c = await U(`${B}/market/resources?${r.toString()}`, {
|
|
49
49
|
...$,
|
|
50
50
|
method: "POST",
|
|
51
51
|
headers: { "Content-Type": "application/json" },
|
|
@@ -60,7 +60,7 @@ async function Me(a, n, l = "") {
|
|
|
60
60
|
async function we(a, n, l, r = "") {
|
|
61
61
|
const c = new URLSearchParams();
|
|
62
62
|
l !== null && c.set("publish", l ? "true" : "false"), r && c.set("token", r);
|
|
63
|
-
const h = c.toString(), d = await
|
|
63
|
+
const h = c.toString(), d = await U(
|
|
64
64
|
`${B}/market/resources/${a}${h ? `?${h}` : ""}`,
|
|
65
65
|
{
|
|
66
66
|
...$,
|
|
@@ -76,7 +76,7 @@ async function we(a, n, l, r = "") {
|
|
|
76
76
|
return X(v);
|
|
77
77
|
}
|
|
78
78
|
async function Ne(a, n = "") {
|
|
79
|
-
const l = await
|
|
79
|
+
const l = await U(
|
|
80
80
|
`${B}/market/resources/${a}${j(n)}`,
|
|
81
81
|
{ ...$, method: "DELETE" }
|
|
82
82
|
);
|
|
@@ -85,7 +85,7 @@ async function Ne(a, n = "") {
|
|
|
85
85
|
async function ke(a, n = "", l) {
|
|
86
86
|
const r = new URLSearchParams();
|
|
87
87
|
n && r.set("token", n);
|
|
88
|
-
const c = await
|
|
88
|
+
const c = await U(
|
|
89
89
|
`${B}/market/resources/${a}/download?${r.toString()}`,
|
|
90
90
|
{ ...$, method: "POST" }
|
|
91
91
|
), h = await D(c, "下载失败");
|
|
@@ -97,7 +97,7 @@ async function ke(a, n = "", l) {
|
|
|
97
97
|
async function Oe(a, n = "") {
|
|
98
98
|
const l = new FormData();
|
|
99
99
|
l.append("file", a);
|
|
100
|
-
const r = await
|
|
100
|
+
const r = await U(
|
|
101
101
|
`${B}/market/upload-package${j(n)}`,
|
|
102
102
|
{ ...$, method: "POST", body: l }
|
|
103
103
|
), c = await D(r, "上传资源包失败");
|
|
@@ -106,7 +106,7 @@ async function Oe(a, n = "") {
|
|
|
106
106
|
async function xe(a, n = "") {
|
|
107
107
|
const l = new FormData();
|
|
108
108
|
l.append("file", a);
|
|
109
|
-
const r = await
|
|
109
|
+
const r = await U(`${B}/market/upload-cover${j(n)}`, {
|
|
110
110
|
...$,
|
|
111
111
|
method: "POST",
|
|
112
112
|
body: l
|
|
@@ -116,14 +116,14 @@ async function xe(a, n = "") {
|
|
|
116
116
|
async function ue(a, n = "") {
|
|
117
117
|
const l = new URLSearchParams();
|
|
118
118
|
a && l.set("keyword", a), n && l.set("token", n);
|
|
119
|
-
const r = l.toString(), c = await
|
|
119
|
+
const r = l.toString(), c = await U(
|
|
120
120
|
`${B}/market/users${r ? `?${r}` : ""}`,
|
|
121
121
|
$
|
|
122
122
|
);
|
|
123
123
|
return D(c, "搜索用户失败");
|
|
124
124
|
}
|
|
125
125
|
async function Ee(a, n, l = "") {
|
|
126
|
-
const r = await
|
|
126
|
+
const r = await U(
|
|
127
127
|
`${B}/market/resources/${a}/transfer-owner${j(l)}`,
|
|
128
128
|
{
|
|
129
129
|
...$,
|
|
@@ -134,7 +134,7 @@ async function Ee(a, n, l = "") {
|
|
|
134
134
|
);
|
|
135
135
|
return D(r, "转交失败");
|
|
136
136
|
}
|
|
137
|
-
const Fe = "_tabBody_1ouee_3", Ae = "_comingSoon_1ouee_3", ze = "_comingSoonIcon_1ouee_22", We = "_comingSoonTitle_1ouee_26", He = "_comingSoonDesc_1ouee_32", je = "_listWrap_1ouee_37", Ge = "_toolbar_1ouee_41", Ke = "_toolbarCount_1ouee_48", Ve = "_toolbarRight_1ouee_53", qe = "_emptyWrap_1ouee_59", Je = "_cardGrid_1ouee_64", Ze = "_card_1ouee_64", Ye = "_cardCover_1ouee_87", Qe = "_cardCoverFallback_1ouee_101", Xe = "_cardDraftBadge_1ouee_111", et = "_cardBody_1ouee_122", tt = "_cardTitle_1ouee_130", at = "_cardSummary_1ouee_139", nt = "_cardMeta_1ouee_150", ot = "_cardCreator_1ouee_158", it = "_cardDownloads_1ouee_165", lt = "_cardFileName_1ouee_171", rt = "_cardActions_1ouee_175", ct = "_cardDraftTag_1ouee_184", dt = "_editorWrap_1ouee_191", st = "_detailWrap_1ouee_192", mt = "_editorTopBar_1ouee_199", ut = "_backBtn_1ouee_209", ht = "_editorTitle_1ouee_226", ft = "_editorTopActions_1ouee_235", pt = "_editorBody_1ouee_241", vt = "_detailBody_1ouee_242", _t = "_section_1ouee_252", gt = "_sectionTitle_1ouee_259", yt = "_uploaderInner_1ouee_269", wt = "_uploaderIcon_1ouee_273", Nt = "_uploaderText_1ouee_279", kt = "_uploaderFile_1ouee_284", Ct = "_coverRow_1ouee_290", St = "_coverPreview_1ouee_296", Tt = "_coverRemove_1ouee_312",
|
|
137
|
+
const Fe = "_tabBody_1ouee_3", Ae = "_comingSoon_1ouee_3", ze = "_comingSoonIcon_1ouee_22", We = "_comingSoonTitle_1ouee_26", He = "_comingSoonDesc_1ouee_32", je = "_listWrap_1ouee_37", Ge = "_toolbar_1ouee_41", Ke = "_toolbarCount_1ouee_48", Ve = "_toolbarRight_1ouee_53", qe = "_emptyWrap_1ouee_59", Je = "_cardGrid_1ouee_64", Ze = "_card_1ouee_64", Ye = "_cardCover_1ouee_87", Qe = "_cardCoverFallback_1ouee_101", Xe = "_cardDraftBadge_1ouee_111", et = "_cardBody_1ouee_122", tt = "_cardTitle_1ouee_130", at = "_cardSummary_1ouee_139", nt = "_cardMeta_1ouee_150", ot = "_cardCreator_1ouee_158", it = "_cardDownloads_1ouee_165", lt = "_cardFileName_1ouee_171", rt = "_cardActions_1ouee_175", ct = "_cardDraftTag_1ouee_184", dt = "_editorWrap_1ouee_191", st = "_detailWrap_1ouee_192", mt = "_editorTopBar_1ouee_199", ut = "_backBtn_1ouee_209", ht = "_editorTitle_1ouee_226", ft = "_editorTopActions_1ouee_235", pt = "_editorBody_1ouee_241", vt = "_detailBody_1ouee_242", _t = "_section_1ouee_252", gt = "_sectionTitle_1ouee_259", yt = "_uploaderInner_1ouee_269", wt = "_uploaderIcon_1ouee_273", Nt = "_uploaderText_1ouee_279", kt = "_uploaderFile_1ouee_284", Ct = "_coverRow_1ouee_290", St = "_coverPreview_1ouee_296", Tt = "_coverRemove_1ouee_312", bt = "_formRow_1ouee_318", Ut = "_formLabel_1ouee_329", $t = "_docEditor_1ouee_337", Bt = "_docPreview_1ouee_343", Dt = "_docPreviewEmpty_1ouee_398", Rt = "_detailHeader_1ouee_405", Pt = "_detailCover_1ouee_414", Lt = "_detailInfo_1ouee_430", It = "_detailNameRow_1ouee_438", Mt = "_detailName_1ouee_438", Ot = "_detailSummary_1ouee_452", xt = "_detailMeta_1ouee_458", Et = "_detailActions_1ouee_467", Ft = "_detailDocSection_1ouee_473", t = {
|
|
138
138
|
tabBody: Fe,
|
|
139
139
|
comingSoon: Ae,
|
|
140
140
|
comingSoonIcon: ze,
|
|
@@ -176,8 +176,8 @@ const Fe = "_tabBody_1ouee_3", Ae = "_comingSoon_1ouee_3", ze = "_comingSoonIcon
|
|
|
176
176
|
coverRow: Ct,
|
|
177
177
|
coverPreview: St,
|
|
178
178
|
coverRemove: Tt,
|
|
179
|
-
formRow:
|
|
180
|
-
formLabel:
|
|
179
|
+
formRow: bt,
|
|
180
|
+
formLabel: Ut,
|
|
181
181
|
docEditor: $t,
|
|
182
182
|
docPreview: Bt,
|
|
183
183
|
docPreviewEmpty: Dt,
|
|
@@ -233,7 +233,7 @@ function zt({
|
|
|
233
233
|
), q = O(
|
|
234
234
|
async (o) => {
|
|
235
235
|
try {
|
|
236
|
-
await Ne(o, v),
|
|
236
|
+
await Ne(o, v), b.success("已删除"), r();
|
|
237
237
|
} catch {
|
|
238
238
|
}
|
|
239
239
|
},
|
|
@@ -262,7 +262,7 @@ function zt({
|
|
|
262
262
|
if (!(!p || f === null)) {
|
|
263
263
|
A(!0);
|
|
264
264
|
try {
|
|
265
|
-
await Ee(p.id, f, v),
|
|
265
|
+
await Ee(p.id, f, v), b.success("已转交"), T(null), r();
|
|
266
266
|
} catch {
|
|
267
267
|
} finally {
|
|
268
268
|
A(!1);
|
|
@@ -387,7 +387,7 @@ function zt({
|
|
|
387
387
|
g,
|
|
388
388
|
{
|
|
389
389
|
size: "small",
|
|
390
|
-
icon: /* @__PURE__ */ e(
|
|
390
|
+
icon: /* @__PURE__ */ e(be, {}),
|
|
391
391
|
onClick: () => ee(o)
|
|
392
392
|
}
|
|
393
393
|
) }),
|
|
@@ -480,14 +480,14 @@ function Wt({
|
|
|
480
480
|
}, I = async (f) => {
|
|
481
481
|
M(!0);
|
|
482
482
|
try {
|
|
483
|
-
await we(d.id, {}, f, h),
|
|
483
|
+
await we(d.id, {}, f, h), b.success(f ? "已发布" : "已下架为草稿"), l();
|
|
484
484
|
} catch {
|
|
485
485
|
} finally {
|
|
486
486
|
M(!1);
|
|
487
487
|
}
|
|
488
488
|
}, x = async () => {
|
|
489
489
|
try {
|
|
490
|
-
await Ne(d.id, h),
|
|
490
|
+
await Ne(d.id, h), b.success("已删除"), c();
|
|
491
491
|
} catch {
|
|
492
492
|
}
|
|
493
493
|
};
|
|
@@ -539,7 +539,7 @@ function Wt({
|
|
|
539
539
|
/* @__PURE__ */ e("div", { className: t.detailSummary, children: d.summary || "暂无简介" }),
|
|
540
540
|
/* @__PURE__ */ i("div", { className: t.detailMeta, children: [
|
|
541
541
|
/* @__PURE__ */ i("span", { children: [
|
|
542
|
-
/* @__PURE__ */ e(
|
|
542
|
+
/* @__PURE__ */ e(Ue, {}),
|
|
543
543
|
" ",
|
|
544
544
|
d.creatorName
|
|
545
545
|
] }),
|
|
@@ -616,11 +616,11 @@ function jt({
|
|
|
616
616
|
if (W && ne) {
|
|
617
617
|
const oe = Ht(ne);
|
|
618
618
|
if (oe !== ne)
|
|
619
|
-
return m(oe),
|
|
619
|
+
return m(oe), b.success(
|
|
620
620
|
`资源包已替换,版本号自动升级至 v${oe}(可手动修改)`
|
|
621
621
|
), !1;
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
b.success(`资源包已上传:${J.fileName ?? s.name}`);
|
|
624
624
|
} catch {
|
|
625
625
|
} finally {
|
|
626
626
|
A(!1);
|
|
@@ -630,7 +630,7 @@ function jt({
|
|
|
630
630
|
K(!0);
|
|
631
631
|
try {
|
|
632
632
|
const W = await xe(s, c);
|
|
633
|
-
T(W.url),
|
|
633
|
+
T(W.url), b.success("封面已上传");
|
|
634
634
|
} catch {
|
|
635
635
|
} finally {
|
|
636
636
|
K(!1);
|
|
@@ -645,7 +645,7 @@ function jt({
|
|
|
645
645
|
fileName: x || void 0,
|
|
646
646
|
fileSize: f || void 0,
|
|
647
647
|
version: C.trim() || void 0
|
|
648
|
-
}), N = (s) => d.trim() ? s && !L ? (
|
|
648
|
+
}), N = (s) => d.trim() ? s && !L ? (b.warning("发布前请先上传资源包"), !1) : !0 : (b.warning("请填写资源名称"), !1), _ = async (s) => {
|
|
649
649
|
if (N(s)) {
|
|
650
650
|
V(s ? "publish" : "draft");
|
|
651
651
|
try {
|
|
@@ -654,7 +654,7 @@ function jt({
|
|
|
654
654
|
s,
|
|
655
655
|
c
|
|
656
656
|
);
|
|
657
|
-
|
|
657
|
+
b.success(s ? "已发布" : "已保存草稿"), l(W);
|
|
658
658
|
} catch {
|
|
659
659
|
} finally {
|
|
660
660
|
V(null);
|
|
@@ -2,7 +2,7 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { CopyOutlined as oe, ReloadOutlined as Te, PlusOutlined as Se, DeleteOutlined as Ue, ClearOutlined as Re, CloseOutlined as De, SendOutlined as He, RobotOutlined as we, CloudServerOutlined as ze, MessageOutlined as Fe, KeyOutlined as je, ApiOutlined as qe, ToolOutlined as Ge, BarChartOutlined as Je } from "@ant-design/icons";
|
|
3
3
|
import { useState as N, useEffect as X, useCallback as j, useRef as ue, useMemo as Ae, Suspense as We, lazy as Qe } from "react";
|
|
4
4
|
import { Tooltip as Y, Tabs as Be, Input as ke, Button as H, Modal as he, Drawer as xe, Spin as Z, Statistic as E, Table as Me, message as J, Tag as W, Select as Ve, Checkbox as Ye } from "antd";
|
|
5
|
-
import {
|
|
5
|
+
import { u as be } from "./ComponentDoc-C_289lsE.js";
|
|
6
6
|
import { AgentAppList as Xe, McpPage as Ze, SkillMarket as et } from "@yuku123/z-agent-component";
|
|
7
7
|
const re = "ft_gateway_default_ak", Ie = "system-default", ee = "", ge = "";
|
|
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 { aa as xa, ab as jA,
|
|
10
|
-
import { x as ia, y as oA, z as fA, B as lA, b as xA, E as iA, G as cA, H as TA, I as vA, J as up, K as Yp, M as mp, O as yp, Q as Ip, V as FA, X as dA, Y as OA, Z 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 { aa as xa, ab as jA, u as Dp } from "./ComponentDoc-C_289lsE.js";
|
|
10
|
+
import { x as ia, y as oA, z as fA, B as lA, b as xA, E as iA, G as cA, H as TA, I as vA, J as up, K as Yp, M as mp, O as yp, Q as Ip, V as FA, X as dA, Y as OA, Z as XA } from "./index-DgN13A-E.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-DcNA1pfi.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-CeCsncoT.js").then((a) => ({ default: a.MarketContent }))
|
|
1685
1685
|
);
|
|
1686
1686
|
function d0(a) {
|
|
1687
1687
|
const n = [], x = a.split(`
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as ne, h as X, s as oe } from "./sso-user-
|
|
3
|
+
import { r as ne, h as X, s as oe } from "./sso-user-Ib1jhF7t.js";
|
|
4
4
|
import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
|
|
5
|
-
import { message as
|
|
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 {
|
|
10
|
+
import { u as c, o as he, j as be, k as _e } from "./ComponentDoc-C_289lsE.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-BhIV6T6O.js";
|
|
14
14
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
15
|
-
function
|
|
15
|
+
function ke(a) {
|
|
16
16
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Pe(a) {
|
|
19
19
|
var o;
|
|
20
20
|
if (!((o = a == null ? void 0 : a.items) != null && o.length))
|
|
21
21
|
return [];
|
|
@@ -46,7 +46,7 @@ const J = 30;
|
|
|
46
46
|
function Xe() {
|
|
47
47
|
const a = ge(), m = pe.parse(a.search), o = String(
|
|
48
48
|
m.scenarioCode ?? m.scenario_code ?? ""
|
|
49
|
-
).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [j, T] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]),
|
|
49
|
+
).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [j, T] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]), k = Y(!1), x = Y(y);
|
|
50
50
|
x.current = y;
|
|
51
51
|
const C = K(() => o ? "" : "缺少参数 scenarioCode", [o]), S = w((e, r) => {
|
|
52
52
|
F((n) => [...n, e]), g(r);
|
|
@@ -107,9 +107,9 @@ function Xe() {
|
|
|
107
107
|
}, [C, d]);
|
|
108
108
|
const te = w(
|
|
109
109
|
async (e, r) => {
|
|
110
|
-
if (
|
|
110
|
+
if (k.current)
|
|
111
111
|
return;
|
|
112
|
-
|
|
112
|
+
k.current = !0, R("loading"), F([]), g("正在按场景创建工程…");
|
|
113
113
|
const n = e.slice(0, J), i = c.getState().token;
|
|
114
114
|
try {
|
|
115
115
|
let s = [];
|
|
@@ -142,7 +142,7 @@ function Xe() {
|
|
|
142
142
|
})
|
|
143
143
|
);
|
|
144
144
|
} catch (s) {
|
|
145
|
-
|
|
145
|
+
k.current = !1, R("form");
|
|
146
146
|
const v = s instanceof Error ? s.message : String(s);
|
|
147
147
|
T(v || "创建工程失败");
|
|
148
148
|
}
|
|
@@ -152,15 +152,15 @@ function Xe() {
|
|
|
152
152
|
e.length && U((r) => {
|
|
153
153
|
const n = E - r.length;
|
|
154
154
|
if (n <= 0)
|
|
155
|
-
return
|
|
155
|
+
return P.warning(`最多粘贴 ${E} 张图片`), r;
|
|
156
156
|
const i = [...r];
|
|
157
157
|
for (const s of e.slice(0, n)) {
|
|
158
|
-
if (!
|
|
159
|
-
|
|
158
|
+
if (!ke(s)) {
|
|
159
|
+
P.warning("仅支持粘贴图片");
|
|
160
160
|
continue;
|
|
161
161
|
}
|
|
162
162
|
if (s.size > Ce) {
|
|
163
|
-
|
|
163
|
+
P.warning("单张图片不能超过 10MB");
|
|
164
164
|
continue;
|
|
165
165
|
}
|
|
166
166
|
i.push(Ee(s));
|
|
@@ -178,7 +178,7 @@ function Xe() {
|
|
|
178
178
|
}, []);
|
|
179
179
|
const ae = w(
|
|
180
180
|
(e) => {
|
|
181
|
-
const r =
|
|
181
|
+
const r = Pe(e.clipboardData);
|
|
182
182
|
r.length > 0 && (e.preventDefault(), L(r));
|
|
183
183
|
},
|
|
184
184
|
[L]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as N, useRef as _, useEffect as r, useCallback as h } from "react";
|
|
3
3
|
import { h as o } from "./history-BlrA1eaW.js";
|
|
4
|
-
import { C as A } from "./ChangeLogView-
|
|
4
|
+
import { C as A } from "./ChangeLogView-B0ML82u0.js";
|
|
5
5
|
const T = "_docs_3auja_12", p = "_bgLayer_3auja_59", v = "_bgGrid_3auja_70", y = "_navbar_3auja_87", f = "_navLeft_3auja_103", z = "_navBack_3auja_110", j = "_navBrand_3auja_132", C = "_navLogo_3auja_139", k = "_navTitle_3auja_154", L = "_navLink_3auja_164", I = "_layout_3auja_191", B = "_sidebar_3auja_202", S = "_sidebarInner_3auja_213", O = "_sidebarTitle_3auja_217", q = "_tocItem_3auja_227", P = "_tocActive_3auja_249", E = "_tocNum_3auja_260", D = "_content_3auja_275", G = "_section_3auja_285", K = "_secTitle_3auja_290", w = "_subTitle_3auja_301", M = "_lead_3auja_309", x = "_list_3auja_329", R = "_olist_3auja_360", Z = "_archLayer_3auja_397", F = "_archHead_3auja_412", W = "_archNum_3auja_420", H = "_archHeadText_3auja_432", Q = "_archLabel_3auja_439", U = "_archEn_3auja_446", V = "_archTagline_3auja_453", $ = "_callout_3auja_487", J = "_calloutBlue_3auja_488", Y = "_calloutGreen_3auja_489", X = "_calloutRed_3auja_490", ee = "_inlineCode_3auja_531", le = "_codeBlock_3auja_544", ne = "_tableWrap_3auja_560", ce = "_table_3auja_560", ae = "_tableKey_3auja_602", ie = "_tableIcon_3auja_607", te = "_statusDot_3auja_613", se = "_tone_pending_3auja_622", de = "_tone_running_3auja_626", re = "_tone_suspended_3auja_631", he = "_tone_done_3auja_636", oe = "_tone_failed_3auja_641", me = "_tone_cancelled_3auja_646", ge = "_markGood_3auja_652", ue = "_markBad_3auja_653", be = "_faqList_3auja_667", Ne = "_faqItem_3auja_673", _e = "_faqQ_3auja_687", Ae = "_faqA_3auja_694", Te = "_changelogEmbed_3auja_701", pe = "_changelogTip_3auja_709", ve = "_changelogLink_3auja_715", ye = "_docFooter_3auja_727", fe = "_backBtn_3auja_738", ze = "_docFooterText_3auja_761", l = {
|
|
6
6
|
docs: T,
|
|
7
7
|
bgLayer: p,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useCallback as u } from "react";
|
|
3
|
-
import { S as N, P as H } from "./webide-
|
|
4
|
-
import { L as W, P as $, S as j, C as B, E as O, a as q, W as b, b as g, T as z, c as E } from "./ScheduledTasks-
|
|
5
|
-
import { w as K, p as M } from "./index-
|
|
3
|
+
import { S as N, P as H } from "./webide-BGQnArzY.js";
|
|
4
|
+
import { L as W, P as $, S as j, C as B, E as O, a as q, W as b, b as g, T as z, c as E } from "./ScheduledTasks-Cn8BsDkN.js";
|
|
5
|
+
import { w as K, p as M } from "./index-DgN13A-E.js";
|
|
6
6
|
import { TodoTab as R } from "@yuku123/z-task-component";
|
|
7
7
|
function V({
|
|
8
8
|
view: s,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AppLayout as v, ErrorBoundary as z, LoginPage as _, StatusTag as j, defaultStatusMap as F } from "@yuku123/z-frontend-common";
|
|
2
|
-
import {
|
|
3
|
-
import { z as V, E as Q, A as X, D as Y, F as Z, O as $, G as ee, R as te, H as re, I as ae, J as oe, K as ne, L as le, L as ie, N as se } from "./ComponentDoc-
|
|
2
|
+
import { d as y } from "./ComponentDoc-C_289lsE.js";
|
|
3
|
+
import { z as V, E as Q, A as X, D as Y, F as Z, O as $, G as ee, R as te, H as re, I as ae, J as oe, K as ne, L as le, L as ie, N as se } from "./ComponentDoc-C_289lsE.js";
|
|
4
4
|
import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
5
5
|
import { useState as n, useEffect as R } from "react";
|
|
6
6
|
import { Alert as I, Space as x, Button as l, Tag as c, Result as T } from "antd";
|
|
7
|
-
import { ReloadOutlined as g, UserAddOutlined as
|
|
7
|
+
import { ReloadOutlined as g, UserAddOutlined as E, TeamOutlined as b, PlusOutlined as w, CodeOutlined as A } from "@ant-design/icons";
|
|
8
8
|
import { ListTable as f } from "@yuku123/z-frontend-common/ui";
|
|
9
9
|
const q = y, O = {
|
|
10
10
|
LEADER: "red",
|
|
@@ -28,12 +28,12 @@ function B() {
|
|
|
28
28
|
f,
|
|
29
29
|
{
|
|
30
30
|
cardTitle: /* @__PURE__ */ r("span", { children: [
|
|
31
|
-
/* @__PURE__ */ e(
|
|
31
|
+
/* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
|
|
32
32
|
"Agent 群组 IM"
|
|
33
33
|
] }),
|
|
34
34
|
cardExtra: /* @__PURE__ */ r(x, { children: [
|
|
35
35
|
/* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(g, {}), loading: i, children: "刷新" }),
|
|
36
|
-
/* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(
|
|
36
|
+
/* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(E, {}), disabled: !0, children: "创建群组" })
|
|
37
37
|
] }),
|
|
38
38
|
rows: s,
|
|
39
39
|
columns: [
|