@yuku123/z-team-component 0.2.78 → 0.2.80
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/{menuPermission-CO2KgDX8.js → menuPermission-D9NGpBZP.js} +1 -1
- package/dist/pages.js +1 -1
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/ChangeLogView-_bRZ55Yi.js +0 -542
- package/dist/ComponentDoc-Aw4QY8oI.js +0 -3998
- package/dist/InvitationManagementPage-Bv0ys--k.js +0 -495
- package/dist/OnboardingPage-B7274ITW.js +0 -393
- package/dist/ScheduledTasks-cc8n9giN.js +0 -9406
- package/dist/SystemShell-CPGtmxXl.js +0 -689
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/api-B2APc1an.js +0 -20
- package/dist/api-CIhVblfa.js +0 -2155
- package/dist/browser-jb_PFvU3.js +0 -1538
- package/dist/createWorkspaceWsHandler-BWP5S5X3.js +0 -12951
- 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-51d5011I.js +0 -178
- package/dist/index-62K6U_D_.js +0 -574
- package/dist/index-ACANAhdd.js +0 -242
- package/dist/index-B_LJRFsK.js +0 -339
- package/dist/index-BgIheStI.js +0 -133
- package/dist/index-BohoJQPr.js +0 -7631
- package/dist/index-Bpi_ysgC.js +0 -914
- package/dist/index-BwyN94l7.js +0 -9567
- package/dist/index-BydWNuk5.js +0 -1229
- package/dist/index-C6FYNbSB.js +0 -118
- package/dist/index-C815hPWS.js +0 -430
- package/dist/index-CNcX0oSU.js +0 -112
- package/dist/index-CUVdeb8y.js +0 -638
- package/dist/index-CijskN6t.js +0 -316
- package/dist/index-Cvx6rrxD.js +0 -956
- package/dist/index-Cwr5Slv1.js +0 -480
- package/dist/index-CxFAICql.js +0 -42050
- package/dist/index-D2cy0jVs.js +0 -1143
- package/dist/index-DGbL_CMP.js +0 -137
- package/dist/index-DK70mOTz.js +0 -143
- package/dist/index-DT80Pwa_.js +0 -5893
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-Dm3wmB0K.js +0 -435
- package/dist/index-DvBDj0ul.js +0 -93
- package/dist/index-DzS6-D3M.js +0 -1640
- package/dist/index-Xn84wLNu.js +0 -2700
- package/dist/index-_9zO-72Q.js +0 -2908
- package/dist/index-cdB5K3gx.js +0 -814
- package/dist/index-nU-V276i.js +0 -170
- package/dist/index-uF04Ucsi.js +0 -8
- 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/index-BgIheStI.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as L, h as N, s as T } from "./sso-user-ZUKv4XMX.js";
|
|
4
|
-
import { CheckCircleFilled as q } from "@ant-design/icons";
|
|
5
|
-
import { Spin as R } from "antd";
|
|
6
|
-
import W from "query-string";
|
|
7
|
-
import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
|
|
8
|
-
import { useLocation as F } from "react-router-dom";
|
|
9
|
-
import { h as H } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { c as Y, e as B } from "./api-CIhVblfa.js";
|
|
11
|
-
import { u as m } from "./useAppStore-BBr_Fwsz.js";
|
|
12
|
-
/* empty css */
|
|
13
|
-
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
14
|
-
function ne() {
|
|
15
|
-
const i = F(), g = W.parse(i.search), S = P(
|
|
16
|
-
() => String(g.name ?? "WebIDE 在线咨询").trim(),
|
|
17
|
-
[i.search]
|
|
18
|
-
), _ = P(
|
|
19
|
-
() => String(g.source ?? "z-team-webide").trim(),
|
|
20
|
-
[i.search]
|
|
21
|
-
), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [$, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: j } = m(), f = A((e, o) => {
|
|
22
|
-
M((a) => [...a, e]), y(o);
|
|
23
|
-
}, []);
|
|
24
|
-
return U(() => {
|
|
25
|
-
let e = !1, o = 0;
|
|
26
|
-
const a = 100;
|
|
27
|
-
let r = !1, n = 0;
|
|
28
|
-
const h = 3;
|
|
29
|
-
return (() => {
|
|
30
|
-
if (e) return;
|
|
31
|
-
const l = async () => {
|
|
32
|
-
if (e) return;
|
|
33
|
-
let t = L();
|
|
34
|
-
if ((!t || !N(t)) && !r) {
|
|
35
|
-
r = !0;
|
|
36
|
-
try {
|
|
37
|
-
const c = await z();
|
|
38
|
-
c.kind === "authenticated" ? t = c.user : c.kind === "unauthenticated" && (n += 1);
|
|
39
|
-
} catch {
|
|
40
|
-
} finally {
|
|
41
|
-
r = !1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (t && N(t)) {
|
|
45
|
-
u(T(t));
|
|
46
|
-
const c = m.getState().token;
|
|
47
|
-
B().then((D) => {
|
|
48
|
-
e || u(D);
|
|
49
|
-
}).catch(() => {
|
|
50
|
-
!e && c && (localStorage.removeItem("z_team_token"), m.setState({ token: "" }));
|
|
51
|
-
}).finally(() => {
|
|
52
|
-
e || E(!0);
|
|
53
|
-
});
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (n >= h) {
|
|
57
|
-
v();
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (o += 1, o >= a) {
|
|
61
|
-
v();
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
window.setTimeout(() => void l(), 150);
|
|
65
|
-
};
|
|
66
|
-
l();
|
|
67
|
-
})(), () => {
|
|
68
|
-
e = !0;
|
|
69
|
-
};
|
|
70
|
-
}, [u]), U(() => {
|
|
71
|
-
if (!b || !d) return;
|
|
72
|
-
let e = !1;
|
|
73
|
-
return (async () => {
|
|
74
|
-
try {
|
|
75
|
-
const a = m.getState(), r = /* @__PURE__ */ new Date(), n = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${n(r.getMonth() + 1)}-${n(
|
|
76
|
-
r.getDate()
|
|
77
|
-
)} ${n(r.getHours())}:${n(r.getMinutes())}`, k = `${S} - ${d.display_name || d.username} - ${h}`;
|
|
78
|
-
y("正在创建咨询群组…");
|
|
79
|
-
const l = await Y(
|
|
80
|
-
{
|
|
81
|
-
name: k,
|
|
82
|
-
description: `${_} 发起的在线咨询`,
|
|
83
|
-
workspace_path: `webide_consult_${Date.now()}`,
|
|
84
|
-
scenario_code: "z_team_webide_console_scenario"
|
|
85
|
-
},
|
|
86
|
-
a.token
|
|
87
|
-
);
|
|
88
|
-
if (e || (f("群组已创建", "正在初始化工作区…"), await j(l), e)) return;
|
|
89
|
-
const t = m.getState();
|
|
90
|
-
if (t.currentProject && await t.refreshProjectPanels(
|
|
91
|
-
t.currentProject.id,
|
|
92
|
-
t.projectSwitchSeq,
|
|
93
|
-
!1
|
|
94
|
-
), e) return;
|
|
95
|
-
f("工作区已就绪", "即将进入工作台…"), H.replace(
|
|
96
|
-
G({
|
|
97
|
-
projectId: l.id,
|
|
98
|
-
search: i.search
|
|
99
|
-
})
|
|
100
|
-
);
|
|
101
|
-
} catch (a) {
|
|
102
|
-
e || x(a instanceof Error ? a.message : "创建群组失败");
|
|
103
|
-
}
|
|
104
|
-
})(), () => {
|
|
105
|
-
e = !0;
|
|
106
|
-
};
|
|
107
|
-
}, [
|
|
108
|
-
b,
|
|
109
|
-
d,
|
|
110
|
-
S,
|
|
111
|
-
_,
|
|
112
|
-
j,
|
|
113
|
-
f,
|
|
114
|
-
i.search
|
|
115
|
-
]), $ ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: $ }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
|
|
116
|
-
/* @__PURE__ */ s(R, { size: "large" }),
|
|
117
|
-
/* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
|
|
118
|
-
w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, o) => /* @__PURE__ */ C(
|
|
119
|
-
"li",
|
|
120
|
-
{
|
|
121
|
-
className: "embed-chat-page__done-item",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ s(q, { className: "embed-chat-page__done-icon" }),
|
|
124
|
-
/* @__PURE__ */ s("span", { children: e })
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
`${o}-${e}`
|
|
128
|
-
)) }) : null
|
|
129
|
-
] }) });
|
|
130
|
-
}
|
|
131
|
-
export {
|
|
132
|
-
ne as default
|
|
133
|
-
};
|