@yuku123/z-team-component 0.2.8 → 0.2.9
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/{InvitationManagementPage-DEBZvFZU.js → InvitationManagementPage-Bu_T6Qnk.js} +2 -2
- package/dist/{OnboardingPage-Bi3S5eug.js → OnboardingPage-CVQsHBNI.js} +2 -2
- package/dist/ProjectApp-CZp1-5DE.js +5417 -0
- package/dist/admin-logs-CjrLXc1w.js +199 -0
- package/dist/{api-3Ur1kq2A.js → api-C3oQuHQN.js} +653 -549
- package/dist/api-CGeI8Nl6.js +19 -0
- package/dist/{createWorkspaceWsHandler-CSAGqlPX.js → createWorkspaceWsHandler--EYvkQTh.js} +71 -71
- package/dist/{ctc-sso-C-QWy9F8.js → ctc-sso-B62FfkZg.js} +1 -0
- package/dist/index-89atN3Sn.js +3299 -0
- package/dist/index-B3WkjkoJ.js +13641 -0
- package/dist/{index-CsCPAoPb.js → index-BAbMvA6l.js} +18 -18
- package/dist/{index-DMEjkEMq.js → index-BbXwe7Mu.js} +4 -4
- package/dist/{index-C8uSn9eX.js → index-BnXt3lMS.js} +2 -2
- package/dist/{index-D3DF6vFc.js → index-CC82pWGq.js} +5 -5
- package/dist/{index-wXqXyXmm.js → index-CibhFgCi.js} +3 -3
- package/dist/{index-DNyYOedu.js → index-DH7Mt7zI.js} +58 -63
- package/dist/{index-Cml0C09P.js → index-DL3Nsor4.js} +2580 -2460
- package/dist/{index-BIVN--Bi.js → index-DnqloQgt.js} +1 -1
- package/dist/{index-CPUeMpa8.js → index-EPCmZ1QV.js} +5 -5
- package/dist/{index-C6SfK489.js → index-psNYztRR.js} +7 -7
- package/dist/index.js +1 -1
- package/dist/{instance-ClduEMxs.js → instance-DUBRC_44.js} +1 -1
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-B3Qon0X2.js → send-default-agent-team-message-DHaZl06Z.js} +1 -1
- package/dist/{sso-user-BOEGMUJA.js → sso-user-BRC1vEjR.js} +1 -1
- package/dist/{useAppStore-D8PnbXea.js → useAppStore-D1Z2M3Za.js} +1 -1
- package/dist/z-team-component.css +1 -1
- package/package.json +3 -2
- package/dist/LowCodePage-yemTBcZ4.js +0 -17
- package/dist/ProjectApp-9qtrgr7d.js +0 -6710
- package/dist/admin-logs-BIRWnOwM.js +0 -254
- package/dist/api-B2d2enyL.js +0 -20
- package/dist/index-B_YVSwmJ.js +0 -11710
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as Xe } from "react/jsx-runtime";
|
|
2
|
-
import { r as jh, h as Gh, s as Wh } from "./sso-user-
|
|
2
|
+
import { r as jh, h as Gh, s as Wh } from "./sso-user-BRC1vEjR.js";
|
|
3
3
|
import { BookOutlined as Pl, ReloadOutlined as At, SearchOutlined as Xn, CloseOutlined as Gl, CaretDownOutlined as bs, CaretRightOutlined as Ns, UserOutlined as Cs, FolderOutlined as Xa, FileTextOutlined as Qi, FolderAddOutlined as pr, FileAddOutlined as gr, LinkOutlined as Nc, BarsOutlined as qh, ShareAltOutlined as Uu, BoldOutlined as Vh, ItalicOutlined as Yh, StrikethroughOutlined as Kh, UnorderedListOutlined as Jh, OrderedListOutlined as Qh, CheckSquareOutlined as Xh, CodeOutlined as fo, ConsoleSqlOutlined as Zh, PictureOutlined as ju, TableOutlined as Gu, EditOutlined as Dn, DeleteOutlined as Wt, PlusOutlined as Ht, SaveOutlined as Gn, ControlOutlined as yo, FolderOpenOutlined as ks, RobotOutlined as ma, ProfileOutlined as Wu, MessageOutlined as jo, SettingOutlined as yl, ToolOutlined as Aa, ApiOutlined as Go, ClusterOutlined as ep, InfoCircleOutlined as Pn, ExperimentOutlined as qu, CheckCircleOutlined as _l, PlayCircleOutlined as Pi, FormOutlined as Vu, CopyOutlined as Xi, AppstoreOutlined as hs, NotificationOutlined as tp, ThunderboltOutlined as Za, SyncOutlined as Yu, CloseCircleOutlined as Mi, FieldTimeOutlined as np, DownOutlined as vl, RightOutlined as Bi, RollbackOutlined as _o, TagOutlined as Ku, EllipsisOutlined as Ju, CheckOutlined as Cc, UserAddOutlined as wi, DatabaseOutlined as Wo, CloudSyncOutlined as ap, SwapOutlined as lp, CloudUploadOutlined as sp, FileMarkdownOutlined as ip, BellOutlined as rp, RocketOutlined as op, SendOutlined as wc, LeftOutlined as cp, CalendarOutlined as dp, WarningOutlined as vo, TeamOutlined as bo, SafetyCertificateOutlined as up, MinusCircleOutlined as qo, PlusCircleOutlined as No, WarningFilled as mp, CheckCircleFilled as Qu, CloseCircleFilled as Xu, NodeIndexOutlined as Si, FileImageOutlined as Zu, BranchesOutlined as em, ExclamationCircleOutlined as Co, ArrowLeftOutlined as tm, BulbOutlined as hp, FileSearchOutlined as Sc, UpOutlined as pp, LoadingOutlined as Tc, ExclamationCircleFilled as gp, ExportOutlined as fp, StarFilled as kc, StarOutlined as yp, EnterOutlined as _p, EyeOutlined as Zi, ClockCircleOutlined as nm, BarChartOutlined as am, DownloadOutlined as vp, ApartmentOutlined as bp, UndoOutlined as Np, LaptopOutlined as Cp, DesktopOutlined as wp, LockOutlined as Sp, StopOutlined as Tp, MenuFoldOutlined as kp, LogoutOutlined as xp, MonitorOutlined as Ip, CodeSandboxOutlined as $p } from "@ant-design/icons";
|
|
4
4
|
import { message as h, Spin as _t, Modal as st, Tooltip as be, Button as k, Dropdown as Ul, Empty as $t, Tree as Vo, Input as Ce, Segmented as Ap, Form as nt, Space as at, Typography as Tt, Card as na, Table as ct, Divider as Kn, Select as We, InputNumber as Fn, Switch as xn, Tag as Q, Drawer as Ln, Tabs as It, Alert as gn, Radio as zn, Collapse as fn, Popconfirm as pn, DatePicker as Hn, Row as wo, Col as da, Statistic as vn, Skeleton as Ti, Descriptions as Dt, List as Ya, Layout as lm, Checkbox as aa, Steps as Lp, Upload as Ep, Progress as Yo, Image as sm, Badge as Jn, AutoComplete as Dp, TreeSelect as Rp, Breadcrumb as fr, Avatar as Op } from "antd";
|
|
5
5
|
import zp, { Component as Pp, useState as r, useRef as bt, useEffect as Ne, useCallback as te, useMemo as Le, useLayoutEffect as im } from "react";
|
|
6
6
|
import { h as bl } from "./history-BlrA1eaW.js";
|
|
7
|
-
import { e as Oe, B as Me, d as Be, f as Ue,
|
|
7
|
+
import { e as Oe, B as Me, d as Be, f as Ue, b4 as Ko, m as Tn, ax as Mp, t as ot, i as Wl, b5 as Bp, b6 as Fp, b7 as Hp, am as Up, b8 as jp, b9 as Gp, b1 as Wp, ba as qp, bb as xc, bc as Vp, bd as Yp, be as Kp, bf as ia, bg as Jp, b2 as ki, bh as Ds, bi as yr, bj as Jl, bk as Qp, bl as Xp, bm as Zp, bn as eg, bo as tg, bp as ng, bq as ag, br as lg, bs as sg, bt as ig, bu as Ic, bv as rg, bw as $c, bx as Ac, by as og, bz as cg, bA as dg, bB as ug, bC as mg, bD as hg, y as rm, a3 as Lc, bE as Jo, bF as Qo, bG as xi, aC as pg, bH as gg, bI as fg, bJ as yg, bK as _g, bL as vg, bM as bg, bN as Ng, bO as Cg, bP as wg, bQ as Sg, bR as Tg, bS as kg, bT as xg, bU as Ec, bV as Ig, bW as om, bX as $g, bY as cm, bZ as Ag, h as Lg } from "./api-C3oQuHQN.js";
|
|
8
8
|
import So from "react-markdown";
|
|
9
9
|
import Eg from "rehype-highlight";
|
|
10
10
|
import To from "remark-gfm";
|
|
11
|
-
import { e as ko, u as Fi, f as
|
|
12
|
-
import { u as Lt } from "./useAppStore-
|
|
11
|
+
import { e as ko, u as Fi, f as dm, j as Ii, r as Dg, k as um, b as Rg, m as Og, l as mm, n as hm, o as pm, p as gm, q as zg, v as fm, s as Pg } from "./admin-logs-CjrLXc1w.js";
|
|
12
|
+
import { u as Lt } from "./useAppStore-D1Z2M3Za.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
import yt from "dayjs";
|
|
15
15
|
import * as va from "echarts";
|
|
@@ -2149,7 +2149,7 @@ function Kv({
|
|
|
2149
2149
|
}
|
|
2150
2150
|
X(!0);
|
|
2151
2151
|
try {
|
|
2152
|
-
const De = await
|
|
2152
|
+
const De = await dm(F, s);
|
|
2153
2153
|
Z((He) => [
|
|
2154
2154
|
...He,
|
|
2155
2155
|
{
|
|
@@ -2252,7 +2252,7 @@ function Kv({
|
|
|
2252
2252
|
cancelText: "取消",
|
|
2253
2253
|
onOk: async () => {
|
|
2254
2254
|
try {
|
|
2255
|
-
await
|
|
2255
|
+
await um(F, s), Z((De) => De.filter((He) => He.id !== F)), ee === F && (j(null), b(null)), await W(), h.success("已删除");
|
|
2256
2256
|
} catch {
|
|
2257
2257
|
h.error("删除失败");
|
|
2258
2258
|
}
|
|
@@ -9619,14 +9619,14 @@ const { RangePicker: q1 } = Hn, { Text: Ca, Paragraph: V1 } = Tt;
|
|
|
9619
9619
|
function Y1({ token: t = "" }) {
|
|
9620
9620
|
const [n] = nt.useForm(), [a, s] = r(!1), [i, c] = r([]), [d, o] = r(0), [m, u] = r(1), [g, b] = r(20), [v, y] = r([]), [_, f] = r([]), [p, S] = r(null), [C, A] = r(!1), [I, T] = r({}), [$, H] = r(0);
|
|
9621
9621
|
Ne(() => {
|
|
9622
|
-
|
|
9622
|
+
mm(t).then(y).catch((P) => h.error(String((P == null ? void 0 : P.message) || P))), hm(t).then(f).catch((P) => h.error(String((P == null ? void 0 : P.message) || P)));
|
|
9623
9623
|
}, [t]);
|
|
9624
9624
|
const se = te(
|
|
9625
9625
|
(P, X, O) => {
|
|
9626
9626
|
var ve, R, V, q, w;
|
|
9627
9627
|
s(!0);
|
|
9628
9628
|
const M = (R = (ve = P.range) == null ? void 0 : ve[0]) == null ? void 0 : R.format("YYYY-MM-DD"), oe = (q = (V = P.range) == null ? void 0 : V[1]) == null ? void 0 : q.format("YYYY-MM-DD");
|
|
9629
|
-
|
|
9629
|
+
pm({
|
|
9630
9630
|
scenarioInstanceId: ot(P.scenarioInstanceId),
|
|
9631
9631
|
taskId: ot(P.taskId),
|
|
9632
9632
|
// 后端 toolName 为 List<String>,Spring 会将逗号分隔串拆为多值
|
|
@@ -9653,7 +9653,7 @@ function Y1({ token: t = "" }) {
|
|
|
9653
9653
|
}, z = () => {
|
|
9654
9654
|
n.resetFields(), c([]), o(0), H((P) => P + 1);
|
|
9655
9655
|
}, Z = (P) => {
|
|
9656
|
-
A(!0), S(null),
|
|
9656
|
+
A(!0), S(null), gm(ot(P), t).then(S).catch((X) => h.error(String((X == null ? void 0 : X.message) || X))).finally(() => A(!1));
|
|
9657
9657
|
}, ee = Le(
|
|
9658
9658
|
() => [
|
|
9659
9659
|
{ title: "时间", dataIndex: "createTime", width: 170 },
|
|
@@ -10119,7 +10119,7 @@ function X1({ token: t = "" }) {
|
|
|
10119
10119
|
yt().endOf("minute")
|
|
10120
10120
|
], [c, d] = r(null), [o, m] = r([]), [u, g] = r([]), [b, v] = r([]), [y, _] = r([]), [f, p] = r(0), [S, C] = r(10);
|
|
10121
10121
|
Ne(() => {
|
|
10122
|
-
|
|
10122
|
+
mm(t).then(v).catch(($) => h.error(String(($ == null ? void 0 : $.message) || $))), hm(t).then(_).catch(($) => h.error(String(($ == null ? void 0 : $.message) || $)));
|
|
10123
10123
|
}, [t]);
|
|
10124
10124
|
const A = te(
|
|
10125
10125
|
($, H) => {
|
|
@@ -10138,7 +10138,7 @@ function X1({ token: t = "" }) {
|
|
|
10138
10138
|
};
|
|
10139
10139
|
Promise.all([
|
|
10140
10140
|
zg(z),
|
|
10141
|
-
|
|
10141
|
+
fm(z),
|
|
10142
10142
|
Kp({ ...z, intervalMinutes: H })
|
|
10143
10143
|
]).then(([O, M, oe]) => {
|
|
10144
10144
|
d(O), m(M || []), g(oe || []);
|
|
@@ -10321,7 +10321,7 @@ function eS({ token: t = "" }) {
|
|
|
10321
10321
|
var _, f, p, S;
|
|
10322
10322
|
s(!0);
|
|
10323
10323
|
const v = (f = (_ = b.range) == null ? void 0 : _[0]) == null ? void 0 : f.format("YYYY-MM-DD"), y = (S = (p = b.range) == null ? void 0 : p[1]) == null ? void 0 : S.format("YYYY-MM-DD");
|
|
10324
|
-
|
|
10324
|
+
fm({
|
|
10325
10325
|
scenarioInstanceId: ot(b.scenarioInstanceId),
|
|
10326
10326
|
taskId: ot(b.taskId),
|
|
10327
10327
|
startDate: v,
|
|
@@ -27562,7 +27562,7 @@ function tO({
|
|
|
27562
27562
|
), _ = te(async () => {
|
|
27563
27563
|
c(!0), o(null);
|
|
27564
27564
|
try {
|
|
27565
|
-
const p = await
|
|
27565
|
+
const p = await pm({
|
|
27566
27566
|
scenarioInstanceId: t,
|
|
27567
27567
|
token: n,
|
|
27568
27568
|
page: 1,
|
|
@@ -27589,7 +27589,7 @@ function tO({
|
|
|
27589
27589
|
if (u((C) => ({ ...C, [p]: S })), !(!S || g[p] || v[p])) {
|
|
27590
27590
|
y((C) => ({ ...C, [p]: !0 }));
|
|
27591
27591
|
try {
|
|
27592
|
-
const C = await
|
|
27592
|
+
const C = await gm(ot(p), n);
|
|
27593
27593
|
b((A) => ({ ...A, [p]: C }));
|
|
27594
27594
|
} catch (C) {
|
|
27595
27595
|
b((A) => ({
|
|
@@ -29505,7 +29505,7 @@ function VO({
|
|
|
29505
29505
|
), Y = ((B == null ? void 0 : B.children) ?? []).filter(
|
|
29506
29506
|
(x) => x.type === "note"
|
|
29507
29507
|
), U = await Promise.all(
|
|
29508
|
-
Y.map((x) =>
|
|
29508
|
+
Y.map((x) => dm(x.id, o))
|
|
29509
29509
|
);
|
|
29510
29510
|
if (N) return;
|
|
29511
29511
|
z((B == null ? void 0 : B.id) ?? null), g(
|
|
@@ -29691,7 +29691,7 @@ ${jr(U, "无本体返回质量异常问题")}
|
|
|
29691
29691
|
cancelButtonProps: { style: { borderRadius: 0 } },
|
|
29692
29692
|
onOk: async () => {
|
|
29693
29693
|
try {
|
|
29694
|
-
await
|
|
29694
|
+
await um(N.id, o), h.success("笔记已删除"), ee((K) => K + 1);
|
|
29695
29695
|
} catch (K) {
|
|
29696
29696
|
h.error(Gr(K, "删除笔记失败"));
|
|
29697
29697
|
}
|
|
@@ -45766,10 +45766,10 @@ function xG(t) {
|
|
|
45766
45766
|
a && n.set("giturl", a), t.branch && n.set("branch", t.branch), t.workspace && n.set("workspace", t.workspace);
|
|
45767
45767
|
} else
|
|
45768
45768
|
t.path && n.set("path", t.path);
|
|
45769
|
-
return `${
|
|
45769
|
+
return `${cm}/embed?${n.toString()}`;
|
|
45770
45770
|
}
|
|
45771
45771
|
async function wh(t, n) {
|
|
45772
|
-
const a = await fetch(`${
|
|
45772
|
+
const a = await fetch(`${cm}${t}`, {
|
|
45773
45773
|
credentials: "include",
|
|
45774
45774
|
headers: { Accept: "application/json" },
|
|
45775
45775
|
...n
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { f as z, r as v } from "./ctc-sso-
|
|
3
|
-
import { r as L, h as N, s as T } from "./sso-user-
|
|
2
|
+
import { f as z, r as v } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as L, h as N, s as T } from "./sso-user-BRC1vEjR.js";
|
|
4
4
|
import { CheckCircleFilled as q } from "@ant-design/icons";
|
|
5
5
|
import { Spin as R } from "antd";
|
|
6
6
|
import W from "query-string";
|
|
7
7
|
import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
|
|
8
8
|
import { useLocation as F } from "react-router-dom";
|
|
9
9
|
import { h as H } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as Y, h as B } from "./api-
|
|
11
|
-
import { u as m } from "./useAppStore-
|
|
10
|
+
import { c as Y, h as B } from "./api-C3oQuHQN.js";
|
|
11
|
+
import { u as m } from "./useAppStore-D1Z2M3Za.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
function ne() {
|
|
@@ -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-D1Z2M3Za.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { T as P, j as U } from "./api-
|
|
5
|
+
import { T as P, j as U } from "./api-C3oQuHQN.js";
|
|
6
6
|
async function y(o, s) {
|
|
7
7
|
const n = await o.text().catch(() => "");
|
|
8
8
|
let t = {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as ie, r as z } from "./ctc-sso-
|
|
3
|
-
import { r as ne, h as X, s as oe } from "./sso-user-
|
|
2
|
+
import { f as ie, r as z } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as ne, h as X, s as oe } from "./sso-user-BRC1vEjR.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 { v as he, g as be, h as _e } from "./api-
|
|
11
|
-
import { u as c } from "./useAppStore-
|
|
10
|
+
import { v as he, g as be, h as _e } from "./api-C3oQuHQN.js";
|
|
11
|
+
import { u as c } from "./useAppStore-D1Z2M3Za.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { b as ye } from "./mobile-client-O3yr9h6t.js";
|
|
14
|
-
import { a as ve, s as we } from "./send-default-agent-team-message-
|
|
14
|
+
import { a as ve, s as we } from "./send-default-agent-team-message-DHaZl06Z.js";
|
|
15
15
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
16
16
|
function Pe(a) {
|
|
17
17
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { i as $, t as x, p as O, c as v, u as F } from "./api-
|
|
2
|
+
import { i as $, t as x, p as O, c as v, u as F } from "./api-C3oQuHQN.js";
|
|
3
3
|
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
4
|
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
5
|
import B from "query-string";
|
|
6
6
|
import { useMemo as j, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
7
|
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as y } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
10
|
-
import { u as w } from "./useAppStore-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-DUBRC_44.js";
|
|
10
|
+
import { u as w } from "./useAppStore-D1Z2M3Za.js";
|
|
11
11
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
12
12
|
function ct() {
|
|
13
13
|
const m = W(), p = B.parse(m.search), o = String(
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { AppLayout as
|
|
2
|
-
import { a as
|
|
3
|
-
import { C as F, E as J,
|
|
4
|
-
import { jsxs as a, jsx as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { Card as
|
|
7
|
-
import { ReloadOutlined as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const G = T, S = {
|
|
1
|
+
import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as K, defaultStatusMap as _ } from "@yuku123/z-frontend-common";
|
|
2
|
+
import { a as y } from "./ProjectApp-CZp1-5DE.js";
|
|
3
|
+
import { C as F, E as J, c as Q, M as X, d as Y, O as Z, e as $, R as tt, f as et, g as at, h as rt, j as ot, r as nt, r as it, s as lt } from "./ProjectApp-CZp1-5DE.js";
|
|
4
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import { useState as i, useEffect as E } from "react";
|
|
6
|
+
import { Card as h, Alert as x, Table as g, Spin as I, Empty as f, Space as R, Button as s, Tag as c } from "antd";
|
|
7
|
+
import { ReloadOutlined as T, UserAddOutlined as w, TeamOutlined as b, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
|
|
8
|
+
import { D as dt } from "./index-DL3Nsor4.js";
|
|
9
|
+
const G = y, A = {
|
|
11
10
|
LEADER: "red",
|
|
12
11
|
WORKER: "blue",
|
|
13
12
|
OBSERVER: "default"
|
|
14
13
|
};
|
|
15
14
|
function N() {
|
|
16
|
-
const [
|
|
15
|
+
const [r] = i(!1), [d] = i([]);
|
|
17
16
|
return /* @__PURE__ */ a(
|
|
18
|
-
|
|
17
|
+
h,
|
|
19
18
|
{
|
|
20
19
|
title: /* @__PURE__ */ a("span", { children: [
|
|
21
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ t(b, { style: { marginRight: 8 } }),
|
|
22
21
|
"Agent 群组 IM"
|
|
23
22
|
] }),
|
|
24
23
|
extra: /* @__PURE__ */ a(R, { children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), loading: r, children: "刷新" }),
|
|
25
|
+
/* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
|
|
27
26
|
] }),
|
|
28
27
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ t(
|
|
30
29
|
x,
|
|
31
30
|
{
|
|
32
31
|
type: "info",
|
|
@@ -36,12 +35,12 @@ function N() {
|
|
|
36
35
|
description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
|
|
37
36
|
}
|
|
38
37
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
g,
|
|
41
40
|
{
|
|
42
41
|
rowKey: "teamCode",
|
|
43
42
|
size: "small",
|
|
44
|
-
loading:
|
|
43
|
+
loading: r,
|
|
45
44
|
dataSource: d,
|
|
46
45
|
columns: [
|
|
47
46
|
{ title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
|
|
@@ -50,13 +49,13 @@ function N() {
|
|
|
50
49
|
title: "我的角色",
|
|
51
50
|
dataIndex: "role",
|
|
52
51
|
width: 120,
|
|
53
|
-
render: (
|
|
52
|
+
render: (o) => /* @__PURE__ */ t(c, { color: A[o] || "default", children: o || "-" })
|
|
54
53
|
},
|
|
55
54
|
{ title: "成员数", dataIndex: "memberCount", width: 100 },
|
|
56
55
|
{ title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
|
|
57
56
|
{ title: "更新时间", dataIndex: "updatedAt", width: 180 }
|
|
58
57
|
],
|
|
59
|
-
locale: { emptyText:
|
|
58
|
+
locale: { emptyText: r ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "暂无群组" }) },
|
|
60
59
|
pagination: { pageSize: 20 }
|
|
61
60
|
}
|
|
62
61
|
)
|
|
@@ -64,7 +63,7 @@ function N() {
|
|
|
64
63
|
}
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
|
-
const
|
|
66
|
+
const M = {
|
|
68
67
|
CREATING: { text: "创建中", color: "processing" },
|
|
69
68
|
RUNNING: { text: "运行中", color: "success" },
|
|
70
69
|
STOPPED: { text: "已停止", color: "default" },
|
|
@@ -74,31 +73,31 @@ const A = {
|
|
|
74
73
|
SHARED: { text: "SHARED 模式", color: "purple" }
|
|
75
74
|
};
|
|
76
75
|
function U() {
|
|
77
|
-
const [
|
|
78
|
-
|
|
76
|
+
const [r, d] = i([]), [l, o] = i(!1), [u, p] = i(null), m = async () => {
|
|
77
|
+
o(!0), p(null);
|
|
79
78
|
try {
|
|
80
79
|
d([]);
|
|
81
|
-
} catch (
|
|
82
|
-
p((
|
|
80
|
+
} catch (e) {
|
|
81
|
+
p((e == null ? void 0 : e.message) || "加载失败");
|
|
83
82
|
} finally {
|
|
84
|
-
|
|
83
|
+
o(!1);
|
|
85
84
|
}
|
|
86
85
|
};
|
|
87
|
-
return
|
|
86
|
+
return E(() => {
|
|
88
87
|
m();
|
|
89
88
|
}, []), /* @__PURE__ */ a(
|
|
90
|
-
|
|
89
|
+
h,
|
|
91
90
|
{
|
|
92
91
|
title: /* @__PURE__ */ a("span", { children: [
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ t(S, { style: { marginRight: 8 } }),
|
|
94
93
|
"WebIDE 容器管理"
|
|
95
94
|
] }),
|
|
96
95
|
extra: /* @__PURE__ */ a(R, { children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), onClick: m, loading: l, children: "刷新" }),
|
|
97
|
+
/* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(O, {}), disabled: !0, children: "新建 WebIDE" })
|
|
99
98
|
] }),
|
|
100
99
|
children: [
|
|
101
|
-
u && /* @__PURE__ */
|
|
100
|
+
u && /* @__PURE__ */ t(
|
|
102
101
|
x,
|
|
103
102
|
{
|
|
104
103
|
type: "warning",
|
|
@@ -108,22 +107,22 @@ function U() {
|
|
|
108
107
|
description: u
|
|
109
108
|
}
|
|
110
109
|
),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
g,
|
|
113
112
|
{
|
|
114
113
|
rowKey: "containerId",
|
|
115
114
|
size: "small",
|
|
116
|
-
loading:
|
|
117
|
-
dataSource:
|
|
115
|
+
loading: l,
|
|
116
|
+
dataSource: r,
|
|
118
117
|
columns: [
|
|
119
118
|
{ title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
|
|
120
119
|
{
|
|
121
120
|
title: "模式",
|
|
122
121
|
dataIndex: "mode",
|
|
123
122
|
width: 120,
|
|
124
|
-
render: (
|
|
125
|
-
const
|
|
126
|
-
return /* @__PURE__ */
|
|
123
|
+
render: (e) => {
|
|
124
|
+
const n = C[e] || { text: e, color: "default" };
|
|
125
|
+
return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
|
|
127
126
|
}
|
|
128
127
|
},
|
|
129
128
|
{ title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
|
|
@@ -132,15 +131,15 @@ function U() {
|
|
|
132
131
|
title: "状态",
|
|
133
132
|
dataIndex: "status",
|
|
134
133
|
width: 120,
|
|
135
|
-
render: (
|
|
136
|
-
const
|
|
137
|
-
return /* @__PURE__ */
|
|
134
|
+
render: (e) => {
|
|
135
|
+
const n = M[e] || { text: e, color: "default" };
|
|
136
|
+
return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
|
|
138
137
|
}
|
|
139
138
|
},
|
|
140
139
|
{ title: "创建时间", dataIndex: "createdAt", width: 180 }
|
|
141
140
|
],
|
|
142
141
|
locale: {
|
|
143
|
-
emptyText:
|
|
142
|
+
emptyText: l ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
|
|
144
143
|
},
|
|
145
144
|
pagination: { pageSize: 20 },
|
|
146
145
|
scroll: { x: 1e3 }
|
|
@@ -152,32 +151,28 @@ function U() {
|
|
|
152
151
|
}
|
|
153
152
|
export {
|
|
154
153
|
N as AgentTeamIM,
|
|
155
|
-
|
|
154
|
+
k as AppLayout,
|
|
156
155
|
F as CurlImportModal,
|
|
157
|
-
|
|
156
|
+
dt as DebugPlayground,
|
|
158
157
|
J as EndpointsTab,
|
|
159
158
|
Q as EnvironmentsTab,
|
|
160
159
|
v as ErrorBoundary,
|
|
161
160
|
H as LoginPage,
|
|
162
|
-
X as
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
ae as Overview,
|
|
170
|
-
oe as RecordingsTab,
|
|
171
|
-
re as RequestLogsTab,
|
|
172
|
-
ie as ScenariosTab,
|
|
161
|
+
X as MockPlatform,
|
|
162
|
+
Y as MockTemplateHelper,
|
|
163
|
+
Z as OpenApiImportModal,
|
|
164
|
+
$ as Overview,
|
|
165
|
+
tt as RecordingsTab,
|
|
166
|
+
et as RequestLogsTab,
|
|
167
|
+
at as ScenariosTab,
|
|
173
168
|
K as StatusTag,
|
|
174
|
-
|
|
169
|
+
rt as TestCasesTab,
|
|
175
170
|
U as Webide,
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
y as authRequest,
|
|
172
|
+
ot as createRequest,
|
|
178
173
|
G as ctcRequest,
|
|
179
|
-
|
|
174
|
+
nt as default,
|
|
180
175
|
_ as defaultStatusMap,
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
it as request,
|
|
177
|
+
lt as setupInterceptors
|
|
183
178
|
};
|