@yuku123/z-team-component 0.2.80 → 0.2.81
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/ChangeLogView-_bRZ55Yi.js +542 -0
- package/dist/ComponentDoc-BWciPDcn.js +3998 -0
- package/dist/InvitationManagementPage-X9t4igh7.js +495 -0
- package/dist/OnboardingPage-D2sVawTW.js +393 -0
- package/dist/ScheduledTasks-CdCX5FlH.js +9407 -0
- package/dist/SystemShell-Bd0UpmAs.js +689 -0
- package/dist/_commonjsHelpers-B52_cu2H.js +26 -0
- package/dist/api-BKjWEmUY.js +20 -0
- package/dist/api-CIhVblfa.js +2155 -0
- package/dist/browser-jb_PFvU3.js +1538 -0
- package/dist/createWorkspaceWsHandler-BWP5S5X3.js +12951 -0
- package/dist/ctc-sso-DtJHC-2M.js +117 -0
- package/dist/echarts-B1OU1xr4.js +16 -0
- package/dist/history-BlrA1eaW.js +41 -0
- package/dist/index-B_LJRFsK.js +339 -0
- package/dist/index-BgIheStI.js +133 -0
- package/dist/index-Bn6u-XqL.js +242 -0
- package/dist/index-BohoJQPr.js +7631 -0
- package/dist/index-BydWNuk5.js +1229 -0
- package/dist/index-C815hPWS.js +430 -0
- package/dist/index-CPXlkVYF.js +118 -0
- package/dist/index-CUVdeb8y.js +638 -0
- package/dist/index-CdsD23Cm.js +914 -0
- package/dist/index-CijskN6t.js +316 -0
- package/dist/index-CkhoaNnF.js +137 -0
- package/dist/index-Cvx6rrxD.js +956 -0
- package/dist/index-Cwr5Slv1.js +480 -0
- package/dist/index-CxFAICql.js +42050 -0
- package/dist/index-D6i_zovv.js +574 -0
- package/dist/index-D8aigFpH.js +9583 -0
- package/dist/index-DK70mOTz.js +143 -0
- package/dist/index-DSoOHdTf.js +178 -0
- package/dist/index-DT80Pwa_.js +5893 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-DZoJnRKu.js +112 -0
- package/dist/index-DhDdFRHC.js +279 -0
- package/dist/index-DimSOV0E.js +1143 -0
- package/dist/index-Dm3wmB0K.js +435 -0
- package/dist/index-DsP2ysav.js +93 -0
- package/dist/index-Dwm0j8qF.js +2936 -0
- package/dist/index-DzS6-D3M.js +1640 -0
- package/dist/index-RVaaSElI.js +2700 -0
- package/dist/index-cdB5K3gx.js +814 -0
- package/dist/index-nU-V276i.js +170 -0
- package/dist/index-uF04Ucsi.js +8 -0
- package/dist/index.js +10 -0
- package/dist/index.module-CAa-2T7m.js +72 -0
- package/dist/index.module-UI0iz8K0.js +42 -0
- package/dist/{menuPermission-D9NGpBZP.js → menuPermission-Uzk46Gto.js} +1 -1
- package/dist/pages.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
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-ZUKv4XMX.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 V, e as X } from "./api-CIhVblfa.js";
|
|
11
|
+
import { u as s } from "./useAppStore-BBr_Fwsz.js";
|
|
12
|
+
import { b as Y } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
+
import { s as Z } from "./send-default-agent-team-message-CfVaEN2y.js";
|
|
14
|
+
function de() {
|
|
15
|
+
const h = Q(), f = J.parse(h.search), c = String(
|
|
16
|
+
f.scenarioCode ?? f.scenario_code ?? ""
|
|
17
|
+
).trim(), a = String(
|
|
18
|
+
f.projectName ?? f.project_name ?? ""
|
|
19
|
+
).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) => {
|
|
20
|
+
$((o) => [...o, e]), p(t);
|
|
21
|
+
}, []), n = R(() => c ? a ? "" : "缺少参数 projectName" : "缺少参数 scenarioCode", [a, c]);
|
|
22
|
+
E(() => {
|
|
23
|
+
if (n)
|
|
24
|
+
return;
|
|
25
|
+
let e = !1, t = 0;
|
|
26
|
+
const o = 100;
|
|
27
|
+
let S = !1, P = 0;
|
|
28
|
+
const A = 3;
|
|
29
|
+
return (() => {
|
|
30
|
+
if (e)
|
|
31
|
+
return;
|
|
32
|
+
const v = async () => {
|
|
33
|
+
if (e)
|
|
34
|
+
return;
|
|
35
|
+
let l = D();
|
|
36
|
+
if ((!l || !U(l)) && !S) {
|
|
37
|
+
S = !0;
|
|
38
|
+
try {
|
|
39
|
+
const m = await z();
|
|
40
|
+
m.kind === "authenticated" ? l = m.user : m.kind === "unauthenticated" && (P += 1);
|
|
41
|
+
} catch {
|
|
42
|
+
} finally {
|
|
43
|
+
S = !1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (l && U(l)) {
|
|
47
|
+
g(F(l));
|
|
48
|
+
const m = s.getState().token;
|
|
49
|
+
try {
|
|
50
|
+
const L = await X(m);
|
|
51
|
+
e || g(L);
|
|
52
|
+
} catch {
|
|
53
|
+
!e && m && (localStorage.removeItem("z_team_token"), s.setState({ token: "" }));
|
|
54
|
+
} finally {
|
|
55
|
+
e || I(!0);
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (P >= A) {
|
|
60
|
+
T();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (t += 1, t >= o) {
|
|
64
|
+
T();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
window.setTimeout(() => void v(), 150);
|
|
68
|
+
};
|
|
69
|
+
v();
|
|
70
|
+
})(), () => {
|
|
71
|
+
e = !0;
|
|
72
|
+
};
|
|
73
|
+
}, [n, g]);
|
|
74
|
+
const q = (e) => new Promise((t) => {
|
|
75
|
+
window.setTimeout(t, e);
|
|
76
|
+
});
|
|
77
|
+
E(() => {
|
|
78
|
+
if (n) {
|
|
79
|
+
y(n);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
!j || C.current || (C.current = !0, (async () => {
|
|
83
|
+
try {
|
|
84
|
+
const e = s.getState().token;
|
|
85
|
+
p("正在按场景创建工程…");
|
|
86
|
+
const t = await V(
|
|
87
|
+
{
|
|
88
|
+
name: a,
|
|
89
|
+
description: "",
|
|
90
|
+
workspace_path: a,
|
|
91
|
+
scenario_code: c
|
|
92
|
+
},
|
|
93
|
+
e
|
|
94
|
+
);
|
|
95
|
+
u("工程已创建", "正在打开协作区…"), p("正在同步工程列表…"), await _(t);
|
|
96
|
+
const o = s.getState();
|
|
97
|
+
o.currentProject && await o.refreshProjectPanels(
|
|
98
|
+
String(o.currentProject.id),
|
|
99
|
+
o.projectSwitchSeq,
|
|
100
|
+
!1
|
|
101
|
+
), u(
|
|
102
|
+
"协作区已就绪",
|
|
103
|
+
i ? "正在发送协作消息…" : "即将进入工作台…"
|
|
104
|
+
), i && (await Z(
|
|
105
|
+
t.id,
|
|
106
|
+
i,
|
|
107
|
+
e,
|
|
108
|
+
s.getState().members
|
|
109
|
+
), await s.getState().loadMessages(), u("协作消息已发送", "即将进入工作台…")), p("即将进入工作台…"), await q(2e3), b.replace(
|
|
110
|
+
Y({
|
|
111
|
+
projectId: t.id,
|
|
112
|
+
search: h.search
|
|
113
|
+
})
|
|
114
|
+
);
|
|
115
|
+
} catch (e) {
|
|
116
|
+
const t = e instanceof Error ? e.message : String(e);
|
|
117
|
+
y(t || "创建工程失败");
|
|
118
|
+
}
|
|
119
|
+
})());
|
|
120
|
+
}, [
|
|
121
|
+
u,
|
|
122
|
+
j,
|
|
123
|
+
_,
|
|
124
|
+
i,
|
|
125
|
+
h.search,
|
|
126
|
+
n,
|
|
127
|
+
a,
|
|
128
|
+
c
|
|
129
|
+
]);
|
|
130
|
+
const N = R(() => {
|
|
131
|
+
if (n)
|
|
132
|
+
return "";
|
|
133
|
+
const e = [`场景 ${c}`, `工程 ${a}`];
|
|
134
|
+
return i && e.push("含首条协作消息"), e.join(" · ");
|
|
135
|
+
}, [i, n, a, c]);
|
|
136
|
+
return w ? /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ r(
|
|
137
|
+
B,
|
|
138
|
+
{
|
|
139
|
+
status: "error",
|
|
140
|
+
title: "无法创建工程",
|
|
141
|
+
subTitle: w,
|
|
142
|
+
extra: /* @__PURE__ */ r(
|
|
143
|
+
H,
|
|
144
|
+
{
|
|
145
|
+
type: "primary",
|
|
146
|
+
onClick: () => b.replace("/workspace"),
|
|
147
|
+
children: "返回工作台"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
) }) : /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ x("div", { className: "from-scenario-page__panel", children: [
|
|
152
|
+
/* @__PURE__ */ r(G, { size: "large" }),
|
|
153
|
+
/* @__PURE__ */ r("p", { className: "from-scenario-page__step", children: M }),
|
|
154
|
+
N ? /* @__PURE__ */ r("p", { className: "from-scenario-page__hint", children: N }) : null,
|
|
155
|
+
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(
|
|
156
|
+
"li",
|
|
157
|
+
{
|
|
158
|
+
className: "from-scenario-page__done-item",
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ r(W, { className: "from-scenario-page__done-icon" }),
|
|
161
|
+
/* @__PURE__ */ r("span", { children: e })
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
`${t}-${e}`
|
|
165
|
+
)) }) : null
|
|
166
|
+
] }) });
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
de as default
|
|
170
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-BWciPDcn.js";
|
|
2
|
+
import { h as m } from "./history-BlrA1eaW.js";
|
|
3
|
+
export {
|
|
4
|
+
e as ComponentDocPage,
|
|
5
|
+
s as ProjectApp,
|
|
6
|
+
a as SubscribeApp,
|
|
7
|
+
r as ZTeamApp,
|
|
8
|
+
m as history,
|
|
9
|
+
i as isTokenExpired
|
|
10
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const c = "_hub_1scx0_1", o = "_header_1scx0_9", t = "_backBtn_1scx0_19", n = "_title_1scx0_35", e = "_bodySplit_1scx0_42", _ = "_spinWrapper_1scx0_55", a = "_columnsLayout_1scx0_70", s = "_catNav_1scx0_78", r = "_catNavTitle_1scx0_89", v = "_catItem_1scx0_97", l = "_catItemActive_1scx0_116", m = "_columnGridWrap_1scx0_122", d = "_catTag_1scx0_131", x = "_columnGrid_1scx0_122", u = "_columnCard_1scx0_149", i = "_columnCover_1scx0_163", p = "_columnCoverPlaceholder_1scx0_176", I = "_columnInfo_1scx0_182", G = "_columnDesc_1scx0_191", T = "_columnMeta_1scx0_200", C = "_latestUpdate_1scx0_204", A = "_latestTime_1scx0_214", N = "_deleteIcon_1scx0_229", b = "_columnActionsBar_1scx0_238", h = "_actionBtn_1scx0_245", g = "_actionBtnDanger_1scx0_263", y = "_ownerTag_1scx0_272", B = "_coverGrid_1scx0_279", D = "_coverCell_1scx0_284", U = "_coverItem_1scx0_287", k = "_coverNone_1scx0_301", L = "_coverUpload_1scx0_311", M = "_coverUploadIcon_1scx0_319", S = "_coverUploadingMask_1scx0_322", w = "_coverItemSelected_1scx0_330", O = "_coverName_1scx0_334", P = "_splitLayout_1scx0_346", W = "_articleNav_1scx0_354", f = "_navColumnDesc_1scx0_365", E = "_navGroup_1scx0_378", R = "_navToolbar_1scx0_382", $ = "_navAddGroup_1scx0_386", j = "_navGroupOps_1scx0_406", q = "_navGroupTitle_1scx0_415", z = "_navGroupIcon_1scx0_428", F = "_navGroupName_1scx0_433", H = "_navGroupCount_1scx0_440", J = "_navChapter_1scx0_447", K = "_navItem_1scx0_451", Q = "_navItemActive_1scx0_464", V = "_navTitle_1scx0_468", X = "_navItemRead_1scx0_472", Y = "_navIndex_1scx0_475", Z = "_readDot_1scx0_492", cc = "_navOps_1scx0_499", oc = "_navEmpty_1scx0_509", tc = "_readerPane_1scx0_513", nc = "_readerContent_1scx0_528", ec = "_tocAside_1scx0_534", _c = "_tocTitle_1scx0_545", ac = "_tocList_1scx0_554", sc = "_tocItem_1scx0_559", rc = "_tocSub_1scx0_576", vc = "_tocItemActive_1scx0_579", lc = "_readerTitle_1scx0_592", mc = "_readerMeta_1scx0_599", dc = "_markdown_1scx0_611", xc = {
|
|
2
|
+
hub: c,
|
|
3
|
+
header: o,
|
|
4
|
+
backBtn: t,
|
|
5
|
+
title: n,
|
|
6
|
+
bodySplit: e,
|
|
7
|
+
spinWrapper: _,
|
|
8
|
+
columnsLayout: a,
|
|
9
|
+
catNav: s,
|
|
10
|
+
catNavTitle: r,
|
|
11
|
+
catItem: v,
|
|
12
|
+
catItemActive: l,
|
|
13
|
+
columnGridWrap: m,
|
|
14
|
+
catTag: d,
|
|
15
|
+
columnGrid: x,
|
|
16
|
+
columnCard: u,
|
|
17
|
+
columnCover: i,
|
|
18
|
+
columnCoverPlaceholder: p,
|
|
19
|
+
columnInfo: I,
|
|
20
|
+
columnDesc: G,
|
|
21
|
+
columnMeta: T,
|
|
22
|
+
latestUpdate: C,
|
|
23
|
+
latestTime: A,
|
|
24
|
+
deleteIcon: N,
|
|
25
|
+
columnActionsBar: b,
|
|
26
|
+
actionBtn: h,
|
|
27
|
+
actionBtnDanger: g,
|
|
28
|
+
ownerTag: y,
|
|
29
|
+
coverGrid: B,
|
|
30
|
+
coverCell: D,
|
|
31
|
+
coverItem: U,
|
|
32
|
+
coverNone: k,
|
|
33
|
+
coverUpload: L,
|
|
34
|
+
coverUploadIcon: M,
|
|
35
|
+
coverUploadingMask: S,
|
|
36
|
+
coverItemSelected: w,
|
|
37
|
+
coverName: O,
|
|
38
|
+
splitLayout: P,
|
|
39
|
+
articleNav: W,
|
|
40
|
+
navColumnDesc: f,
|
|
41
|
+
navGroup: E,
|
|
42
|
+
navToolbar: R,
|
|
43
|
+
navAddGroup: $,
|
|
44
|
+
navGroupOps: j,
|
|
45
|
+
navGroupTitle: q,
|
|
46
|
+
navGroupIcon: z,
|
|
47
|
+
navGroupName: F,
|
|
48
|
+
navGroupCount: H,
|
|
49
|
+
navChapter: J,
|
|
50
|
+
navItem: K,
|
|
51
|
+
navItemActive: Q,
|
|
52
|
+
navTitle: V,
|
|
53
|
+
navItemRead: X,
|
|
54
|
+
navIndex: Y,
|
|
55
|
+
readDot: Z,
|
|
56
|
+
navOps: cc,
|
|
57
|
+
navEmpty: oc,
|
|
58
|
+
readerPane: tc,
|
|
59
|
+
readerContent: nc,
|
|
60
|
+
tocAside: ec,
|
|
61
|
+
tocTitle: _c,
|
|
62
|
+
tocList: ac,
|
|
63
|
+
tocItem: sc,
|
|
64
|
+
tocSub: rc,
|
|
65
|
+
tocItemActive: vc,
|
|
66
|
+
readerTitle: lc,
|
|
67
|
+
readerMeta: mc,
|
|
68
|
+
markdown: dc
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
xc as h
|
|
72
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const t = "_scenarioPage_1rtig_1", e = "_toolbar_1rtig_11", i = "_toolbarLeft_1rtig_22", o = "_pageTitle_1rtig_30", r = "_statInline_1rtig_39", _ = "_statChip_1rtig_47", n = "_statDivider_1rtig_53", s = "_pageActions_1rtig_60", a = "_tableCard_1rtig_68", c = "_tableWrap_1rtig_76", l = "_codeTag_1rtig_136", g = "_nameCell_1rtig_146", d = "_defaultBadge_1rtig_166", m = "_descCell_1rtig_180", p = "_mutedCell_1rtig_186", I = "_actionGroup_1rtig_190", f = "_emptyState_1rtig_203", y = "_emptyIcon_1rtig_212", b = "_emptyTitle_1rtig_225", C = "_emptyHint_1rtig_232", T = "_loadingWrap_1rtig_240", w = "_scenarioDrawerWrap_1rtig_266", u = "_section_1rtig_275", D = "_formRow_1rtig_279", R = "_formLabel_1rtig_283", S = "_formHint_1rtig_291", W = "_formRowPair_1rtig_298", v = "_sectionDivider_1rtig_307", A = "_listItemRow_1rtig_323", B = "_listItemIndex_1rtig_339", H = "_listItemBody_1rtig_354", L = "_listItemActions_1rtig_367", P = "_inlineFields_1rtig_375", x = "_dirTree_1rtig_395", h = "_dirNode_1rtig_401", F = "_dirTreeScroll_1rtig_411", G = "_readmeSection_1rtig_417", N = {
|
|
2
|
+
scenarioPage: t,
|
|
3
|
+
toolbar: e,
|
|
4
|
+
toolbarLeft: i,
|
|
5
|
+
pageTitle: o,
|
|
6
|
+
statInline: r,
|
|
7
|
+
statChip: _,
|
|
8
|
+
statDivider: n,
|
|
9
|
+
pageActions: s,
|
|
10
|
+
tableCard: a,
|
|
11
|
+
tableWrap: c,
|
|
12
|
+
codeTag: l,
|
|
13
|
+
nameCell: g,
|
|
14
|
+
defaultBadge: d,
|
|
15
|
+
descCell: m,
|
|
16
|
+
mutedCell: p,
|
|
17
|
+
actionGroup: I,
|
|
18
|
+
emptyState: f,
|
|
19
|
+
emptyIcon: y,
|
|
20
|
+
emptyTitle: b,
|
|
21
|
+
emptyHint: C,
|
|
22
|
+
loadingWrap: T,
|
|
23
|
+
scenarioDrawerWrap: w,
|
|
24
|
+
section: u,
|
|
25
|
+
formRow: D,
|
|
26
|
+
formLabel: R,
|
|
27
|
+
formHint: S,
|
|
28
|
+
formRowPair: W,
|
|
29
|
+
sectionDivider: v,
|
|
30
|
+
listItemRow: A,
|
|
31
|
+
listItemIndex: B,
|
|
32
|
+
listItemBody: H,
|
|
33
|
+
listItemActions: L,
|
|
34
|
+
inlineFields: P,
|
|
35
|
+
dirTree: x,
|
|
36
|
+
dirNode: h,
|
|
37
|
+
dirTreeScroll: F,
|
|
38
|
+
readmeSection: G
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
N as s
|
|
42
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
3
|
import { u as d } from "./useAppStore-BBr_Fwsz.js";
|
|
4
4
|
import { h as g } from "./schedule-CETzN_0H.js";
|
|
5
|
-
import { N as A } from "./index-
|
|
5
|
+
import { N as A } from "./index-D8aigFpH.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
package/dist/pages.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement as e } from "react";
|
|
2
2
|
import { BellOutlined as t, ProjectOutlined as o, DesktopOutlined as r, ReadOutlined as a } from "@ant-design/icons";
|
|
3
|
-
import { S as m, P as p, C as i, Z as n } from "./ComponentDoc-
|
|
3
|
+
import { S as m, P as p, C as i, Z as n } from "./ComponentDoc-BWciPDcn.js";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "antd";
|