@yuku123/z-team-component 0.2.8 → 0.2.10
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-BJeNjZwz.js} +2 -2
- package/dist/{OnboardingPage-Bi3S5eug.js → OnboardingPage-C4IKDR7H.js} +2 -2
- package/dist/ProjectApp-BzwYOzVU.js +5417 -0
- package/dist/admin-logs-D9_Q7x5S.js +199 -0
- package/dist/{api-3Ur1kq2A.js → api-DxGj2k96.js} +653 -549
- package/dist/api-fqyi5hV8.js +19 -0
- package/dist/{createWorkspaceWsHandler-CSAGqlPX.js → createWorkspaceWsHandler-CO8CErPb.js} +72 -72
- package/dist/{ctc-sso-C-QWy9F8.js → ctc-sso-B62FfkZg.js} +1 -0
- package/dist/{index-D3DF6vFc.js → index-8xyTb9mH.js} +5 -5
- package/dist/{index-CsCPAoPb.js → index-BPEHmsyH.js} +29 -29
- package/dist/{index-wXqXyXmm.js → index-BRc2oNNo.js} +3 -3
- package/dist/{index-C8uSn9eX.js → index-C2WxsJfi.js} +2 -2
- package/dist/{index-CPUeMpa8.js → index-CAyKJ_Kb.js} +5 -5
- package/dist/{index-Cml0C09P.js → index-CoEkAZu6.js} +5162 -5038
- package/dist/{index-DMEjkEMq.js → index-CqUVCMOn.js} +4 -4
- package/dist/{index-C6SfK489.js → index-DLRNcbNN.js} +7 -7
- package/dist/{index-BIVN--Bi.js → index-DTRpN0nk.js} +1 -1
- package/dist/{index-DNyYOedu.js → index-bUfp5OSs.js} +58 -63
- package/dist/index-o_J49wn9.js +17014 -0
- package/dist/index.js +1 -1
- package/dist/{instance-ClduEMxs.js → instance-BnjcRI0U.js} +2 -2
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-B3Qon0X2.js → send-default-agent-team-message-4hgjqdo4.js} +1 -1
- package/dist/{sso-user-BOEGMUJA.js → sso-user-D1N_OzF2.js} +1 -1
- package/dist/{useAppStore-D8PnbXea.js → useAppStore-Cq9uSFGy.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,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-D1N_OzF2.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-DxGj2k96.js";
|
|
11
|
+
import { u as m } from "./useAppStore-Cq9uSFGy.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
function ne() {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as ie, r as $ } from "./ctc-sso-
|
|
3
|
-
import { r as le, h as K, s as J } from "./sso-user-
|
|
2
|
+
import { f as ie, r as $ } from "./ctc-sso-B62FfkZg.js";
|
|
3
|
+
import { r as le, h as K, s as J } from "./sso-user-D1N_OzF2.js";
|
|
4
4
|
import { ArrowLeftOutlined as de, PlusOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
5
|
import { Spin as q, Button as D, Input as he, Empty as X, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
7
|
import { useEffect as N, useState as y, useMemo as Y, useRef as M, useCallback as G } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as ke, C as we } from "./createWorkspaceWsHandler-
|
|
11
|
-
import { u as r, f as Se, T as ve } from "./useAppStore-
|
|
12
|
-
import { o as ye, n as Ne, q as je, r as Ce, h as ee } from "./api-
|
|
13
|
-
import { l as Pe, j as Te } from "./instance-
|
|
10
|
+
import { c as ke, C as we } from "./createWorkspaceWsHandler-CO8CErPb.js";
|
|
11
|
+
import { u as r, f as Se, T as ve } from "./useAppStore-Cq9uSFGy.js";
|
|
12
|
+
import { o as ye, n as Ne, q as je, r as Ce, h as ee } from "./api-DxGj2k96.js";
|
|
13
|
+
import { l as Pe, j as Te } from "./instance-BnjcRI0U.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as xe } from "./admin-logs-
|
|
15
|
+
import { s as xe } from "./admin-logs-D9_Q7x5S.js";
|
|
16
16
|
function Ie(p, d) {
|
|
17
17
|
N(() => {
|
|
18
18
|
if (p == null)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { k as be, l as X, m as he } from "./api-
|
|
2
|
+
import { k as be, l as X, m as he } from "./api-DxGj2k96.js";
|
|
3
3
|
import { message as Z, Button as _e, DatePicker as pe, Spin as A, Empty as q, Tag as J } from "antd";
|
|
4
4
|
import D from "dayjs";
|
|
5
5
|
import * as ge from "echarts";
|
|
@@ -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-BzwYOzVU.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-BzwYOzVU.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-CoEkAZu6.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
|
};
|