@yuku123/z-team-component 0.2.101 → 0.2.103
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/package.json +1 -1
- package/dist/ChangeLogView-C5CT7IdD.js +0 -542
- package/dist/ComponentDoc-_6l967G1.js +0 -8035
- package/dist/InvitationManagementPage-aVNAFNfh.js +0 -495
- package/dist/OnboardingPage-eguTk0Fr.js +0 -393
- package/dist/ScheduledTasks-fQkpSLxv.js +0 -12127
- package/dist/SystemShell-CcjFqtAl.js +0 -688
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/admin-logs-3ZODCEOd.js +0 -198
- package/dist/api-Cxg9p973.js +0 -20
- package/dist/browser-jb_PFvU3.js +0 -1538
- package/dist/createWorkspaceWsHandler-DGSUlhxe.js +0 -13142
- package/dist/ctc-sso-DtJHC-2M.js +0 -117
- package/dist/echarts-B1OU1xr4.js +0 -16
- package/dist/history-BlrA1eaW.js +0 -41
- package/dist/index-9pP8ZkkO.js +0 -913
- package/dist/index-BK7D0ag2.js +0 -142
- package/dist/index-BQvWAcy_.js +0 -814
- package/dist/index-BZCQSW-G.js +0 -1222
- package/dist/index-B_LJRFsK.js +0 -339
- package/dist/index-BdAkIs1M.js +0 -42049
- package/dist/index-Bn-5kryj.js +0 -2217
- package/dist/index-BohoJQPr.js +0 -7631
- package/dist/index-Bxeg6bYj.js +0 -315
- package/dist/index-C6Y3uiLo.js +0 -316
- package/dist/index-C815hPWS.js +0 -430
- package/dist/index-CJRhmIZt.js +0 -132
- package/dist/index-CRuyEQHz.js +0 -242
- package/dist/index-CUgTpa_y.js +0 -10132
- package/dist/index-Cl8xxWPn.js +0 -93
- package/dist/index-CuXeGlOh.js +0 -5892
- package/dist/index-Cxecr-Dh.js +0 -8
- package/dist/index-CyXYKCpO.js +0 -178
- package/dist/index-D1xldtWw.js +0 -479
- package/dist/index-DH85SI_i.js +0 -574
- package/dist/index-DJ52X07p.js +0 -1640
- package/dist/index-DLmDAaE2.js +0 -169
- package/dist/index-DTRobC4q.js +0 -956
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-DdeHvY0_.js +0 -112
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DjokMbUK.js +0 -434
- package/dist/index-DyKLLFs9.js +0 -2699
- package/dist/index-J7unHx4K.js +0 -118
- package/dist/index-t0s2Lph_.js +0 -189
- package/dist/index.js +0 -10
- package/dist/index.module-CAa-2T7m.js +0 -72
- package/dist/index.module-UI0iz8K0.js +0 -42
- package/dist/instance-120oH-2S.js +0 -216
- package/dist/menuPermission-qZTza4Oq.js +0 -60
- package/dist/mobile-client-O3yr9h6t.js +0 -24
- package/dist/pages.js +0 -21
- package/dist/send-default-agent-team-message-DrfWKH9j.js +0 -35
- package/dist/spark-md5-Dld54a-T.js +0 -178
- package/dist/sso-user-DXwW5eLV.js +0 -43
- package/dist/training-D3P1cMiu.js +0 -450
- package/dist/webide-D_OZQdjo.js +0 -5233
- package/dist/z-team-component.css +0 -1
package/dist/index-DLmDAaE2.js
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
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-DXwW5eLV.js";
|
|
4
|
-
import { CheckCircleFilled as W } from "@ant-design/icons";
|
|
5
|
-
import { Result as B, Button as H, Spin as G } from "antd";
|
|
6
|
-
import J from "query-string";
|
|
7
|
-
import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
|
|
8
|
-
import { useLocation as Q } from "react-router-dom";
|
|
9
|
-
import { h as b } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { d as s, h as V, j as X } from "./ComponentDoc-_6l967G1.js";
|
|
11
|
-
import { b as Y } from "./mobile-client-O3yr9h6t.js";
|
|
12
|
-
import { s as Z } from "./send-default-agent-team-message-DrfWKH9j.js";
|
|
13
|
-
function ue() {
|
|
14
|
-
const h = Q(), f = J.parse(h.search), c = String(
|
|
15
|
-
f.scenarioCode ?? f.scenario_code ?? ""
|
|
16
|
-
).trim(), a = String(
|
|
17
|
-
f.projectName ?? f.project_name ?? ""
|
|
18
|
-
).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C = K(!1), u = O((e, t) => {
|
|
19
|
-
$((o) => [...o, e]), p(t);
|
|
20
|
-
}, []), n = R(() => c ? a ? "" : "缺少参数 projectName" : "缺少参数 scenarioCode", [a, c]);
|
|
21
|
-
E(() => {
|
|
22
|
-
if (n)
|
|
23
|
-
return;
|
|
24
|
-
let e = !1, t = 0;
|
|
25
|
-
const o = 100;
|
|
26
|
-
let S = !1, P = 0;
|
|
27
|
-
const A = 3;
|
|
28
|
-
return (() => {
|
|
29
|
-
if (e)
|
|
30
|
-
return;
|
|
31
|
-
const v = async () => {
|
|
32
|
-
if (e)
|
|
33
|
-
return;
|
|
34
|
-
let l = D();
|
|
35
|
-
if ((!l || !U(l)) && !S) {
|
|
36
|
-
S = !0;
|
|
37
|
-
try {
|
|
38
|
-
const m = await z();
|
|
39
|
-
m.kind === "authenticated" ? l = m.user : m.kind === "unauthenticated" && (P += 1);
|
|
40
|
-
} catch {
|
|
41
|
-
} finally {
|
|
42
|
-
S = !1;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (l && U(l)) {
|
|
46
|
-
g(F(l));
|
|
47
|
-
const m = s.getState().token;
|
|
48
|
-
try {
|
|
49
|
-
const L = await X(m);
|
|
50
|
-
e || g(L);
|
|
51
|
-
} catch {
|
|
52
|
-
!e && m && (localStorage.removeItem("z_team_token"), s.setState({ token: "" }));
|
|
53
|
-
} finally {
|
|
54
|
-
e || I(!0);
|
|
55
|
-
}
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
if (P >= A) {
|
|
59
|
-
T();
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (t += 1, t >= o) {
|
|
63
|
-
T();
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
window.setTimeout(() => void v(), 150);
|
|
67
|
-
};
|
|
68
|
-
v();
|
|
69
|
-
})(), () => {
|
|
70
|
-
e = !0;
|
|
71
|
-
};
|
|
72
|
-
}, [n, g]);
|
|
73
|
-
const q = (e) => new Promise((t) => {
|
|
74
|
-
window.setTimeout(t, e);
|
|
75
|
-
});
|
|
76
|
-
E(() => {
|
|
77
|
-
if (n) {
|
|
78
|
-
y(n);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
!j || C.current || (C.current = !0, (async () => {
|
|
82
|
-
try {
|
|
83
|
-
const e = s.getState().token;
|
|
84
|
-
p("正在按场景创建工程…");
|
|
85
|
-
const t = await V(
|
|
86
|
-
{
|
|
87
|
-
name: a,
|
|
88
|
-
description: "",
|
|
89
|
-
workspace_path: a,
|
|
90
|
-
scenario_code: c
|
|
91
|
-
},
|
|
92
|
-
e
|
|
93
|
-
);
|
|
94
|
-
u("工程已创建", "正在打开协作区…"), p("正在同步工程列表…"), await _(t);
|
|
95
|
-
const o = s.getState();
|
|
96
|
-
o.currentProject && await o.refreshProjectPanels(
|
|
97
|
-
String(o.currentProject.id),
|
|
98
|
-
o.projectSwitchSeq,
|
|
99
|
-
!1
|
|
100
|
-
), u(
|
|
101
|
-
"协作区已就绪",
|
|
102
|
-
i ? "正在发送协作消息…" : "即将进入工作台…"
|
|
103
|
-
), i && (await Z(
|
|
104
|
-
t.id,
|
|
105
|
-
i,
|
|
106
|
-
e,
|
|
107
|
-
s.getState().members
|
|
108
|
-
), await s.getState().loadMessages(), u("协作消息已发送", "即将进入工作台…")), p("即将进入工作台…"), await q(2e3), b.replace(
|
|
109
|
-
Y({
|
|
110
|
-
projectId: t.id,
|
|
111
|
-
search: h.search
|
|
112
|
-
})
|
|
113
|
-
);
|
|
114
|
-
} catch (e) {
|
|
115
|
-
const t = e instanceof Error ? e.message : String(e);
|
|
116
|
-
y(t || "创建工程失败");
|
|
117
|
-
}
|
|
118
|
-
})());
|
|
119
|
-
}, [
|
|
120
|
-
u,
|
|
121
|
-
j,
|
|
122
|
-
_,
|
|
123
|
-
i,
|
|
124
|
-
h.search,
|
|
125
|
-
n,
|
|
126
|
-
a,
|
|
127
|
-
c
|
|
128
|
-
]);
|
|
129
|
-
const N = R(() => {
|
|
130
|
-
if (n)
|
|
131
|
-
return "";
|
|
132
|
-
const e = [`场景 ${c}`, `工程 ${a}`];
|
|
133
|
-
return i && e.push("含首条协作消息"), e.join(" · ");
|
|
134
|
-
}, [i, n, a, c]);
|
|
135
|
-
return w ? /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ r(
|
|
136
|
-
B,
|
|
137
|
-
{
|
|
138
|
-
status: "error",
|
|
139
|
-
title: "无法创建工程",
|
|
140
|
-
subTitle: w,
|
|
141
|
-
extra: /* @__PURE__ */ r(
|
|
142
|
-
H,
|
|
143
|
-
{
|
|
144
|
-
type: "primary",
|
|
145
|
-
onClick: () => b.replace("/workspace"),
|
|
146
|
-
children: "返回工作台"
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
}
|
|
150
|
-
) }) : /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ x("div", { className: "from-scenario-page__panel", children: [
|
|
151
|
-
/* @__PURE__ */ r(G, { size: "large" }),
|
|
152
|
-
/* @__PURE__ */ r("p", { className: "from-scenario-page__step", children: M }),
|
|
153
|
-
N ? /* @__PURE__ */ r("p", { className: "from-scenario-page__hint", children: N }) : null,
|
|
154
|
-
k.length > 0 ? /* @__PURE__ */ r("ul", { className: "from-scenario-page__done-list", children: k.filter((e) => e.trim().length > 0).map((e, t) => /* @__PURE__ */ x(
|
|
155
|
-
"li",
|
|
156
|
-
{
|
|
157
|
-
className: "from-scenario-page__done-item",
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */ r(W, { className: "from-scenario-page__done-icon" }),
|
|
160
|
-
/* @__PURE__ */ r("span", { children: e })
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
`${t}-${e}`
|
|
164
|
-
)) }) : null
|
|
165
|
-
] }) });
|
|
166
|
-
}
|
|
167
|
-
export {
|
|
168
|
-
ue as default
|
|
169
|
-
};
|