@yuku123/z-team-component 0.2.52 → 0.2.54
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-nPAmM1X0.js → ChangeLogView-Cstbioyw.js} +137 -137
- package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-yvIrAz9-.js} +506 -461
- package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-CIouC3Fn.js} +1 -1
- package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-DScwVCi-.js} +2 -2
- package/dist/ScheduledTasks-Dd2lJrBF.js +9449 -0
- package/dist/{SystemShell-4OiqvM11.js → SystemShell-DtvyWy0u.js} +1 -1
- package/dist/{admin-logs-D6HtRcK6.js → admin-logs-B9KS6VJz.js} +2 -2
- package/dist/{api-C78tCfne.js → api-CALqShkO.js} +288 -270
- package/dist/{api-BT968Uwc.js → api-CdVRdA0g.js} +1 -1
- package/dist/createWorkspaceWsHandler-CL5-4wFp.js +13037 -0
- package/dist/{index-BX1Wd9x9.js → index-4YxdJwFm.js} +3 -3
- package/dist/index-7Pe_xBrh.js +582 -0
- package/dist/{index-DFY3lzq0.js → index-C2Wkg1b5.js} +3 -3
- package/dist/{index-CdlfWFvS.js → index-C3B7CbHo.js} +610 -529
- package/dist/{index-BkX0I2aB.js → index-C6S3MIu4.js} +56 -56
- package/dist/{index-BAY37t4f.js → index-CGWttFLb.js} +41 -35
- package/dist/{index-LwKUkzKI.js → index-CKS65_Dw.js} +3 -3
- package/dist/{index-Bdu31aRV.js → index-CLWgeKwr.js} +2 -2
- package/dist/{index-DxFZKDq-.js → index-C_2o9qgM.js} +6 -6
- package/dist/index-CgQH7-9F.js +130 -0
- package/dist/{index-B_C7H9WL.js → index-D6V-4vNa.js} +5 -5
- package/dist/index-DC5lxCN8.js +474 -0
- package/dist/{index-D9AqC2O-.js → index-DET70T3j.js} +1 -1
- package/dist/index-DEx5rtXv.js +242 -0
- package/dist/{index-DpcrvKsK.js → index-DJOyOVn_.js} +87 -74
- package/dist/{index-qK6pyAGy.js → index-DKeYG0Fu.js} +4 -4
- package/dist/index-DLQoecEe.js +1143 -0
- package/dist/{index-CR3sbzOU.js → index-DLyAy3cr.js} +7 -7
- package/dist/index-DOygBsXO.js +2826 -0
- package/dist/index-DRrBkbr_.js +100 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-Pk7OkJrk.js +1133 -0
- package/dist/index-TDZM-Zv3.js +9287 -0
- package/dist/index-WIsi8fln.js +339 -0
- package/dist/{index-BAK7UDvY.js → index-aw72ID7y.js} +1 -1
- package/dist/{index-ClA0896K.js → index-lftFkqfI.js} +4 -4
- package/dist/{index-JMzBzwiO.js → index-usrA11ZG.js} +618 -617
- package/dist/index.js +1 -1
- package/dist/{instance-D5dhjbgg.js → instance-f3C-1qYl.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/schedule-DfkgwPdE.js +497 -0
- package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-d_ECdczr.js} +1 -1
- package/dist/{sso-user-Bi9_l9yi.js → sso-user-HcsSzg8P.js} +1 -1
- package/dist/{training-Ba09KItE.js → training-DnNQN0An.js} +1 -1
- package/dist/{useAppStore-ibJyVIAX.js → useAppStore-kRZEA5WZ.js} +19 -19
- package/dist/webide-DPjFYxLl.js +7845 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/SmartWorkbench.module-xRRmpTTw.js +0 -85
- package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
- package/dist/index-7nSly-MA.js +0 -405
- package/dist/index-B11_fFjX.js +0 -1182
- package/dist/index-B3-0eXYQ.js +0 -844
- package/dist/index-Cp3DAwNx.js +0 -13862
- package/dist/index-NaBR2aQE.js +0 -6685
- package/dist/index-UsGqMo11.js +0 -848
- package/dist/schedule-C-4ksDPw.js +0 -239
- package/dist/webide-RsFP9pHM.js +0 -8087
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { FilePptOutlined as P, EditOutlined as O, ScheduleOutlined as A, FileImageOutlined as $, CloseOutlined as F } from "@ant-design/icons";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { h as
|
|
5
|
-
const R = "
|
|
3
|
+
import { useState as m, useCallback as x } from "react";
|
|
4
|
+
import { h as w } from "./history-BlrA1eaW.js";
|
|
5
|
+
const R = "_portalRoot_1sa2c_7", q = "_portalHeader_1sa2c_47", B = "_brandRow_1sa2c_53", D = "_brandLogo_1sa2c_59", L = "_brandTitle_1sa2c_63", M = "_brandSubtitle_1sa2c_70", G = "_portalMain_1sa2c_76", H = "_sectionTitle_1sa2c_85", j = "_cardGrid_1sa2c_92", K = "_scenarioCard_1sa2c_98", W = "_cardTop_1sa2c_114", z = "_cardIcon_1sa2c_119", Z = "_cardInfo_1sa2c_123", Q = "_cardTitle_1sa2c_127", J = "_cardTags_1sa2c_134", U = "_tag_1sa2c_139", X = "_cardDesc_1sa2c_148", Y = "_cardAction_1sa2c_154", V = "_btnCreate_1sa2c_159", ee = "_portalFooter_1sa2c_184", ae = "_linkWorkspace_1sa2c_190", oe = "_modalOverlay_1sa2c_206", te = "_modalBox_1sa2c_217", re = "_modalHeader_1sa2c_226", ne = "_modalIcon_1sa2c_239", ce = "_modalClose_1sa2c_242", le = "_modalBody_1sa2c_255", ie = "_modalDesc_1sa2c_258", se = "_fieldGroup_1sa2c_264", de = "_fieldLabel_1sa2c_269", _e = "_required_1sa2c_274", pe = "_fieldInput_1sa2c_278", me = "_fieldInputError_1sa2c_298", ue = "_fieldTextarea_1sa2c_301", fe = "_fieldTextareaError_1sa2c_325", he = "_fieldError_1sa2c_328", ge = "_modalFooter_1sa2c_333", Ce = "_btnCancel_1sa2c_339", be = "_btnConfirm_1sa2c_354", e = {
|
|
6
6
|
portalRoot: R,
|
|
7
7
|
portalHeader: q,
|
|
8
8
|
brandRow: B,
|
|
@@ -28,21 +28,21 @@ const R = "_portalRoot_1mw0k_2", q = "_portalHeader_1mw0k_11", B = "_brandRow_1m
|
|
|
28
28
|
modalBox: te,
|
|
29
29
|
modalHeader: re,
|
|
30
30
|
modalIcon: ne,
|
|
31
|
-
modalClose:
|
|
32
|
-
modalBody:
|
|
33
|
-
modalDesc:
|
|
34
|
-
fieldGroup:
|
|
35
|
-
fieldLabel:
|
|
36
|
-
required:
|
|
37
|
-
fieldInput:
|
|
38
|
-
fieldInputError:
|
|
31
|
+
modalClose: ce,
|
|
32
|
+
modalBody: le,
|
|
33
|
+
modalDesc: ie,
|
|
34
|
+
fieldGroup: se,
|
|
35
|
+
fieldLabel: de,
|
|
36
|
+
required: _e,
|
|
37
|
+
fieldInput: pe,
|
|
38
|
+
fieldInputError: me,
|
|
39
39
|
fieldTextarea: ue,
|
|
40
40
|
fieldTextareaError: fe,
|
|
41
|
-
fieldError:
|
|
42
|
-
modalFooter:
|
|
43
|
-
btnCancel:
|
|
44
|
-
btnConfirm:
|
|
45
|
-
},
|
|
41
|
+
fieldError: he,
|
|
42
|
+
modalFooter: ge,
|
|
43
|
+
btnCancel: Ce,
|
|
44
|
+
btnConfirm: be
|
|
45
|
+
}, Ne = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api", Te = [
|
|
46
46
|
{
|
|
47
47
|
key: "ppt-creation",
|
|
48
48
|
icon: /* @__PURE__ */ a(P, {}),
|
|
@@ -122,23 +122,23 @@ const R = "_portalRoot_1mw0k_2", q = "_portalHeader_1mw0k_11", B = "_brandRow_1m
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
];
|
|
125
|
-
function
|
|
125
|
+
function ye({
|
|
126
126
|
scenario: o,
|
|
127
|
-
onClose:
|
|
128
|
-
onCreated:
|
|
127
|
+
onClose: c,
|
|
128
|
+
onCreated: d
|
|
129
129
|
}) {
|
|
130
|
-
var
|
|
131
|
-
const [r,
|
|
132
|
-
var
|
|
130
|
+
var g, C, b, N, T;
|
|
131
|
+
const [r, s] = m(""), [u, f] = m(!1), [l, i] = m(""), E = !!((g = o.inputConfig) != null && g.multiline), h = x(async () => {
|
|
132
|
+
var y, k, I;
|
|
133
133
|
const t = r.trim();
|
|
134
|
-
if ((
|
|
135
|
-
|
|
134
|
+
if ((y = o.inputConfig) != null && y.required && !t) {
|
|
135
|
+
i(`请填写${o.inputConfig.label}`);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
i(""), f(!0);
|
|
139
139
|
try {
|
|
140
|
-
const
|
|
141
|
-
`)[0]) == null ? void 0 :
|
|
140
|
+
const _ = ((k = t.split(`
|
|
141
|
+
`)[0]) == null ? void 0 : k.trim()) ?? "", S = _.length > 0 ? _.length > 32 ? `${_.slice(0, 32)}…` : _ : `${Date.now()}`, v = `${o.title}-${S}`, p = await (await fetch(`${Ne}/scenario-instances/`, {
|
|
142
142
|
method: "POST",
|
|
143
143
|
credentials: "include",
|
|
144
144
|
headers: {
|
|
@@ -146,9 +146,9 @@ function Ne({
|
|
|
146
146
|
"Content-Type": "application/json"
|
|
147
147
|
},
|
|
148
148
|
body: JSON.stringify({
|
|
149
|
-
name:
|
|
149
|
+
name: v,
|
|
150
150
|
description: `${o.title}:${t.length > 120 ? `${t.slice(0, 120)}…` : t}`,
|
|
151
|
-
workspace_path:
|
|
151
|
+
workspace_path: v,
|
|
152
152
|
scenario_code: o.scenarioCode,
|
|
153
153
|
extend_params: {
|
|
154
154
|
[o.inputConfig.paramKey]: t,
|
|
@@ -156,34 +156,34 @@ function Ne({
|
|
|
156
156
|
}
|
|
157
157
|
})
|
|
158
158
|
})).json();
|
|
159
|
-
|
|
159
|
+
p.success && ((I = p.data) != null && I.id) ? d(p.data.id) : i(p.message || "创建失败,请重试");
|
|
160
160
|
} catch {
|
|
161
|
-
|
|
161
|
+
i("网络错误,请检查服务是否可用");
|
|
162
162
|
} finally {
|
|
163
163
|
f(!1);
|
|
164
164
|
}
|
|
165
|
-
}, [r, o,
|
|
166
|
-
return /* @__PURE__ */ a("div", { className: e.modalOverlay, onClick:
|
|
165
|
+
}, [r, o, d]);
|
|
166
|
+
return /* @__PURE__ */ a("div", { className: e.modalOverlay, onClick: c, children: /* @__PURE__ */ n("div", { className: e.modalBox, onClick: (t) => t.stopPropagation(), children: [
|
|
167
167
|
/* @__PURE__ */ n("div", { className: e.modalHeader, children: [
|
|
168
168
|
/* @__PURE__ */ a("span", { className: e.modalIcon, children: o.icon }),
|
|
169
169
|
/* @__PURE__ */ a("h3", { children: o.title }),
|
|
170
|
-
/* @__PURE__ */ a("button", { className: e.modalClose, onClick:
|
|
170
|
+
/* @__PURE__ */ a("button", { className: e.modalClose, onClick: c, children: /* @__PURE__ */ a(F, {}) })
|
|
171
171
|
] }),
|
|
172
172
|
/* @__PURE__ */ n("div", { className: e.modalBody, children: [
|
|
173
173
|
/* @__PURE__ */ a("p", { className: e.modalDesc, children: o.description }),
|
|
174
174
|
/* @__PURE__ */ n("div", { className: e.fieldGroup, children: [
|
|
175
175
|
/* @__PURE__ */ n("label", { className: e.fieldLabel, children: [
|
|
176
|
-
(
|
|
177
|
-
((
|
|
176
|
+
(C = o.inputConfig) == null ? void 0 : C.label,
|
|
177
|
+
((b = o.inputConfig) == null ? void 0 : b.required) && /* @__PURE__ */ a("span", { className: e.required, children: "*" })
|
|
178
178
|
] }),
|
|
179
179
|
E ? /* @__PURE__ */ a(
|
|
180
180
|
"textarea",
|
|
181
181
|
{
|
|
182
|
-
className: `${e.fieldTextarea} ${
|
|
182
|
+
className: `${e.fieldTextarea} ${l ? e.fieldTextareaError : ""}`,
|
|
183
183
|
value: r,
|
|
184
|
-
placeholder: (
|
|
184
|
+
placeholder: (N = o.inputConfig) == null ? void 0 : N.placeholder,
|
|
185
185
|
onChange: (t) => {
|
|
186
|
-
|
|
186
|
+
s(t.target.value), l && i("");
|
|
187
187
|
},
|
|
188
188
|
rows: 5,
|
|
189
189
|
autoFocus: !0
|
|
@@ -191,29 +191,29 @@ function Ne({
|
|
|
191
191
|
) : /* @__PURE__ */ a(
|
|
192
192
|
"input",
|
|
193
193
|
{
|
|
194
|
-
className: `${e.fieldInput} ${
|
|
194
|
+
className: `${e.fieldInput} ${l ? e.fieldInputError : ""}`,
|
|
195
195
|
type: "text",
|
|
196
196
|
value: r,
|
|
197
|
-
placeholder: (
|
|
197
|
+
placeholder: (T = o.inputConfig) == null ? void 0 : T.placeholder,
|
|
198
198
|
onChange: (t) => {
|
|
199
|
-
|
|
199
|
+
s(t.target.value), l && i("");
|
|
200
200
|
},
|
|
201
201
|
onKeyDown: (t) => {
|
|
202
|
-
t.key === "Enter" &&
|
|
202
|
+
t.key === "Enter" && h();
|
|
203
203
|
},
|
|
204
204
|
autoFocus: !0
|
|
205
205
|
}
|
|
206
206
|
),
|
|
207
|
-
|
|
207
|
+
l && /* @__PURE__ */ a("p", { className: e.fieldError, children: l })
|
|
208
208
|
] })
|
|
209
209
|
] }),
|
|
210
210
|
/* @__PURE__ */ n("div", { className: e.modalFooter, children: [
|
|
211
|
-
/* @__PURE__ */ a("button", { className: e.btnCancel, onClick:
|
|
211
|
+
/* @__PURE__ */ a("button", { className: e.btnCancel, onClick: c, children: "取消" }),
|
|
212
212
|
/* @__PURE__ */ a(
|
|
213
213
|
"button",
|
|
214
214
|
{
|
|
215
215
|
className: e.btnConfirm,
|
|
216
|
-
onClick:
|
|
216
|
+
onClick: h,
|
|
217
217
|
disabled: u,
|
|
218
218
|
children: u ? "创建中..." : "确认并开始"
|
|
219
219
|
}
|
|
@@ -222,10 +222,10 @@ function Ne({
|
|
|
222
222
|
] }) });
|
|
223
223
|
}
|
|
224
224
|
function Ee() {
|
|
225
|
-
const [o,
|
|
225
|
+
const [o, c] = m(
|
|
226
226
|
null
|
|
227
|
-
),
|
|
228
|
-
localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"),
|
|
227
|
+
), d = x((r) => {
|
|
228
|
+
localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), w.push("/workspace");
|
|
229
229
|
}, []);
|
|
230
230
|
return /* @__PURE__ */ n("div", { className: e.portalRoot, children: [
|
|
231
231
|
/* @__PURE__ */ n("header", { className: e.portalHeader, children: [
|
|
@@ -237,12 +237,12 @@ function Ee() {
|
|
|
237
237
|
] }),
|
|
238
238
|
/* @__PURE__ */ n("main", { className: e.portalMain, children: [
|
|
239
239
|
/* @__PURE__ */ a("h2", { className: e.sectionTitle, children: "可用场景" }),
|
|
240
|
-
/* @__PURE__ */ a("div", { className: e.cardGrid, children:
|
|
240
|
+
/* @__PURE__ */ a("div", { className: e.cardGrid, children: Te.map((r) => /* @__PURE__ */ n("div", { className: e.scenarioCard, children: [
|
|
241
241
|
/* @__PURE__ */ n("div", { className: e.cardTop, children: [
|
|
242
242
|
/* @__PURE__ */ a("span", { className: e.cardIcon, children: r.icon }),
|
|
243
243
|
/* @__PURE__ */ n("div", { className: e.cardInfo, children: [
|
|
244
244
|
/* @__PURE__ */ a("h3", { className: e.cardTitle, children: r.title }),
|
|
245
|
-
/* @__PURE__ */ a("div", { className: e.cardTags, children: r.tags.map((
|
|
245
|
+
/* @__PURE__ */ a("div", { className: e.cardTags, children: r.tags.map((s) => /* @__PURE__ */ a("span", { className: e.tag, children: s }, s)) })
|
|
246
246
|
] })
|
|
247
247
|
] }),
|
|
248
248
|
/* @__PURE__ */ a("p", { className: e.cardDesc, children: r.description }),
|
|
@@ -250,7 +250,7 @@ function Ee() {
|
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
252
252
|
className: e.btnCreate,
|
|
253
|
-
onClick: () =>
|
|
253
|
+
onClick: () => c(r),
|
|
254
254
|
children: "创建"
|
|
255
255
|
}
|
|
256
256
|
) })
|
|
@@ -260,16 +260,16 @@ function Ee() {
|
|
|
260
260
|
"button",
|
|
261
261
|
{
|
|
262
262
|
className: e.linkWorkspace,
|
|
263
|
-
onClick: () =>
|
|
263
|
+
onClick: () => w.push("/workspace"),
|
|
264
264
|
children: "进入工作台 →"
|
|
265
265
|
}
|
|
266
266
|
) }),
|
|
267
267
|
o && /* @__PURE__ */ a(
|
|
268
|
-
|
|
268
|
+
ye,
|
|
269
269
|
{
|
|
270
270
|
scenario: o,
|
|
271
|
-
onClose: () =>
|
|
272
|
-
onCreated:
|
|
271
|
+
onClose: () => c(null),
|
|
272
|
+
onCreated: d
|
|
273
273
|
}
|
|
274
274
|
)
|
|
275
275
|
] });
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUpOutlined as Et, ArrowDownOutlined as Dt, DeleteOutlined as Te, PlayCircleOutlined as Rt, FolderOutlined as He, CaretRightOutlined as rt, VideoCameraOutlined as Lt, EditOutlined as Ve, CopyOutlined as $t, CheckCircleOutlined as Pt, ClockCircleOutlined as Ot, AuditOutlined as dt, EyeOutlined as ot, SendOutlined as Qt, UserAddOutlined as Jt, TeamOutlined as Yt, AppstoreOutlined as Zt, CloudUploadOutlined as Xt, LinkOutlined as el, InfoCircleOutlined as tl, FileProtectOutlined as ll, BookOutlined as nl, GiftOutlined as al, AppstoreAddOutlined as il, NodeIndexOutlined as rl, FileDoneOutlined as ol, SolutionOutlined as sl, BarChartOutlined as dl } from "@ant-design/icons";
|
|
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
|
-
import { ListTable as
|
|
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 { u as Ce } from "./useAppStore-
|
|
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-DnNQN0An.js";
|
|
7
|
+
import { u as Ce } from "./useAppStore-kRZEA5WZ.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
9
|
import Wl 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 { M as Hl } from "./index-CUVdeb8y.js";
|
|
14
|
-
import {
|
|
15
|
-
import { h as ql } from "./schedule-
|
|
16
|
-
import { s as Ee } from "./SmartWorkbench.module-xRRmpTTw.js";
|
|
14
|
+
import { ao as Kl } from "./api-CALqShkO.js";
|
|
15
|
+
import { h as ql } from "./schedule-DfkgwPdE.js";
|
|
17
16
|
function Vl() {
|
|
18
17
|
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 () => {
|
|
19
18
|
L(!0);
|
|
@@ -246,7 +245,7 @@ function Vl() {
|
|
|
246
245
|
] })
|
|
247
246
|
] }),
|
|
248
247
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
249
|
-
|
|
248
|
+
Ae,
|
|
250
249
|
{
|
|
251
250
|
rows: n,
|
|
252
251
|
rowKey: "id",
|
|
@@ -740,8 +739,8 @@ function Pn() {
|
|
|
740
739
|
W.id != null && g.set(W.id, s(W));
|
|
741
740
|
for (const W of u) {
|
|
742
741
|
if (W.id == null) continue;
|
|
743
|
-
const ge = g.get(W.id),
|
|
744
|
-
|
|
742
|
+
const ge = g.get(W.id), Ee = W.parentId != null ? g.get(W.parentId) : void 0;
|
|
743
|
+
Ee && Ee !== ge ? Ee.children.push(ge) : ie.push(ge);
|
|
745
744
|
}
|
|
746
745
|
const re = new Set(
|
|
747
746
|
u.filter((W) => W.id != null).map((W) => W.name)
|
|
@@ -859,8 +858,8 @@ ${An(s)}
|
|
|
859
858
|
continue;
|
|
860
859
|
}
|
|
861
860
|
for (const ge of W) {
|
|
862
|
-
const
|
|
863
|
-
|
|
861
|
+
const Ee = s.get(ge);
|
|
862
|
+
Ee ? Ee.push(re) : s.set(ge, [re]);
|
|
864
863
|
}
|
|
865
864
|
}
|
|
866
865
|
const ie = [...s.entries()].sort(
|
|
@@ -988,7 +987,7 @@ ${An(s)}
|
|
|
988
987
|
},
|
|
989
988
|
s.id
|
|
990
989
|
), gt = (s, g) => {
|
|
991
|
-
var
|
|
990
|
+
var Ee;
|
|
992
991
|
const ie = G.has(s.name), re = h === s.name, W = s.children.length > 0, ge = s.items.length > 0 || W;
|
|
993
992
|
return /* @__PURE__ */ t("div", { children: [
|
|
994
993
|
/* @__PURE__ */ t(
|
|
@@ -1024,7 +1023,7 @@ ${An(s)}
|
|
|
1024
1023
|
/* @__PURE__ */ e(He, { className: q.groupIcon }),
|
|
1025
1024
|
/* @__PURE__ */ e("span", { className: q.treeItemTitle, children: s.name }),
|
|
1026
1025
|
/* @__PURE__ */ e("span", { className: q.groupCount, children: s.items.length }),
|
|
1027
|
-
((
|
|
1026
|
+
((Ee = s.cat) == null ? void 0 : Ee.id) != null ? /* @__PURE__ */ e(
|
|
1028
1027
|
ke,
|
|
1029
1028
|
{
|
|
1030
1029
|
title: s.items.length > 0 ? `文件夹内有 ${s.items.length} 篇资料,无法删除` : W ? `文件夹下有 ${s.children.length} 个子文件夹,无法删除` : "确认删除该文件夹?",
|
|
@@ -1572,7 +1571,7 @@ function Mn() {
|
|
|
1572
1571
|
] })
|
|
1573
1572
|
] }),
|
|
1574
1573
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
1575
|
-
|
|
1574
|
+
Ae,
|
|
1576
1575
|
{
|
|
1577
1576
|
rows: n,
|
|
1578
1577
|
columns: O,
|
|
@@ -2079,7 +2078,7 @@ function zn() {
|
|
|
2079
2078
|
] })
|
|
2080
2079
|
] }),
|
|
2081
2080
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
2082
|
-
|
|
2081
|
+
Ae,
|
|
2083
2082
|
{
|
|
2084
2083
|
rows: n,
|
|
2085
2084
|
rowKey: "batchKey",
|
|
@@ -2212,7 +2211,7 @@ function zn() {
|
|
|
2212
2211
|
" 人 · 点「批改/查看」看逐题答卷)"
|
|
2213
2212
|
] }),
|
|
2214
2213
|
/* @__PURE__ */ e(
|
|
2215
|
-
|
|
2214
|
+
Ae,
|
|
2216
2215
|
{
|
|
2217
2216
|
rows: ee,
|
|
2218
2217
|
rowKey: "examId",
|
|
@@ -2540,7 +2539,7 @@ function na() {
|
|
|
2540
2539
|
] })
|
|
2541
2540
|
] }),
|
|
2542
2541
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
2543
|
-
|
|
2542
|
+
Ae,
|
|
2544
2543
|
{
|
|
2545
2544
|
rows: n,
|
|
2546
2545
|
rowKey: "id",
|
|
@@ -2826,7 +2825,7 @@ function aa({
|
|
|
2826
2825
|
)
|
|
2827
2826
|
] }),
|
|
2828
2827
|
/* @__PURE__ */ e(
|
|
2829
|
-
|
|
2828
|
+
Ae,
|
|
2830
2829
|
{
|
|
2831
2830
|
rows: _,
|
|
2832
2831
|
rowKey: "id",
|
|
@@ -3072,7 +3071,7 @@ function ia() {
|
|
|
3072
3071
|
] })
|
|
3073
3072
|
] }),
|
|
3074
3073
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
3075
|
-
|
|
3074
|
+
Ae,
|
|
3076
3075
|
{
|
|
3077
3076
|
rows: n,
|
|
3078
3077
|
rowKey: "id",
|
|
@@ -3522,7 +3521,7 @@ function oa() {
|
|
|
3522
3521
|
] })
|
|
3523
3522
|
] }),
|
|
3524
3523
|
/* @__PURE__ */ e(
|
|
3525
|
-
|
|
3524
|
+
Ae,
|
|
3526
3525
|
{
|
|
3527
3526
|
rows: u,
|
|
3528
3527
|
rowKey: "id",
|
|
@@ -3855,7 +3854,7 @@ function sa() {
|
|
|
3855
3854
|
] })
|
|
3856
3855
|
] }),
|
|
3857
3856
|
/* @__PURE__ */ e("div", { className: r.tableCard, children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
3858
|
-
|
|
3857
|
+
Ae,
|
|
3859
3858
|
{
|
|
3860
3859
|
rows: n,
|
|
3861
3860
|
rowKey: "id",
|
|
@@ -5605,7 +5604,7 @@ function Ma() {
|
|
|
5605
5604
|
] }) })
|
|
5606
5605
|
] }),
|
|
5607
5606
|
/* @__PURE__ */ e("div", { className: [r.tableCard, le.tableSide].join(" "), children: /* @__PURE__ */ e("div", { className: r.tableWrap, children: /* @__PURE__ */ e(
|
|
5608
|
-
|
|
5607
|
+
Ae,
|
|
5609
5608
|
{
|
|
5610
5609
|
rows: G,
|
|
5611
5610
|
rowKey: "id",
|
|
@@ -5821,9 +5820,16 @@ function Ma() {
|
|
|
5821
5820
|
)
|
|
5822
5821
|
] });
|
|
5823
5822
|
}
|
|
5824
|
-
const za = "
|
|
5825
|
-
|
|
5826
|
-
|
|
5823
|
+
const za = "_container_nfu8c_5", Fa = "_sidebar_nfu8c_14", Ua = "_menuList_nfu8c_24", Ga = "_menuItem_nfu8c_29", ja = "_menuItemActive_nfu8c_47", Wa = "_menuIcon_nfu8c_54", Ha = "_panelArea_nfu8c_61", Ka = "_groupLabel_nfu8c_70", _e = {
|
|
5824
|
+
container: za,
|
|
5825
|
+
sidebar: Fa,
|
|
5826
|
+
menuList: Ua,
|
|
5827
|
+
menuItem: Ga,
|
|
5828
|
+
menuItemActive: ja,
|
|
5829
|
+
menuIcon: Wa,
|
|
5830
|
+
panelArea: Ha,
|
|
5831
|
+
groupLabel: Ka
|
|
5832
|
+
}, qa = [
|
|
5827
5833
|
{
|
|
5828
5834
|
label: "素材管理",
|
|
5829
5835
|
items: [
|
|
@@ -5844,25 +5850,25 @@ const za = "_groupLabel_1p4a9_5", Fa = {
|
|
|
5844
5850
|
]
|
|
5845
5851
|
}
|
|
5846
5852
|
];
|
|
5847
|
-
function
|
|
5853
|
+
function di() {
|
|
5848
5854
|
const [l, n] = o("video");
|
|
5849
|
-
return Ce((k) => ql(k.currentUser, "TRAINING")) ? /* @__PURE__ */ t("div", { className:
|
|
5850
|
-
/* @__PURE__ */ e("aside", { className:
|
|
5851
|
-
/* @__PURE__ */ e("div", { className:
|
|
5855
|
+
return Ce((k) => ql(k.currentUser, "TRAINING")) ? /* @__PURE__ */ t("div", { className: _e.container, children: [
|
|
5856
|
+
/* @__PURE__ */ e("aside", { className: _e.sidebar, children: /* @__PURE__ */ e("nav", { className: _e.menuList, children: qa.map((k) => /* @__PURE__ */ t("div", { children: [
|
|
5857
|
+
/* @__PURE__ */ e("div", { className: _e.groupLabel, children: k.label }),
|
|
5852
5858
|
k.items.map((L) => /* @__PURE__ */ t(
|
|
5853
5859
|
"div",
|
|
5854
5860
|
{
|
|
5855
|
-
className: `${
|
|
5861
|
+
className: `${_e.menuItem} ${l === L.key ? _e.menuItemActive : ""}`,
|
|
5856
5862
|
onClick: () => n(L.key),
|
|
5857
5863
|
children: [
|
|
5858
|
-
/* @__PURE__ */ e("span", { className:
|
|
5864
|
+
/* @__PURE__ */ e("span", { className: _e.menuIcon, children: L.icon }),
|
|
5859
5865
|
/* @__PURE__ */ e("span", { children: L.label })
|
|
5860
5866
|
]
|
|
5861
5867
|
},
|
|
5862
5868
|
L.key
|
|
5863
5869
|
))
|
|
5864
5870
|
] }, k.label)) }) }),
|
|
5865
|
-
/* @__PURE__ */ t("main", { className:
|
|
5871
|
+
/* @__PURE__ */ t("main", { className: _e.panelArea, children: [
|
|
5866
5872
|
l === "video" && /* @__PURE__ */ e(Ma, {}),
|
|
5867
5873
|
l === "paper" && /* @__PURE__ */ e(la, {}),
|
|
5868
5874
|
l === "doc" && /* @__PURE__ */ e(Pn, {}),
|
|
@@ -5873,15 +5879,15 @@ function ai() {
|
|
|
5873
5879
|
l === "ops" && /* @__PURE__ */ e(Mn, {}),
|
|
5874
5880
|
l === "stats" && /* @__PURE__ */ e(fa, {})
|
|
5875
5881
|
] })
|
|
5876
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
5882
|
+
] }) : /* @__PURE__ */ e("div", { className: _e.container, children: /* @__PURE__ */ e(
|
|
5877
5883
|
"div",
|
|
5878
5884
|
{
|
|
5879
|
-
className:
|
|
5885
|
+
className: _e.panelArea,
|
|
5880
5886
|
style: { alignItems: "center", justifyContent: "center" },
|
|
5881
5887
|
children: /* @__PURE__ */ e(Ke, { description: "无培训管理权限(需要权限点:TRAINING)" })
|
|
5882
5888
|
}
|
|
5883
5889
|
) });
|
|
5884
5890
|
}
|
|
5885
5891
|
export {
|
|
5886
|
-
|
|
5892
|
+
di as default
|
|
5887
5893
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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 b, f as $, B, u as D } from "./api-
|
|
4
|
-
import { u as F } from "./useAppStore-
|
|
3
|
+
import { a as b, f as $, B, u as D } from "./api-CALqShkO.js";
|
|
4
|
+
import { u as F } from "./useAppStore-kRZEA5WZ.js";
|
|
5
5
|
import { SearchOutlined as Ce, ReloadOutlined as Se, PlusOutlined as Te, FileZipOutlined as Z, CloudDownloadOutlined as Y, EditOutlined as he, UserSwitchOutlined as Ue, ArrowLeftOutlined as fe, UserOutlined as be, CloudUploadOutlined as $e, PictureOutlined as de, EyeOutlined as Be } from "@ant-design/icons";
|
|
6
6
|
import { message as U, 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";
|
|
7
7
|
import ve from "react-markdown";
|
|
8
8
|
import _e from "rehype-highlight";
|
|
9
9
|
import ge from "remark-gfm";
|
|
10
|
-
import { M as oa } from "./index-
|
|
10
|
+
import { M as oa } from "./index-D6V-4vNa.js";
|
|
11
11
|
function j(a) {
|
|
12
12
|
return a ? `?token=${encodeURIComponent(a)}` : "";
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as F, useCallback as D, useEffect as R } from "react";
|
|
3
|
-
import { u as O } from "./useAppStore-
|
|
3
|
+
import { u as O } from "./useAppStore-kRZEA5WZ.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { T as P, g as U } from "./api-
|
|
5
|
+
import { T as P, g as U } from "./api-CALqShkO.js";
|
|
6
6
|
async function y(o, s) {
|
|
7
7
|
const n = await o.text().catch(() => "");
|
|
8
8
|
let t = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AppLayout as
|
|
2
|
-
import { a as y } from "./ComponentDoc-
|
|
3
|
-
import { b as J, E as Q, c as X,
|
|
1
|
+
import { AppLayout as v, ErrorBoundary as H, LoginPage as _, StatusTag as z, defaultStatusMap as F } from "@yuku123/z-frontend-common";
|
|
2
|
+
import { a as y } from "./ComponentDoc-yvIrAz9-.js";
|
|
3
|
+
import { b as J, E as Q, c as X, d as Y, e as Z, O as $, f as ee, R as te, g as re, h as ae, T as oe, j as ne, r as le, r as ie, s as se } from "./ComponentDoc-yvIrAz9-.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 T } from "react";
|
|
6
6
|
import { Alert as I, Space as g, Button as l, Tag as c, Result as R } from "antd";
|
|
@@ -151,13 +151,13 @@ function W() {
|
|
|
151
151
|
}
|
|
152
152
|
export {
|
|
153
153
|
K as AgentTeamIM,
|
|
154
|
-
|
|
154
|
+
v as AppLayout,
|
|
155
155
|
J as CurlImportModal,
|
|
156
156
|
W as DebugPlayground,
|
|
157
157
|
Q as EndpointsTab,
|
|
158
158
|
X as EnvironmentsTab,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
H as ErrorBoundary,
|
|
160
|
+
_ as LoginPage,
|
|
161
161
|
Y as MockPlatform,
|
|
162
162
|
Z as MockTemplateHelper,
|
|
163
163
|
$ as OpenApiImportModal,
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useCallback as c } from "react";
|
|
3
|
+
import { S, T as A, P as D } from "./webide-DPjFYxLl.js";
|
|
4
|
+
import { P as I, S as N, C as W, E as H, a as $, W as h, b, T as B, c as E } from "./ScheduledTasks-Dd2lJrBF.js";
|
|
5
|
+
import { p as j } from "./index-TDZM-Zv3.js";
|
|
6
|
+
function J({
|
|
7
|
+
view: s,
|
|
8
|
+
agents: a,
|
|
9
|
+
token: l,
|
|
10
|
+
onOpenChat: i,
|
|
11
|
+
onOpenAgentDetail: g,
|
|
12
|
+
onBackToExtensions: f,
|
|
13
|
+
onOpenTab: o,
|
|
14
|
+
onAgentCreated: u,
|
|
15
|
+
onOpenProject: n
|
|
16
|
+
}) {
|
|
17
|
+
const [T, m] = r(
|
|
18
|
+
null
|
|
19
|
+
), [p, k] = r(
|
|
20
|
+
null
|
|
21
|
+
), x = c(
|
|
22
|
+
(t) => {
|
|
23
|
+
o("notes"), m({ id: t, ts: Date.now() });
|
|
24
|
+
},
|
|
25
|
+
[o]
|
|
26
|
+
), y = c(
|
|
27
|
+
(t) => {
|
|
28
|
+
o("todo"), k({ id: t, ts: Date.now() });
|
|
29
|
+
},
|
|
30
|
+
[o]
|
|
31
|
+
), P = s.kind === "chat" ? `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none";
|
|
32
|
+
return /* @__PURE__ */ d("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
33
|
+
s.kind === "chat" && /* @__PURE__ */ e(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
style: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
minHeight: 0,
|
|
39
|
+
display: "flex",
|
|
40
|
+
flexDirection: "column"
|
|
41
|
+
},
|
|
42
|
+
children: /* @__PURE__ */ e(
|
|
43
|
+
I,
|
|
44
|
+
{
|
|
45
|
+
agent: s.agent,
|
|
46
|
+
initialSessionId: s.sessionId,
|
|
47
|
+
chromeless: !0,
|
|
48
|
+
agents: a,
|
|
49
|
+
onSwitchAgent: (t) => i(t)
|
|
50
|
+
},
|
|
51
|
+
P
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
s.kind === "schedule" && /* @__PURE__ */ e(N, { localOnline: !1 }),
|
|
56
|
+
s.kind === "history" && /* @__PURE__ */ e(
|
|
57
|
+
W,
|
|
58
|
+
{
|
|
59
|
+
agents: a,
|
|
60
|
+
token: l,
|
|
61
|
+
onOpenSession: (t, C) => i(t, C)
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
s.kind === "extensions" && /* @__PURE__ */ e(
|
|
65
|
+
H,
|
|
66
|
+
{
|
|
67
|
+
agents: a,
|
|
68
|
+
loading: !1,
|
|
69
|
+
skillsAgent: j(a),
|
|
70
|
+
token: l,
|
|
71
|
+
onChat: (t) => i(t),
|
|
72
|
+
onConfig: g,
|
|
73
|
+
onCreated: u
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
s.kind === "agentDetail" && /* @__PURE__ */ e("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ e(
|
|
77
|
+
$,
|
|
78
|
+
{
|
|
79
|
+
agent: s.agent,
|
|
80
|
+
onBack: f
|
|
81
|
+
}
|
|
82
|
+
) }),
|
|
83
|
+
s.kind === "tab" && /* @__PURE__ */ d("div", { style: { flex: 1, minHeight: 0 }, children: [
|
|
84
|
+
s.tab === "projects" && /* @__PURE__ */ e(
|
|
85
|
+
h,
|
|
86
|
+
{
|
|
87
|
+
activeTab: "projects",
|
|
88
|
+
onActiveTabChange: () => {
|
|
89
|
+
},
|
|
90
|
+
onOpenProject: n,
|
|
91
|
+
hideTabs: !0
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
s.tab === "personal" && /* @__PURE__ */ e(
|
|
95
|
+
h,
|
|
96
|
+
{
|
|
97
|
+
activeTab: "personal",
|
|
98
|
+
onActiveTabChange: () => {
|
|
99
|
+
},
|
|
100
|
+
onOpenProject: n,
|
|
101
|
+
hideTabs: !0
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
s.tab === "business-stats" && /* @__PURE__ */ e(S, { source: "scenario" }),
|
|
105
|
+
s.tab === "tools" && /* @__PURE__ */ e(b, { showTools: !0, showWebsites: !1 }),
|
|
106
|
+
s.tab === "websites" && /* @__PURE__ */ e(b, { showTools: !1, showWebsites: !0 }),
|
|
107
|
+
s.tab === "todo" && /* @__PURE__ */ e(
|
|
108
|
+
A,
|
|
109
|
+
{
|
|
110
|
+
onOpenProject: n,
|
|
111
|
+
onOpenNote: x,
|
|
112
|
+
openTodoId: p
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
s.tab === "notes" && /* @__PURE__ */ e(
|
|
116
|
+
D,
|
|
117
|
+
{
|
|
118
|
+
onOpenProject: n,
|
|
119
|
+
onOpenTodo: y,
|
|
120
|
+
openNoteId: T
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
s.tab === "training" && /* @__PURE__ */ e(B, {}),
|
|
124
|
+
s.tab === "webide" && /* @__PURE__ */ e(E, {})
|
|
125
|
+
] })
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
J as default
|
|
130
|
+
};
|