@yuku123/z-team-component 0.2.103 → 0.2.105
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-B0ML82u0.js +542 -0
- package/dist/ComponentDoc-C_289lsE.js +8035 -0
- package/dist/InvitationManagementPage-D2ezz4ZQ.js +495 -0
- package/dist/OnboardingPage-BXsJ-kcJ.js +393 -0
- package/dist/ScheduledTasks-Cn8BsDkN.js +12127 -0
- package/dist/SystemShell-gcfNlt2L.js +688 -0
- package/dist/_commonjsHelpers-B52_cu2H.js +26 -0
- package/dist/admin-logs-B6K1DwRL.js +198 -0
- package/dist/api-BdP8mK8v.js +101 -0
- package/dist/api-DxSgE7qw.js +20 -0
- package/dist/browser-jb_PFvU3.js +1538 -0
- package/dist/createWorkspaceWsHandler-DcNA1pfi.js +13142 -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-54iTaRVW.js +316 -0
- package/dist/index-BCw3Oxp1.js +42049 -0
- package/dist/index-BDq0ofl2.js +348 -0
- package/dist/index-BN-o5nZM.js +8 -0
- package/dist/index-B_LJRFsK.js +339 -0
- package/dist/index-Bf1K9zpk.js +112 -0
- package/dist/index-BfMFQ6RD.js +169 -0
- package/dist/index-BohoJQPr.js +7631 -0
- package/dist/index-C-8n6xxK.js +93 -0
- package/dist/index-C815hPWS.js +430 -0
- package/dist/index-C8m8s-SU.js +479 -0
- package/dist/index-CXJXSmhB.js +2217 -0
- package/dist/index-CdugR2_4.js +5892 -0
- package/dist/index-CeCsncoT.js +913 -0
- package/dist/index-CgCB0-yK.js +1645 -0
- package/dist/index-Cjddvrij.js +2699 -0
- package/dist/index-D487Inba.js +315 -0
- package/dist/index-DK71mfJn.js +999 -0
- package/dist/index-DLHcoHS9.js +189 -0
- package/dist/index-DUiFk01c.js +178 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-DgN13A-E.js +10169 -0
- package/dist/index-DhDdFRHC.js +279 -0
- package/dist/index-DpLamT1r.js +574 -0
- package/dist/index-Dpii3P5J.js +1302 -0
- package/dist/index-DszzQwsc.js +956 -0
- package/dist/index-HJ3Kt-NT.js +358 -0
- package/dist/index-Nj-dlFKY.js +242 -0
- package/dist/index-ZuYJoo9E.js +118 -0
- package/dist/index-etyS3HY2.js +142 -0
- package/dist/index-jIh52A4c.js +132 -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/instance-p-ezisoS.js +216 -0
- package/dist/menuPermission-u3Gd_c8S.js +60 -0
- package/dist/mobile-client-O3yr9h6t.js +24 -0
- package/dist/pages.js +21 -0
- package/dist/send-default-agent-team-message-BhIV6T6O.js +35 -0
- package/dist/spark-md5-Dld54a-T.js +178 -0
- package/dist/sso-user-Ib1jhF7t.js +43 -0
- package/dist/training-D3Uy5K_M.js +450 -0
- package/dist/webide-BGQnArzY.js +5233 -0
- package/dist/z-team-component.css +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useMemo as d } from "react";
|
|
3
|
+
import { useNavigate as G, useLocation as k } from "react-router-dom";
|
|
4
|
+
import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
|
|
5
|
+
import R from "@yuku123/z-lc-component";
|
|
6
|
+
import { f as U, M as x } from "./menuPermission-u3Gd_c8S.js";
|
|
7
|
+
import { u as b } from "./ComponentDoc-C_289lsE.js";
|
|
8
|
+
const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
|
|
9
|
+
shell: D,
|
|
10
|
+
sidebar: E,
|
|
11
|
+
sidebarHeader: P,
|
|
12
|
+
menuList: j,
|
|
13
|
+
menuGroup: K,
|
|
14
|
+
menuGroupHeader: T,
|
|
15
|
+
menuGroupLabel: B,
|
|
16
|
+
menuGroupArrow: F,
|
|
17
|
+
menuSubList: q,
|
|
18
|
+
menuSubItemWrap: z,
|
|
19
|
+
menuSubItem: J,
|
|
20
|
+
menuSubItemActive: Q,
|
|
21
|
+
menuSubItemIcon: V,
|
|
22
|
+
menuSubItemLabel: X,
|
|
23
|
+
main: Y
|
|
24
|
+
}, r = [
|
|
25
|
+
{
|
|
26
|
+
title: "应用",
|
|
27
|
+
items: [
|
|
28
|
+
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(v, {}), path: "apps" }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "建模",
|
|
33
|
+
items: [
|
|
34
|
+
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
|
|
35
|
+
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(w, {}), path: "db-import" },
|
|
36
|
+
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(H, {}), path: "admin/ai" }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "配置",
|
|
41
|
+
items: [
|
|
42
|
+
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(M, {}), path: "admin/dicts" },
|
|
43
|
+
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(W, {}), path: "admin/relations" },
|
|
44
|
+
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(C, {}), path: "admin/views" },
|
|
45
|
+
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e($, {}), path: "admin/pipelines" },
|
|
46
|
+
{ key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(p, {}), path: "admin/workflows" }
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: "运行",
|
|
51
|
+
items: [
|
|
52
|
+
{ key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(g, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
53
|
+
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(p, {}), path: "admin/deployments" }
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
], c = "/lc";
|
|
57
|
+
function Z(l) {
|
|
58
|
+
if (!l.startsWith(c)) return null;
|
|
59
|
+
const m = l.slice(c.length).replace(/^\//, "");
|
|
60
|
+
for (const o of r)
|
|
61
|
+
for (const s of o.items)
|
|
62
|
+
if (m === s.path || m.startsWith(`${s.path}/`)) return s.key;
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
function le() {
|
|
66
|
+
const l = G(), { pathname: m } = k(), o = b((n) => n.currentUser), s = b((n) => n.permissionState), [_, h] = y(
|
|
67
|
+
new Set(r.map((n) => n.title))
|
|
68
|
+
), S = d(
|
|
69
|
+
() => s === "failed" ? r : U(r, o),
|
|
70
|
+
[o, s]
|
|
71
|
+
), I = d(() => Z(m), [m]), f = (n) => {
|
|
72
|
+
h((u) => {
|
|
73
|
+
const i = new Set(u);
|
|
74
|
+
return i.has(n) ? i.delete(n) : i.add(n), i;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ a("div", { className: t.shell, children: [
|
|
78
|
+
/* @__PURE__ */ a("aside", { className: t.sidebar, children: [
|
|
79
|
+
/* @__PURE__ */ a("div", { className: t.sidebarHeader, children: [
|
|
80
|
+
/* @__PURE__ */ e(L, {}),
|
|
81
|
+
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ e(x, {}),
|
|
84
|
+
/* @__PURE__ */ e("nav", { className: t.menuList, children: S.map((n) => {
|
|
85
|
+
const u = !_.has(n.title);
|
|
86
|
+
return /* @__PURE__ */ a("div", { className: t.menuGroup, children: [
|
|
87
|
+
/* @__PURE__ */ a(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: t.menuGroupHeader,
|
|
91
|
+
onClick: () => f(n.title),
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
94
|
+
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: u ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(O, {}) })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
u && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((i) => /* @__PURE__ */ a(
|
|
99
|
+
"li",
|
|
100
|
+
{
|
|
101
|
+
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${I === i.key ? t.menuSubItemActive : ""}`,
|
|
102
|
+
onClick: () => l(`${c}/${i.path}`),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: i.icon }),
|
|
105
|
+
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: i.label })
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
i.key
|
|
109
|
+
)) })
|
|
110
|
+
] }, n.title);
|
|
111
|
+
}) })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(R, {}) })
|
|
114
|
+
] });
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
le as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-C_289lsE.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-p-ezisoS.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
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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-Ib1jhF7t.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 { u as m, g as Y, k as B } from "./ComponentDoc-C_289lsE.js";
|
|
11
|
+
/* empty css */
|
|
12
|
+
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
+
function oe() {
|
|
14
|
+
const i = F(), g = W.parse(i.search), S = P(
|
|
15
|
+
() => String(g.name ?? "WebIDE 在线咨询").trim(),
|
|
16
|
+
[i.search]
|
|
17
|
+
), _ = P(
|
|
18
|
+
() => String(g.source ?? "z-team-webide").trim(),
|
|
19
|
+
[i.search]
|
|
20
|
+
), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [k, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = A((e, o) => {
|
|
21
|
+
M((a) => [...a, e]), y(o);
|
|
22
|
+
}, []);
|
|
23
|
+
return U(() => {
|
|
24
|
+
let e = !1, o = 0;
|
|
25
|
+
const a = 100;
|
|
26
|
+
let r = !1, n = 0;
|
|
27
|
+
const h = 3;
|
|
28
|
+
return (() => {
|
|
29
|
+
if (e) return;
|
|
30
|
+
const l = async () => {
|
|
31
|
+
if (e) return;
|
|
32
|
+
let t = L();
|
|
33
|
+
if ((!t || !N(t)) && !r) {
|
|
34
|
+
r = !0;
|
|
35
|
+
try {
|
|
36
|
+
const c = await z();
|
|
37
|
+
c.kind === "authenticated" ? t = c.user : c.kind === "unauthenticated" && (n += 1);
|
|
38
|
+
} catch {
|
|
39
|
+
} finally {
|
|
40
|
+
r = !1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (t && N(t)) {
|
|
44
|
+
u(T(t));
|
|
45
|
+
const c = m.getState().token;
|
|
46
|
+
B().then((D) => {
|
|
47
|
+
e || u(D);
|
|
48
|
+
}).catch(() => {
|
|
49
|
+
!e && c && (localStorage.removeItem("z_team_token"), m.setState({ token: "" }));
|
|
50
|
+
}).finally(() => {
|
|
51
|
+
e || E(!0);
|
|
52
|
+
});
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (n >= h) {
|
|
56
|
+
v();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (o += 1, o >= a) {
|
|
60
|
+
v();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
window.setTimeout(() => void l(), 150);
|
|
64
|
+
};
|
|
65
|
+
l();
|
|
66
|
+
})(), () => {
|
|
67
|
+
e = !0;
|
|
68
|
+
};
|
|
69
|
+
}, [u]), U(() => {
|
|
70
|
+
if (!b || !d) return;
|
|
71
|
+
let e = !1;
|
|
72
|
+
return (async () => {
|
|
73
|
+
try {
|
|
74
|
+
const a = m.getState(), r = /* @__PURE__ */ new Date(), n = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${n(r.getMonth() + 1)}-${n(
|
|
75
|
+
r.getDate()
|
|
76
|
+
)} ${n(r.getHours())}:${n(r.getMinutes())}`, j = `${S} - ${d.display_name || d.username} - ${h}`;
|
|
77
|
+
y("正在创建咨询群组…");
|
|
78
|
+
const l = await Y(
|
|
79
|
+
{
|
|
80
|
+
name: j,
|
|
81
|
+
description: `${_} 发起的在线咨询`,
|
|
82
|
+
workspace_path: `webide_consult_${Date.now()}`,
|
|
83
|
+
scenario_code: "z_team_webide_console_scenario"
|
|
84
|
+
},
|
|
85
|
+
a.token
|
|
86
|
+
);
|
|
87
|
+
if (e || (f("群组已创建", "正在初始化工作区…"), await $(l), e)) return;
|
|
88
|
+
const t = m.getState();
|
|
89
|
+
if (t.currentProject && await t.refreshProjectPanels(
|
|
90
|
+
t.currentProject.id,
|
|
91
|
+
t.projectSwitchSeq,
|
|
92
|
+
!1
|
|
93
|
+
), e) return;
|
|
94
|
+
f("工作区已就绪", "即将进入工作台…"), H.replace(
|
|
95
|
+
G({
|
|
96
|
+
projectId: l.id,
|
|
97
|
+
search: i.search
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
} catch (a) {
|
|
101
|
+
e || x(a instanceof Error ? a.message : "创建群组失败");
|
|
102
|
+
}
|
|
103
|
+
})(), () => {
|
|
104
|
+
e = !0;
|
|
105
|
+
};
|
|
106
|
+
}, [
|
|
107
|
+
b,
|
|
108
|
+
d,
|
|
109
|
+
S,
|
|
110
|
+
_,
|
|
111
|
+
$,
|
|
112
|
+
f,
|
|
113
|
+
i.search
|
|
114
|
+
]), k ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: k }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
|
|
115
|
+
/* @__PURE__ */ s(R, { size: "large" }),
|
|
116
|
+
/* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
|
|
117
|
+
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(
|
|
118
|
+
"li",
|
|
119
|
+
{
|
|
120
|
+
className: "embed-chat-page__done-item",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ s(q, { className: "embed-chat-page__done-icon" }),
|
|
123
|
+
/* @__PURE__ */ s("span", { children: e })
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
`${o}-${e}`
|
|
127
|
+
)) }) : null
|
|
128
|
+
] }) });
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
oe as default
|
|
132
|
+
};
|
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-C_289lsE.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
|
+
};
|