@yuku123/z-team-component 0.2.135 → 0.2.137
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/{AdminModuleContent-DHCn4OpR.js → AdminModuleContent-B1YxyaNI.js} +6202 -6211
- package/dist/{ChangeLogView-Cc5cYmcz.js → ChangeLogView-BKQfeeag.js} +1 -1
- package/dist/{ComponentDoc-BAUII4UZ.js → ComponentDoc-DHTIWtcE.js} +994 -1006
- package/dist/{InvitationManagementPage-BgY1jxQB.js → InvitationManagementPage-DgVqNUvK.js} +63 -73
- package/dist/{OnboardingPage-CckzpaI0.js → OnboardingPage-DiBVtw23.js} +2 -2
- package/dist/{ScheduledTasks-DZSEnuIF.js → ScheduledTasks-DuR4sg4k.js} +6 -6
- package/dist/{SystemShell-DCRIL4Rh.js → SystemShell-DoMowhBn.js} +265 -262
- package/dist/{admin-logs-DEawvNOd.js → admin-logs-BZasxvF5.js} +1 -1
- package/dist/{api-B-nnjGsa.js → api-BhdcdwWj.js} +1 -1
- package/dist/{api--xHkMnrY.js → api-CELjpxxS.js} +1 -1
- package/dist/{createWorkspaceWsHandler-y6pRWLoa.js → createWorkspaceWsHandler-SY-wVjjh.js} +3 -3
- package/dist/{index-CMLlvrEW.js → index-B0xiWAhM.js} +3688 -3664
- package/dist/{index-LnUf9Vil.js → index-B2iHgJnx.js} +6 -6
- package/dist/{index-BIffImVM.js → index-B3K7b3Bf.js} +146 -146
- package/dist/{index-DxXcTAH4.js → index-B6Nj2_Zo.js} +1 -1
- package/dist/{index-C7ng_cdZ.js → index-BB7G9ZN4.js} +1 -1
- package/dist/{index-C09THX8u.js → index-BDZOz1cm.js} +2 -2
- package/dist/{index-DtgTLML8.js → index-BHBuOhK5.js} +3 -3
- package/dist/{index-XWWknPNw.js → index-Btpel9AF.js} +2 -2
- package/dist/{index-Do3pyigD.js → index-Bwe4EN63.js} +1 -1
- package/dist/{index-DePIQVt9.js → index-CV3kkXgP.js} +3 -3
- package/dist/{index-COn912sj.js → index-C_OjaGAs.js} +3 -3
- package/dist/{index-4R_QcR8P.js → index-Cd3a7nol.js} +2 -2
- package/dist/{index-C4cx5Qxu.js → index-CtFdsOsR.js} +2 -2
- package/dist/{index-H7hP7Fmj.js → index-Cxvua23F.js} +2 -2
- package/dist/{index-DlBN-ou4.js → index-D3YkA5j4.js} +5 -5
- package/dist/{index-B2ztJXV3.js → index-D9NoVz2x.js} +2 -2
- package/dist/{index-frmk-zNf.js → index-DOdAlZfA.js} +5 -5
- package/dist/{index-C9LqX4Lg.js → index-DSH-wcoD.js} +1 -1
- package/dist/{index-CcHrWE4P.js → index-DkF5EnSi.js} +2 -2
- package/dist/{index-ztXjGIJk.js → index-DlxfYOdw.js} +1 -1
- package/dist/{index-BDUHHaoY.js → index-DpiQW5SO.js} +130 -128
- package/dist/index-DrDFy5jN.js +139 -0
- package/dist/{index-DWrEAa8-.js → index-NfGgVmob.js} +507 -509
- package/dist/{index-CzS_q6Tn.js → index-X-n1B8fi.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-DL4u5k9c.js → instance-BOFjc82M.js} +1 -1
- package/dist/{menuPermission-CA_atlfk.js → menuPermission-Dfwf-EJP.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BfBVm9AO.js → send-default-agent-team-message-CvPaOp3a.js} +1 -1
- package/dist/{sso-user-Dr8_-Sxd.js → sso-user-CAWQupk5.js} +1 -1
- package/dist/{training-CcGUA5KC.js → training-BYjqU8sn.js} +1 -1
- package/dist/{webide-C2JfQ-Je.js → webide-CDZpzRfx.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/index-Cxoup7V8.js +0 -139
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
2
|
-
import { useState as o, useEffect as
|
|
3
|
-
import { Form as m, message as l, Button as d, Input as B, Row as
|
|
4
|
-
import { PlusOutlined as
|
|
5
|
-
import { l as
|
|
6
|
-
import { PageHeader as
|
|
7
|
-
const { Text: c } =
|
|
8
|
-
const [C] = m.useForm(), [M, P] = o(!1), [y,
|
|
9
|
-
|
|
2
|
+
import { useState as o, useEffect as le } from "react";
|
|
3
|
+
import { Form as m, message as l, Button as d, Input as B, Row as oe, Col as z, Card as v, Statistic as T, Alert as O, Space as p, Typography as ae, Tabs as se, Popconfirm as F, Tag as h, Tooltip as de, Modal as ce, Radio as S, Select as w, InputNumber as he } from "antd";
|
|
4
|
+
import { PlusOutlined as ue, ClockCircleOutlined as _, CheckCircleOutlined as $, LinkOutlined as U, CopyOutlined as b, QrcodeOutlined as D, UserDeleteOutlined as me, TeamOutlined as pe, MailOutlined as K, UserAddOutlined as j, CloseCircleOutlined as q } from "@ant-design/icons";
|
|
5
|
+
import { l as ye, b as fe, g as ge, c as ve, d as we, e as be, f as Ce } from "./api-CELjpxxS.js";
|
|
6
|
+
import { PageHeader as xe, TableToolbar as Ie, ListTable as N } from "@yuku123/z-frontend-common/ui";
|
|
7
|
+
const { Text: c } = ae, De = () => {
|
|
8
|
+
const [C] = m.useForm(), [M, P] = o(!1), [y, W] = o([]), [L, G] = o([]), [H, J] = o(null), [u, Q] = o(""), [V, x] = o(!1), [X, R] = o(!1), [a, E] = o(null), [r, Y] = o(localStorage.getItem("userInfo") && JSON.parse(localStorage.getItem("userInfo") || "{}").tenantCode || "");
|
|
9
|
+
le(() => {
|
|
10
10
|
r && f();
|
|
11
11
|
}, [r]);
|
|
12
12
|
const f = async () => {
|
|
@@ -17,25 +17,25 @@ const { Text: c } = se, Me = () => {
|
|
|
17
17
|
P(!0);
|
|
18
18
|
try {
|
|
19
19
|
const [t, n, s] = await Promise.all([
|
|
20
|
+
ye(r).catch(() => []),
|
|
20
21
|
fe(r).catch(() => []),
|
|
21
|
-
ge(
|
|
22
|
-
ve().catch(() => null)
|
|
22
|
+
ge().catch(() => null)
|
|
23
23
|
]);
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
const k = (s.memberships || []).find((
|
|
27
|
-
|
|
24
|
+
if (W(t || []), G(n || []), s) {
|
|
25
|
+
J(s.userId);
|
|
26
|
+
const k = (s.memberships || []).find((re) => re.tenantCode === r);
|
|
27
|
+
Q((k == null ? void 0 : k.roleCode) || "");
|
|
28
28
|
}
|
|
29
29
|
} catch (t) {
|
|
30
30
|
l.error("加载失败: " + ((t == null ? void 0 : t.message) || t));
|
|
31
31
|
} finally {
|
|
32
32
|
P(!1);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, Z = async () => {
|
|
35
35
|
try {
|
|
36
36
|
const t = await C.validateFields();
|
|
37
37
|
R(!0);
|
|
38
|
-
const n = await
|
|
38
|
+
const n = await Ce({
|
|
39
39
|
tenantCode: r,
|
|
40
40
|
inviteeEmail: t.inviteeEmail,
|
|
41
41
|
roleCode: t.roleCode,
|
|
@@ -49,31 +49,31 @@ const { Text: c } = se, Me = () => {
|
|
|
49
49
|
} finally {
|
|
50
50
|
R(!1);
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, ee = async (t) => {
|
|
53
53
|
try {
|
|
54
|
-
await
|
|
54
|
+
await be(t, r), l.success("已撤销"), f();
|
|
55
55
|
} catch (n) {
|
|
56
56
|
l.error("撤销失败: " + ((n == null ? void 0 : n.message) || n));
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, te = async (t, n) => {
|
|
59
59
|
try {
|
|
60
|
-
await
|
|
60
|
+
await we(t, r), l.success(`已移除成员 ${n}`), f();
|
|
61
61
|
} catch (s) {
|
|
62
62
|
l.error("移除失败: " + ((s == null ? void 0 : s.message) || s));
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, ne = async () => {
|
|
65
65
|
try {
|
|
66
|
-
await
|
|
66
|
+
await ve(r), l.success("已退出该租户"), window.location.href = "/onboarding";
|
|
67
67
|
} catch (t) {
|
|
68
68
|
l.error("退出失败: " + ((t == null ? void 0 : t.message) || t));
|
|
69
69
|
}
|
|
70
70
|
}, g = (t, n = "已复制") => {
|
|
71
71
|
navigator.clipboard.writeText(t), l.success(n);
|
|
72
|
-
},
|
|
72
|
+
}, ie = {
|
|
73
73
|
0: { color: "processing", text: "待接受", icon: /* @__PURE__ */ e(_, {}) },
|
|
74
74
|
1: { color: "success", text: "已接受", icon: /* @__PURE__ */ e($, {}) },
|
|
75
|
-
2: { color: "default", text: "已撤销", icon: /* @__PURE__ */ e(
|
|
76
|
-
3: { color: "error", text: "已过期", icon: /* @__PURE__ */ e(
|
|
75
|
+
2: { color: "default", text: "已撤销", icon: /* @__PURE__ */ e(q, {}) },
|
|
76
|
+
3: { color: "error", text: "已过期", icon: /* @__PURE__ */ e(q, {}) }
|
|
77
77
|
}, I = {
|
|
78
78
|
total: y.length,
|
|
79
79
|
pending: y.filter((t) => t.status === 0).length,
|
|
@@ -81,33 +81,33 @@ const { Text: c } = se, Me = () => {
|
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ i("div", { children: [
|
|
83
83
|
/* @__PURE__ */ e(
|
|
84
|
-
|
|
84
|
+
xe,
|
|
85
85
|
{
|
|
86
86
|
title: "邀请管理",
|
|
87
87
|
subtitle: `租户: ${r}`
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
Ie,
|
|
92
92
|
{
|
|
93
93
|
left: /* @__PURE__ */ e(
|
|
94
94
|
B,
|
|
95
95
|
{
|
|
96
96
|
placeholder: "租户编码",
|
|
97
97
|
value: r,
|
|
98
|
-
onChange: (t) =>
|
|
98
|
+
onChange: (t) => Y(t.target.value),
|
|
99
99
|
onPressEnter: f,
|
|
100
100
|
style: { width: 200 }
|
|
101
101
|
}
|
|
102
102
|
),
|
|
103
|
-
right: /* @__PURE__ */ e(d, { type: "primary", icon: /* @__PURE__ */ e(
|
|
103
|
+
right: /* @__PURE__ */ e(d, { type: "primary", icon: /* @__PURE__ */ e(ue, {}), onClick: () => x(!0), children: "创建邀请" }),
|
|
104
104
|
extra: null
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
|
-
/* @__PURE__ */ i(
|
|
108
|
-
/* @__PURE__ */ e(z, { span: 8, children: /* @__PURE__ */ e(v, { size: "small", children: /* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ i(oe, { gutter: 16, style: { marginBottom: 16 }, children: [
|
|
108
|
+
/* @__PURE__ */ e(z, { span: 8, children: /* @__PURE__ */ e(v, { size: "small", children: /* @__PURE__ */ e(T, { title: "总邀请数", value: I.total }) }) }),
|
|
109
109
|
/* @__PURE__ */ e(z, { span: 8, children: /* @__PURE__ */ e(v, { size: "small", children: /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
T,
|
|
111
111
|
{
|
|
112
112
|
title: "待接受",
|
|
113
113
|
value: I.pending,
|
|
@@ -116,7 +116,7 @@ const { Text: c } = se, Me = () => {
|
|
|
116
116
|
}
|
|
117
117
|
) }) }),
|
|
118
118
|
/* @__PURE__ */ e(z, { span: 8, children: /* @__PURE__ */ e(v, { size: "small", children: /* @__PURE__ */ e(
|
|
119
|
-
|
|
119
|
+
T,
|
|
120
120
|
{
|
|
121
121
|
title: "已接受",
|
|
122
122
|
value: I.accepted,
|
|
@@ -126,7 +126,7 @@ const { Text: c } = se, Me = () => {
|
|
|
126
126
|
) }) })
|
|
127
127
|
] }),
|
|
128
128
|
a && /* @__PURE__ */ e(
|
|
129
|
-
|
|
129
|
+
O,
|
|
130
130
|
{
|
|
131
131
|
type: "success",
|
|
132
132
|
showIcon: !0,
|
|
@@ -134,7 +134,7 @@ const { Text: c } = se, Me = () => {
|
|
|
134
134
|
message: "邀请创建成功!",
|
|
135
135
|
description: /* @__PURE__ */ i(p, { orientation: "vertical", style: { width: "100%" }, children: [
|
|
136
136
|
a.inviteUrl && /* @__PURE__ */ i(p, { children: [
|
|
137
|
-
/* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e(U, {}),
|
|
138
138
|
/* @__PURE__ */ e("code", { style: { background: "#f0f0f0", padding: "2px 6px", borderRadius: 3 }, children: a.inviteUrl }),
|
|
139
139
|
/* @__PURE__ */ e(
|
|
140
140
|
d,
|
|
@@ -147,7 +147,7 @@ const { Text: c } = se, Me = () => {
|
|
|
147
147
|
)
|
|
148
148
|
] }),
|
|
149
149
|
a.inviteCode && /* @__PURE__ */ i(p, { children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
150
|
+
/* @__PURE__ */ e(D, {}),
|
|
151
151
|
/* @__PURE__ */ e("code", { style: {
|
|
152
152
|
background: "#f0f0f0",
|
|
153
153
|
padding: "4px 12px",
|
|
@@ -176,7 +176,7 @@ const { Text: c } = se, Me = () => {
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
/* @__PURE__ */ e(v, { size: "small", styles: { body: { paddingTop: 8 } }, children: /* @__PURE__ */ e(
|
|
179
|
-
|
|
179
|
+
se,
|
|
180
180
|
{
|
|
181
181
|
size: "small",
|
|
182
182
|
defaultActiveKey: "members",
|
|
@@ -191,7 +191,7 @@ const { Text: c } = se, Me = () => {
|
|
|
191
191
|
] }),
|
|
192
192
|
children: /* @__PURE__ */ i(A, { children: [
|
|
193
193
|
u && u !== "owner" && /* @__PURE__ */ e(
|
|
194
|
-
|
|
194
|
+
O,
|
|
195
195
|
{
|
|
196
196
|
type: "warning",
|
|
197
197
|
showIcon: !0,
|
|
@@ -202,14 +202,14 @@ const { Text: c } = se, Me = () => {
|
|
|
202
202
|
{
|
|
203
203
|
title: "确认退出该租户?",
|
|
204
204
|
description: "退出后将回到游离态, 可重新加入或创建新租户",
|
|
205
|
-
onConfirm:
|
|
206
|
-
children: /* @__PURE__ */ e(d, { size: "small", danger: !0, icon: /* @__PURE__ */ e(
|
|
205
|
+
onConfirm: ne,
|
|
206
|
+
children: /* @__PURE__ */ e(d, { size: "small", danger: !0, icon: /* @__PURE__ */ e(me, {}), children: "退出租户" })
|
|
207
207
|
}
|
|
208
208
|
)
|
|
209
209
|
}
|
|
210
210
|
),
|
|
211
211
|
/* @__PURE__ */ e(
|
|
212
|
-
|
|
212
|
+
N,
|
|
213
213
|
{
|
|
214
214
|
rows: L,
|
|
215
215
|
rowKey: "id",
|
|
@@ -271,7 +271,7 @@ const { Text: c } = se, Me = () => {
|
|
|
271
271
|
type: "secondary",
|
|
272
272
|
children: "owner"
|
|
273
273
|
}
|
|
274
|
-
) : n.userId ===
|
|
274
|
+
) : n.userId === H ? /* @__PURE__ */ e(c, { type: "secondary", children: "自己" }) : u === "admin" && n.roleCode === "admin" ? /* @__PURE__ */ e(
|
|
275
275
|
c,
|
|
276
276
|
{
|
|
277
277
|
type: "secondary",
|
|
@@ -282,17 +282,8 @@ const { Text: c } = se, Me = () => {
|
|
|
282
282
|
{
|
|
283
283
|
title: "确认移除该成员?",
|
|
284
284
|
description: "移除后该用户将回游离态, 可重新接受邀请加入",
|
|
285
|
-
onConfirm: () =>
|
|
286
|
-
children: /* @__PURE__ */ e(
|
|
287
|
-
d,
|
|
288
|
-
{
|
|
289
|
-
size: "small",
|
|
290
|
-
type: "text",
|
|
291
|
-
danger: !0,
|
|
292
|
-
icon: /* @__PURE__ */ e(K, {}),
|
|
293
|
-
children: "移除"
|
|
294
|
-
}
|
|
295
|
-
)
|
|
285
|
+
onConfirm: () => te(n.id, `userId=${n.userId}`),
|
|
286
|
+
children: /* @__PURE__ */ e(d, { size: "small", type: "link", danger: !0, children: "移除" })
|
|
296
287
|
}
|
|
297
288
|
)
|
|
298
289
|
}
|
|
@@ -304,14 +295,14 @@ const { Text: c } = se, Me = () => {
|
|
|
304
295
|
{
|
|
305
296
|
key: "invitations",
|
|
306
297
|
label: /* @__PURE__ */ i("span", { children: [
|
|
307
|
-
/* @__PURE__ */ e(
|
|
298
|
+
/* @__PURE__ */ e(j, {}),
|
|
308
299
|
" 邀请记录 (",
|
|
309
300
|
y.length,
|
|
310
301
|
")"
|
|
311
302
|
] }),
|
|
312
303
|
// 邀请记录 —— 走基座 ListTable:标准分页 + 端侧过滤 + EmptyState。
|
|
313
304
|
children: /* @__PURE__ */ e(
|
|
314
|
-
|
|
305
|
+
N,
|
|
315
306
|
{
|
|
316
307
|
rows: y,
|
|
317
308
|
rowKey: "id",
|
|
@@ -327,7 +318,7 @@ const { Text: c } = se, Me = () => {
|
|
|
327
318
|
title: "类型",
|
|
328
319
|
dataIndex: "type",
|
|
329
320
|
width: 80,
|
|
330
|
-
render: (t, n) => n.token ? /* @__PURE__ */ e(h, { color: "blue", icon: /* @__PURE__ */ e(
|
|
321
|
+
render: (t, n) => n.token ? /* @__PURE__ */ e(h, { color: "blue", icon: /* @__PURE__ */ e(U, {}), children: "链接" }) : n.inviteCode ? /* @__PURE__ */ e(h, { color: "purple", icon: /* @__PURE__ */ e(D, {}), children: "码" }) : "-"
|
|
331
322
|
},
|
|
332
323
|
{
|
|
333
324
|
title: "内容",
|
|
@@ -373,7 +364,7 @@ const { Text: c } = se, Me = () => {
|
|
|
373
364
|
{
|
|
374
365
|
title: "被邀请人",
|
|
375
366
|
render: (t, n) => n.inviteeEmail ? /* @__PURE__ */ i(p, { size: 4, children: [
|
|
376
|
-
/* @__PURE__ */ e(
|
|
367
|
+
/* @__PURE__ */ e(K, {}),
|
|
377
368
|
" ",
|
|
378
369
|
n.inviteeEmail
|
|
379
370
|
] }) : n.inviteePhone || /* @__PURE__ */ e(c, { type: "secondary", children: "不限 (公开码)" })
|
|
@@ -393,7 +384,7 @@ const { Text: c } = se, Me = () => {
|
|
|
393
384
|
{
|
|
394
385
|
title: "使用情况",
|
|
395
386
|
width: 100,
|
|
396
|
-
render: (t, n) => /* @__PURE__ */ e(
|
|
387
|
+
render: (t, n) => /* @__PURE__ */ e(de, { title: `最多 ${n.maxUses || 1} 次`, children: /* @__PURE__ */ i(h, { children: [
|
|
397
388
|
n.usedCount || 0,
|
|
398
389
|
" / ",
|
|
399
390
|
n.maxUses || 1
|
|
@@ -404,7 +395,7 @@ const { Text: c } = se, Me = () => {
|
|
|
404
395
|
dataIndex: "status",
|
|
405
396
|
width: 90,
|
|
406
397
|
render: (t) => {
|
|
407
|
-
const n =
|
|
398
|
+
const n = ie[t] || { color: "default", text: "?" };
|
|
408
399
|
return /* @__PURE__ */ e(h, { color: n.color, icon: n.icon, children: n.text });
|
|
409
400
|
}
|
|
410
401
|
},
|
|
@@ -429,10 +420,9 @@ const { Text: c } = se, Me = () => {
|
|
|
429
420
|
d,
|
|
430
421
|
{
|
|
431
422
|
size: "small",
|
|
432
|
-
type: "
|
|
423
|
+
type: "link",
|
|
433
424
|
danger: !0,
|
|
434
|
-
|
|
435
|
-
onClick: () => te(n.id),
|
|
425
|
+
onClick: () => ee(n.id),
|
|
436
426
|
children: "撤销"
|
|
437
427
|
}
|
|
438
428
|
) : /* @__PURE__ */ e(c, { type: "secondary", children: "-" })
|
|
@@ -445,30 +435,30 @@ const { Text: c } = se, Me = () => {
|
|
|
445
435
|
}
|
|
446
436
|
) }),
|
|
447
437
|
/* @__PURE__ */ i(
|
|
448
|
-
|
|
438
|
+
ce,
|
|
449
439
|
{
|
|
450
440
|
title: /* @__PURE__ */ i(A, { children: [
|
|
451
|
-
/* @__PURE__ */ e(
|
|
441
|
+
/* @__PURE__ */ e(j, {}),
|
|
452
442
|
" 创建邀请"
|
|
453
443
|
] }),
|
|
454
|
-
open:
|
|
444
|
+
open: V,
|
|
455
445
|
onCancel: () => x(!1),
|
|
456
|
-
onOk:
|
|
457
|
-
confirmLoading:
|
|
446
|
+
onOk: Z,
|
|
447
|
+
confirmLoading: X,
|
|
458
448
|
okText: "创建",
|
|
459
449
|
children: [
|
|
460
450
|
/* @__PURE__ */ i(m, { form: C, layout: "vertical", initialValues: { type: "link", roleCode: "member", maxUses: 1 }, children: [
|
|
461
451
|
/* @__PURE__ */ e(m.Item, { name: "type", label: "类型", rules: [{ required: !0 }], children: /* @__PURE__ */ i(S.Group, { children: [
|
|
462
452
|
/* @__PURE__ */ i(S.Button, { value: "link", children: [
|
|
463
|
-
/* @__PURE__ */ e(
|
|
453
|
+
/* @__PURE__ */ e(U, {}),
|
|
464
454
|
" 邀请链接"
|
|
465
455
|
] }),
|
|
466
456
|
/* @__PURE__ */ i(S.Button, { value: "code", children: [
|
|
467
|
-
/* @__PURE__ */ e(
|
|
457
|
+
/* @__PURE__ */ e(D, {}),
|
|
468
458
|
" 邀请码"
|
|
469
459
|
] })
|
|
470
460
|
] }) }),
|
|
471
|
-
/* @__PURE__ */ e(m.Item, { name: "inviteeEmail", label: "被邀请人邮箱 (可选, 链接模式可指定)", children: /* @__PURE__ */ e(B, { prefix: /* @__PURE__ */ e(
|
|
461
|
+
/* @__PURE__ */ e(m.Item, { name: "inviteeEmail", label: "被邀请人邮箱 (可选, 链接模式可指定)", children: /* @__PURE__ */ e(B, { prefix: /* @__PURE__ */ e(K, {}), placeholder: "留空则任何人都可用 (码模式)" }) }),
|
|
472
462
|
/* @__PURE__ */ e(m.Item, { name: "roleCode", label: "加入后角色", rules: [{ required: !0 }], children: /* @__PURE__ */ i(w, { children: [
|
|
473
463
|
/* @__PURE__ */ e(w.Option, { value: "owner", children: "owner (完全管理)" }),
|
|
474
464
|
/* @__PURE__ */ e(w.Option, { value: "admin", children: "admin (管理员)" }),
|
|
@@ -480,16 +470,16 @@ const { Text: c } = se, Me = () => {
|
|
|
480
470
|
name: "maxUses",
|
|
481
471
|
label: "最大使用次数",
|
|
482
472
|
extra: "码模式可 > 1 (批量邀请), 链接模式固定 1",
|
|
483
|
-
children: /* @__PURE__ */ e(
|
|
473
|
+
children: /* @__PURE__ */ e(he, { min: 1, max: 100, style: { width: "100%" } })
|
|
484
474
|
}
|
|
485
475
|
)
|
|
486
476
|
] }),
|
|
487
|
-
/* @__PURE__ */ e(
|
|
477
|
+
/* @__PURE__ */ e(O, { type: "info", showIcon: !0, title: "链接模式 7 天过期, 码模式同 7 天" })
|
|
488
478
|
]
|
|
489
479
|
}
|
|
490
480
|
)
|
|
491
481
|
] });
|
|
492
482
|
};
|
|
493
483
|
export {
|
|
494
|
-
|
|
484
|
+
De as default
|
|
495
485
|
};
|
|
@@ -3,8 +3,8 @@ import { useState as a, useMemo as oe, useEffect as W } from "react";
|
|
|
3
3
|
import { useNavigate as le, useSearchParams as se } from "react-router-dom";
|
|
4
4
|
import { Form as c, message as o, Spin as ce, Typography as de, Card as d, Tag as x, Empty as me, Row as he, Col as fe, Space as S, Avatar as ge, Pagination as pe, Button as T, Result as ue, Modal as E, Input as k, Alert as U } from "antd";
|
|
5
5
|
import { RocketOutlined as q, ApartmentOutlined as ye, CheckCircleOutlined as Ce, PlusOutlined as z, KeyOutlined as m, GiftOutlined as ve, HomeOutlined as we, CrownOutlined as be } from "@ant-design/icons";
|
|
6
|
-
import { g as xe, a as Se, s as Te, r as ke } from "./api
|
|
7
|
-
import { d as ze } from "./ComponentDoc-
|
|
6
|
+
import { g as xe, a as Se, s as Te, r as ke } from "./api-CELjpxxS.js";
|
|
7
|
+
import { d as ze } from "./ComponentDoc-DHTIWtcE.js";
|
|
8
8
|
const { Title: u, Text: O, Paragraph: Oe } = de, y = 12, Me = () => {
|
|
9
9
|
const L = le(), [H] = se(), [_, I] = a(!0), [i, $] = a(null), [l, G] = a([]), [A, F] = a(0), [h, B] = a(""), [C, K] = a(1), X = oe(() => {
|
|
10
10
|
const e = (C - 1) * y;
|
|
@@ -4,21 +4,21 @@ import { useState as o, useRef as fe, useMemo as xe, useEffect as ne, useCallbac
|
|
|
4
4
|
import Dn from "react-markdown";
|
|
5
5
|
import ss from "rehype-highlight";
|
|
6
6
|
import Mn from "remark-gfm";
|
|
7
|
-
import { a as ls, f as is, B as os, b as rs, u as ct, ab as Sl, ac as cs, n as Ct, ad as Tl, t as ds, ae as Il, af as xl, ag as Bl, w as Wn, y as _a, v as Ll, x as Al, z as Rl, ah as $l, ai as Dl, T as Ml, aj as El, q as Pl, ak as Hl, al as Ol } from "./ComponentDoc-
|
|
8
|
-
import { Y as us, d as jl, Z as Vn, _ as Fl, $ as Gl, a0 as ql, r as Ul, a1 as zl, a2 as Wl, a3 as ms, a4 as hs, a5 as Vl, a6 as Kl, a7 as ps, a8 as _s, a9 as fs, aa as gs, ab as ys, ac as Jl, ad as Yl, ae as bs, af as fa, ag as vs, ah as Ql, F as ga, R as ra, L as ya, P as Xl, D as Zl, ai as ks, aj as ei, ak as ti, al as ba, am as Bn, an as Ns, e as Cs, ao as ni, ap as ai, aq as si, ar as li, as as Yt } from "./index-
|
|
9
|
-
import { u as Rn, c as ca, i as ws, T as ii, t as oi, s as ri, v as ci, w as di, x as Ss, y as ui } from "./createWorkspaceWsHandler-
|
|
7
|
+
import { a as ls, f as is, B as os, b as rs, u as ct, ab as Sl, ac as cs, n as Ct, ad as Tl, t as ds, ae as Il, af as xl, ag as Bl, w as Wn, y as _a, v as Ll, x as Al, z as Rl, ah as $l, ai as Dl, T as Ml, aj as El, q as Pl, ak as Hl, al as Ol } from "./ComponentDoc-DHTIWtcE.js";
|
|
8
|
+
import { Y as us, d as jl, Z as Vn, _ as Fl, $ as Gl, a0 as ql, r as Ul, a1 as zl, a2 as Wl, a3 as ms, a4 as hs, a5 as Vl, a6 as Kl, a7 as ps, a8 as _s, a9 as fs, aa as gs, ab as ys, ac as Jl, ad as Yl, ae as bs, af as fa, ag as vs, ah as Ql, F as ga, R as ra, L as ya, P as Xl, D as Zl, ai as ks, aj as ei, ak as ti, al as ba, am as Bn, an as Ns, e as Cs, ao as ni, ap as ai, aq as si, ar as li, as as Yt } from "./index-B0xiWAhM.js";
|
|
9
|
+
import { u as Rn, c as ca, i as ws, T as ii, t as oi, s as ri, v as ci, w as di, x as Ss, y as ui } from "./createWorkspaceWsHandler-SY-wVjjh.js";
|
|
10
10
|
import { message as ke, Spin as Rt, Input as Ae, Switch as pn, Select as Gt, InputNumber as mi, Tabs as hi, Card as pi, Tag as ue, Table as _i, DatePicker as fi, Segmented as gi, Empty as pt, Modal as Pt, Button as K, Space as Qe, Typography as yi, Radio as Ht, Row as Lt, Col as et, List as va, Statistic as bi, Tooltip as da, Form as _n, Progress as rn } from "antd";
|
|
11
|
-
import { f as vi, u as ki, a as Ni, b as Ci, s as wi } from "./webide-
|
|
11
|
+
import { f as vi, u as ki, a as Ni, b as Ci, s as wi } from "./webide-CDZpzRfx.js";
|
|
12
12
|
import nn from "dayjs";
|
|
13
13
|
import * as $n from "echarts/core";
|
|
14
14
|
import { BarChart as Si, LineChart as Ti, PieChart as Ii } from "echarts/charts";
|
|
15
15
|
import { GridComponent as xi, LegendComponent as Bi, TitleComponent as Li, TooltipComponent as Ai } from "echarts/components";
|
|
16
16
|
import { CanvasRenderer as Ri } from "echarts/renderers";
|
|
17
|
-
import { a as $i } from "./instance-
|
|
17
|
+
import { a as $i } from "./instance-BOFjc82M.js";
|
|
18
18
|
import { diffLines as Di } from "diff";
|
|
19
19
|
import Mi, { DiffMethod as Ei } from "react-diff-viewer-continued";
|
|
20
20
|
import { format as Pi } from "sql-formatter";
|
|
21
|
-
import { V as Ts, W as Hi, k as Oi, h as ji, X as Is, Y as Fi, Z as Gi, _ as ka, $ as qi, a0 as Ui, a1 as xs, a2 as zi, a3 as Wi, a4 as Vi, a5 as Ki, a6 as Ji, a7 as Yi } from "./training-
|
|
21
|
+
import { V as Ts, W as Hi, k as Oi, h as ji, X as Is, Y as Fi, Z as Gi, _ as ka, $ as qi, a0 as Ui, a1 as xs, a2 as zi, a3 as Wi, a4 as Vi, a5 as Ki, a6 as Ji, a7 as Yi } from "./training-BYjqU8sn.js";
|
|
22
22
|
async function Qi(t = {}, s = "") {
|
|
23
23
|
const a = new URLSearchParams();
|
|
24
24
|
t.keyword && a.set("keyword", t.keyword), t.category && a.set("category", t.category), t.status !== void 0 && a.set("status", String(t.status)), s && a.set("token", s);
|