@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-DGbL_CMP.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as r, useCallback as c } from "react";
|
|
3
|
-
import { S as C, T as N, P as I } from "./webide-Cuj_Pvkk.js";
|
|
4
|
-
import { P as W, S as H, C as $, E as B, a as E, W as h, b, T as j, c as K } from "./ScheduledTasks-cc8n9giN.js";
|
|
5
|
-
import { p as q } from "./index-BwyN94l7.js";
|
|
6
|
-
function M({
|
|
7
|
-
view: s,
|
|
8
|
-
agents: o,
|
|
9
|
-
token: i,
|
|
10
|
-
currentUser: u,
|
|
11
|
-
onOpenChat: l,
|
|
12
|
-
onOpenAgentDetail: f,
|
|
13
|
-
onBackToExtensions: g,
|
|
14
|
-
onOpenTab: a,
|
|
15
|
-
onAgentCreated: T,
|
|
16
|
-
onOpenProject: n,
|
|
17
|
-
onOpenWorkbenchShell: m
|
|
18
|
-
}) {
|
|
19
|
-
const [p, k] = r(
|
|
20
|
-
null
|
|
21
|
-
), [x, P] = r(
|
|
22
|
-
null
|
|
23
|
-
), S = c(
|
|
24
|
-
(e) => {
|
|
25
|
-
a("notes"), k({ id: e, ts: Date.now() });
|
|
26
|
-
},
|
|
27
|
-
[a]
|
|
28
|
-
), y = c(
|
|
29
|
-
(e) => {
|
|
30
|
-
a("todo"), P({ id: e, ts: Date.now() });
|
|
31
|
-
},
|
|
32
|
-
[a]
|
|
33
|
-
), D = s.kind === "chat" ? `${s.agent.id}-${s.sessionId ?? "new"}-${s.ts}` : "none";
|
|
34
|
-
return /* @__PURE__ */ d("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
35
|
-
s.kind === "chat" && /* @__PURE__ */ t(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
style: {
|
|
39
|
-
flex: 1,
|
|
40
|
-
minHeight: 0,
|
|
41
|
-
display: "flex",
|
|
42
|
-
flexDirection: "column"
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ t(
|
|
45
|
-
W,
|
|
46
|
-
{
|
|
47
|
-
agent: s.agent,
|
|
48
|
-
initialSessionId: s.sessionId,
|
|
49
|
-
draftNoAutoPick: s.draft === !0,
|
|
50
|
-
autoSendDraft: s.autoSendDraft ?? null,
|
|
51
|
-
chromeless: !0,
|
|
52
|
-
agents: o,
|
|
53
|
-
onSwitchAgent: (e) => l(e)
|
|
54
|
-
},
|
|
55
|
-
D
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
s.kind === "schedule" && /* @__PURE__ */ t(H, { localOnline: !1 }),
|
|
60
|
-
s.kind === "history" && /* @__PURE__ */ t(
|
|
61
|
-
$,
|
|
62
|
-
{
|
|
63
|
-
agents: o,
|
|
64
|
-
token: i,
|
|
65
|
-
onOpenSession: (e, A) => l(e, A)
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
s.kind === "extensions" && /* @__PURE__ */ t(
|
|
69
|
-
B,
|
|
70
|
-
{
|
|
71
|
-
agents: o,
|
|
72
|
-
loading: !1,
|
|
73
|
-
skillsAgent: q(o),
|
|
74
|
-
token: i,
|
|
75
|
-
currentUser: u,
|
|
76
|
-
onChat: (e) => l(e),
|
|
77
|
-
onConfig: f,
|
|
78
|
-
onCreated: T,
|
|
79
|
-
onOpenPersonalTab: a,
|
|
80
|
-
onOpenWorkbenchShell: m
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
s.kind === "agentDetail" && /* @__PURE__ */ t("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ t(
|
|
84
|
-
E,
|
|
85
|
-
{
|
|
86
|
-
agent: s.agent,
|
|
87
|
-
onBack: g
|
|
88
|
-
}
|
|
89
|
-
) }),
|
|
90
|
-
s.kind === "tab" && /* @__PURE__ */ d("div", { style: { flex: 1, minHeight: 0 }, children: [
|
|
91
|
-
s.tab === "projects" && /* @__PURE__ */ t(
|
|
92
|
-
h,
|
|
93
|
-
{
|
|
94
|
-
activeTab: "projects",
|
|
95
|
-
onActiveTabChange: () => {
|
|
96
|
-
},
|
|
97
|
-
onOpenProject: n,
|
|
98
|
-
hideTabs: !0
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
s.tab === "personal" && /* @__PURE__ */ t(
|
|
102
|
-
h,
|
|
103
|
-
{
|
|
104
|
-
activeTab: "personal",
|
|
105
|
-
onActiveTabChange: () => {
|
|
106
|
-
},
|
|
107
|
-
onOpenProject: n,
|
|
108
|
-
hideTabs: !0
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
s.tab === "business-stats" && /* @__PURE__ */ t(C, { source: "scenario" }),
|
|
112
|
-
s.tab === "tools" && /* @__PURE__ */ t(b, { showTools: !0, showWebsites: !1 }),
|
|
113
|
-
s.tab === "websites" && /* @__PURE__ */ t(b, { showTools: !1, showWebsites: !0 }),
|
|
114
|
-
s.tab === "todo" && /* @__PURE__ */ t(
|
|
115
|
-
N,
|
|
116
|
-
{
|
|
117
|
-
onOpenProject: n,
|
|
118
|
-
onOpenNote: S,
|
|
119
|
-
openTodoId: x
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
s.tab === "notes" && /* @__PURE__ */ t(
|
|
123
|
-
I,
|
|
124
|
-
{
|
|
125
|
-
onOpenProject: n,
|
|
126
|
-
onOpenTodo: y,
|
|
127
|
-
openNoteId: p
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
s.tab === "training" && /* @__PURE__ */ t(j, {}),
|
|
131
|
-
s.tab === "webide" && /* @__PURE__ */ t(K, {})
|
|
132
|
-
] })
|
|
133
|
-
] });
|
|
134
|
-
}
|
|
135
|
-
export {
|
|
136
|
-
M as default
|
|
137
|
-
};
|
package/dist/index-DK70mOTz.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { i as $, t as x, p as O, c as b, b as v } from "./api-CIhVblfa.js";
|
|
3
|
-
import { CheckCircleFilled as F } 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 j, 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 y } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-CDmueqyu.js";
|
|
10
|
-
import { u as w } from "./useAppStore-BBr_Fwsz.js";
|
|
11
|
-
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
12
|
-
function ct() {
|
|
13
|
-
const m = W(), p = B.parse(m.search), o = String(
|
|
14
|
-
p.projectId ?? p.project_id ?? ""
|
|
15
|
-
).trim(), a = String(p.ticketId ?? p.ticket_id ?? "").trim(), e = j(() => {
|
|
16
|
-
if (!o)
|
|
17
|
-
return null;
|
|
18
|
-
const t = x(o);
|
|
19
|
-
return $(t) ? t : null;
|
|
20
|
-
}, [o]), u = w((t) => t.token), T = w((t) => t.expandProject), [h, l] = f(""), [P, n] = f("正在启动…"), [k, C] = f([]), g = q(!1), i = A((t, r) => {
|
|
21
|
-
C((s) => [...s, t]), n(r);
|
|
22
|
-
}, []), I = async (t) => {
|
|
23
|
-
i("协作区已就绪", "正在同步工程列表…"), await T(t), i("工作区已准备", "即将进入工作台…"), y.replace(
|
|
24
|
-
N({
|
|
25
|
-
projectId: t.id,
|
|
26
|
-
search: m.search
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
}, d = async (t) => {
|
|
30
|
-
n("正在确认工程信息…");
|
|
31
|
-
const r = await Z(t, u);
|
|
32
|
-
if (r.status === "NOT_FOUND" || !r.scenarioInstance)
|
|
33
|
-
throw new Error("PROJECT_NOT_FOUND");
|
|
34
|
-
n("正在加入协作区…");
|
|
35
|
-
const s = await z(t, u);
|
|
36
|
-
i("已加入协作区", "正在打开协作区…"), await I(s);
|
|
37
|
-
}, E = async () => {
|
|
38
|
-
n("正在检查工单信息…");
|
|
39
|
-
const t = await H(a);
|
|
40
|
-
i("工单信息已获取", "正在解析工程绑定…");
|
|
41
|
-
const r = O(t);
|
|
42
|
-
if (r != null) {
|
|
43
|
-
i("已定位协作区", `正在打开协作区 ${r}…`), await d(r);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
n("正在初始化工程…");
|
|
47
|
-
const s = await b(
|
|
48
|
-
L(t, a),
|
|
49
|
-
u
|
|
50
|
-
);
|
|
51
|
-
n("正在关联工单…");
|
|
52
|
-
try {
|
|
53
|
-
await v(
|
|
54
|
-
a,
|
|
55
|
-
s.id,
|
|
56
|
-
M(t)
|
|
57
|
-
);
|
|
58
|
-
} catch {
|
|
59
|
-
}
|
|
60
|
-
n("正在初始化工作区…"), await I(s);
|
|
61
|
-
};
|
|
62
|
-
J(() => {
|
|
63
|
-
if (!g.current) {
|
|
64
|
-
if (g.current = !0, o && e == null) {
|
|
65
|
-
l("projectId 无效,请传入正整数");
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
if (e == null && !a) {
|
|
69
|
-
l("缺少参数:请提供 projectId 和/或 ticketId");
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
if (e != null && !a) {
|
|
73
|
-
(async () => {
|
|
74
|
-
try {
|
|
75
|
-
n(`正在打开协作区 ${e}…`), await d(e);
|
|
76
|
-
} catch (t) {
|
|
77
|
-
const r = t instanceof Error ? t.message : String(t);
|
|
78
|
-
l(r || "打开工程失败");
|
|
79
|
-
}
|
|
80
|
-
})();
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
if (!a) {
|
|
84
|
-
l("缺少 ticketId");
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
(async () => {
|
|
88
|
-
try {
|
|
89
|
-
if (e != null)
|
|
90
|
-
try {
|
|
91
|
-
n(`正在打开指定协作区 ${e}…`), await d(e);
|
|
92
|
-
return;
|
|
93
|
-
} catch (t) {
|
|
94
|
-
if (!(t instanceof Error && t.message === "PROJECT_NOT_FOUND"))
|
|
95
|
-
throw t;
|
|
96
|
-
n("正在按工单重新查找…");
|
|
97
|
-
}
|
|
98
|
-
await E();
|
|
99
|
-
} catch (t) {
|
|
100
|
-
const r = t instanceof Error ? t.message : String(t);
|
|
101
|
-
l(r || "打开工程失败");
|
|
102
|
-
}
|
|
103
|
-
})();
|
|
104
|
-
}
|
|
105
|
-
}, [i, e, o, a, u]);
|
|
106
|
-
const S = j(() => e != null && a ? `工单 ${a} · 工程 ${e}` : e != null ? `工程 ${e}` : a ? `工单 ${a}` : "", [e, a]);
|
|
107
|
-
return h ? /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ c(
|
|
108
|
-
D,
|
|
109
|
-
{
|
|
110
|
-
status: "error",
|
|
111
|
-
title: "无法打开工程",
|
|
112
|
-
subTitle: h,
|
|
113
|
-
extra: /* @__PURE__ */ c(
|
|
114
|
-
R,
|
|
115
|
-
{
|
|
116
|
-
type: "primary",
|
|
117
|
-
onClick: () => y.replace(
|
|
118
|
-
N({ search: m.search })
|
|
119
|
-
),
|
|
120
|
-
children: "返回工作台"
|
|
121
|
-
}
|
|
122
|
-
)
|
|
123
|
-
}
|
|
124
|
-
) }) : /* @__PURE__ */ c("div", { className: "from-ticket-page", children: /* @__PURE__ */ _("div", { className: "from-ticket-page__panel", children: [
|
|
125
|
-
/* @__PURE__ */ c(U, { size: "large" }),
|
|
126
|
-
/* @__PURE__ */ c("p", { className: "from-ticket-page__step", children: P }),
|
|
127
|
-
S ? /* @__PURE__ */ c("p", { className: "from-ticket-page__hint", children: S }) : null,
|
|
128
|
-
k.length > 0 ? /* @__PURE__ */ c("ul", { className: "from-ticket-page__done-list", children: k.filter((t) => t.trim().length > 0).map((t, r) => /* @__PURE__ */ _(
|
|
129
|
-
"li",
|
|
130
|
-
{
|
|
131
|
-
className: "from-ticket-page__done-item",
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ c(F, { className: "from-ticket-page__done-icon" }),
|
|
134
|
-
/* @__PURE__ */ c("span", { children: t })
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
`${r}-${t}`
|
|
138
|
-
)) }) : null
|
|
139
|
-
] }) });
|
|
140
|
-
}
|
|
141
|
-
export {
|
|
142
|
-
ct as default
|
|
143
|
-
};
|