@yuku123/z-team-component 0.2.91 → 0.2.92
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-DagOxr6O.js → ChangeLogView-DMVBdFFX.js} +12 -12
- package/dist/ComponentDoc-Boc9n2c_.js +8035 -0
- package/dist/{InvitationManagementPage-DYoqQA0v.js → InvitationManagementPage-B4UJQBrv.js} +1 -1
- package/dist/{OnboardingPage-D2Gm8MRd.js → OnboardingPage-BuDvSKMx.js} +2 -2
- package/dist/{ScheduledTasks-DB3VxAnb.js → ScheduledTasks-DY4iYtX3.js} +4341 -4337
- package/dist/{SystemShell-D3jHItxY.js → SystemShell-UVZjsfJs.js} +11 -12
- package/dist/admin-logs-OIyOdfuC.js +198 -0
- package/dist/{api-DYsAzJJo.js → api-mJ7FvgsR.js} +1 -1
- package/dist/createWorkspaceWsHandler-9k7O4P-D.js +13135 -0
- package/dist/{index-B5dDwxhs.js → index-BMt6Z1yA.js} +1 -1
- package/dist/{index-Cw6MIoNv.js → index-Bi6mbk7-.js} +6 -7
- package/dist/{index-E4Q6JmzX.js → index-BxRNZbw5.js} +3 -3
- package/dist/{index-CgWa7RFv.js → index-C2LwqjZQ.js} +23 -24
- package/dist/{index-BZ12pY96.js → index-COLSSd6V.js} +2 -2
- package/dist/{index-BfzgRKii.js → index-CYe2nfiG.js} +90 -91
- package/dist/{index-BYe87pnq.js → index-CeYCMcgX.js} +11 -12
- package/dist/index-Ckpc_Z6-.js +3495 -0
- package/dist/{index-BMQ6XkO3.js → index-CpA8ev3a.js} +1 -1
- package/dist/{index-VGtET31b.js → index-CpwvgQ3b.js} +1 -1
- package/dist/{index-W_4faD_M.js → index-CsHpsX_P.js} +2 -2
- package/dist/{index-CYyFYmlZ.js → index-CwNtNKwX.js} +8 -9
- package/dist/index-D1odHNMR.js +316 -0
- package/dist/{index-DyQ9YnMd.js → index-D74FCwtx.js} +3629 -3473
- package/dist/{index-Dwqa30HZ.js → index-D83QI-17.js} +4 -4
- package/dist/{index-Cggl78j7.js → index-DeHC7MtX.js} +5 -6
- package/dist/{index-ues0LW7p.js → index-FAhDAnIy.js} +1257 -1258
- package/dist/{index-C8cR7lJw.js → index-GHQ4Tl6H.js} +10 -11
- package/dist/{index-BaCqZeiw.js → index-Gk-5X-GO.js} +1 -1
- package/dist/{index-CZyFAmEq.js → index-Hm6ZaRmP.js} +10 -11
- package/dist/{index-CLfhHxPf.js → index-TW4txhve.js} +1 -1
- package/dist/{index-DE82vM_4.js → index-kwnNAAM0.js} +19 -18
- package/dist/{index-CSpckSHg.js → index-r4IxoITP.js} +23 -23
- package/dist/{index-CLD5lLa6.js → index-s5yeUpMA.js} +19 -19
- package/dist/{index-152G-_4j.js → index-zEqjsTFh.js} +5 -6
- package/dist/index.js +1 -1
- package/dist/{instance-CI6-4BZ6.js → instance-BpY3BXci.js} +1 -1
- package/dist/{menuPermission-C33I6ujb.js → menuPermission-DX8KlB6K.js} +11 -11
- package/dist/pages.js +8 -8
- package/dist/{send-default-agent-team-message-c5oKdQQA.js → send-default-agent-team-message-DVFuAdE9.js} +1 -1
- package/dist/{sso-user-DToM5dPy.js → sso-user-BBkFFo35.js} +1 -1
- package/dist/{training-B38tnwLL.js → training-BCi9cA6O.js} +1 -1
- package/dist/webide-MQ5gD1Go.js +5233 -0
- package/dist/z-team-component.css +1 -26
- package/package.json +3 -2
- package/dist/ComponentDoc-Bqfu128t.js +0 -3998
- package/dist/admin-logs-ogvMwS4O.js +0 -302
- package/dist/api-BftpestH.js +0 -2156
- package/dist/createWorkspaceWsHandler-D8h5BEzH.js +0 -13030
- package/dist/index-CUVdeb8y.js +0 -638
- package/dist/index-DVaTGA2z.js +0 -3488
- package/dist/schedule-ChO2xIGd.js +0 -625
- package/dist/useAppStore-uc8v8XZC.js +0 -1920
- package/dist/webide-BuUYLPSp.js +0 -8399
|
@@ -3,16 +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-BCi9cA6O.js";
|
|
7
|
+
import { d as Ce, aa as Wl } from "./ComponentDoc-Boc9n2c_.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
|
-
import
|
|
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
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { h as ql } from "./schedule-ChO2xIGd.js";
|
|
13
|
+
import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
|
|
14
|
+
import { h as ql } from "./index-D1odHNMR.js";
|
|
16
15
|
function Vl() {
|
|
17
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 () => {
|
|
18
17
|
L(!0);
|
|
@@ -644,7 +643,7 @@ function $n({
|
|
|
644
643
|
/* @__PURE__ */ t("div", { className: be.readerMeta, children: [
|
|
645
644
|
l.category ? /* @__PURE__ */ e(H, { color: "blue", children: l.category }) : null,
|
|
646
645
|
/* @__PURE__ */ e("span", { children: l.createByName ?? "-" }),
|
|
647
|
-
/* @__PURE__ */ e("span", { children: l.createTime ?
|
|
646
|
+
/* @__PURE__ */ e("span", { children: l.createTime ? Hl(l.createTime).format("YYYY-MM-DD HH:mm") : "" }),
|
|
648
647
|
/* @__PURE__ */ e("span", { children: (l.videoIds ?? []).length > 0 ? `内嵌视频 ${(l.videoIds ?? []).length} 个` : "纯文档" }),
|
|
649
648
|
(l.refCount ?? 0) > 0 ? /* @__PURE__ */ t("span", { children: [
|
|
650
649
|
"已被 ",
|
|
@@ -1264,7 +1263,7 @@ ${An(s)}
|
|
|
1264
1263
|
)
|
|
1265
1264
|
] }),
|
|
1266
1265
|
/* @__PURE__ */ e("div", { className: q.editEditor, children: /* @__PURE__ */ e(
|
|
1267
|
-
|
|
1266
|
+
Kl,
|
|
1268
1267
|
{
|
|
1269
1268
|
mode: Be,
|
|
1270
1269
|
value: te.content ?? "",
|
|
@@ -1802,7 +1801,7 @@ function zn() {
|
|
|
1802
1801
|
async (f) => {
|
|
1803
1802
|
y(!0);
|
|
1804
1803
|
try {
|
|
1805
|
-
v(await
|
|
1804
|
+
v(await Wl(f, l));
|
|
1806
1805
|
} catch {
|
|
1807
1806
|
} finally {
|
|
1808
1807
|
y(!1);
|
|
@@ -5850,7 +5849,7 @@ const za = "_container_nfu8c_5", Fa = "_sidebar_nfu8c_14", Ua = "_menuList_nfu8c
|
|
|
5850
5849
|
]
|
|
5851
5850
|
}
|
|
5852
5851
|
];
|
|
5853
|
-
function
|
|
5852
|
+
function si() {
|
|
5854
5853
|
const [l, n] = o("video");
|
|
5855
5854
|
return Ce((k) => ql(k.currentUser, "TRAINING")) ? /* @__PURE__ */ t("div", { className: _e.container, children: [
|
|
5856
5855
|
/* @__PURE__ */ e("aside", { className: _e.sidebar, children: /* @__PURE__ */ e("nav", { className: _e.menuList, children: qa.map((k) => /* @__PURE__ */ t("div", { children: [
|
|
@@ -5889,5 +5888,5 @@ function di() {
|
|
|
5889
5888
|
) });
|
|
5890
5889
|
}
|
|
5891
5890
|
export {
|
|
5892
|
-
|
|
5891
|
+
si as default
|
|
5893
5892
|
};
|
|
@@ -3,7 +3,7 @@ import { useNavigate as X, useParams as me, useLocation as ye, useRoutes as ge }
|
|
|
3
3
|
import { useState as m, useEffect as M, useMemo as be } from "react";
|
|
4
4
|
import { RocketOutlined as fe, AppstoreOutlined as ce, CheckCircleOutlined as W, PlayCircleOutlined as K, CloseCircleOutlined as Z, BellOutlined as oe, BulbOutlined as ee, EditOutlined as _e, CloudUploadOutlined as we, CopyOutlined as ve, DeleteOutlined as Ie, ReloadOutlined as te, PlusOutlined as re, ArrowLeftOutlined as Ce, SaveOutlined as le, ShopOutlined as de, StarFilled as Te, CloudDownloadOutlined as ke, DashboardOutlined as xe, InfoCircleOutlined as Pe } from "@ant-design/icons";
|
|
5
5
|
import { Typography as j, Row as q, Col as R, Card as E, Statistic as N, Table as Oe, Tag as T, Form as b, Space as D, Button as u, Popconfirm as pe, Drawer as V, Input as A, Select as H, message as d, Tabs as Ae, Descriptions as C, Alert as Se, Switch as Re, Spin as De } from "antd";
|
|
6
|
-
import {
|
|
6
|
+
import { L as _ } from "./ComponentDoc-Boc9n2c_.js";
|
|
7
7
|
import { ListTable as Y } from "@yuku123/z-frontend-common/ui";
|
|
8
8
|
const z = (r) => `script-admin/scripts/${encodeURIComponent(r)}`, P = {
|
|
9
9
|
list: () => _.get("script-admin/scripts"),
|
|
@@ -1,17 +1,16 @@
|
|
|
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-BBkFFo35.js";
|
|
4
4
|
import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { message as k, 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 {
|
|
11
|
-
import { u as c } from "./useAppStore-uc8v8XZC.js";
|
|
10
|
+
import { d as c, o as he, h as be, j as _e } from "./ComponentDoc-Boc9n2c_.js";
|
|
12
11
|
/* empty css */
|
|
13
12
|
import { b as ye } from "./mobile-client-O3yr9h6t.js";
|
|
14
|
-
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-DVFuAdE9.js";
|
|
15
14
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
16
15
|
function Pe(a) {
|
|
17
16
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
@@ -44,10 +43,10 @@ function Ue(a) {
|
|
|
44
43
|
return a.map((m) => m.file);
|
|
45
44
|
}
|
|
46
45
|
const J = 30;
|
|
47
|
-
function
|
|
46
|
+
function Xe() {
|
|
48
47
|
const a = ge(), m = pe.parse(a.search), o = String(
|
|
49
48
|
m.scenarioCode ?? m.scenario_code ?? ""
|
|
50
|
-
).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [
|
|
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([]), P = Y(!1), x = Y(y);
|
|
51
50
|
x.current = y;
|
|
52
51
|
const C = K(() => o ? "" : "缺少参数 scenarioCode", [o]), S = w((e, r) => {
|
|
53
52
|
F((n) => [...n, e]), g(r);
|
|
@@ -145,7 +144,7 @@ function De() {
|
|
|
145
144
|
} catch (s) {
|
|
146
145
|
P.current = !1, R("form");
|
|
147
146
|
const v = s instanceof Error ? s.message : String(s);
|
|
148
|
-
|
|
147
|
+
T(v || "创建工程失败");
|
|
149
148
|
}
|
|
150
149
|
},
|
|
151
150
|
[S, p, a.search, o]
|
|
@@ -185,18 +184,18 @@ function De() {
|
|
|
185
184
|
[L]
|
|
186
185
|
), $ = () => {
|
|
187
186
|
const e = _.trim();
|
|
188
|
-
e && (
|
|
187
|
+
e && (T(""), te(e, Ue(y)));
|
|
189
188
|
}, O = K(() => {
|
|
190
189
|
const e = _.trim().slice(0, J);
|
|
191
190
|
return `场景 ${o}${e ? ` · ${e}` : ""}`;
|
|
192
191
|
}, [_, o]);
|
|
193
|
-
if (C ||
|
|
192
|
+
if (C || j && M === "form")
|
|
194
193
|
return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t(
|
|
195
194
|
de,
|
|
196
195
|
{
|
|
197
196
|
status: "error",
|
|
198
197
|
title: "无法继续",
|
|
199
|
-
subTitle: C ||
|
|
198
|
+
subTitle: C || j,
|
|
200
199
|
extra: /* @__PURE__ */ t(
|
|
201
200
|
D,
|
|
202
201
|
{
|
|
@@ -312,5 +311,5 @@ function De() {
|
|
|
312
311
|
] }) }) });
|
|
313
312
|
}
|
|
314
313
|
export {
|
|
315
|
-
|
|
314
|
+
Xe as default
|
|
316
315
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { CopyOutlined as oe, ReloadOutlined as ve, PlusOutlined as Te, DeleteOutlined as Oe, ClearOutlined as Ue, CloseOutlined as Re, SendOutlined as De, RobotOutlined as Se, CloudServerOutlined as He, MessageOutlined as Fe, KeyOutlined as je, ApiOutlined as qe, ToolOutlined as Ge, BarChartOutlined as Je } from "@ant-design/icons";
|
|
3
3
|
import { Tooltip as Y, Tabs as we, Input as pe, Button as D, Modal as ue, Drawer as Ae, Spin as X, Statistic as K, Table as Be, message as J, Tag as W, Select as We, Checkbox as Qe } from "antd";
|
|
4
4
|
import { useState as N, useEffect as Z, useCallback as j, useRef as he, useMemo as ze, Suspense as Ve, lazy as Ye } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { d as Me } from "./ComponentDoc-Boc9n2c_.js";
|
|
6
6
|
import { AgentAppList as Xe, McpPage as Ze, SkillMarket as et } from "@yuku123/z-agent-component";
|
|
7
7
|
const le = "ft_gateway_default_ak", Ie = "system-default", ee = "", ke = "";
|
|
8
8
|
function te(a = {}) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useCallback as b } from "react";
|
|
3
|
-
import { S as N,
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { S as N, P as I } from "./webide-MQ5gD1Go.js";
|
|
4
|
+
import { P as W, S as H, C as $, E as B, a as j, W as h, b as u, T as q, c as E } from "./ScheduledTasks-DY4iYtX3.js";
|
|
5
|
+
import { TodoTab as K } from "@yuku123/z-task-component";
|
|
6
|
+
import { p as L } from "./index-D74FCwtx.js";
|
|
7
|
+
function Q({
|
|
7
8
|
view: t,
|
|
8
9
|
agents: e,
|
|
9
10
|
token: l,
|
|
@@ -12,9 +13,9 @@ function M({
|
|
|
12
13
|
onOpenAgentDetail: g,
|
|
13
14
|
onBackToExtensions: i,
|
|
14
15
|
onOpenTab: o,
|
|
15
|
-
onAgentCreated:
|
|
16
|
+
onAgentCreated: p,
|
|
16
17
|
onOpenProject: n,
|
|
17
|
-
onOpenWorkbenchShell:
|
|
18
|
+
onOpenWorkbenchShell: T,
|
|
18
19
|
onOpenHistory: m
|
|
19
20
|
}) {
|
|
20
21
|
const [k, x] = c(
|
|
@@ -43,7 +44,7 @@ function M({
|
|
|
43
44
|
flexDirection: "column"
|
|
44
45
|
},
|
|
45
46
|
children: /* @__PURE__ */ s(
|
|
46
|
-
|
|
47
|
+
W,
|
|
47
48
|
{
|
|
48
49
|
agent: t.agent,
|
|
49
50
|
initialSessionId: t.sessionId,
|
|
@@ -58,7 +59,7 @@ function M({
|
|
|
58
59
|
}
|
|
59
60
|
),
|
|
60
61
|
t.kind === "schedule" && /* @__PURE__ */ s(
|
|
61
|
-
|
|
62
|
+
H,
|
|
62
63
|
{
|
|
63
64
|
localOnline: !1,
|
|
64
65
|
agents: e,
|
|
@@ -67,7 +68,7 @@ function M({
|
|
|
67
68
|
}
|
|
68
69
|
),
|
|
69
70
|
t.kind === "history" && /* @__PURE__ */ s(
|
|
70
|
-
|
|
71
|
+
$,
|
|
71
72
|
{
|
|
72
73
|
agents: e,
|
|
73
74
|
token: l,
|
|
@@ -76,7 +77,7 @@ function M({
|
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
79
|
t.kind === "extensions" && /* @__PURE__ */ s(
|
|
79
|
-
|
|
80
|
+
B,
|
|
80
81
|
{
|
|
81
82
|
agents: e,
|
|
82
83
|
loading: !1,
|
|
@@ -85,15 +86,15 @@ function M({
|
|
|
85
86
|
currentUser: f,
|
|
86
87
|
onChat: (a) => d(a),
|
|
87
88
|
onConfig: g,
|
|
88
|
-
onCreated:
|
|
89
|
+
onCreated: p,
|
|
89
90
|
onOpenPersonalTab: o,
|
|
90
|
-
onOpenWorkbenchShell:
|
|
91
|
+
onOpenWorkbenchShell: T,
|
|
91
92
|
onOpenHistory: m,
|
|
92
93
|
capTabRequest: t.cap ? { tab: t.cap, ts: t.ts } : null
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
96
|
t.kind === "agentDetail" && /* @__PURE__ */ s("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ s(
|
|
96
|
-
|
|
97
|
+
j,
|
|
97
98
|
{
|
|
98
99
|
agent: t.agent,
|
|
99
100
|
onBack: i
|
|
@@ -124,7 +125,7 @@ function M({
|
|
|
124
125
|
t.tab === "tools" && /* @__PURE__ */ s(u, { showTools: !0, showWebsites: !1 }),
|
|
125
126
|
t.tab === "websites" && /* @__PURE__ */ s(u, { showTools: !1, showWebsites: !0 }),
|
|
126
127
|
t.tab === "todo" && /* @__PURE__ */ s(
|
|
127
|
-
|
|
128
|
+
K,
|
|
128
129
|
{
|
|
129
130
|
onOpenProject: n,
|
|
130
131
|
onOpenNote: y,
|
|
@@ -132,18 +133,18 @@ function M({
|
|
|
132
133
|
}
|
|
133
134
|
),
|
|
134
135
|
t.tab === "notes" && /* @__PURE__ */ s(
|
|
135
|
-
|
|
136
|
+
I,
|
|
136
137
|
{
|
|
137
138
|
onOpenProject: n,
|
|
138
139
|
onOpenTodo: D,
|
|
139
140
|
openNoteId: k
|
|
140
141
|
}
|
|
141
142
|
),
|
|
142
|
-
t.tab === "training" && /* @__PURE__ */ s(
|
|
143
|
-
t.tab === "webide" && /* @__PURE__ */ s(
|
|
143
|
+
t.tab === "training" && /* @__PURE__ */ s(q, {}),
|
|
144
|
+
t.tab === "webide" && /* @__PURE__ */ s(E, {})
|
|
144
145
|
] })
|
|
145
146
|
] });
|
|
146
147
|
}
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
Q as default
|
|
149
150
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AppLayout as v, ErrorBoundary as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AppLayout as v, ErrorBoundary as z, LoginPage as _, StatusTag as j, defaultStatusMap as F } from "@yuku123/z-frontend-common";
|
|
2
|
+
import { b as y } from "./ComponentDoc-Boc9n2c_.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-Boc9n2c_.js";
|
|
4
4
|
import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
5
|
-
import { useState as n, useEffect as
|
|
6
|
-
import { Alert as I, Space as x, Button as l, Tag as c, Result as
|
|
7
|
-
import { ReloadOutlined as g, UserAddOutlined as
|
|
5
|
+
import { useState as n, useEffect as R } from "react";
|
|
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 b, TeamOutlined as E, PlusOutlined as w, CodeOutlined as A } from "@ant-design/icons";
|
|
8
8
|
import { ListTable as f } from "@yuku123/z-frontend-common/ui";
|
|
9
|
-
const
|
|
9
|
+
const q = y, O = {
|
|
10
10
|
LEADER: "red",
|
|
11
11
|
WORKER: "blue",
|
|
12
12
|
OBSERVER: "default"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function B() {
|
|
15
15
|
const [i] = n(!1), [s] = n([]);
|
|
16
16
|
return /* @__PURE__ */ r(h, { children: [
|
|
17
17
|
/* @__PURE__ */ e(
|
|
@@ -28,12 +28,12 @@ function K() {
|
|
|
28
28
|
f,
|
|
29
29
|
{
|
|
30
30
|
cardTitle: /* @__PURE__ */ r("span", { children: [
|
|
31
|
-
/* @__PURE__ */ e(
|
|
31
|
+
/* @__PURE__ */ e(E, { 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(b, {}), disabled: !0, children: "创建群组" })
|
|
37
37
|
] }),
|
|
38
38
|
rows: s,
|
|
39
39
|
columns: [
|
|
@@ -59,12 +59,12 @@ function K() {
|
|
|
59
59
|
)
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const D = {
|
|
63
63
|
CREATING: { text: "创建中", color: "processing" },
|
|
64
64
|
RUNNING: { text: "运行中", color: "success" },
|
|
65
65
|
STOPPED: { text: "已停止", color: "default" },
|
|
66
66
|
ERROR: { text: "错误", color: "error" }
|
|
67
|
-
},
|
|
67
|
+
}, M = {
|
|
68
68
|
GIT: { text: "GIT 模式", color: "blue" },
|
|
69
69
|
SHARED: { text: "SHARED 模式", color: "purple" }
|
|
70
70
|
};
|
|
@@ -79,7 +79,7 @@ function U() {
|
|
|
79
79
|
a(!1);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
return
|
|
82
|
+
return R(() => {
|
|
83
83
|
p();
|
|
84
84
|
}, []), /* @__PURE__ */ r(h, { children: [
|
|
85
85
|
u && /* @__PURE__ */ e(
|
|
@@ -111,7 +111,7 @@ function U() {
|
|
|
111
111
|
dataIndex: "mode",
|
|
112
112
|
width: 120,
|
|
113
113
|
render: (t) => {
|
|
114
|
-
const o =
|
|
114
|
+
const o = M[t] || { text: t, color: "default" };
|
|
115
115
|
return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
|
|
116
116
|
}
|
|
117
117
|
},
|
|
@@ -122,7 +122,7 @@ function U() {
|
|
|
122
122
|
dataIndex: "status",
|
|
123
123
|
width: 120,
|
|
124
124
|
render: (t) => {
|
|
125
|
-
const o =
|
|
125
|
+
const o = D[t] || { text: t, color: "default" };
|
|
126
126
|
return /* @__PURE__ */ e(c, { color: o.color, children: o.text });
|
|
127
127
|
}
|
|
128
128
|
},
|
|
@@ -139,9 +139,9 @@ function U() {
|
|
|
139
139
|
)
|
|
140
140
|
] });
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function H() {
|
|
143
143
|
return /* @__PURE__ */ e(
|
|
144
|
-
|
|
144
|
+
T,
|
|
145
145
|
{
|
|
146
146
|
title: "Debug Playground",
|
|
147
147
|
subTitle: "AI 调试沙盒功能开发中...",
|
|
@@ -150,13 +150,13 @@ function k() {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
export {
|
|
153
|
-
|
|
153
|
+
B as AgentTeamIM,
|
|
154
154
|
v as AppLayout,
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
V as CurlImportModal,
|
|
156
|
+
H as DebugPlayground,
|
|
157
157
|
Q as EndpointsTab,
|
|
158
158
|
X as EnvironmentsTab,
|
|
159
|
-
|
|
159
|
+
z as ErrorBoundary,
|
|
160
160
|
_ as LoginPage,
|
|
161
161
|
Y as MockPlatform,
|
|
162
162
|
Z as MockTemplateHelper,
|
|
@@ -165,12 +165,12 @@ export {
|
|
|
165
165
|
te as RecordingsTab,
|
|
166
166
|
re as RequestLogsTab,
|
|
167
167
|
ae as ScenariosTab,
|
|
168
|
-
|
|
168
|
+
j as StatusTag,
|
|
169
169
|
oe as TestCasesTab,
|
|
170
170
|
U as Webide,
|
|
171
171
|
y as authRequest,
|
|
172
172
|
ne as createRequest,
|
|
173
|
-
|
|
173
|
+
q as ctcRequest,
|
|
174
174
|
le as default,
|
|
175
175
|
F as defaultStatusMap,
|
|
176
176
|
ie as request,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L, useMemo as p } from "react";
|
|
3
3
|
import { useNavigate as v, useLocation as A } from "react-router-dom";
|
|
4
4
|
import { DownOutlined as k, RightOutlined as w } from "@ant-design/icons";
|
|
5
|
-
import { P as W, R as $ } from "./index-
|
|
6
|
-
import { f as E, M as g } from "./menuPermission-
|
|
7
|
-
import {
|
|
5
|
+
import { P as W, R as $ } from "./index-D83QI-17.js";
|
|
6
|
+
import { f as E, M as g } from "./menuPermission-DX8KlB6K.js";
|
|
7
|
+
import { d as j } from "./ComponentDoc-Boc9n2c_.js";
|
|
8
8
|
const H = "_shell_1jjcx_7", M = "_sidebar_1jjcx_15", R = "_menuList_1jjcx_37", T = "_menuGroup_1jjcx_43", C = "_menuGroupHeader_1jjcx_47", P = "_menuGroupIcon_1jjcx_65", z = "_menuGroupLabel_1jjcx_70", K = "_menuGroupArrow_1jjcx_74", U = "_menuSubList_1jjcx_80", Z = "_menuSubItem_1jjcx_86", B = "_menuSubItemActive_1jjcx_103", D = "_menuSubItemIcon_1jjcx_110", O = "_menuSubItemLabel_1jjcx_115", q = "_menuSubItemWrap_1jjcx_119", F = "_main_1jjcx_123", J = "_empty_1jjcx_134", Q = "_emptyIcon_1jjcx_144", V = "_emptyText_1jjcx_149", n = {
|
|
9
9
|
shell: H,
|
|
10
10
|
sidebar: M,
|
|
@@ -36,12 +36,12 @@ function X(m, r) {
|
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
38
|
function Y({ text: m }) {
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ o("div", { className: n.empty, children: [
|
|
40
40
|
/* @__PURE__ */ t("div", { className: n.emptyIcon, children: "⚙️" }),
|
|
41
41
|
/* @__PURE__ */ t("div", { className: n.emptyText, children: m })
|
|
42
42
|
] });
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ue({
|
|
45
45
|
groups: m,
|
|
46
46
|
routes: r,
|
|
47
47
|
mode: s,
|
|
@@ -56,25 +56,25 @@ function oe({
|
|
|
56
56
|
[m, d, b]
|
|
57
57
|
), f = p(() => {
|
|
58
58
|
const e = _ ?? a;
|
|
59
|
-
for (const
|
|
60
|
-
for (const c of
|
|
59
|
+
for (const u of l)
|
|
60
|
+
for (const c of u.items)
|
|
61
61
|
if (c.path === e) return c.key;
|
|
62
62
|
return null;
|
|
63
63
|
}, [l, _, a]), G = (e) => {
|
|
64
|
-
S((
|
|
65
|
-
const c = new Set(
|
|
64
|
+
S((u) => {
|
|
65
|
+
const c = new Set(u);
|
|
66
66
|
return c.has(e) ? c.delete(e) : c.add(e), c;
|
|
67
67
|
});
|
|
68
68
|
}, y = (e) => {
|
|
69
69
|
I(`${e.path}?mode=${s}`);
|
|
70
70
|
}, N = p(() => X(r, a), [r, a]);
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ o("div", { className: n.shell, children: [
|
|
72
|
+
/* @__PURE__ */ o("aside", { className: n.sidebar, children: [
|
|
73
73
|
/* @__PURE__ */ t(g, {}),
|
|
74
74
|
/* @__PURE__ */ t("nav", { className: n.menuList, children: l.map((e) => {
|
|
75
|
-
const
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
75
|
+
const u = x.has(e.title);
|
|
76
|
+
return /* @__PURE__ */ o("div", { className: n.menuGroup, children: [
|
|
77
|
+
/* @__PURE__ */ o(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
className: n.menuGroupHeader,
|
|
@@ -82,11 +82,11 @@ function oe({
|
|
|
82
82
|
children: [
|
|
83
83
|
/* @__PURE__ */ t("span", { className: n.menuGroupIcon, children: e.icon }),
|
|
84
84
|
/* @__PURE__ */ t("span", { className: n.menuGroupLabel, children: e.title }),
|
|
85
|
-
/* @__PURE__ */ t("span", { className: n.menuGroupArrow, children:
|
|
85
|
+
/* @__PURE__ */ t("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ t(k, {}) : /* @__PURE__ */ t(w, {}) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
),
|
|
89
|
-
|
|
89
|
+
u && /* @__PURE__ */ t("ul", { className: n.menuSubList, children: e.items.map((c) => /* @__PURE__ */ o(
|
|
90
90
|
"li",
|
|
91
91
|
{
|
|
92
92
|
className: `${n.menuSubItemWrap} ${n.menuSubItem} ${f === c.key ? n.menuSubItemActive : ""}`,
|
|
@@ -101,12 +101,12 @@ function oe({
|
|
|
101
101
|
] }, e.title);
|
|
102
102
|
}) })
|
|
103
103
|
] }),
|
|
104
|
-
h ? null : /* @__PURE__ */
|
|
104
|
+
h ? null : /* @__PURE__ */ o("main", { className: n.main, children: [
|
|
105
105
|
/* @__PURE__ */ t(W, {}),
|
|
106
106
|
/* @__PURE__ */ t($, { resetKey: a, children: N ?? /* @__PURE__ */ t(Y, { text: i }) })
|
|
107
107
|
] })
|
|
108
108
|
] });
|
|
109
109
|
}
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
ue as W
|
|
112
112
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as D, h as U, s as F } from "./sso-user-
|
|
3
|
+
import { r as D, h as U, s as F } from "./sso-user-BBkFFo35.js";
|
|
4
4
|
import { CheckCircleFilled as W } from "@ant-design/icons";
|
|
5
5
|
import { Result as B, Button as H, Spin as G } from "antd";
|
|
6
6
|
import J from "query-string";
|
|
7
7
|
import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
|
|
8
8
|
import { useLocation as Q } from "react-router-dom";
|
|
9
9
|
import { h as b } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { d as V,
|
|
11
|
-
import { u as s } from "./useAppStore-uc8v8XZC.js";
|
|
10
|
+
import { d as s, h as V, j as X } from "./ComponentDoc-Boc9n2c_.js";
|
|
12
11
|
import { b as Y } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
-
import { s as Z } from "./send-default-agent-team-message-
|
|
14
|
-
function
|
|
12
|
+
import { s as Z } from "./send-default-agent-team-message-DVFuAdE9.js";
|
|
13
|
+
function ue() {
|
|
15
14
|
const h = Q(), f = J.parse(h.search), c = String(
|
|
16
15
|
f.scenarioCode ?? f.scenario_code ?? ""
|
|
17
16
|
).trim(), a = String(
|
|
@@ -166,5 +165,5 @@ function de() {
|
|
|
166
165
|
] }) });
|
|
167
166
|
}
|
|
168
167
|
export {
|
|
169
|
-
|
|
168
|
+
ue as default
|
|
170
169
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./
|
|
1
|
+
import { a as o, f as d, B as r, u as c } from "./ComponentDoc-Boc9n2c_.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
|
-
import {
|
|
4
|
-
import { h as g } from "./
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { d } from "./ComponentDoc-Boc9n2c_.js";
|
|
4
|
+
import { h as g } from "./index-D1odHNMR.js";
|
|
5
|
+
import { N as A } from "./index-D74FCwtx.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
|
@@ -16,7 +16,7 @@ function P() {
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function u(e) {
|
|
20
20
|
const n = e.permission;
|
|
21
21
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
22
22
|
}
|
|
@@ -26,30 +26,30 @@ function S(e) {
|
|
|
26
26
|
function f(e, n) {
|
|
27
27
|
return n.length === 0 ? !0 : S(e) ? n.some((i) => A.includes(i)) : n.some((i) => g(e, i));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
29
|
+
function m(e, n, i) {
|
|
30
|
+
const t = u(n), s = t.length > 0 ? t : i ? [i] : [];
|
|
31
31
|
return f(e, s);
|
|
32
32
|
}
|
|
33
33
|
function _(e, n) {
|
|
34
34
|
const i = [];
|
|
35
35
|
for (const t of e) {
|
|
36
36
|
const s = t.permission;
|
|
37
|
-
if (!f(n,
|
|
37
|
+
if (!f(n, u(t))) continue;
|
|
38
38
|
const o = t.items;
|
|
39
39
|
if (!Array.isArray(o)) {
|
|
40
40
|
i.push(t);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const c = o.filter((r) => m(n, r, s)).map(
|
|
44
44
|
(r) => r.children ? {
|
|
45
45
|
...r,
|
|
46
46
|
children: r.children.filter(
|
|
47
|
-
(l) =>
|
|
47
|
+
(l) => m(n, l, r.permission ?? s)
|
|
48
48
|
)
|
|
49
49
|
} : r
|
|
50
50
|
).filter((r) => !r.children || r.children.length > 0);
|
|
51
|
-
if (
|
|
52
|
-
const p = { ...t, items:
|
|
51
|
+
if (c.length === 0) continue;
|
|
52
|
+
const p = { ...t, items: c };
|
|
53
53
|
i.push(p);
|
|
54
54
|
}
|
|
55
55
|
return i;
|
package/dist/pages.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-Boc9n2c_.js";
|
|
1
2
|
import { createElement as e } from "react";
|
|
2
|
-
import { BellOutlined as
|
|
3
|
-
import { S as m, P as p, C as i, Z as n } from "./ComponentDoc-Bqfu128t.js";
|
|
3
|
+
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "antd";
|
|
7
7
|
import "@yuku123/z-frontend-common";
|
|
8
8
|
import "@yuku123/z-frontend-common/ui";
|
|
9
9
|
const h = { title: "Z-OPC 一人公司基建", short: "team" }, O = [
|
|
10
|
-
{ path: "/team/subscribe", title: "订阅", order: 1, Component:
|
|
11
|
-
{ path: "/team/project", title: "项目", order: 2, Component:
|
|
10
|
+
{ path: "/team/subscribe", title: "订阅", order: 1, Component: t },
|
|
11
|
+
{ path: "/team/project", title: "项目", order: 2, Component: o },
|
|
12
12
|
// 组件文档页(lead 008 §7):放在 /team/:rest* 兜底之前,否则会被兜底路由吃掉。
|
|
13
|
-
{ path: "/team/docs", title: "组件文档", order: 3, Component:
|
|
14
|
-
{ path: "/team/:rest*", Component:
|
|
13
|
+
{ path: "/team/docs", title: "组件文档", order: 3, Component: r },
|
|
14
|
+
{ path: "/team/:rest*", Component: a }
|
|
15
15
|
];
|
|
16
|
-
e(
|
|
16
|
+
e(m), e(p), e(i), e(n);
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
r as ComponentDocPage,
|
|
19
19
|
h as appMeta,
|
|
20
20
|
O as routes
|
|
21
21
|
};
|