@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-BK7D0ag2.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { c as $, d as j, t as x, p as O, e as v, g as F } from "./ComponentDoc-_6l967G1.js";
|
|
3
|
-
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
|
-
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
|
-
import B from "query-string";
|
|
6
|
-
import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
|
-
import { useLocation as W } from "react-router-dom";
|
|
8
|
-
import { h as w } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-120oH-2S.js";
|
|
10
|
-
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
|
-
function nt() {
|
|
12
|
-
const m = W(), p = B.parse(m.search), o = String(
|
|
13
|
-
p.projectId ?? p.project_id ?? ""
|
|
14
|
-
).trim(), a = String(p.ticketId ?? p.ticket_id ?? "").trim(), e = y(() => {
|
|
15
|
-
if (!o)
|
|
16
|
-
return null;
|
|
17
|
-
const t = x(o);
|
|
18
|
-
return $(t) ? t : null;
|
|
19
|
-
}, [o]), u = j((t) => t.token), T = j((t) => t.expandProject), [h, l] = f(""), [P, n] = f("正在启动…"), [k, C] = f([]), g = q(!1), s = A((t, r) => {
|
|
20
|
-
C((i) => [...i, t]), n(r);
|
|
21
|
-
}, []), I = async (t) => {
|
|
22
|
-
s("协作区已就绪", "正在同步工程列表…"), await T(t), s("工作区已准备", "即将进入工作台…"), w.replace(
|
|
23
|
-
N({
|
|
24
|
-
projectId: t.id,
|
|
25
|
-
search: m.search
|
|
26
|
-
})
|
|
27
|
-
);
|
|
28
|
-
}, d = async (t) => {
|
|
29
|
-
n("正在确认工程信息…");
|
|
30
|
-
const r = await Z(t, u);
|
|
31
|
-
if (r.status === "NOT_FOUND" || !r.scenarioInstance)
|
|
32
|
-
throw new Error("PROJECT_NOT_FOUND");
|
|
33
|
-
n("正在加入协作区…");
|
|
34
|
-
const i = await z(t, u);
|
|
35
|
-
s("已加入协作区", "正在打开协作区…"), await I(i);
|
|
36
|
-
}, E = async () => {
|
|
37
|
-
n("正在检查工单信息…");
|
|
38
|
-
const t = await H(a);
|
|
39
|
-
s("工单信息已获取", "正在解析工程绑定…");
|
|
40
|
-
const r = O(t);
|
|
41
|
-
if (r != null) {
|
|
42
|
-
s("已定位协作区", `正在打开协作区 ${r}…`), await d(r);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
n("正在初始化工程…");
|
|
46
|
-
const i = await v(
|
|
47
|
-
L(t, a),
|
|
48
|
-
u
|
|
49
|
-
);
|
|
50
|
-
n("正在关联工单…");
|
|
51
|
-
try {
|
|
52
|
-
await F(
|
|
53
|
-
a,
|
|
54
|
-
i.id,
|
|
55
|
-
M(t)
|
|
56
|
-
);
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
n("正在初始化工作区…"), await I(i);
|
|
60
|
-
};
|
|
61
|
-
J(() => {
|
|
62
|
-
if (!g.current) {
|
|
63
|
-
if (g.current = !0, o && e == null) {
|
|
64
|
-
l("projectId 无效,请传入正整数");
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (e == null && !a) {
|
|
68
|
-
l("缺少参数:请提供 projectId 和/或 ticketId");
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
if (e != null && !a) {
|
|
72
|
-
(async () => {
|
|
73
|
-
try {
|
|
74
|
-
n(`正在打开协作区 ${e}…`), await d(e);
|
|
75
|
-
} catch (t) {
|
|
76
|
-
const r = t instanceof Error ? t.message : String(t);
|
|
77
|
-
l(r || "打开工程失败");
|
|
78
|
-
}
|
|
79
|
-
})();
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (!a) {
|
|
83
|
-
l("缺少 ticketId");
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
(async () => {
|
|
87
|
-
try {
|
|
88
|
-
if (e != null)
|
|
89
|
-
try {
|
|
90
|
-
n(`正在打开指定协作区 ${e}…`), await d(e);
|
|
91
|
-
return;
|
|
92
|
-
} catch (t) {
|
|
93
|
-
if (!(t instanceof Error && t.message === "PROJECT_NOT_FOUND"))
|
|
94
|
-
throw t;
|
|
95
|
-
n("正在按工单重新查找…");
|
|
96
|
-
}
|
|
97
|
-
await E();
|
|
98
|
-
} catch (t) {
|
|
99
|
-
const r = t instanceof Error ? t.message : String(t);
|
|
100
|
-
l(r || "打开工程失败");
|
|
101
|
-
}
|
|
102
|
-
})();
|
|
103
|
-
}
|
|
104
|
-
}, [s, e, o, a, u]);
|
|
105
|
-
const S = y(() => e != null && a ? `工单 ${a} · 工程 ${e}` : e != null ? `工程 ${e}` : a ? `工单 ${a}` : "", [e, a]);
|
|
106
|
-
return h ? /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ c(
|
|
107
|
-
D,
|
|
108
|
-
{
|
|
109
|
-
status: "error",
|
|
110
|
-
title: "无法打开工程",
|
|
111
|
-
subTitle: h,
|
|
112
|
-
extra: /* @__PURE__ */ c(
|
|
113
|
-
R,
|
|
114
|
-
{
|
|
115
|
-
type: "primary",
|
|
116
|
-
onClick: () => w.replace(
|
|
117
|
-
N({ search: m.search })
|
|
118
|
-
),
|
|
119
|
-
children: "返回工作台"
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
) }) : /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ _("div", { className: "from-ticket-page__panel", children: [
|
|
124
|
-
/* @__PURE__ */ c(U, { size: "large" }),
|
|
125
|
-
/* @__PURE__ */ c("p", { className: "from-ticket-page__step", children: P }),
|
|
126
|
-
S ? /* @__PURE__ */ c("p", { className: "from-ticket-page__hint", children: S }) : null,
|
|
127
|
-
k.length > 0 ? /* @__PURE__ */ c("ul", { className: "from-ticket-page__done-list", children: k.filter((t) => t.trim().length > 0).map((t, r) => /* @__PURE__ */ _(
|
|
128
|
-
"li",
|
|
129
|
-
{
|
|
130
|
-
className: "from-ticket-page__done-item",
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ c(b, { className: "from-ticket-page__done-icon" }),
|
|
133
|
-
/* @__PURE__ */ c("span", { children: t })
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
`${r}-${t}`
|
|
137
|
-
)) }) : null
|
|
138
|
-
] }) });
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
nt as default
|
|
142
|
-
};
|