@yuku123/z-team-component 0.2.69 → 0.2.70
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/{ComponentDoc-BvhR-L9F.js → ComponentDoc-CSDEl9iB.js} +1 -1
- package/dist/{InvitationManagementPage-C--Bqp77.js → InvitationManagementPage-DbrhFX7e.js} +1 -1
- package/dist/{OnboardingPage-CXYBBWzq.js → OnboardingPage-4MasLdvm.js} +2 -2
- package/dist/{ScheduledTasks-CfOhYsuW.js → ScheduledTasks-BuOufjoH.js} +3274 -3253
- package/dist/{SystemShell-DY_9OPmK.js → SystemShell-DcxZUrpj.js} +4 -4
- package/dist/{api-BwqJva6j.js → api-BjMOoPbe.js} +1 -1
- package/dist/{index-Bcmpano-.js → index-60oB6_Xg.js} +2 -2
- package/dist/{index-3D84TzWR.js → index-B847h2X1.js} +3 -3
- package/dist/{index-Dg_RxMSl.js → index-BqvHNZGS.js} +2 -2
- package/dist/{index-BTaIR3d2.js → index-CBNl1a7_.js} +2 -2
- package/dist/{index-DhvigSkV.js → index-CBwtAPSf.js} +368 -368
- package/dist/{index-_k8hx1Xa.js → index-CbG4xgoA.js} +1 -1
- package/dist/{index-xW8_0kYe.js → index-Cr589chh.js} +33 -32
- package/dist/{index-CAQYhg0W.js → index-CrgU396B.js} +1 -1
- package/dist/{index-CJRkqMer.js → index-CyU1nc6C.js} +1 -1
- package/dist/{index-CaKuAE4Y.js → index-DMvs2G1h.js} +2 -2
- package/dist/{index-Cb5MugwR.js → index-DbHOY3ig.js} +1 -1
- package/dist/{index-B37qq8I_.js → index-kgvynVu5.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{menuPermission-TIdrM4_Y.js → menuPermission-DLB5LOaC.js} +1 -1
- package/dist/pages.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as n, Fragment as
|
|
2
|
-
import { a as Ee, n as mt, f as
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as nt } from "react/jsx-runtime";
|
|
2
|
+
import { a as Ee, n as mt, f as Qe, B as Ze, u as Dn, T as mn, aG as zo, V as Yn, t as Ye, aH as Sn, aI as Uo, aJ as Go, c as Ko, ap as qo, az as oo, k as Wt, aK as Vo, aL as Jo, y as Qn, F as Yo, I as Qo, R as Zo, G as Xo, i as so, o as es, q as ts, w as ns, v as as, e as os, aM as ss } from "./api-DWt94BcM.js";
|
|
3
3
|
import { s as is, r as Tn, f as rs } from "./ctc-sso-DtJHC-2M.js";
|
|
4
|
-
import { n as Zn, i as ls } from "./ComponentDoc-
|
|
4
|
+
import { n as Zn, i as ls } from "./ComponentDoc-CSDEl9iB.js";
|
|
5
5
|
import { r as cs, h as va, s as ka } from "./sso-user-QZNVhjpR.js";
|
|
6
6
|
import { Input as pn, Tooltip as hn, Spin as gt, Tabs as oa, Popconfirm as Wn, Button as It, Empty as In, Modal as fn, Form as ln, Checkbox as ds, Tag as ms, Select as us, Popover as Na, Dropdown as ps, Avatar as hs, message as wa } from "antd";
|
|
7
7
|
import un from "query-string";
|
|
@@ -56,23 +56,23 @@ async function Qg(t = {}, a = "") {
|
|
|
56
56
|
const s = new URLSearchParams();
|
|
57
57
|
a && s.set("token", a), t.page && s.set("page", String(t.page)), t.size && s.set("size", String(t.size)), t.tag && s.set("tag", t.tag), t.sort && s.set("sort", t.sort);
|
|
58
58
|
const i = s.toString(), u = await Ee(
|
|
59
|
-
`${
|
|
60
|
-
|
|
59
|
+
`${Ze}/community/posts${i ? `?${i}` : ""}`,
|
|
60
|
+
Qe
|
|
61
61
|
);
|
|
62
62
|
return mt(u, "获取帖子列表失败");
|
|
63
63
|
}
|
|
64
64
|
async function Zg(t, a = "") {
|
|
65
65
|
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(
|
|
66
|
-
`${
|
|
67
|
-
|
|
66
|
+
`${Ze}/community/posts/${t}${s}`,
|
|
67
|
+
Qe
|
|
68
68
|
);
|
|
69
69
|
return mt(i, "获取帖子详情失败");
|
|
70
70
|
}
|
|
71
71
|
async function Xg(t, a = "") {
|
|
72
72
|
const s = await Ee(
|
|
73
|
-
`${
|
|
73
|
+
`${Ze}/community/posts${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
74
74
|
{
|
|
75
|
-
...
|
|
75
|
+
...Qe,
|
|
76
76
|
method: "POST",
|
|
77
77
|
headers: { "Content-Type": "application/json" },
|
|
78
78
|
body: JSON.stringify(t)
|
|
@@ -82,9 +82,9 @@ async function Xg(t, a = "") {
|
|
|
82
82
|
}
|
|
83
83
|
async function e_(t, a, s = "") {
|
|
84
84
|
const i = await Ee(
|
|
85
|
-
`${
|
|
85
|
+
`${Ze}/community/posts/${t}${s ? `?token=${encodeURIComponent(s)}` : ""}`,
|
|
86
86
|
{
|
|
87
|
-
...
|
|
87
|
+
...Qe,
|
|
88
88
|
method: "PUT",
|
|
89
89
|
headers: { "Content-Type": "application/json" },
|
|
90
90
|
body: JSON.stringify(a)
|
|
@@ -93,31 +93,31 @@ async function e_(t, a, s = "") {
|
|
|
93
93
|
return mt(i, "编辑帖子失败");
|
|
94
94
|
}
|
|
95
95
|
async function t_(t, a = "") {
|
|
96
|
-
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${
|
|
97
|
-
...
|
|
96
|
+
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${Ze}/community/posts/${t}${s}`, {
|
|
97
|
+
...Qe,
|
|
98
98
|
method: "DELETE"
|
|
99
99
|
});
|
|
100
100
|
return mt(i, "删帖失败");
|
|
101
101
|
}
|
|
102
102
|
async function n_(t, a = "") {
|
|
103
|
-
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${
|
|
104
|
-
...
|
|
103
|
+
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${Ze}/community/posts/${t}/pin${s}`, {
|
|
104
|
+
...Qe,
|
|
105
105
|
method: "POST"
|
|
106
106
|
});
|
|
107
107
|
return mt(i, "置顶操作失败");
|
|
108
108
|
}
|
|
109
109
|
async function a_(t, a = "") {
|
|
110
|
-
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${
|
|
111
|
-
...
|
|
110
|
+
const s = a ? `?token=${encodeURIComponent(a)}` : "", i = await Ee(`${Ze}/community/posts/${t}/feature${s}`, {
|
|
111
|
+
...Qe,
|
|
112
112
|
method: "POST"
|
|
113
113
|
});
|
|
114
114
|
return mt(i, "精华操作失败");
|
|
115
115
|
}
|
|
116
116
|
async function o_(t, a, s = "") {
|
|
117
117
|
const i = await Ee(
|
|
118
|
-
`${
|
|
118
|
+
`${Ze}/community/posts/${t}/comments${s ? `?token=${encodeURIComponent(s)}` : ""}`,
|
|
119
119
|
{
|
|
120
|
-
...
|
|
120
|
+
...Qe,
|
|
121
121
|
method: "POST",
|
|
122
122
|
headers: { "Content-Type": "application/json" },
|
|
123
123
|
body: JSON.stringify(a)
|
|
@@ -127,9 +127,9 @@ async function o_(t, a, s = "") {
|
|
|
127
127
|
}
|
|
128
128
|
async function s_(t, a = "") {
|
|
129
129
|
const s = await Ee(
|
|
130
|
-
`${
|
|
130
|
+
`${Ze}/community/likes${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
131
131
|
{
|
|
132
|
-
...
|
|
132
|
+
...Qe,
|
|
133
133
|
method: "POST",
|
|
134
134
|
headers: { "Content-Type": "application/json" },
|
|
135
135
|
body: JSON.stringify(t)
|
|
@@ -139,9 +139,9 @@ async function s_(t, a = "") {
|
|
|
139
139
|
}
|
|
140
140
|
async function i_(t, a = "") {
|
|
141
141
|
const s = await Ee(
|
|
142
|
-
`${
|
|
142
|
+
`${Ze}/community/favorites${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
143
143
|
{
|
|
144
|
-
...
|
|
144
|
+
...Qe,
|
|
145
145
|
method: "POST",
|
|
146
146
|
headers: { "Content-Type": "application/json" },
|
|
147
147
|
body: JSON.stringify(t)
|
|
@@ -151,9 +151,9 @@ async function i_(t, a = "") {
|
|
|
151
151
|
}
|
|
152
152
|
async function r_(t, a = "") {
|
|
153
153
|
const s = await Ee(
|
|
154
|
-
`${
|
|
154
|
+
`${Ze}/community/follows${a ? `?token=${encodeURIComponent(a)}` : ""}`,
|
|
155
155
|
{
|
|
156
|
-
...
|
|
156
|
+
...Qe,
|
|
157
157
|
method: "POST",
|
|
158
158
|
headers: { "Content-Type": "application/json" },
|
|
159
159
|
body: JSON.stringify(t)
|
|
@@ -162,19 +162,19 @@ async function r_(t, a = "") {
|
|
|
162
162
|
return mt(s, "关注操作失败");
|
|
163
163
|
}
|
|
164
164
|
async function l_(t = "") {
|
|
165
|
-
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${
|
|
165
|
+
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${Ze}/community/tags${a}`, Qe);
|
|
166
166
|
return mt(s, "获取标签列表失败");
|
|
167
167
|
}
|
|
168
168
|
async function c_(t = "") {
|
|
169
|
-
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${
|
|
169
|
+
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${Ze}/community/my/posts${a}`, Qe);
|
|
170
170
|
return mt(s, "获取我的帖子失败");
|
|
171
171
|
}
|
|
172
172
|
async function d_(t = "") {
|
|
173
|
-
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${
|
|
173
|
+
const a = t ? `?token=${encodeURIComponent(t)}` : "", s = await Ee(`${Ze}/community/my/drafts${a}`, Qe);
|
|
174
174
|
return mt(s, "获取我的草稿失败");
|
|
175
175
|
}
|
|
176
176
|
async function $a() {
|
|
177
|
-
const t = await Ee(`${
|
|
177
|
+
const t = await Ee(`${Ze}/common/portal/header-tips`, Qe);
|
|
178
178
|
return mt(t, "获取顶部提示失败");
|
|
179
179
|
}
|
|
180
180
|
const _t = "http://127.0.0.1:28080";
|
|
@@ -347,8 +347,8 @@ async function N_(t, a = "", s = "") {
|
|
|
347
347
|
const i = new URLSearchParams();
|
|
348
348
|
a && i.set("subdir", a), s && i.set("token", s);
|
|
349
349
|
const u = i.toString(), d = await Ee(
|
|
350
|
-
`${
|
|
351
|
-
|
|
350
|
+
`${Ze}/personal-agents/${t}/files/tree${u ? "?" + u : ""}`,
|
|
351
|
+
Qe
|
|
352
352
|
);
|
|
353
353
|
return Dn(d, "获取文件列表失败");
|
|
354
354
|
}
|
|
@@ -356,8 +356,8 @@ async function w_(t, a = "", s = "") {
|
|
|
356
356
|
const i = new URLSearchParams();
|
|
357
357
|
a && i.set("path", a), s && i.set("token", s);
|
|
358
358
|
const u = i.toString(), d = await Ee(
|
|
359
|
-
`${
|
|
360
|
-
|
|
359
|
+
`${Ze}/personal-agents/${t}/files/content${u ? "?" + u : ""}`,
|
|
360
|
+
Qe
|
|
361
361
|
);
|
|
362
362
|
return Dn(d, "读取文件内容失败");
|
|
363
363
|
}
|
|
@@ -365,18 +365,18 @@ async function C_(t, a = 1, s = 20, i = "") {
|
|
|
365
365
|
const u = new URLSearchParams();
|
|
366
366
|
u.set("page", String(a)), u.set("size", String(s)), i && u.set("token", i);
|
|
367
367
|
const d = await Ee(
|
|
368
|
-
`${
|
|
369
|
-
|
|
368
|
+
`${Ze}/personal-agents/${t}/skills?${u.toString()}`,
|
|
369
|
+
Qe
|
|
370
370
|
);
|
|
371
371
|
return Dn(d, "获取 Skill 列表失败");
|
|
372
372
|
}
|
|
373
373
|
async function S_(t, a, s, i = "") {
|
|
374
374
|
const u = i ? `?token=${encodeURIComponent(i)}` : "", d = await Ee(
|
|
375
|
-
`${
|
|
375
|
+
`${Ze}/personal-agents/${t}/skills/${encodeURIComponent(
|
|
376
376
|
a
|
|
377
377
|
)}/toggle${u}`,
|
|
378
378
|
{
|
|
379
|
-
...
|
|
379
|
+
...Qe,
|
|
380
380
|
method: "POST",
|
|
381
381
|
headers: { "Content-Type": "application/json" },
|
|
382
382
|
body: JSON.stringify({ enable: s })
|
|
@@ -990,7 +990,7 @@ function Ol({
|
|
|
990
990
|
}
|
|
991
991
|
r((H) => !H);
|
|
992
992
|
};
|
|
993
|
-
return /* @__PURE__ */ n(
|
|
993
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
994
994
|
/* @__PURE__ */ n("div", { className: `${B.newTaskWrap} ${B.xwScope}`, children: [
|
|
995
995
|
/* @__PURE__ */ n(
|
|
996
996
|
"button",
|
|
@@ -1004,7 +1004,7 @@ function Ol({
|
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
|
-
y && /* @__PURE__ */ n(
|
|
1007
|
+
y && /* @__PURE__ */ n(nt, { children: [
|
|
1008
1008
|
/* @__PURE__ */ e(
|
|
1009
1009
|
"div",
|
|
1010
1010
|
{
|
|
@@ -1147,7 +1147,7 @@ function Ol({
|
|
|
1147
1147
|
}
|
|
1148
1148
|
})
|
|
1149
1149
|
), S = g === "ext" ? H : j;
|
|
1150
|
-
return /* @__PURE__ */ n(
|
|
1150
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
1151
1151
|
/* @__PURE__ */ n("div", { className: B.moreFlyoutTabs, children: [
|
|
1152
1152
|
/* @__PURE__ */ e(
|
|
1153
1153
|
"button",
|
|
@@ -1325,8 +1325,8 @@ function jl({
|
|
|
1325
1325
|
const re = new URLSearchParams({
|
|
1326
1326
|
current: String(F),
|
|
1327
1327
|
size: String(wo)
|
|
1328
|
-
}),
|
|
1329
|
-
|
|
1328
|
+
}), me = f.current;
|
|
1329
|
+
me && re.set("keyword", me);
|
|
1330
1330
|
const X = typeof window < "u" && (window.localStorage.getItem("token") || window.localStorage.getItem("z_ctc_token") || window.localStorage.getItem("z_team_token")) || "", pe = {};
|
|
1331
1331
|
X && (pe.Authorization = `Bearer ${X}`);
|
|
1332
1332
|
const Ce = await fetch(`${mn}/tasks/my?${re}`, {
|
|
@@ -1337,8 +1337,8 @@ function jl({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
1339
1339
|
if (Ce.status === 401 && zo(), !Ce.ok) throw new Error(`HTTP ${Ce.status}`);
|
|
1340
|
-
const
|
|
1341
|
-
return
|
|
1340
|
+
const Xe = await Ce.json();
|
|
1341
|
+
return Xe.data && typeof Xe.data == "object" ? Da(Xe.data) : Da({});
|
|
1342
1342
|
}, []), g = V(async () => {
|
|
1343
1343
|
if (!Q.current) {
|
|
1344
1344
|
Q.current = !0, _(!0), w(null);
|
|
@@ -1364,12 +1364,12 @@ function jl({
|
|
|
1364
1364
|
const re = F.maxLoadedPage + 1;
|
|
1365
1365
|
Q.current = !0, N(!0);
|
|
1366
1366
|
try {
|
|
1367
|
-
const
|
|
1367
|
+
const me = await C(re);
|
|
1368
1368
|
u((X) => ({
|
|
1369
1369
|
...X,
|
|
1370
|
-
tasks: Oa(X.tasks,
|
|
1371
|
-
total:
|
|
1372
|
-
pages:
|
|
1370
|
+
tasks: Oa(X.tasks, me.records, "append"),
|
|
1371
|
+
total: me.total,
|
|
1372
|
+
pages: me.pages,
|
|
1373
1373
|
maxLoadedPage: re
|
|
1374
1374
|
}));
|
|
1375
1375
|
} catch {
|
|
@@ -1379,8 +1379,8 @@ function jl({
|
|
|
1379
1379
|
}, [C]), R = V(async () => {
|
|
1380
1380
|
const F = T.current;
|
|
1381
1381
|
if (Q.current || F.minLoadedPage <= 1) return;
|
|
1382
|
-
const re = F.minLoadedPage - 1,
|
|
1383
|
-
|
|
1382
|
+
const re = F.minLoadedPage - 1, me = A.current;
|
|
1383
|
+
me && (y.current = me.scrollHeight), Q.current = !0, z(!0);
|
|
1384
1384
|
try {
|
|
1385
1385
|
const X = await C(re);
|
|
1386
1386
|
u((pe) => ({
|
|
@@ -1417,16 +1417,16 @@ function jl({
|
|
|
1417
1417
|
}, 15e3);
|
|
1418
1418
|
return () => clearInterval(F);
|
|
1419
1419
|
}, [g]), W(() => {
|
|
1420
|
-
const F = A.current, re = G.current,
|
|
1421
|
-
if (!F || !re || !
|
|
1420
|
+
const F = A.current, re = G.current, me = ne.current;
|
|
1421
|
+
if (!F || !re || !me) return;
|
|
1422
1422
|
const X = new IntersectionObserver(
|
|
1423
1423
|
(pe) => {
|
|
1424
1424
|
for (const Ce of pe)
|
|
1425
|
-
Ce.isIntersecting && (Ce.target === re ? R() : Ce.target ===
|
|
1425
|
+
Ce.isIntersecting && (Ce.target === re ? R() : Ce.target === me && $());
|
|
1426
1426
|
},
|
|
1427
1427
|
{ root: F, rootMargin: "64px", threshold: 0 }
|
|
1428
1428
|
);
|
|
1429
|
-
return X.observe(re), X.observe(
|
|
1429
|
+
return X.observe(re), X.observe(me), () => X.disconnect();
|
|
1430
1430
|
}, [R, $, i.tasks.length]);
|
|
1431
1431
|
const J = Pe(() => {
|
|
1432
1432
|
const F = {};
|
|
@@ -1437,8 +1437,8 @@ function jl({
|
|
|
1437
1437
|
}, [a]), H = Pe(() => {
|
|
1438
1438
|
const F = [];
|
|
1439
1439
|
for (const re of i.tasks) {
|
|
1440
|
-
const
|
|
1441
|
-
X && X.projectId ===
|
|
1440
|
+
const me = re.projectId || "unknown", X = F[F.length - 1];
|
|
1441
|
+
X && X.projectId === me ? X.tasks.push(re) : F.push({ projectId: me, tasks: [re] });
|
|
1442
1442
|
}
|
|
1443
1443
|
return F;
|
|
1444
1444
|
}, [i.tasks]), j = V(
|
|
@@ -1486,7 +1486,7 @@ function jl({
|
|
|
1486
1486
|
}
|
|
1487
1487
|
)
|
|
1488
1488
|
] }) : S.length === 0 ? /* @__PURE__ */ e("div", { className: ye.todoEmpty, children: Z ? "未找到匹配的待办" : "暂无待办" }) : H.map(
|
|
1489
|
-
({ projectId: F, tasks: re },
|
|
1489
|
+
({ projectId: F, tasks: re }, me) => {
|
|
1490
1490
|
const X = J[F] || `项目 ${F}`;
|
|
1491
1491
|
return /* @__PURE__ */ n("div", { className: ye.todoGroup, children: [
|
|
1492
1492
|
/* @__PURE__ */ n("div", { className: ye.todoGroupHeader, children: [
|
|
@@ -1494,7 +1494,7 @@ function jl({
|
|
|
1494
1494
|
/* @__PURE__ */ e("span", { className: ye.todoGroupCount, children: re.length })
|
|
1495
1495
|
] }),
|
|
1496
1496
|
re.map((pe) => {
|
|
1497
|
-
const Ce = Bl(pe),
|
|
1497
|
+
const Ce = Bl(pe), Xe = bs(pe);
|
|
1498
1498
|
return /* @__PURE__ */ n(
|
|
1499
1499
|
"div",
|
|
1500
1500
|
{
|
|
@@ -1512,9 +1512,9 @@ function jl({
|
|
|
1512
1512
|
/* @__PURE__ */ e("span", { className: `${ye.todoTag} ${Ce.cls}`, children: Ce.label })
|
|
1513
1513
|
] }),
|
|
1514
1514
|
/* @__PURE__ */ n("div", { className: ye.todoCardMeta, children: [
|
|
1515
|
-
|
|
1515
|
+
Xe ? /* @__PURE__ */ n("span", { className: ye.todoFrom, children: [
|
|
1516
1516
|
"@",
|
|
1517
|
-
|
|
1517
|
+
Xe.label
|
|
1518
1518
|
] }) : null,
|
|
1519
1519
|
/* @__PURE__ */ e("span", { className: ye.todoTime, children: Hl(pe.createTime) })
|
|
1520
1520
|
] })
|
|
@@ -1523,7 +1523,7 @@ function jl({
|
|
|
1523
1523
|
pe.id
|
|
1524
1524
|
);
|
|
1525
1525
|
})
|
|
1526
|
-
] }, `${F}-${
|
|
1526
|
+
] }, `${F}-${me}`);
|
|
1527
1527
|
}
|
|
1528
1528
|
),
|
|
1529
1529
|
h ? /* @__PURE__ */ e("div", { className: ye.todoLoadHint, children: "加载更多待办..." }) : $e ? /* @__PURE__ */ n("div", { className: ye.todoLoadHint, children: [
|
|
@@ -1541,7 +1541,7 @@ function jl({
|
|
|
1541
1541
|
] })
|
|
1542
1542
|
] });
|
|
1543
1543
|
}
|
|
1544
|
-
const Wl = "_fabWrap_1dlon_1", zl = "_menuWrap_1dlon_11", Ul = "_menuItem_1dlon_31", Gl = "_fab_1dlon_1", Kl = "_catSvg_1dlon_91", ql = "_catTail_1dlon_100", Vl = "_catEyesNormal_1dlon_116", Jl = "_catEyesPlead_1dlon_134", Yl = "_catTearLeft_1dlon_147", Ql = "_catTearRight_1dlon_151", Zl = "_catEarLeft_1dlon_186", Xl = "_catEarRight_1dlon_191", ec = "_pleadCard_1dlon_197", tc = "_pleadArrow_1dlon_221", nc = "_pleadClose_1dlon_233", ac = "_pleadTitle_1dlon_254", oc = "_pleadFace_1dlon_264", sc = "_pleadList_1dlon_269", ic = "_pleadItem_1dlon_281", rc = "_pleadItemName_1dlon_302", lc = "_pleadItemAge_1dlon_310", cc = "_pleadEmpty_1dlon_316", dc = "_pleadFooter_1dlon_323",
|
|
1544
|
+
const Wl = "_fabWrap_1dlon_1", zl = "_menuWrap_1dlon_11", Ul = "_menuItem_1dlon_31", Gl = "_fab_1dlon_1", Kl = "_catSvg_1dlon_91", ql = "_catTail_1dlon_100", Vl = "_catEyesNormal_1dlon_116", Jl = "_catEyesPlead_1dlon_134", Yl = "_catTearLeft_1dlon_147", Ql = "_catTearRight_1dlon_151", Zl = "_catEarLeft_1dlon_186", Xl = "_catEarRight_1dlon_191", ec = "_pleadCard_1dlon_197", tc = "_pleadArrow_1dlon_221", nc = "_pleadClose_1dlon_233", ac = "_pleadTitle_1dlon_254", oc = "_pleadFace_1dlon_264", sc = "_pleadList_1dlon_269", ic = "_pleadItem_1dlon_281", rc = "_pleadItemName_1dlon_302", lc = "_pleadItemAge_1dlon_310", cc = "_pleadEmpty_1dlon_316", dc = "_pleadFooter_1dlon_323", je = {
|
|
1545
1545
|
fabWrap: Wl,
|
|
1546
1546
|
menuWrap: zl,
|
|
1547
1547
|
menuItem: Ul,
|
|
@@ -1692,12 +1692,12 @@ function bc() {
|
|
|
1692
1692
|
], J = (j) => {
|
|
1693
1693
|
window.open(`/workspace?projectId=${j}`, "_blank");
|
|
1694
1694
|
}, H = w && z.length > 0 && !_ && !t;
|
|
1695
|
-
return /* @__PURE__ */ n(
|
|
1696
|
-
/* @__PURE__ */ n("div", { ref: P, className:
|
|
1697
|
-
w && !_ && !t ? /* @__PURE__ */ n("div", { className:
|
|
1698
|
-
z.length ? /* @__PURE__ */ n(
|
|
1699
|
-
/* @__PURE__ */ n("div", { className:
|
|
1700
|
-
/* @__PURE__ */ e("span", { className:
|
|
1695
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
1696
|
+
/* @__PURE__ */ n("div", { ref: P, className: je.fabWrap, style: { top: u }, children: [
|
|
1697
|
+
w && !_ && !t ? /* @__PURE__ */ n("div", { className: je.pleadCard, role: "status", children: [
|
|
1698
|
+
z.length ? /* @__PURE__ */ n(nt, { children: [
|
|
1699
|
+
/* @__PURE__ */ n("div", { className: je.pleadTitle, children: [
|
|
1700
|
+
/* @__PURE__ */ e("span", { className: je.pleadFace, children: "📋" }),
|
|
1701
1701
|
"你还有 ",
|
|
1702
1702
|
z.length,
|
|
1703
1703
|
" 个单子没关",
|
|
@@ -1705,7 +1705,7 @@ function bc() {
|
|
|
1705
1705
|
"button",
|
|
1706
1706
|
{
|
|
1707
1707
|
type: "button",
|
|
1708
|
-
className:
|
|
1708
|
+
className: je.pleadClose,
|
|
1709
1709
|
"aria-label": "关闭提醒",
|
|
1710
1710
|
title: "知道了,稍后再提醒",
|
|
1711
1711
|
onClick: () => r(!0),
|
|
@@ -1713,24 +1713,24 @@ function bc() {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
)
|
|
1715
1715
|
] }),
|
|
1716
|
-
/* @__PURE__ */ e("ul", { className:
|
|
1716
|
+
/* @__PURE__ */ e("ul", { className: je.pleadList, children: z.map((j) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ n(
|
|
1717
1717
|
"button",
|
|
1718
1718
|
{
|
|
1719
1719
|
type: "button",
|
|
1720
|
-
className:
|
|
1720
|
+
className: je.pleadItem,
|
|
1721
1721
|
title: j.name,
|
|
1722
1722
|
onClick: () => J(j.id),
|
|
1723
1723
|
children: [
|
|
1724
|
-
/* @__PURE__ */ e("span", { className:
|
|
1725
|
-
/* @__PURE__ */ e("span", { className:
|
|
1724
|
+
/* @__PURE__ */ e("span", { className: je.pleadItemName, children: j.name }),
|
|
1725
|
+
/* @__PURE__ */ e("span", { className: je.pleadItemAge, children: yc(j.created_at) })
|
|
1726
1726
|
]
|
|
1727
1727
|
}
|
|
1728
1728
|
) }, j.id)) }),
|
|
1729
|
-
/* @__PURE__ */ e("div", { className:
|
|
1730
|
-
] }) : /* @__PURE__ */ e("div", { className:
|
|
1731
|
-
/* @__PURE__ */ e("i", { className:
|
|
1729
|
+
/* @__PURE__ */ e("div", { className: je.pleadFooter, children: "点击单子就能去关单啦" })
|
|
1730
|
+
] }) : /* @__PURE__ */ e("div", { className: je.pleadEmpty, children: "🎉 当前没有待关的单子" }),
|
|
1731
|
+
/* @__PURE__ */ e("i", { className: je.pleadArrow, "aria-hidden": !0 })
|
|
1732
1732
|
] }) : null,
|
|
1733
|
-
t && /* @__PURE__ */ e("div", { className:
|
|
1733
|
+
t && /* @__PURE__ */ e("div", { className: je.menuWrap, children: k.map((j) => /* @__PURE__ */ e(
|
|
1734
1734
|
hn,
|
|
1735
1735
|
{
|
|
1736
1736
|
title: j.label,
|
|
@@ -1740,7 +1740,7 @@ function bc() {
|
|
|
1740
1740
|
"button",
|
|
1741
1741
|
{
|
|
1742
1742
|
type: "button",
|
|
1743
|
-
className:
|
|
1743
|
+
className: je.menuItem,
|
|
1744
1744
|
onClick: (S) => {
|
|
1745
1745
|
S.stopPropagation(), j.onClick();
|
|
1746
1746
|
},
|
|
@@ -1760,7 +1760,7 @@ function bc() {
|
|
|
1760
1760
|
"button",
|
|
1761
1761
|
{
|
|
1762
1762
|
type: "button",
|
|
1763
|
-
className:
|
|
1763
|
+
className: je.fab,
|
|
1764
1764
|
"data-expanded": t ? "" : void 0,
|
|
1765
1765
|
"data-pleading": H ? "" : void 0,
|
|
1766
1766
|
"data-dragging": _ ? "" : void 0,
|
|
@@ -1772,7 +1772,7 @@ function bc() {
|
|
|
1772
1772
|
children: t ? /* @__PURE__ */ e(Qt, {}) : /* @__PURE__ */ n(
|
|
1773
1773
|
"svg",
|
|
1774
1774
|
{
|
|
1775
|
-
className:
|
|
1775
|
+
className: je.catSvg,
|
|
1776
1776
|
viewBox: "0 0 64 64",
|
|
1777
1777
|
"aria-hidden": !0,
|
|
1778
1778
|
focusable: "false",
|
|
@@ -1780,7 +1780,7 @@ function bc() {
|
|
|
1780
1780
|
/* @__PURE__ */ e(
|
|
1781
1781
|
"path",
|
|
1782
1782
|
{
|
|
1783
|
-
className:
|
|
1783
|
+
className: je.catTail,
|
|
1784
1784
|
d: "M46 52 C56 52 58 44 54 38",
|
|
1785
1785
|
fill: "none",
|
|
1786
1786
|
stroke: "#E8944A",
|
|
@@ -1793,7 +1793,7 @@ function bc() {
|
|
|
1793
1793
|
/* @__PURE__ */ e(
|
|
1794
1794
|
"path",
|
|
1795
1795
|
{
|
|
1796
|
-
className:
|
|
1796
|
+
className: je.catEarLeft,
|
|
1797
1797
|
d: "M18 16 L16 5 L27 10 Z",
|
|
1798
1798
|
fill: "#F7B267"
|
|
1799
1799
|
}
|
|
@@ -1801,7 +1801,7 @@ function bc() {
|
|
|
1801
1801
|
/* @__PURE__ */ e(
|
|
1802
1802
|
"path",
|
|
1803
1803
|
{
|
|
1804
|
-
className:
|
|
1804
|
+
className: je.catEarRight,
|
|
1805
1805
|
d: "M46 16 L48 5 L37 10 Z",
|
|
1806
1806
|
fill: "#F7B267"
|
|
1807
1807
|
}
|
|
@@ -1819,11 +1819,11 @@ function bc() {
|
|
|
1819
1819
|
fill: "none"
|
|
1820
1820
|
}
|
|
1821
1821
|
),
|
|
1822
|
-
/* @__PURE__ */ n("g", { className:
|
|
1822
|
+
/* @__PURE__ */ n("g", { className: je.catEyesNormal, children: [
|
|
1823
1823
|
/* @__PURE__ */ e("circle", { cx: "26", cy: "22", r: "2.1", fill: "#3B2B20" }),
|
|
1824
1824
|
/* @__PURE__ */ e("circle", { cx: "38", cy: "22", r: "2.1", fill: "#3B2B20" })
|
|
1825
1825
|
] }),
|
|
1826
|
-
/* @__PURE__ */ n("g", { className:
|
|
1826
|
+
/* @__PURE__ */ n("g", { className: je.catEyesPlead, children: [
|
|
1827
1827
|
/* @__PURE__ */ e(
|
|
1828
1828
|
"path",
|
|
1829
1829
|
{
|
|
@@ -1847,7 +1847,7 @@ function bc() {
|
|
|
1847
1847
|
/* @__PURE__ */ e(
|
|
1848
1848
|
"circle",
|
|
1849
1849
|
{
|
|
1850
|
-
className:
|
|
1850
|
+
className: je.catTearLeft,
|
|
1851
1851
|
cx: "24.5",
|
|
1852
1852
|
cy: "27",
|
|
1853
1853
|
r: "1.6",
|
|
@@ -1857,7 +1857,7 @@ function bc() {
|
|
|
1857
1857
|
/* @__PURE__ */ e(
|
|
1858
1858
|
"circle",
|
|
1859
1859
|
{
|
|
1860
|
-
className:
|
|
1860
|
+
className: je.catTearRight,
|
|
1861
1861
|
cx: "39.5",
|
|
1862
1862
|
cy: "27",
|
|
1863
1863
|
r: "1.6",
|
|
@@ -2015,7 +2015,7 @@ function Wd() {
|
|
|
2015
2015
|
null
|
|
2016
2016
|
), [G, ne] = c(null), [Q, T] = c([]), [y, r] = c(
|
|
2017
2017
|
null
|
|
2018
|
-
), [f, C] = c(""), [g, $] = c(!1), [R, k] = c(!1), [J, H] = c([]), [j, S] = c(!1), v = t.agent, O = (v == null ? void 0 : v.agent_code) || ((rt = v == null ? void 0 : v._agenthub_raw) == null ? void 0 : rt.agentCode) || "", ve =
|
|
2018
|
+
), [f, C] = c(""), [g, $] = c(!1), [R, k] = c(!1), [J, H] = c([]), [j, S] = c(!1), v = t.agent, O = (v == null ? void 0 : v.agent_code) || ((rt = v == null ? void 0 : v._agenthub_raw) == null ? void 0 : rt.agentCode) || "", ve = Ye(
|
|
2019
2019
|
((ut = v == null ? void 0 : v._agenthub_raw) == null ? void 0 : ut.agentHubAgentId) ?? null
|
|
2020
2020
|
) || null, Ae = U((ee) => ee.currentProject), $e = Ae == null ? void 0 : Ae.id, de = V(async () => {
|
|
2021
2021
|
if (O) {
|
|
@@ -2086,7 +2086,7 @@ function Wd() {
|
|
|
2086
2086
|
I(!1);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
|
-
},
|
|
2089
|
+
}, me = async (ee) => {
|
|
2090
2090
|
if (O) {
|
|
2091
2091
|
I(!0);
|
|
2092
2092
|
try {
|
|
@@ -2159,19 +2159,19 @@ function Wd() {
|
|
|
2159
2159
|
T(Be);
|
|
2160
2160
|
const le = Be.find(
|
|
2161
2161
|
(pt) => pt.path === "skill.md" || pt.path === "SKILL.md"
|
|
2162
|
-
),
|
|
2163
|
-
if (
|
|
2164
|
-
r(
|
|
2162
|
+
), Ue = (le == null ? void 0 : le.path) || ((ie = Be.find((pt) => !pt.isDir)) == null ? void 0 : ie.path);
|
|
2163
|
+
if (Ue) {
|
|
2164
|
+
r(Ue);
|
|
2165
2165
|
const pt = await Ee(
|
|
2166
2166
|
`${mn}/scenario-instances/${$e}/team/agents/${encodeURIComponent(
|
|
2167
2167
|
v.name
|
|
2168
2168
|
)}/skills/${encodeURIComponent(
|
|
2169
2169
|
ee.skillName
|
|
2170
|
-
)}/files/content?path=${encodeURIComponent(
|
|
2170
|
+
)}/files/content?path=${encodeURIComponent(Ue)}`
|
|
2171
2171
|
);
|
|
2172
2172
|
if (pt.ok) {
|
|
2173
|
-
const
|
|
2174
|
-
C((
|
|
2173
|
+
const et = await pt.json(), ot = (et == null ? void 0 : et.data) || et;
|
|
2174
|
+
C((ot == null ? void 0 : ot.content) || "");
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
2177
|
}
|
|
@@ -2180,7 +2180,7 @@ function Wd() {
|
|
|
2180
2180
|
$(!1), k(!1);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
},
|
|
2183
|
+
}, Xe = async (ee) => {
|
|
2184
2184
|
if (!(!G || ee === y) && !(!$e || !v)) {
|
|
2185
2185
|
r(ee), k(!0);
|
|
2186
2186
|
try {
|
|
@@ -2207,16 +2207,16 @@ function Wd() {
|
|
|
2207
2207
|
for (const Me of ee) {
|
|
2208
2208
|
const Be = Me.path.split("/");
|
|
2209
2209
|
let le = ie;
|
|
2210
|
-
for (let
|
|
2211
|
-
const pt = Be.slice(0,
|
|
2212
|
-
let
|
|
2213
|
-
|
|
2214
|
-
name: Be[
|
|
2210
|
+
for (let Ue = 0; Ue < Be.length; Ue++) {
|
|
2211
|
+
const pt = Be.slice(0, Ue + 1).join("/");
|
|
2212
|
+
let et = le.children.find((ot) => ot.name === Be[Ue]);
|
|
2213
|
+
et || (et = {
|
|
2214
|
+
name: Be[Ue],
|
|
2215
2215
|
path: pt,
|
|
2216
|
-
isDir:
|
|
2216
|
+
isDir: Ue < Be.length - 1 || Me.isDir,
|
|
2217
2217
|
children: [],
|
|
2218
|
-
size:
|
|
2219
|
-
}, le.children.push(
|
|
2218
|
+
size: Ue === Be.length - 1 ? Me.size : 0
|
|
2219
|
+
}, le.children.push(et)), le = et;
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
2222
|
const se = (Me) => {
|
|
@@ -2365,7 +2365,7 @@ function Wd() {
|
|
|
2365
2365
|
Wn,
|
|
2366
2366
|
{
|
|
2367
2367
|
title: `确定重置「${le.title || le.name}」为种子内容?`,
|
|
2368
|
-
onConfirm: () => void
|
|
2368
|
+
onConfirm: () => void me(le.name),
|
|
2369
2369
|
okText: "重置",
|
|
2370
2370
|
cancelText: "取消",
|
|
2371
2371
|
disabled: w,
|
|
@@ -2376,7 +2376,7 @@ function Wd() {
|
|
|
2376
2376
|
type: "text",
|
|
2377
2377
|
icon: /* @__PURE__ */ e(Us, {}),
|
|
2378
2378
|
loading: w,
|
|
2379
|
-
onClick: (
|
|
2379
|
+
onClick: (Ue) => Ue.stopPropagation(),
|
|
2380
2380
|
title: "重置为种子内容"
|
|
2381
2381
|
}
|
|
2382
2382
|
)
|
|
@@ -2398,7 +2398,7 @@ function Wd() {
|
|
|
2398
2398
|
danger: !0,
|
|
2399
2399
|
icon: /* @__PURE__ */ e(Gs, {}),
|
|
2400
2400
|
loading: w,
|
|
2401
|
-
onClick: (
|
|
2401
|
+
onClick: (Ue) => Ue.stopPropagation(),
|
|
2402
2402
|
title: "删除"
|
|
2403
2403
|
}
|
|
2404
2404
|
)
|
|
@@ -2449,7 +2449,7 @@ function Wd() {
|
|
|
2449
2449
|
]
|
|
2450
2450
|
}
|
|
2451
2451
|
) });
|
|
2452
|
-
},
|
|
2452
|
+
}, at = (ee) => {
|
|
2453
2453
|
var se;
|
|
2454
2454
|
const ie = ((se = ee.split(".").pop()) == null ? void 0 : se.toLowerCase()) || "";
|
|
2455
2455
|
return ie === "md" || ie === "markdown";
|
|
@@ -2460,7 +2460,7 @@ function Wd() {
|
|
|
2460
2460
|
className: `${L.skillFileTreeNode} ${y === se.path ? L.skillFileTreeNodeActive : ""}`,
|
|
2461
2461
|
style: { paddingLeft: `${ie * 14 + 12}px` },
|
|
2462
2462
|
onClick: () => {
|
|
2463
|
-
se.isDir ||
|
|
2463
|
+
se.isDir || Xe(se.path);
|
|
2464
2464
|
},
|
|
2465
2465
|
children: [
|
|
2466
2466
|
se.isDir ? /* @__PURE__ */ e(Ks, { className: L.skillFileTreeIcon }) : /* @__PURE__ */ e(ia, { className: L.skillFileTreeIcon }),
|
|
@@ -2596,9 +2596,9 @@ function Wd() {
|
|
|
2596
2596
|
/* @__PURE__ */ e(gt, { size: "small" }),
|
|
2597
2597
|
" ",
|
|
2598
2598
|
/* @__PURE__ */ e("span", { style: { marginLeft: 6 }, children: "读取中..." })
|
|
2599
|
-
] }) : y ? /* @__PURE__ */ n(
|
|
2599
|
+
] }) : y ? /* @__PURE__ */ n(nt, { children: [
|
|
2600
2600
|
/* @__PURE__ */ e("div", { className: L.skillFileContentPath, children: y }),
|
|
2601
|
-
|
|
2601
|
+
at(y) ? /* @__PURE__ */ e("div", { className: L.skillFileContentMarkdown, children: /* @__PURE__ */ e(
|
|
2602
2602
|
xa,
|
|
2603
2603
|
{
|
|
2604
2604
|
remarkPlugins: [Aa],
|
|
@@ -2910,7 +2910,7 @@ function Kd({
|
|
|
2910
2910
|
onClose: a,
|
|
2911
2911
|
onCreated: s
|
|
2912
2912
|
}) {
|
|
2913
|
-
var Ce,
|
|
2913
|
+
var Ce, Xe, ft;
|
|
2914
2914
|
const [i, u] = c("link"), [d, _] = c(""), [h, N] = c([]), [P, z] = c(!1), [E, w] = c(), [I, Y] = c(""), [Z, x] = c([]), [A, G] = c(0), [ne, Q] = c(!1), [T, y] = c(1), [r, f] = c(10), [C, g] = c(
|
|
2915
2915
|
null
|
|
2916
2916
|
), [$, R] = c(!1), [k, J] = c(""), [H, j] = c(""), [S, v] = c(!1), [O, ve] = c(
|
|
@@ -2929,7 +2929,7 @@ function Kd({
|
|
|
2929
2929
|
if (!he && !ke)
|
|
2930
2930
|
return;
|
|
2931
2931
|
let Se = !1;
|
|
2932
|
-
const
|
|
2932
|
+
const at = setTimeout(() => {
|
|
2933
2933
|
v(!0), (async () => {
|
|
2934
2934
|
try {
|
|
2935
2935
|
let xe = ke;
|
|
@@ -2948,7 +2948,7 @@ function Kd({
|
|
|
2948
2948
|
})();
|
|
2949
2949
|
}, 400);
|
|
2950
2950
|
return () => {
|
|
2951
|
-
Se = !0, clearTimeout(
|
|
2951
|
+
Se = !0, clearTimeout(at);
|
|
2952
2952
|
};
|
|
2953
2953
|
}, [d]), W(() => {
|
|
2954
2954
|
j((C == null ? void 0 : C.title) || "");
|
|
@@ -3033,9 +3033,9 @@ function Kd({
|
|
|
3033
3033
|
}
|
|
3034
3034
|
J(""), R(!0);
|
|
3035
3035
|
try {
|
|
3036
|
-
const
|
|
3037
|
-
if (
|
|
3038
|
-
s(
|
|
3036
|
+
const at = await Ns(K);
|
|
3037
|
+
if (at != null) {
|
|
3038
|
+
s(Ye(at));
|
|
3039
3039
|
return;
|
|
3040
3040
|
}
|
|
3041
3041
|
const xe = `Fone工单排查-${K}`, rt = H.trim() || xe, ut = {
|
|
@@ -3084,23 +3084,23 @@ function Kd({
|
|
|
3084
3084
|
J(""), R(!0);
|
|
3085
3085
|
try {
|
|
3086
3086
|
const ke = ja(K);
|
|
3087
|
-
let Se,
|
|
3087
|
+
let Se, at;
|
|
3088
3088
|
if (ke) {
|
|
3089
3089
|
const xe = await Ca(ke);
|
|
3090
|
-
Se = Mn(xe),
|
|
3090
|
+
Se = Mn(xe), at = xe;
|
|
3091
3091
|
} else
|
|
3092
|
-
Se = Mn(K),
|
|
3092
|
+
Se = Mn(K), at = Gd(K) || K;
|
|
3093
3093
|
if (!Se) {
|
|
3094
3094
|
J(
|
|
3095
3095
|
ke ? "短链解析结果中无法识别 workItemId,请改用工单详情页长链接" : "无法从链接中识别 workItemId,请检查链接是否包含 workItemId 参数"
|
|
3096
3096
|
), R(!1);
|
|
3097
3097
|
return;
|
|
3098
3098
|
}
|
|
3099
|
-
await F(Se,
|
|
3099
|
+
await F(Se, at, O);
|
|
3100
3100
|
} catch (ke) {
|
|
3101
3101
|
J((ke == null ? void 0 : ke.message) || "链接解析失败,请重试"), R(!1);
|
|
3102
3102
|
}
|
|
3103
|
-
}, [d, t, F, O]),
|
|
3103
|
+
}, [d, t, F, O]), me = V(async () => {
|
|
3104
3104
|
if (!C) {
|
|
3105
3105
|
J("请先从列表中选择一条工单");
|
|
3106
3106
|
return;
|
|
@@ -3119,8 +3119,8 @@ function Kd({
|
|
|
3119
3119
|
}
|
|
3120
3120
|
await F(K, he, ke);
|
|
3121
3121
|
}, [C, E, F]), X = V(() => {
|
|
3122
|
-
i === "link" ? re() :
|
|
3123
|
-
}, [i, re,
|
|
3122
|
+
i === "link" ? re() : me();
|
|
3123
|
+
}, [i, re, me]), pe = /* @__PURE__ */ n(
|
|
3124
3124
|
"div",
|
|
3125
3125
|
{
|
|
3126
3126
|
style: {
|
|
@@ -3173,7 +3173,7 @@ function Kd({
|
|
|
3173
3173
|
children: /* @__PURE__ */ n("div", { children: [
|
|
3174
3174
|
/* @__PURE__ */ e("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ n("label", { style: { fontWeight: 500, fontSize: 13 }, children: [
|
|
3175
3175
|
(Ce = t.inputConfig) == null ? void 0 : Ce.label,
|
|
3176
|
-
((
|
|
3176
|
+
((Xe = t.inputConfig) == null ? void 0 : Xe.required) && /* @__PURE__ */ e("span", { style: { color: "#ff4d4f", marginLeft: 4 }, children: "*" })
|
|
3177
3177
|
] }) }),
|
|
3178
3178
|
/* @__PURE__ */ e(
|
|
3179
3179
|
pn.TextArea,
|
|
@@ -3306,7 +3306,7 @@ function Kd({
|
|
|
3306
3306
|
}
|
|
3307
3307
|
);
|
|
3308
3308
|
}
|
|
3309
|
-
const qd = "_section_fs105_7", Vd = "_sectionPadded_fs105_12", Jd = "_sectionHeader_fs105_18", Yd = "_sectionTitle_fs105_22", Qd = "_sectionSubtitle_fs105_29", Zd = "_cardGrid_fs105_36", Xd = "_scenarioCard_fs105_43", em = "_cardHeader_fs105_79", tm = "_iconWrap_fs105_87", nm = "_iconFone_fs105_103", am = "_iconBiz_fs105_108", om = "_cardInfo_fs105_113", sm = "_cardTitle_fs105_118", im = "_tags_fs105_127", rm = "_tag_fs105_127", lm = "_cardDesc_fs105_149", cm = "_cardFooter_fs105_157", dm = "_enterHint_fs105_165",
|
|
3309
|
+
const qd = "_section_fs105_7", Vd = "_sectionPadded_fs105_12", Jd = "_sectionHeader_fs105_18", Yd = "_sectionTitle_fs105_22", Qd = "_sectionSubtitle_fs105_29", Zd = "_cardGrid_fs105_36", Xd = "_scenarioCard_fs105_43", em = "_cardHeader_fs105_79", tm = "_iconWrap_fs105_87", nm = "_iconFone_fs105_103", am = "_iconBiz_fs105_108", om = "_cardInfo_fs105_113", sm = "_cardTitle_fs105_118", im = "_tags_fs105_127", rm = "_tag_fs105_127", lm = "_cardDesc_fs105_149", cm = "_cardFooter_fs105_157", dm = "_enterHint_fs105_165", tt = {
|
|
3310
3310
|
section: qd,
|
|
3311
3311
|
sectionPadded: Vd,
|
|
3312
3312
|
sectionHeader: Jd,
|
|
@@ -3329,7 +3329,7 @@ const qd = "_section_fs105_7", Vd = "_sectionPadded_fs105_12", Jd = "_sectionHea
|
|
|
3329
3329
|
{
|
|
3330
3330
|
key: "troubleshooting-fone",
|
|
3331
3331
|
icon: /* @__PURE__ */ e(ra, {}),
|
|
3332
|
-
iconClass:
|
|
3332
|
+
iconClass: tt.iconFone,
|
|
3333
3333
|
title: "Fone工单排查",
|
|
3334
3334
|
description: "工单全链路排查:插件自动解析工单 → 信号采集 + 版本追溯 → 代码分析 → 诊断报告",
|
|
3335
3335
|
scenarioCode: "troubleshooting-fone",
|
|
@@ -3345,7 +3345,7 @@ const qd = "_section_fs105_7", Vd = "_sectionPadded_fs105_12", Jd = "_sectionHea
|
|
|
3345
3345
|
{
|
|
3346
3346
|
key: "biz-consult",
|
|
3347
3347
|
icon: /* @__PURE__ */ e(qs, {}),
|
|
3348
|
-
iconClass:
|
|
3348
|
+
iconClass: tt.iconBiz,
|
|
3349
3349
|
title: "HBOS业务咨询",
|
|
3350
3350
|
description: "HBOS业务咨询:产品页面地址、图片解析→ 知识库检索 + 深度代码探查 → 综合回答",
|
|
3351
3351
|
scenarioCode: "biz-consult",
|
|
@@ -3362,27 +3362,27 @@ function um({
|
|
|
3362
3362
|
return /* @__PURE__ */ n(
|
|
3363
3363
|
"div",
|
|
3364
3364
|
{
|
|
3365
|
-
className: [
|
|
3365
|
+
className: [tt.section, a ? tt.sectionPadded : "", s].filter(Boolean).join(" "),
|
|
3366
3366
|
children: [
|
|
3367
|
-
/* @__PURE__ */ n("div", { className:
|
|
3368
|
-
/* @__PURE__ */ e("h2", { className:
|
|
3369
|
-
/* @__PURE__ */ e("p", { className:
|
|
3367
|
+
/* @__PURE__ */ n("div", { className: tt.sectionHeader, children: [
|
|
3368
|
+
/* @__PURE__ */ e("h2", { className: tt.sectionTitle, children: "可用场景" }),
|
|
3369
|
+
/* @__PURE__ */ e("p", { className: tt.sectionSubtitle, children: "选择场景,即刻启动智能协作" })
|
|
3370
3370
|
] }),
|
|
3371
|
-
/* @__PURE__ */ e("div", { className:
|
|
3371
|
+
/* @__PURE__ */ e("div", { className: tt.cardGrid, children: mm.map((d) => /* @__PURE__ */ n(
|
|
3372
3372
|
"div",
|
|
3373
3373
|
{
|
|
3374
|
-
className:
|
|
3374
|
+
className: tt.scenarioCard,
|
|
3375
3375
|
onClick: () => u(d),
|
|
3376
3376
|
children: [
|
|
3377
|
-
/* @__PURE__ */ n("div", { className:
|
|
3378
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
3379
|
-
/* @__PURE__ */ n("div", { className:
|
|
3380
|
-
/* @__PURE__ */ e("h3", { className:
|
|
3381
|
-
/* @__PURE__ */ e("div", { className:
|
|
3377
|
+
/* @__PURE__ */ n("div", { className: tt.cardHeader, children: [
|
|
3378
|
+
/* @__PURE__ */ e("span", { className: `${tt.iconWrap} ${d.iconClass}`, children: d.icon }),
|
|
3379
|
+
/* @__PURE__ */ n("div", { className: tt.cardInfo, children: [
|
|
3380
|
+
/* @__PURE__ */ e("h3", { className: tt.cardTitle, children: d.title }),
|
|
3381
|
+
/* @__PURE__ */ e("div", { className: tt.tags, children: d.tags.map((_) => /* @__PURE__ */ e("span", { className: tt.tag, children: _ }, _)) })
|
|
3382
3382
|
] })
|
|
3383
3383
|
] }),
|
|
3384
|
-
/* @__PURE__ */ e("p", { className:
|
|
3385
|
-
/* @__PURE__ */ e("div", { className:
|
|
3384
|
+
/* @__PURE__ */ e("p", { className: tt.cardDesc, children: d.description }),
|
|
3385
|
+
/* @__PURE__ */ e("div", { className: tt.cardFooter, children: /* @__PURE__ */ n("span", { className: tt.enterHint, children: [
|
|
3386
3386
|
"点击创建",
|
|
3387
3387
|
/* @__PURE__ */ e("span", { children: "→" })
|
|
3388
3388
|
] }) })
|
|
@@ -3409,7 +3409,7 @@ function um({
|
|
|
3409
3409
|
}
|
|
3410
3410
|
);
|
|
3411
3411
|
}
|
|
3412
|
-
const pm = "_landing_1na4r_1", hm = "_scrollArea_1na4r_11", fm = "_header_1na4r_22", gm = "_title_1na4r_31", _m = "_contextLine_1na4r_39", ym = "_contextItem_1na4r_48", bm = "_contextIcon_1na4r_54", vm = "_contextDivider_1na4r_58", km = "_contextError_1na4r_62", Nm = "_scenariosSection_1na4r_66", wm = "_composerDock_1na4r_71", Cm = "_inputCard_1na4r_80", Sm = "_textarea_1na4r_95", Tm = "_toolbar_1na4r_113", Im = "_toolbarLeft_1na4r_120", xm = "_scenarioSelect_1na4r_129", Mm = "_scenarioHint_1na4r_150", Am = "_hintTooltip_1na4r_161", $m = "_sendBtn_1na4r_181",
|
|
3412
|
+
const pm = "_landing_1na4r_1", hm = "_scrollArea_1na4r_11", fm = "_header_1na4r_22", gm = "_title_1na4r_31", _m = "_contextLine_1na4r_39", ym = "_contextItem_1na4r_48", bm = "_contextIcon_1na4r_54", vm = "_contextDivider_1na4r_58", km = "_contextError_1na4r_62", Nm = "_scenariosSection_1na4r_66", wm = "_composerDock_1na4r_71", Cm = "_inputCard_1na4r_80", Sm = "_textarea_1na4r_95", Tm = "_toolbar_1na4r_113", Im = "_toolbarLeft_1na4r_120", xm = "_scenarioSelect_1na4r_129", Mm = "_scenarioHint_1na4r_150", Am = "_hintTooltip_1na4r_161", $m = "_sendBtn_1na4r_181", Ve = {
|
|
3413
3413
|
landing: pm,
|
|
3414
3414
|
scrollArea: hm,
|
|
3415
3415
|
header: fm,
|
|
@@ -3485,21 +3485,21 @@ function Em({
|
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
}, T = Z.trim().length > 0 && P.trim().length > 0 && !I && !A;
|
|
3488
|
-
return /* @__PURE__ */ n("div", { className:
|
|
3489
|
-
/* @__PURE__ */ n("div", { className:
|
|
3490
|
-
/* @__PURE__ */ n("div", { className:
|
|
3491
|
-
/* @__PURE__ */ e("h1", { className:
|
|
3492
|
-
/* @__PURE__ */ n("div", { className:
|
|
3493
|
-
/* @__PURE__ */ n("span", { className:
|
|
3494
|
-
/* @__PURE__ */ e("span", { className:
|
|
3488
|
+
return /* @__PURE__ */ n("div", { className: Ve.landing, children: [
|
|
3489
|
+
/* @__PURE__ */ n("div", { className: Ve.scrollArea, children: [
|
|
3490
|
+
/* @__PURE__ */ n("div", { className: Ve.header, children: [
|
|
3491
|
+
/* @__PURE__ */ e("h1", { className: Ve.title, children: "永远相信美好的事情即将发生" }),
|
|
3492
|
+
/* @__PURE__ */ n("div", { className: Ve.contextLine, children: [
|
|
3493
|
+
/* @__PURE__ */ n("span", { className: Ve.contextItem, children: [
|
|
3494
|
+
/* @__PURE__ */ e("span", { className: Ve.contextIcon, children: "🚀" }),
|
|
3495
3495
|
"Z-Team"
|
|
3496
3496
|
] }),
|
|
3497
|
-
/* @__PURE__ */ e("span", { className:
|
|
3498
|
-
/* @__PURE__ */ e("span", { className:
|
|
3499
|
-
I ? /* @__PURE__ */ e("span", { className:
|
|
3497
|
+
/* @__PURE__ */ e("span", { className: Ve.contextDivider, children: "·" }),
|
|
3498
|
+
/* @__PURE__ */ e("span", { className: Ve.contextItem, children: (ne == null ? void 0 : ne.name) || "全场景总控" }),
|
|
3499
|
+
I ? /* @__PURE__ */ e("span", { className: Ve.contextError, children: I }) : null
|
|
3500
3500
|
] })
|
|
3501
3501
|
] }),
|
|
3502
|
-
a ? /* @__PURE__ */ e("div", { className:
|
|
3502
|
+
a ? /* @__PURE__ */ e("div", { className: Ve.scenariosSection, children: /* @__PURE__ */ e(
|
|
3503
3503
|
um,
|
|
3504
3504
|
{
|
|
3505
3505
|
onProjectCreated: a,
|
|
@@ -3507,11 +3507,11 @@ function Em({
|
|
|
3507
3507
|
}
|
|
3508
3508
|
) }) : null
|
|
3509
3509
|
] }),
|
|
3510
|
-
/* @__PURE__ */ e("div", { className:
|
|
3510
|
+
/* @__PURE__ */ e("div", { className: Ve.composerDock, children: /* @__PURE__ */ n("div", { className: Ve.inputCard, children: [
|
|
3511
3511
|
/* @__PURE__ */ e(
|
|
3512
3512
|
"textarea",
|
|
3513
3513
|
{
|
|
3514
|
-
className:
|
|
3514
|
+
className: Ve.textarea,
|
|
3515
3515
|
rows: 4,
|
|
3516
3516
|
placeholder: "规划与编程,@ 添加上下文,/ 使用命令",
|
|
3517
3517
|
value: Z,
|
|
@@ -3523,12 +3523,12 @@ function Em({
|
|
|
3523
3523
|
disabled: A
|
|
3524
3524
|
}
|
|
3525
3525
|
),
|
|
3526
|
-
/* @__PURE__ */ n("div", { className:
|
|
3527
|
-
/* @__PURE__ */ n("div", { className:
|
|
3526
|
+
/* @__PURE__ */ n("div", { className: Ve.toolbar, children: [
|
|
3527
|
+
/* @__PURE__ */ n("div", { className: Ve.toolbarLeft, children: [
|
|
3528
3528
|
/* @__PURE__ */ n(
|
|
3529
3529
|
"select",
|
|
3530
3530
|
{
|
|
3531
|
-
className:
|
|
3531
|
+
className: Ve.scenarioSelect,
|
|
3532
3532
|
value: P,
|
|
3533
3533
|
onChange: (y) => z(y.target.value),
|
|
3534
3534
|
disabled: E || h.length === 0,
|
|
@@ -3543,8 +3543,8 @@ function Em({
|
|
|
3543
3543
|
{
|
|
3544
3544
|
title: ne.description,
|
|
3545
3545
|
placement: "topLeft",
|
|
3546
|
-
overlayClassName:
|
|
3547
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
3546
|
+
overlayClassName: Ve.hintTooltip,
|
|
3547
|
+
children: /* @__PURE__ */ e("span", { className: Ve.scenarioHint, children: ne.description })
|
|
3548
3548
|
}
|
|
3549
3549
|
) : null
|
|
3550
3550
|
] }),
|
|
@@ -3552,7 +3552,7 @@ function Em({
|
|
|
3552
3552
|
"button",
|
|
3553
3553
|
{
|
|
3554
3554
|
type: "button",
|
|
3555
|
-
className:
|
|
3555
|
+
className: Ve.sendBtn,
|
|
3556
3556
|
onClick: () => void Q(),
|
|
3557
3557
|
disabled: !T,
|
|
3558
3558
|
children: A ? "创建中…" : "发送"
|
|
@@ -3562,7 +3562,7 @@ function Em({
|
|
|
3562
3562
|
] }) })
|
|
3563
3563
|
] });
|
|
3564
3564
|
}
|
|
3565
|
-
const Pm = "_bellBtn_zkdkx_2", Dm = "_badge_zkdkx_25", Om = "_overlay_zkdkx_44", Rm = "_panel_zkdkx_55", Fm = "_panelHeader_zkdkx_70", Bm = "_panelTitle_zkdkx_79", Hm = "_markAllBtn_zkdkx_85", jm = "_panelBody_zkdkx_101", Wm = "_empty_zkdkx_107", zm = "_item_zkdkx_115", Um = "_itemUnread_zkdkx_130", Gm = "_itemHeader_zkdkx_135", Km = "_statusDot_zkdkx_142", qm = "_statusSuccess_zkdkx_149", Vm = "_statusFail_zkdkx_153", Jm = "_itemTask_zkdkx_157", Ym = "_markReadBtn_zkdkx_167", Qm = "_itemMeta_zkdkx_185", Zm = "_itemResult_zkdkx_194",
|
|
3565
|
+
const Pm = "_bellBtn_zkdkx_2", Dm = "_badge_zkdkx_25", Om = "_overlay_zkdkx_44", Rm = "_panel_zkdkx_55", Fm = "_panelHeader_zkdkx_70", Bm = "_panelTitle_zkdkx_79", Hm = "_markAllBtn_zkdkx_85", jm = "_panelBody_zkdkx_101", Wm = "_empty_zkdkx_107", zm = "_item_zkdkx_115", Um = "_itemUnread_zkdkx_130", Gm = "_itemHeader_zkdkx_135", Km = "_statusDot_zkdkx_142", qm = "_statusSuccess_zkdkx_149", Vm = "_statusFail_zkdkx_153", Jm = "_itemTask_zkdkx_157", Ym = "_markReadBtn_zkdkx_167", Qm = "_itemMeta_zkdkx_185", Zm = "_itemResult_zkdkx_194", Je = {
|
|
3566
3566
|
bellBtn: Pm,
|
|
3567
3567
|
badge: Dm,
|
|
3568
3568
|
overlay: Om,
|
|
@@ -3624,69 +3624,69 @@ function Xm() {
|
|
|
3624
3624
|
} catch {
|
|
3625
3625
|
}
|
|
3626
3626
|
};
|
|
3627
|
-
return /* @__PURE__ */ n(
|
|
3627
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
3628
3628
|
/* @__PURE__ */ n(
|
|
3629
3629
|
"button",
|
|
3630
3630
|
{
|
|
3631
3631
|
ref: P,
|
|
3632
3632
|
type: "button",
|
|
3633
|
-
className:
|
|
3633
|
+
className: Je.bellBtn,
|
|
3634
3634
|
onClick: I,
|
|
3635
3635
|
title: "触达通知",
|
|
3636
3636
|
children: [
|
|
3637
3637
|
/* @__PURE__ */ e(Vs, {}),
|
|
3638
|
-
d > 0 && /* @__PURE__ */ e("span", { className:
|
|
3638
|
+
d > 0 && /* @__PURE__ */ e("span", { className: Je.badge, children: d > 99 ? "99+" : d })
|
|
3639
3639
|
]
|
|
3640
3640
|
}
|
|
3641
3641
|
),
|
|
3642
|
-
h && /* @__PURE__ */ n(
|
|
3643
|
-
/* @__PURE__ */ e("div", { className:
|
|
3642
|
+
h && /* @__PURE__ */ n(nt, { children: [
|
|
3643
|
+
/* @__PURE__ */ e("div", { className: Je.overlay, onClick: () => N(!1) }),
|
|
3644
3644
|
/* @__PURE__ */ n(
|
|
3645
3645
|
"div",
|
|
3646
3646
|
{
|
|
3647
|
-
className:
|
|
3647
|
+
className: Je.panel,
|
|
3648
3648
|
style: { top: z.top, right: z.right },
|
|
3649
3649
|
children: [
|
|
3650
|
-
/* @__PURE__ */ n("div", { className:
|
|
3651
|
-
/* @__PURE__ */ e("span", { className:
|
|
3650
|
+
/* @__PURE__ */ n("div", { className: Je.panelHeader, children: [
|
|
3651
|
+
/* @__PURE__ */ e("span", { className: Je.panelTitle, children: "触达通知" }),
|
|
3652
3652
|
d > 0 && /* @__PURE__ */ e(
|
|
3653
3653
|
"button",
|
|
3654
3654
|
{
|
|
3655
3655
|
type: "button",
|
|
3656
|
-
className:
|
|
3656
|
+
className: Je.markAllBtn,
|
|
3657
3657
|
onClick: Z,
|
|
3658
3658
|
children: "全部已读"
|
|
3659
3659
|
}
|
|
3660
3660
|
)
|
|
3661
3661
|
] }),
|
|
3662
|
-
/* @__PURE__ */ e("div", { className:
|
|
3662
|
+
/* @__PURE__ */ e("div", { className: Je.panelBody, children: i.length === 0 ? /* @__PURE__ */ e("div", { className: Je.empty, children: "暂无通知" }) : i.map((x) => /* @__PURE__ */ n(
|
|
3663
3663
|
"div",
|
|
3664
3664
|
{
|
|
3665
|
-
className: `${
|
|
3665
|
+
className: `${Je.item} ${x.readFlag === 0 ? Je.itemUnread : ""}`,
|
|
3666
3666
|
children: [
|
|
3667
|
-
/* @__PURE__ */ n("div", { className:
|
|
3667
|
+
/* @__PURE__ */ n("div", { className: Je.itemHeader, children: [
|
|
3668
3668
|
/* @__PURE__ */ e(
|
|
3669
3669
|
"span",
|
|
3670
3670
|
{
|
|
3671
|
-
className: `${
|
|
3671
|
+
className: `${Je.statusDot} ${x.status === "success" ? Je.statusSuccess : Je.statusFail}`
|
|
3672
3672
|
}
|
|
3673
3673
|
),
|
|
3674
|
-
/* @__PURE__ */ e("span", { className:
|
|
3674
|
+
/* @__PURE__ */ e("span", { className: Je.itemTask, children: x.taskName || "未知任务" }),
|
|
3675
3675
|
x.readFlag === 0 && /* @__PURE__ */ e(
|
|
3676
3676
|
"button",
|
|
3677
3677
|
{
|
|
3678
3678
|
type: "button",
|
|
3679
|
-
className:
|
|
3679
|
+
className: Je.markReadBtn,
|
|
3680
3680
|
onClick: () => Y(x.id),
|
|
3681
3681
|
children: "已读"
|
|
3682
3682
|
}
|
|
3683
3683
|
)
|
|
3684
3684
|
] }),
|
|
3685
|
-
/* @__PURE__ */ n("div", { className:
|
|
3685
|
+
/* @__PURE__ */ n("div", { className: Je.itemMeta, children: [
|
|
3686
3686
|
/* @__PURE__ */ e("span", { children: x.agentDisplayName || "Agent" }),
|
|
3687
3687
|
x.createTime && /* @__PURE__ */ e("span", { children: x.createTime.slice(5, 16).replace("T", " ") })
|
|
3688
3688
|
] }),
|
|
3689
|
-
x.result && /* @__PURE__ */ e("div", { className:
|
|
3689
|
+
x.result && /* @__PURE__ */ e("div", { className: Je.itemResult, children: x.result.length > 120 ? x.result.slice(0, 120) + "..." : x.result })
|
|
3690
3690
|
]
|
|
3691
3691
|
},
|
|
3692
3692
|
x.id
|
|
@@ -3743,7 +3743,7 @@ function iu() {
|
|
|
3743
3743
|
return W(() => {
|
|
3744
3744
|
const w = () => u((I) => Kn(I));
|
|
3745
3745
|
return window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
3746
|
-
}, []), t ? /* @__PURE__ */ n(
|
|
3746
|
+
}, []), t ? /* @__PURE__ */ n(nt, { children: [
|
|
3747
3747
|
/* @__PURE__ */ e("div", { className: za.selfSupportFabWrap, style: { top: i }, children: /* @__PURE__ */ e(
|
|
3748
3748
|
hn,
|
|
3749
3749
|
{
|
|
@@ -3807,7 +3807,7 @@ function ru({
|
|
|
3807
3807
|
}, [d]), // ⚠ xwScope:账号卡与设置弹层复用 workbuddy 壳的令牌(边框/文字/圆角),
|
|
3808
3808
|
// 协作壳里本组件不在 .shell 之下 ⇒ 不带作用域 ⇒ 弹层透明叠印。
|
|
3809
3809
|
/* @__PURE__ */ n("div", { className: `${B.sideFooter} ${B.xwScope}`, children: [
|
|
3810
|
-
d && /* @__PURE__ */ n(
|
|
3810
|
+
d && /* @__PURE__ */ n(nt, { children: [
|
|
3811
3811
|
/* @__PURE__ */ e(
|
|
3812
3812
|
"div",
|
|
3813
3813
|
{
|
|
@@ -4119,7 +4119,7 @@ function ap({
|
|
|
4119
4119
|
config: t,
|
|
4120
4120
|
update: a
|
|
4121
4121
|
}) {
|
|
4122
|
-
return /* @__PURE__ */ n(
|
|
4122
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
4123
4123
|
/* @__PURE__ */ n("section", { className: b.section, children: [
|
|
4124
4124
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "常规" }),
|
|
4125
4125
|
/* @__PURE__ */ n("div", { className: b.card, children: [
|
|
@@ -4527,7 +4527,7 @@ function hp({ token: t }) {
|
|
|
4527
4527
|
w(y instanceof Error ? y.message : String(y));
|
|
4528
4528
|
}
|
|
4529
4529
|
};
|
|
4530
|
-
return /* @__PURE__ */ n(
|
|
4530
|
+
return /* @__PURE__ */ n(nt, { children: [
|
|
4531
4531
|
/* @__PURE__ */ n("section", { className: b.section, children: [
|
|
4532
4532
|
/* @__PURE__ */ e("h3", { className: b.sectionTitle, children: "自定义模型" }),
|
|
4533
4533
|
/* @__PURE__ */ e("p", { className: b.hint, children: "配置指向 OpenAI 兼容端点的模型供聊天直接选用,例如自研 LLM Gateway(端点形如 http://host:9099/v1,密钥填网关签发的 AK)。 配置后输入区右侧模型菜单会出现「自定义模型」分组。" }),
|
|
@@ -4996,12 +4996,12 @@ function Up({
|
|
|
4996
4996
|
}, [A, i]);
|
|
4997
4997
|
const ne = E.keyword === A ? E.hits : [], Q = Pe(() => {
|
|
4998
4998
|
const r = [], f = /* @__PURE__ */ new Set(), C = ($, R, k) => {
|
|
4999
|
-
const J =
|
|
4999
|
+
const J = Ye($.id);
|
|
5000
5000
|
!J || f.has(`s-${J}`) || r.length >= Ja || (f.add(`s-${J}`), r.push({
|
|
5001
5001
|
kind: "session",
|
|
5002
5002
|
key: `s-${J}`,
|
|
5003
5003
|
session: $,
|
|
5004
|
-
agent: a.get(
|
|
5004
|
+
agent: a.get(Ye($.personalAgentId)),
|
|
5005
5005
|
matchField: R,
|
|
5006
5006
|
snippet: k
|
|
5007
5007
|
}));
|
|
@@ -5013,7 +5013,7 @@ function Up({
|
|
|
5013
5013
|
C($, "title");
|
|
5014
5014
|
continue;
|
|
5015
5015
|
}
|
|
5016
|
-
const R = ($.title || "").toLowerCase().includes(G), k =
|
|
5016
|
+
const R = ($.title || "").toLowerCase().includes(G), k = Ye($.id) === A;
|
|
5017
5017
|
(R || k) && C($, k && !R ? "id" : "title");
|
|
5018
5018
|
}
|
|
5019
5019
|
if (A)
|
|
@@ -5022,10 +5022,10 @@ function Up({
|
|
|
5022
5022
|
for (const $ of s) {
|
|
5023
5023
|
if (r.length >= Ja) break;
|
|
5024
5024
|
if (A) {
|
|
5025
|
-
const k = ($.name || "").toLowerCase().includes(G), J =
|
|
5025
|
+
const k = ($.name || "").toLowerCase().includes(G), J = Ye($.id) === A;
|
|
5026
5026
|
if (!k && !J) continue;
|
|
5027
5027
|
}
|
|
5028
|
-
const R =
|
|
5028
|
+
const R = Ye($.id);
|
|
5029
5029
|
!R || f.has(`p-${R}`) || (f.add(`p-${R}`), r.push({ kind: "project", key: `p-${R}`, project: $ }));
|
|
5030
5030
|
}
|
|
5031
5031
|
return r;
|
|
@@ -5043,7 +5043,7 @@ function Up({
|
|
|
5043
5043
|
d(r.project), _();
|
|
5044
5044
|
return;
|
|
5045
5045
|
}
|
|
5046
|
-
!r.agent || !u || (u(r.agent,
|
|
5046
|
+
!r.agent || !u || (u(r.agent, Ye(r.session.id)), _());
|
|
5047
5047
|
}
|
|
5048
5048
|
},
|
|
5049
5049
|
[_, d, u]
|
|
@@ -5274,7 +5274,7 @@ function Gp({
|
|
|
5274
5274
|
]
|
|
5275
5275
|
}
|
|
5276
5276
|
),
|
|
5277
|
-
u && /* @__PURE__ */ n(
|
|
5277
|
+
u && /* @__PURE__ */ n(nt, { children: [
|
|
5278
5278
|
/* @__PURE__ */ e(
|
|
5279
5279
|
"div",
|
|
5280
5280
|
{
|
|
@@ -5912,9 +5912,9 @@ function Vp({
|
|
|
5912
5912
|
), Y = U((o) => o.selectFile), Z = U((o) => o.deleteScenarioInstance), x = U((o) => o.forkScenarioInstance), A = U((o) => o.updateScenarioInstance), G = U((o) => o.renameFile), ne = U((o) => o.createFile), Q = U((o) => o.createFolder), T = U((o) => o.deleteFile), y = U((o) => o.uploadFile), r = U((o) => o.uploadFolder), f = U((o) => o.downloadFile), C = U((o) => o.expandProject), g = U((o) => o.loadAllSkills), $ = U((o) => o.addProjectSkill), R = U((o) => o.removeProjectSkill), k = U((o) => o.refreshAgentSkills), J = U((o) => o.refreshAllAgentSkills), H = U((o) => o.syncFromProduction), j = U((o) => o.fetchWorkspaceEnv), S = U((o) => o.loadProjects), v = Pe(
|
|
5913
5913
|
() => di(u),
|
|
5914
5914
|
[u]
|
|
5915
|
-
), [O, ve] = c(null), [Ae, $e] = c({ x: 0, y: 0 }), [de, F] = c(!1), re = ce(null),
|
|
5915
|
+
), [O, ve] = c(null), [Ae, $e] = c({ x: 0, y: 0 }), [de, F] = c(!1), re = ce(null), me = ce(null), [X, pe] = c(null), [Ce, Xe] = c(!1), [ft, K] = c({}), [he, ke] = c(
|
|
5916
5916
|
/* @__PURE__ */ new Set()
|
|
5917
|
-
), [Se,
|
|
5917
|
+
), [Se, at] = c(() => {
|
|
5918
5918
|
try {
|
|
5919
5919
|
const o = localStorage.getItem("ft_sidebar_groupDims");
|
|
5920
5920
|
return o ? JSON.parse(o) : [];
|
|
@@ -5929,7 +5929,7 @@ function Vp({
|
|
|
5929
5929
|
} catch {
|
|
5930
5930
|
return "3d";
|
|
5931
5931
|
}
|
|
5932
|
-
}), [Me, Be] = c(!1), le = U((o) => o.token), [
|
|
5932
|
+
}), [Me, Be] = c(!1), le = U((o) => o.token), [Ue, pt] = c(!1), [et, ot] = c(!1), Gt = ce(!0), [kt, _e] = c(() => {
|
|
5933
5933
|
try {
|
|
5934
5934
|
const o = localStorage.getItem("ft_sidebar_participant_filter");
|
|
5935
5935
|
return o ? JSON.parse(o) : [];
|
|
@@ -6004,7 +6004,7 @@ function Vp({
|
|
|
6004
6004
|
const Kt = Pe(
|
|
6005
6005
|
() => st(u, "personal"),
|
|
6006
6006
|
[u]
|
|
6007
|
-
), [
|
|
6007
|
+
), [Ge, an] = c([]), [Ft, Nn] = c([]), qt = V(async () => {
|
|
6008
6008
|
const o = U.getState().token, [l, p] = await Promise.allSettled([
|
|
6009
6009
|
Qn(o),
|
|
6010
6010
|
Yo(o)
|
|
@@ -6018,9 +6018,9 @@ function Vp({
|
|
|
6018
6018
|
}, [Kt, qt]);
|
|
6019
6019
|
const Bt = Pe(() => {
|
|
6020
6020
|
const o = /* @__PURE__ */ new Map();
|
|
6021
|
-
for (const l of Ft) o.set(
|
|
6021
|
+
for (const l of Ft) o.set(Ye(l.id), l);
|
|
6022
6022
|
return o;
|
|
6023
|
-
}, [Ft]), [
|
|
6023
|
+
}, [Ft]), [Ke, Et] = c(
|
|
6024
6024
|
() => {
|
|
6025
6025
|
try {
|
|
6026
6026
|
return localStorage.getItem(
|
|
@@ -6039,7 +6039,7 @@ function Vp({
|
|
|
6039
6039
|
} catch {
|
|
6040
6040
|
return [];
|
|
6041
6041
|
}
|
|
6042
|
-
}), [
|
|
6042
|
+
}), [We, Cn] = c(() => {
|
|
6043
6043
|
try {
|
|
6044
6044
|
const o = localStorage.getItem("ft_sidebar_session_sort"), l = o ? JSON.parse(o) : null;
|
|
6045
6045
|
return l && (l.dim === "time" || l.dim === "name") && (l.order === "asc" || l.order === "desc") ? l : null;
|
|
@@ -6048,8 +6048,8 @@ function Vp({
|
|
|
6048
6048
|
}
|
|
6049
6049
|
});
|
|
6050
6050
|
W(() => {
|
|
6051
|
-
localStorage.setItem("ft_sidebar_session_time_filter",
|
|
6052
|
-
}, [
|
|
6051
|
+
localStorage.setItem("ft_sidebar_session_time_filter", Ke);
|
|
6052
|
+
}, [Ke]), W(() => {
|
|
6053
6053
|
localStorage.setItem(
|
|
6054
6054
|
"ft_sidebar_session_groupDims",
|
|
6055
6055
|
JSON.stringify(Nt)
|
|
@@ -6057,9 +6057,9 @@ function Vp({
|
|
|
6057
6057
|
}, [Nt]), W(() => {
|
|
6058
6058
|
localStorage.setItem(
|
|
6059
6059
|
"ft_sidebar_session_sort",
|
|
6060
|
-
JSON.stringify(
|
|
6060
|
+
JSON.stringify(We)
|
|
6061
6061
|
);
|
|
6062
|
-
}, [
|
|
6062
|
+
}, [We]);
|
|
6063
6063
|
const Rn = V((o) => {
|
|
6064
6064
|
wn(
|
|
6065
6065
|
(l) => l.includes(o) ? l.filter((p) => p !== o) : [...l, o]
|
|
@@ -6070,32 +6070,32 @@ function Vp({
|
|
|
6070
6070
|
order: l.order === "asc" ? "desc" : "asc"
|
|
6071
6071
|
} : null);
|
|
6072
6072
|
}, []), Dt = Pe(() => {
|
|
6073
|
-
let o =
|
|
6074
|
-
if (
|
|
6075
|
-
const l =
|
|
6073
|
+
let o = Ge;
|
|
6074
|
+
if (Ke !== "all") {
|
|
6075
|
+
const l = Ke === "1d" ? 1 : Ke === "3d" ? 3 : 7, p = Date.now() - l * 864e5;
|
|
6076
6076
|
o = o.filter(
|
|
6077
6077
|
(q) => jt(q.updateTime || q.createTime) >= p
|
|
6078
6078
|
);
|
|
6079
6079
|
}
|
|
6080
6080
|
return [...o].sort((l, p) => {
|
|
6081
|
-
if ((
|
|
6081
|
+
if ((We == null ? void 0 : We.dim) === "name") {
|
|
6082
6082
|
const q = (l.title || "").localeCompare(
|
|
6083
6083
|
p.title || "",
|
|
6084
6084
|
"zh-CN"
|
|
6085
6085
|
);
|
|
6086
6086
|
if (q !== 0)
|
|
6087
|
-
return q * (
|
|
6087
|
+
return q * (We.order === "asc" ? 1 : -1);
|
|
6088
6088
|
}
|
|
6089
|
-
if ((
|
|
6089
|
+
if ((We == null ? void 0 : We.dim) === "time") {
|
|
6090
6090
|
const q = jt(l.updateTime || l.createTime) - jt(p.updateTime || p.createTime);
|
|
6091
6091
|
if (q !== 0)
|
|
6092
|
-
return q * (
|
|
6092
|
+
return q * (We.order === "asc" ? 1 : -1);
|
|
6093
6093
|
}
|
|
6094
6094
|
return (p.updateTime || p.createTime || "").localeCompare(
|
|
6095
6095
|
l.updateTime || l.createTime || ""
|
|
6096
6096
|
);
|
|
6097
6097
|
});
|
|
6098
|
-
}, [
|
|
6098
|
+
}, [Ge, Ke, We]), [wt, M] = c(() => {
|
|
6099
6099
|
try {
|
|
6100
6100
|
const o = localStorage.getItem("ft_sidebar_section_collapsed"), l = o ? JSON.parse(o) : [];
|
|
6101
6101
|
return new Set(
|
|
@@ -6122,7 +6122,7 @@ function Vp({
|
|
|
6122
6122
|
}), o === "personal" && l && qt();
|
|
6123
6123
|
},
|
|
6124
6124
|
[wt, qt]
|
|
6125
|
-
),
|
|
6125
|
+
), ue = V(() => {
|
|
6126
6126
|
if (!u) return;
|
|
6127
6127
|
const o = ie === "1d" ? 1 : ie === "3d" ? 3 : ie === "7d" ? 7 : 0;
|
|
6128
6128
|
if (o > 0) {
|
|
@@ -6135,10 +6135,10 @@ function Vp({
|
|
|
6135
6135
|
S();
|
|
6136
6136
|
}, [ie, u]);
|
|
6137
6137
|
W(() => {
|
|
6138
|
-
|
|
6139
|
-
}, [
|
|
6140
|
-
const
|
|
6141
|
-
|
|
6138
|
+
ue();
|
|
6139
|
+
}, [ue]);
|
|
6140
|
+
const He = V((o) => {
|
|
6141
|
+
at((l) => l.indexOf(o) >= 0 ? l.filter((q) => q !== o) : [...l, o]);
|
|
6142
6142
|
}, []), lt = V((o) => {
|
|
6143
6143
|
rt((l) => {
|
|
6144
6144
|
const p = l.findIndex((q) => q.dim === o);
|
|
@@ -6160,11 +6160,11 @@ function Vp({
|
|
|
6160
6160
|
Gt.current = !1;
|
|
6161
6161
|
return;
|
|
6162
6162
|
}
|
|
6163
|
-
|
|
6164
|
-
const o = setTimeout(() =>
|
|
6163
|
+
ot(!0);
|
|
6164
|
+
const o = setTimeout(() => ot(!1), 300);
|
|
6165
6165
|
return () => clearTimeout(o);
|
|
6166
6166
|
}, [Se, xe, kt, ie]);
|
|
6167
|
-
const Ct = I ||
|
|
6167
|
+
const Ct = I || et, Mt = V((o) => {
|
|
6168
6168
|
ee((l) => {
|
|
6169
6169
|
const p = new Set(l);
|
|
6170
6170
|
return p.has(o) ? p.delete(o) : p.add(o), p;
|
|
@@ -6174,20 +6174,20 @@ function Vp({
|
|
|
6174
6174
|
const l = [...kt.length === 0 ? _ : _.filter((Ne) => {
|
|
6175
6175
|
const we = Array.isArray(Ne.members) ? Ne.members.map((Le) => String(Le)) : [];
|
|
6176
6176
|
return kt.some(
|
|
6177
|
-
(Le) => nn(Le).some((
|
|
6177
|
+
(Le) => nn(Le).some((ze) => we.includes(ze))
|
|
6178
6178
|
);
|
|
6179
6179
|
})].sort((Ne, we) => {
|
|
6180
|
-
for (const { dim: Le, order:
|
|
6181
|
-
const
|
|
6180
|
+
for (const { dim: Le, order: ze } of xe) {
|
|
6181
|
+
const qe = ze === "asc" ? 1 : -1;
|
|
6182
6182
|
if (Le === "create_time") {
|
|
6183
6183
|
const Oe = jt(Ne.created_at) - jt(we.created_at);
|
|
6184
|
-
if (Oe !== 0) return Oe *
|
|
6184
|
+
if (Oe !== 0) return Oe * qe;
|
|
6185
6185
|
} else if (Le === "name") {
|
|
6186
6186
|
const Oe = (Ne.name || "").localeCompare(we.name || "", "zh-CN");
|
|
6187
|
-
if (Oe !== 0) return Oe *
|
|
6187
|
+
if (Oe !== 0) return Oe * qe;
|
|
6188
6188
|
} else if (Le === "id") {
|
|
6189
6189
|
const Oe = Qo(Ne.id, we.id);
|
|
6190
|
-
if (Oe !== 0) return Oe *
|
|
6190
|
+
if (Oe !== 0) return Oe * qe;
|
|
6191
6191
|
}
|
|
6192
6192
|
}
|
|
6193
6193
|
return jt(we.created_at) - jt(Ne.created_at);
|
|
@@ -6207,8 +6207,8 @@ function Vp({
|
|
|
6207
6207
|
Ne.status === "ACTIVE" ? "活跃" : Ne.status === "CLOSED" ? "关单" : Ne.status === "ARCHIVED" ? "已归档" : Ne.status || "未知"
|
|
6208
6208
|
];
|
|
6209
6209
|
case "time": {
|
|
6210
|
-
const Le = Ne.created_at || "",
|
|
6211
|
-
return [
|
|
6210
|
+
const Le = Ne.created_at || "", ze = Le.length >= 10 ? Le.slice(0, 10) : "(未知时间)";
|
|
6211
|
+
return [ze, ze];
|
|
6212
6212
|
}
|
|
6213
6213
|
case "test":
|
|
6214
6214
|
return Ne.parent_id != null ? ["fork", "Fork"] : ["normal", "正式"];
|
|
@@ -6217,24 +6217,24 @@ function Vp({
|
|
|
6217
6217
|
const q = ((fe = xe.find((Ne) => Ne.dim === "create_time")) == null ? void 0 : fe.order) === "asc";
|
|
6218
6218
|
function ae(Ne, we, Le) {
|
|
6219
6219
|
if (we.length === 0) return [];
|
|
6220
|
-
const [
|
|
6220
|
+
const [ze, ...qe] = we, Oe = /* @__PURE__ */ new Map();
|
|
6221
6221
|
for (const dt of Ne) {
|
|
6222
|
-
const [St, Tt] = p(dt,
|
|
6222
|
+
const [St, Tt] = p(dt, ze);
|
|
6223
6223
|
Oe.has(St) || Oe.set(St, { label: Tt, items: [] }), Oe.get(St).items.push(dt);
|
|
6224
6224
|
}
|
|
6225
6225
|
const ct = [];
|
|
6226
6226
|
for (const [dt, { label: St, items: Tt }] of Oe) {
|
|
6227
|
-
const Ot = `${Le}::${
|
|
6228
|
-
|
|
6227
|
+
const Ot = `${Le}::${ze}=${dt}`;
|
|
6228
|
+
qe.length === 0 ? ct.push({ key: Ot, label: St, projects: Tt, rawKey: dt }) : ct.push({
|
|
6229
6229
|
key: Ot,
|
|
6230
6230
|
label: St,
|
|
6231
6231
|
projects: Tt,
|
|
6232
|
-
children: ae(Tt,
|
|
6232
|
+
children: ae(Tt, qe, Ot),
|
|
6233
6233
|
rawKey: dt
|
|
6234
6234
|
});
|
|
6235
6235
|
}
|
|
6236
6236
|
return ct.sort((dt, St) => {
|
|
6237
|
-
if (
|
|
6237
|
+
if (ze === "time") {
|
|
6238
6238
|
const Tt = dt.rawKey === "(未知时间)" ? "" : dt.rawKey || "", Ot = St.rawKey === "(未知时间)" ? "" : St.rawKey || "";
|
|
6239
6239
|
return !Tt && !Ot ? 0 : Tt ? Ot ? q ? Tt.localeCompare(Ot) : Ot.localeCompare(Tt) : -1 : 1;
|
|
6240
6240
|
}
|
|
@@ -6255,33 +6255,33 @@ function Vp({
|
|
|
6255
6255
|
const fe = p.updateTime || p.createTime || "", Ne = fe.length >= 10 ? fe.slice(0, 10) : "(未知时间)";
|
|
6256
6256
|
return [Ne, Ne];
|
|
6257
6257
|
}
|
|
6258
|
-
const ae = Bt.get(
|
|
6259
|
-
return ae ? [
|
|
6258
|
+
const ae = Bt.get(Ye(p.personalAgentId));
|
|
6259
|
+
return ae ? [Ye(ae.id), ae.displayName] : ["__no_agent__", "未知伙伴"];
|
|
6260
6260
|
}
|
|
6261
6261
|
function l(p, q, ae) {
|
|
6262
6262
|
const [fe, ...Ne] = q;
|
|
6263
6263
|
if (!fe) return [];
|
|
6264
6264
|
const we = /* @__PURE__ */ new Map();
|
|
6265
|
-
for (const
|
|
6266
|
-
const [
|
|
6267
|
-
we.has(
|
|
6265
|
+
for (const ze of p) {
|
|
6266
|
+
const [qe, Oe] = o(ze, fe);
|
|
6267
|
+
we.has(qe) || we.set(qe, { label: Oe, items: [] }), we.get(qe).items.push(ze);
|
|
6268
6268
|
}
|
|
6269
6269
|
const Le = [];
|
|
6270
|
-
for (const [
|
|
6271
|
-
const ct = `${ae}sess::${fe}=${
|
|
6270
|
+
for (const [ze, { label: qe, items: Oe }] of we) {
|
|
6271
|
+
const ct = `${ae}sess::${fe}=${ze}`;
|
|
6272
6272
|
Le.push({
|
|
6273
6273
|
key: ct,
|
|
6274
|
-
label:
|
|
6274
|
+
label: qe,
|
|
6275
6275
|
sessions: Oe,
|
|
6276
6276
|
children: Ne.length > 0 ? l(Oe, Ne, ct) : void 0
|
|
6277
6277
|
});
|
|
6278
6278
|
}
|
|
6279
|
-
return Le.sort((
|
|
6279
|
+
return Le.sort((ze, qe) => {
|
|
6280
6280
|
if (fe === "time") {
|
|
6281
|
-
const Oe =
|
|
6281
|
+
const Oe = ze.label === "(未知时间)" ? "" : ze.label, ct = qe.label === "(未知时间)" ? "" : qe.label;
|
|
6282
6282
|
return !Oe && !ct ? 0 : Oe ? ct ? ct.localeCompare(Oe) : -1 : 1;
|
|
6283
6283
|
}
|
|
6284
|
-
return
|
|
6284
|
+
return qe.sessions.length - ze.sessions.length;
|
|
6285
6285
|
}), Le;
|
|
6286
6286
|
}
|
|
6287
6287
|
return l(Dt, Nt, "");
|
|
@@ -6310,7 +6310,7 @@ function Vp({
|
|
|
6310
6310
|
F(!1);
|
|
6311
6311
|
return;
|
|
6312
6312
|
}
|
|
6313
|
-
const o =
|
|
6313
|
+
const o = me.current;
|
|
6314
6314
|
if (!o) return;
|
|
6315
6315
|
const { width: l, height: p } = o.getBoundingClientRect(), q = 8;
|
|
6316
6316
|
let ae = O.initialX, fe = O.initialY;
|
|
@@ -6373,7 +6373,7 @@ function Vp({
|
|
|
6373
6373
|
(o, l, p, q, ae) => {
|
|
6374
6374
|
const fe = Array.isArray(o) ? o : [], Ne = ae ?? 16;
|
|
6375
6375
|
return fe.map((we) => {
|
|
6376
|
-
const Le = p ? `${p}/${we.name}` : we.name,
|
|
6376
|
+
const Le = p ? `${p}/${we.name}` : we.name, ze = q ? `${q.id}/${Le}` : Le, qe = q ? `${q.id}/${Le}` : Le, Oe = he.has(ze), ct = Ne + l * 20;
|
|
6377
6377
|
return /* @__PURE__ */ n("div", { children: [
|
|
6378
6378
|
/* @__PURE__ */ n(
|
|
6379
6379
|
"div",
|
|
@@ -6381,7 +6381,7 @@ function Vp({
|
|
|
6381
6381
|
className: `${m.fileItem} ${h === Le ? m.fileItemActive : ""}`,
|
|
6382
6382
|
style: { paddingLeft: ct },
|
|
6383
6383
|
onClick: () => {
|
|
6384
|
-
we.is_dir ? da(
|
|
6384
|
+
we.is_dir ? da(ze, Le) : Y(Le);
|
|
6385
6385
|
},
|
|
6386
6386
|
onContextMenu: (dt) => Vt(dt, we.is_dir ? "dir" : "file", {
|
|
6387
6387
|
...we,
|
|
@@ -6413,13 +6413,13 @@ function Vp({
|
|
|
6413
6413
|
]
|
|
6414
6414
|
}
|
|
6415
6415
|
),
|
|
6416
|
-
we.is_dir && Oe && /* @__PURE__ */ e("div", { children: ft[
|
|
6417
|
-
ft[
|
|
6416
|
+
we.is_dir && Oe && /* @__PURE__ */ e("div", { children: ft[qe] && ft[qe].length > 0 ? Eo(
|
|
6417
|
+
ft[qe],
|
|
6418
6418
|
l + 1,
|
|
6419
6419
|
Le,
|
|
6420
6420
|
q,
|
|
6421
6421
|
ae
|
|
6422
|
-
) : ft[
|
|
6422
|
+
) : ft[qe] ? /* @__PURE__ */ e(
|
|
6423
6423
|
"div",
|
|
6424
6424
|
{
|
|
6425
6425
|
className: m.emptyHint,
|
|
@@ -6449,7 +6449,7 @@ function Vp({
|
|
|
6449
6449
|
(o) => {
|
|
6450
6450
|
if (O && (ve(null), !(Qa.has(o) && !v))) {
|
|
6451
6451
|
if (o === "add-skill") {
|
|
6452
|
-
|
|
6452
|
+
Xe(!0);
|
|
6453
6453
|
return;
|
|
6454
6454
|
}
|
|
6455
6455
|
if (o === "refresh-agent-skills") {
|
|
@@ -6620,7 +6620,7 @@ function Vp({
|
|
|
6620
6620
|
]
|
|
6621
6621
|
), jn = V(
|
|
6622
6622
|
(o, l) => {
|
|
6623
|
-
const p = Bt.get(
|
|
6623
|
+
const p = Bt.get(Ye(o.personalAgentId));
|
|
6624
6624
|
return /* @__PURE__ */ n(
|
|
6625
6625
|
"div",
|
|
6626
6626
|
{
|
|
@@ -6631,14 +6631,14 @@ function Vp({
|
|
|
6631
6631
|
},
|
|
6632
6632
|
title: p ? o.title || "未命名会话" : "伙伴已不存在,无法打开",
|
|
6633
6633
|
onClick: () => {
|
|
6634
|
-
p && a && a(p,
|
|
6634
|
+
p && a && a(p, Ye(o.id));
|
|
6635
6635
|
},
|
|
6636
6636
|
children: [
|
|
6637
6637
|
/* @__PURE__ */ e("span", { className: m.fileItemIcon, children: te.user }),
|
|
6638
6638
|
/* @__PURE__ */ e("span", { className: m.fileItemName, children: o.title || "未命名会话" })
|
|
6639
6639
|
]
|
|
6640
6640
|
},
|
|
6641
|
-
|
|
6641
|
+
Ye(o.id)
|
|
6642
6642
|
);
|
|
6643
6643
|
},
|
|
6644
6644
|
[Bt, a]
|
|
@@ -6684,7 +6684,7 @@ function Vp({
|
|
|
6684
6684
|
]
|
|
6685
6685
|
}
|
|
6686
6686
|
),
|
|
6687
|
-
!p && /* @__PURE__ */ e(
|
|
6687
|
+
!p && /* @__PURE__ */ e(nt, { children: o.children && o.children.length > 0 ? o.children.map((ae) => ua(ae, l + 1)) : o.projects.map((ae) => Hn(ae, l)) })
|
|
6688
6688
|
] }, o.key);
|
|
6689
6689
|
},
|
|
6690
6690
|
[ut, Mt, Hn]
|
|
@@ -6783,7 +6783,7 @@ function Vp({
|
|
|
6783
6783
|
className: m.iconBtn,
|
|
6784
6784
|
disabled: I,
|
|
6785
6785
|
title: "刷新工作区",
|
|
6786
|
-
onClick:
|
|
6786
|
+
onClick: ue,
|
|
6787
6787
|
children: /* @__PURE__ */ e("span", { className: I ? m.refreshIconLoading : void 0, children: te.refresh })
|
|
6788
6788
|
}
|
|
6789
6789
|
)
|
|
@@ -6804,7 +6804,7 @@ function Vp({
|
|
|
6804
6804
|
type: "button",
|
|
6805
6805
|
className: `${m.iconChip} ${m.iconChipWithLabel} ${p ? m.iconChipActive : ""}`,
|
|
6806
6806
|
title: `按${o.label}分组`,
|
|
6807
|
-
onClick: () =>
|
|
6807
|
+
onClick: () => He(o.key),
|
|
6808
6808
|
children: [
|
|
6809
6809
|
p && /* @__PURE__ */ e("span", { className: m.iconChipOrder, children: l + 1 }),
|
|
6810
6810
|
o.icon,
|
|
@@ -6853,7 +6853,7 @@ function Vp({
|
|
|
6853
6853
|
"button",
|
|
6854
6854
|
{
|
|
6855
6855
|
type: "button",
|
|
6856
|
-
className: `${m.filterTimeOption} ${
|
|
6856
|
+
className: `${m.filterTimeOption} ${Ke === o.key ? m.filterTimeOptionActive : ""}`,
|
|
6857
6857
|
onClick: () => Et(o.key),
|
|
6858
6858
|
children: o.label
|
|
6859
6859
|
},
|
|
@@ -6889,7 +6889,7 @@ function Vp({
|
|
|
6889
6889
|
{ key: "time", label: "时间", icon: te.clock, defaultOrder: "desc" },
|
|
6890
6890
|
{ key: "name", label: "名称", icon: te.textT, defaultOrder: "asc" }
|
|
6891
6891
|
].map((o) => {
|
|
6892
|
-
const l = (
|
|
6892
|
+
const l = (We == null ? void 0 : We.dim) === o.key, p = l ? We.order : void 0;
|
|
6893
6893
|
return /* @__PURE__ */ n(
|
|
6894
6894
|
"button",
|
|
6895
6895
|
{
|
|
@@ -6927,13 +6927,13 @@ function Vp({
|
|
|
6927
6927
|
onOpenPersonalTab: s.onOpenPersonalTab,
|
|
6928
6928
|
onOpenWorkbenchShell: s.onOpenWorkbenchShell,
|
|
6929
6929
|
onOpenSearch: () => pt((o) => !o),
|
|
6930
|
-
searchActive:
|
|
6930
|
+
searchActive: Ue
|
|
6931
6931
|
}
|
|
6932
6932
|
) }),
|
|
6933
|
-
|
|
6933
|
+
Ue && /* @__PURE__ */ e(
|
|
6934
6934
|
Up,
|
|
6935
6935
|
{
|
|
6936
|
-
sessions:
|
|
6936
|
+
sessions: Ge,
|
|
6937
6937
|
agentsById: Bt,
|
|
6938
6938
|
projects: _,
|
|
6939
6939
|
token: le,
|
|
@@ -6952,7 +6952,7 @@ function Vp({
|
|
|
6952
6952
|
"正在查询工作区…"
|
|
6953
6953
|
] }),
|
|
6954
6954
|
/* @__PURE__ */ n("div", { className: Ct ? m.listQueryingContent : void 0, children: [
|
|
6955
|
-
Kt && /* @__PURE__ */ n(
|
|
6955
|
+
Kt && /* @__PURE__ */ n(nt, { children: [
|
|
6956
6956
|
/* @__PURE__ */ n(
|
|
6957
6957
|
"div",
|
|
6958
6958
|
{
|
|
@@ -6985,13 +6985,13 @@ function Vp({
|
|
|
6985
6985
|
]
|
|
6986
6986
|
}
|
|
6987
6987
|
),
|
|
6988
|
-
!wt.has("personal") && /* @__PURE__ */ n(
|
|
6988
|
+
!wt.has("personal") && /* @__PURE__ */ n(nt, { children: [
|
|
6989
6989
|
Nt.length === 0 ? Dt.map(
|
|
6990
6990
|
(o) => jn(o)
|
|
6991
6991
|
) : Fn.map(
|
|
6992
6992
|
(o) => ma(o, 0)
|
|
6993
6993
|
),
|
|
6994
|
-
!Ct && Dt.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children:
|
|
6994
|
+
!Ct && Dt.length === 0 && /* @__PURE__ */ e("div", { className: m.emptyHint, children: Ke !== "all" ? "该时间段内无单聊" : "暂无单聊,点「云端任务」开始" })
|
|
6995
6995
|
] })
|
|
6996
6996
|
] }),
|
|
6997
6997
|
/* @__PURE__ */ n(
|
|
@@ -7026,7 +7026,7 @@ function Vp({
|
|
|
7026
7026
|
]
|
|
7027
7027
|
}
|
|
7028
7028
|
),
|
|
7029
|
-
!wt.has("group") && /* @__PURE__ */ n(
|
|
7029
|
+
!wt.has("group") && /* @__PURE__ */ n(nt, { children: [
|
|
7030
7030
|
Se.length === 0 ? (ba = Ht[0]) == null ? void 0 : ba.projects.map(
|
|
7031
7031
|
(o) => Hn(o)
|
|
7032
7032
|
) : Ht.map((o) => ua(o, 0)),
|
|
@@ -7038,7 +7038,7 @@ function Vp({
|
|
|
7038
7038
|
O && /* @__PURE__ */ e(
|
|
7039
7039
|
"div",
|
|
7040
7040
|
{
|
|
7041
|
-
ref:
|
|
7041
|
+
ref: me,
|
|
7042
7042
|
className: m.contextMenu,
|
|
7043
7043
|
style: {
|
|
7044
7044
|
left: Ae.x,
|
|
@@ -7085,9 +7085,9 @@ function Vp({
|
|
|
7085
7085
|
await $(fe);
|
|
7086
7086
|
for (const fe of ae)
|
|
7087
7087
|
await R(fe.id);
|
|
7088
|
-
|
|
7088
|
+
Xe(!1);
|
|
7089
7089
|
},
|
|
7090
|
-
onClose: () =>
|
|
7090
|
+
onClose: () => Xe(!1)
|
|
7091
7091
|
}
|
|
7092
7092
|
),
|
|
7093
7093
|
/* @__PURE__ */ e(
|
|
@@ -7571,7 +7571,7 @@ const Lh = "_layout_i9evc_1", Eh = "_banner_i9evc_8", Ph = "_bannerLeft_i9evc_20
|
|
|
7571
7571
|
smartWorkbenchArea: Of
|
|
7572
7572
|
}, Rf = "/api";
|
|
7573
7573
|
ki({ apiBase: Rf });
|
|
7574
|
-
const Ff = yt(() => import("./index-
|
|
7574
|
+
const Ff = yt(() => import("./index-60oB6_Xg.js")), Bf = yt(() => import("./index-Cr589chh.js")), Hf = yt(() => import("./index-bsGAZKaU.js")), jf = yt(() => import("./index-NPxrK-81.js")), Wf = yt(() => import("./index-CBNl1a7_.js").then((t) => t.i)), zf = yt(() => import("./index-B847h2X1.js")), Uf = yt(() => import("./index-DMvs2G1h.js")), Gf = yt(() => import("./index-BVh0W8ck.js")), Kf = yt(() => import("./index-DbHOY3ig.js")), qf = yt(() => import("./index-Dvhocfyo.js")), Vf = yt(() => import("./index-CrgU396B.js")), Jf = yt(() => import("./index-B7OdhOMb.js")), Xa = yt(() => import("./SystemShell-DcxZUrpj.js")), Yf = `${window.publicPath ?? "/"}logo.svg`, Ao = "ft_popup_read";
|
|
7575
7575
|
function eo(t) {
|
|
7576
7576
|
return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
|
|
7577
7577
|
}
|
|
@@ -7612,7 +7612,7 @@ function Zf({
|
|
|
7612
7612
|
() => localStorage.getItem("ft_sidebar_collapsed") === "true"
|
|
7613
7613
|
), [Z, x] = c(!1), [A, G] = c(0), [ne, Q] = c(!1), [T, y] = c(null), [r, f] = c(0), [C, g] = c(!1), [$, R] = c(0), [k, J] = c([]), [H, j] = c(0), [S, v] = c(!1), [O, ve] = c([]), [Ae, $e] = c(0), de = Pe(() => {
|
|
7614
7614
|
const M = T == null ? void 0 : T.announcements;
|
|
7615
|
-
return (M && M.length > 0 ? M : T != null && T.announcement ? [T.announcement] : []).filter((
|
|
7615
|
+
return (M && M.length > 0 ? M : T != null && T.announcement ? [T.announcement] : []).filter((ue) => ue.title || ue.content);
|
|
7616
7616
|
}, [T]), F = Pe(
|
|
7617
7617
|
() => Math.max(1e3, (T == null ? void 0 : T.bannerRotateInterval) ?? 5e3),
|
|
7618
7618
|
[T == null ? void 0 : T.bannerRotateInterval]
|
|
@@ -7626,7 +7626,7 @@ function Zf({
|
|
|
7626
7626
|
}, [de.length, C, F]), W(() => {
|
|
7627
7627
|
if (S) return;
|
|
7628
7628
|
const M = $o(), oe = de.filter(
|
|
7629
|
-
(
|
|
7629
|
+
(ue) => ue.remindType === "POPUP" && !M.includes(eo(ue))
|
|
7630
7630
|
);
|
|
7631
7631
|
oe.length !== 0 && (J(oe), j(0), v(!0));
|
|
7632
7632
|
}, [de, S]);
|
|
@@ -7641,27 +7641,27 @@ function Zf({
|
|
|
7641
7641
|
let M = !0;
|
|
7642
7642
|
const oe = async () => {
|
|
7643
7643
|
try {
|
|
7644
|
-
const
|
|
7645
|
-
M && (y(
|
|
7644
|
+
const He = await $a();
|
|
7645
|
+
M && (y(He), ve((lt) => lt.length > 0 ? lt : He.quotes ?? []));
|
|
7646
7646
|
} catch {
|
|
7647
7647
|
}
|
|
7648
7648
|
};
|
|
7649
7649
|
oe();
|
|
7650
|
-
const
|
|
7650
|
+
const ue = setInterval(() => void oe(), 6e4);
|
|
7651
7651
|
return () => {
|
|
7652
|
-
M = !1, clearInterval(
|
|
7652
|
+
M = !1, clearInterval(ue);
|
|
7653
7653
|
};
|
|
7654
7654
|
}, []), W(() => {
|
|
7655
7655
|
if (O.length === 0) return;
|
|
7656
7656
|
const M = setInterval(() => {
|
|
7657
7657
|
document.hidden || $e((oe) => {
|
|
7658
|
-
const
|
|
7659
|
-
return
|
|
7658
|
+
const ue = oe + 1;
|
|
7659
|
+
return ue < O.length ? ue : (re(), 0);
|
|
7660
7660
|
});
|
|
7661
7661
|
}, 1e4);
|
|
7662
7662
|
return () => clearInterval(M);
|
|
7663
7663
|
}, [O, re]);
|
|
7664
|
-
const [
|
|
7664
|
+
const [me, X] = c(null), [pe, Ce] = c("chat"), [Xe, ft] = c(0), [K, he] = c(0), [ke, Se] = c(null), [at, xe] = c("group"), [rt, ut] = c([]), ee = Pe(
|
|
7665
7665
|
() => st(h, "personal"),
|
|
7666
7666
|
[h]
|
|
7667
7667
|
);
|
|
@@ -7670,9 +7670,9 @@ function Zf({
|
|
|
7670
7670
|
});
|
|
7671
7671
|
}, [ee, ke == null ? void 0 : ke.ts]);
|
|
7672
7672
|
const ie = V(
|
|
7673
|
-
(M, oe = null) => {
|
|
7673
|
+
(M, oe = null, ue = !1) => {
|
|
7674
7674
|
x(!1), xe("personal"), Se(
|
|
7675
|
-
(
|
|
7675
|
+
(He) => He && He.kind === "chat" && He.agent.id === M.id && He.sessionId === oe && He.draft === ue ? He : { kind: "chat", agent: M, sessionId: oe, draft: ue, ts: Date.now() }
|
|
7676
7676
|
);
|
|
7677
7677
|
},
|
|
7678
7678
|
[]
|
|
@@ -7683,36 +7683,36 @@ function Zf({
|
|
|
7683
7683
|
x(!1), xe("personal"), Se(M);
|
|
7684
7684
|
}, []), Be = V(() => {
|
|
7685
7685
|
const M = Pa(rt);
|
|
7686
|
-
M && ie(M, null);
|
|
7686
|
+
M && ie(M, null, !0);
|
|
7687
7687
|
}, [rt, ie]), le = V(
|
|
7688
7688
|
async (M) => {
|
|
7689
7689
|
const oe = Pa(rt);
|
|
7690
7690
|
if (oe)
|
|
7691
7691
|
try {
|
|
7692
|
-
const
|
|
7692
|
+
const ue = await Xo(
|
|
7693
7693
|
oe.id,
|
|
7694
7694
|
"新会话",
|
|
7695
7695
|
U.getState().token,
|
|
7696
7696
|
M
|
|
7697
7697
|
);
|
|
7698
|
-
ie(oe,
|
|
7698
|
+
ie(oe, Ye(ue.id));
|
|
7699
7699
|
} catch {
|
|
7700
7700
|
}
|
|
7701
7701
|
},
|
|
7702
7702
|
[rt, ie]
|
|
7703
|
-
),
|
|
7703
|
+
), Ue = V(
|
|
7704
7704
|
(M) => {
|
|
7705
7705
|
const oe = Dl(M);
|
|
7706
7706
|
oe && !En(h, oe) || Me({ kind: "tab", tab: M, ts: Date.now() });
|
|
7707
7707
|
},
|
|
7708
7708
|
[h, Me]
|
|
7709
7709
|
), pt = V(() => {
|
|
7710
|
-
|
|
7710
|
+
Ge("personal");
|
|
7711
7711
|
}, []);
|
|
7712
7712
|
W(() => {
|
|
7713
7713
|
N && xe("group");
|
|
7714
7714
|
}, [N]);
|
|
7715
|
-
const [
|
|
7715
|
+
const [et, ot] = c(() => (xn(), xi())), [Gt, kt] = c(() => {
|
|
7716
7716
|
try {
|
|
7717
7717
|
xn();
|
|
7718
7718
|
const M = new URL(window.location.href).searchParams.get("mode");
|
|
@@ -7737,7 +7737,7 @@ function Zf({
|
|
|
7737
7737
|
const _e = (
|
|
7738
7738
|
// /test/ 路径优先识别为 test 模式 (main.jsx 的 /test/* 路由传入 forcedChatMode='system',
|
|
7739
7739
|
// 但测试工作台需要 test 模式来渲染正确的菜单和高亮)
|
|
7740
|
-
Gt === "test" || s === "system" && window.location.pathname.startsWith("/test/") ? "test" : s && !Gt ? s : Gt ?? s ??
|
|
7740
|
+
Gt === "test" || s === "system" && window.location.pathname.startsWith("/test/") ? "test" : s && !Gt ? s : Gt ?? s ?? et
|
|
7741
7741
|
), [yn, en] = c(!1), [ca, tn] = c(null), [bn, vn] = c(null), [nn, kn] = c(
|
|
7742
7742
|
null
|
|
7743
7743
|
);
|
|
@@ -7745,17 +7745,17 @@ function Zf({
|
|
|
7745
7745
|
try {
|
|
7746
7746
|
const M = new URLSearchParams(window.location.search), oe = M.get("openNote");
|
|
7747
7747
|
if (oe === "1" || oe === "true") {
|
|
7748
|
-
|
|
7748
|
+
ot("collaboration"), en(!0);
|
|
7749
7749
|
const sn = String(
|
|
7750
7750
|
M.get("projectId") ?? M.get("project_id") ?? ""
|
|
7751
|
-
).trim(), Ct =
|
|
7751
|
+
).trim(), Ct = Ye(sn);
|
|
7752
7752
|
so(Ct) && tn(Ct);
|
|
7753
7753
|
}
|
|
7754
|
-
const
|
|
7755
|
-
if (
|
|
7756
|
-
|
|
7757
|
-
const sn =
|
|
7758
|
-
lt && vn(lt), on && kn(
|
|
7754
|
+
const ue = M.get("mode"), He = M.get("agentId"), lt = M.get("tab"), on = M.get("sessionId");
|
|
7755
|
+
if (ue === "personal" && He) {
|
|
7756
|
+
ot("personal");
|
|
7757
|
+
const sn = Ye(He);
|
|
7758
|
+
lt && vn(lt), on && kn(Ye(on));
|
|
7759
7759
|
const Ct = U.getState().token;
|
|
7760
7760
|
Qn(Ct).then((Ht) => {
|
|
7761
7761
|
const rn = Ht.find((Fn) => Wt(Fn.id, sn));
|
|
@@ -7768,26 +7768,26 @@ function Zf({
|
|
|
7768
7768
|
} catch {
|
|
7769
7769
|
}
|
|
7770
7770
|
}, []), W(() => {
|
|
7771
|
-
Mi(
|
|
7772
|
-
}, [
|
|
7773
|
-
const Kt = ce(
|
|
7771
|
+
Mi(et);
|
|
7772
|
+
}, [et]);
|
|
7773
|
+
const Kt = ce(et);
|
|
7774
7774
|
W(() => {
|
|
7775
|
-
Kt.current =
|
|
7776
|
-
}, [
|
|
7775
|
+
Kt.current = et;
|
|
7776
|
+
}, [et]), W(() => {
|
|
7777
7777
|
const M = () => {
|
|
7778
7778
|
try {
|
|
7779
7779
|
xn();
|
|
7780
7780
|
const oe = new URL(window.location.href);
|
|
7781
|
-
let
|
|
7782
|
-
!
|
|
7783
|
-
const
|
|
7784
|
-
|
|
7781
|
+
let ue = oe.searchParams.get("mode");
|
|
7782
|
+
!ue && oe.pathname.startsWith("/admin") && (ue = "admin"), !ue && oe.pathname.startsWith("/ops/") && (ue = "ops"), !ue && Zn(oe.pathname) === "middleware" && (ue = "middleware");
|
|
7783
|
+
const He = ue && $n.includes(ue) ? ue : "collaboration";
|
|
7784
|
+
He !== Kt.current && ot(He);
|
|
7785
7785
|
} catch {
|
|
7786
7786
|
}
|
|
7787
7787
|
};
|
|
7788
7788
|
return window.addEventListener("popstate", M), M(), () => window.removeEventListener("popstate", M);
|
|
7789
7789
|
}, []);
|
|
7790
|
-
const
|
|
7790
|
+
const Ge = V((M) => {
|
|
7791
7791
|
const oe = window.location.pathname;
|
|
7792
7792
|
if (M === "system") {
|
|
7793
7793
|
if (_e === "system")
|
|
@@ -7811,30 +7811,30 @@ function Zf({
|
|
|
7811
7811
|
bt.push("/rpa/dashboard");
|
|
7812
7812
|
return;
|
|
7813
7813
|
}
|
|
7814
|
-
let
|
|
7814
|
+
let ue = "";
|
|
7815
7815
|
try {
|
|
7816
7816
|
const lt = new URL(window.location.href).searchParams.get("desktop");
|
|
7817
|
-
(lt === "1" || lt === "true") && (
|
|
7817
|
+
(lt === "1" || lt === "true") && (ue = `&desktop=${lt}`);
|
|
7818
7818
|
} catch {
|
|
7819
7819
|
}
|
|
7820
|
-
let
|
|
7820
|
+
let He = "";
|
|
7821
7821
|
try {
|
|
7822
7822
|
const lt = new URL(window.location.href).searchParams.get(zt);
|
|
7823
|
-
lt && (
|
|
7823
|
+
lt && (He = `&${zt}=${encodeURIComponent(lt)}`);
|
|
7824
7824
|
} catch {
|
|
7825
7825
|
}
|
|
7826
|
-
bt.push(`/workspace?mode=${M}${
|
|
7826
|
+
bt.push(`/workspace?mode=${M}${ue}${He}`);
|
|
7827
7827
|
}, [_e]), an = (M) => {
|
|
7828
7828
|
Y(M), localStorage.setItem("ft_sidebar_collapsed", M ? "true" : "false");
|
|
7829
7829
|
}, Ft = U((M) => M.personalChatNav);
|
|
7830
7830
|
W(() => {
|
|
7831
|
-
Ft.trigger > 0 && Ft.agent && (
|
|
7831
|
+
Ft.trigger > 0 && Ft.agent && (ot("personal"), X(Ft.agent), Ce("chat"), ft((M) => M + 1), he(Date.now()));
|
|
7832
7832
|
}, [Ft.trigger]);
|
|
7833
7833
|
const Nn = V(
|
|
7834
7834
|
(M, oe) => {
|
|
7835
|
-
|
|
7835
|
+
ot("collaboration"), oe && (en(!0), tn(M)), bt.push(`/workspace?projectId=${M}`);
|
|
7836
7836
|
},
|
|
7837
|
-
[
|
|
7837
|
+
[ot]
|
|
7838
7838
|
), qt = h != null && h.avatar && (h.avatar.startsWith("http") || h.avatar.startsWith("data:")) ? h.avatar : void 0, Bt = [
|
|
7839
7839
|
{
|
|
7840
7840
|
key: "logout",
|
|
@@ -7844,13 +7844,13 @@ function Zf({
|
|
|
7844
7844
|
fo();
|
|
7845
7845
|
}
|
|
7846
7846
|
}
|
|
7847
|
-
],
|
|
7848
|
-
if (!
|
|
7849
|
-
const M = [], { publishTime: oe, effectiveStartTime:
|
|
7850
|
-
return oe && M.push(`发布时间:${oe}`), (
|
|
7851
|
-
`生效时间:${
|
|
7847
|
+
], Ke = O[Ae], Et = de.length > 0 ? de[r % de.length] : void 0, Nt = (Et == null ? void 0 : Et.title) || (Et == null ? void 0 : Et.content) || "", wn = de.length > 0 ? $ % de.length : 0, We = de[wn], Cn = Pe(() => {
|
|
7848
|
+
if (!We) return [];
|
|
7849
|
+
const M = [], { publishTime: oe, effectiveStartTime: ue, effectiveEndTime: He } = We;
|
|
7850
|
+
return oe && M.push(`发布时间:${oe}`), (ue || He) && M.push(
|
|
7851
|
+
`生效时间:${ue || "不限"} ~ ${He || "不限"}`
|
|
7852
7852
|
), M;
|
|
7853
|
-
}, [
|
|
7853
|
+
}, [We]), Rn = V(() => {
|
|
7854
7854
|
R(
|
|
7855
7855
|
de.length > 0 ? r % de.length : 0
|
|
7856
7856
|
), g(!0);
|
|
@@ -7886,20 +7886,20 @@ function Zf({
|
|
|
7886
7886
|
]
|
|
7887
7887
|
}
|
|
7888
7888
|
),
|
|
7889
|
-
(
|
|
7889
|
+
(Ke == null ? void 0 : Ke.content) && /* @__PURE__ */ n(
|
|
7890
7890
|
"div",
|
|
7891
7891
|
{
|
|
7892
7892
|
className: `${D.bannerTipLine} ${D.bannerQuoteLine}`,
|
|
7893
|
-
title:
|
|
7893
|
+
title: Ke.author ? `${Ke.content} —— ${Ke.author}` : Ke.content,
|
|
7894
7894
|
children: [
|
|
7895
|
-
/* @__PURE__ */ e("span", { className: D.bannerTipText, children:
|
|
7896
|
-
|
|
7895
|
+
/* @__PURE__ */ e("span", { className: D.bannerTipText, children: Ke.content }),
|
|
7896
|
+
Ke.author && /* @__PURE__ */ n("span", { className: D.quoteAuthor, children: [
|
|
7897
7897
|
"—— ",
|
|
7898
|
-
|
|
7898
|
+
Ke.author
|
|
7899
7899
|
] })
|
|
7900
7900
|
]
|
|
7901
7901
|
},
|
|
7902
|
-
`${
|
|
7902
|
+
`${Ke.content}-${Ke.author}`
|
|
7903
7903
|
)
|
|
7904
7904
|
] }),
|
|
7905
7905
|
/* @__PURE__ */ n("div", { className: D.bannerRight, children: [
|
|
@@ -7919,7 +7919,7 @@ function Zf({
|
|
|
7919
7919
|
{
|
|
7920
7920
|
type: "button",
|
|
7921
7921
|
className: `${D.modeToggleBtn} ${_e === "personal" ? D.modeToggleBtnActive : ""}`,
|
|
7922
|
-
onClick: () =>
|
|
7922
|
+
onClick: () => Ge("personal"),
|
|
7923
7923
|
title: "个人",
|
|
7924
7924
|
children: /* @__PURE__ */ e(po, {})
|
|
7925
7925
|
}
|
|
@@ -7929,7 +7929,7 @@ function Zf({
|
|
|
7929
7929
|
{
|
|
7930
7930
|
type: "button",
|
|
7931
7931
|
className: `${D.modeToggleBtn} ${_e === "life" ? D.modeToggleBtnActive : ""}`,
|
|
7932
|
-
onClick: () =>
|
|
7932
|
+
onClick: () => Ge("life"),
|
|
7933
7933
|
title: "生活",
|
|
7934
7934
|
children: /* @__PURE__ */ e(Qs, {})
|
|
7935
7935
|
}
|
|
@@ -7939,7 +7939,7 @@ function Zf({
|
|
|
7939
7939
|
{
|
|
7940
7940
|
type: "button",
|
|
7941
7941
|
className: `${D.modeToggleBtn} ${_e === "training" ? D.modeToggleBtnActive : ""}`,
|
|
7942
|
-
onClick: () =>
|
|
7942
|
+
onClick: () => Ge("training"),
|
|
7943
7943
|
title: "培训",
|
|
7944
7944
|
children: /* @__PURE__ */ e(uo, {})
|
|
7945
7945
|
}
|
|
@@ -7949,7 +7949,7 @@ function Zf({
|
|
|
7949
7949
|
{
|
|
7950
7950
|
type: "button",
|
|
7951
7951
|
className: `${D.modeToggleBtn} ${_e === "knowledge" ? D.modeToggleBtnActive : ""}`,
|
|
7952
|
-
onClick: () =>
|
|
7952
|
+
onClick: () => Ge("knowledge"),
|
|
7953
7953
|
title: "知识",
|
|
7954
7954
|
children: /* @__PURE__ */ e(Zs, {})
|
|
7955
7955
|
}
|
|
@@ -7959,7 +7959,7 @@ function Zf({
|
|
|
7959
7959
|
{
|
|
7960
7960
|
type: "button",
|
|
7961
7961
|
className: `${D.modeToggleBtn} ${_e === "smart" ? D.modeToggleBtnActive : ""}`,
|
|
7962
|
-
onClick: () =>
|
|
7962
|
+
onClick: () => Ge("smart"),
|
|
7963
7963
|
title: "智能",
|
|
7964
7964
|
children: /* @__PURE__ */ e(Xs, {})
|
|
7965
7965
|
}
|
|
@@ -7969,7 +7969,7 @@ function Zf({
|
|
|
7969
7969
|
{
|
|
7970
7970
|
type: "button",
|
|
7971
7971
|
className: `${D.modeToggleBtn} ${_e === "collaboration" ? D.modeToggleBtnActive : ""}`,
|
|
7972
|
-
onClick: () =>
|
|
7972
|
+
onClick: () => Ge("collaboration"),
|
|
7973
7973
|
title: "协作",
|
|
7974
7974
|
children: /* @__PURE__ */ e(ei, {})
|
|
7975
7975
|
}
|
|
@@ -7979,7 +7979,7 @@ function Zf({
|
|
|
7979
7979
|
{
|
|
7980
7980
|
type: "button",
|
|
7981
7981
|
className: `${D.modeToggleBtn} ${_e === "product" ? D.modeToggleBtnActive : ""}`,
|
|
7982
|
-
onClick: () =>
|
|
7982
|
+
onClick: () => Ge("product"),
|
|
7983
7983
|
title: "产品",
|
|
7984
7984
|
children: /* @__PURE__ */ e(ti, {})
|
|
7985
7985
|
}
|
|
@@ -7989,7 +7989,7 @@ function Zf({
|
|
|
7989
7989
|
{
|
|
7990
7990
|
type: "button",
|
|
7991
7991
|
className: `${D.modeToggleBtn} ${_e === "dev" ? D.modeToggleBtnActive : ""}`,
|
|
7992
|
-
onClick: () =>
|
|
7992
|
+
onClick: () => Ge("dev"),
|
|
7993
7993
|
title: "研发",
|
|
7994
7994
|
children: /* @__PURE__ */ e(ni, {})
|
|
7995
7995
|
}
|
|
@@ -7999,7 +7999,7 @@ function Zf({
|
|
|
7999
7999
|
{
|
|
8000
8000
|
type: "button",
|
|
8001
8001
|
className: `${D.modeToggleBtn} ${_e === "test" ? D.modeToggleBtnActive : ""}`,
|
|
8002
|
-
onClick: () =>
|
|
8002
|
+
onClick: () => Ge("test"),
|
|
8003
8003
|
title: "测试",
|
|
8004
8004
|
children: /* @__PURE__ */ e(ra, {})
|
|
8005
8005
|
}
|
|
@@ -8009,7 +8009,7 @@ function Zf({
|
|
|
8009
8009
|
{
|
|
8010
8010
|
type: "button",
|
|
8011
8011
|
className: `${D.modeToggleBtn} ${_e === "ops" ? D.modeToggleBtnActive : ""}`,
|
|
8012
|
-
onClick: () =>
|
|
8012
|
+
onClick: () => Ge("ops"),
|
|
8013
8013
|
title: "运维",
|
|
8014
8014
|
children: /* @__PURE__ */ e(ai, {})
|
|
8015
8015
|
}
|
|
@@ -8019,7 +8019,7 @@ function Zf({
|
|
|
8019
8019
|
{
|
|
8020
8020
|
type: "button",
|
|
8021
8021
|
className: `${D.modeToggleBtn} ${_e === "middleware" ? D.modeToggleBtnActive : ""}`,
|
|
8022
|
-
onClick: () =>
|
|
8022
|
+
onClick: () => Ge("middleware"),
|
|
8023
8023
|
title: "中间件",
|
|
8024
8024
|
children: /* @__PURE__ */ e(oi, {})
|
|
8025
8025
|
}
|
|
@@ -8029,7 +8029,7 @@ function Zf({
|
|
|
8029
8029
|
{
|
|
8030
8030
|
type: "button",
|
|
8031
8031
|
className: `${D.modeToggleBtn} ${_e === "admin" ? D.modeToggleBtnActive : ""}`,
|
|
8032
|
-
onClick: () =>
|
|
8032
|
+
onClick: () => Ge("admin"),
|
|
8033
8033
|
title: "运营",
|
|
8034
8034
|
children: /* @__PURE__ */ e(Xn, {})
|
|
8035
8035
|
}
|
|
@@ -8039,7 +8039,7 @@ function Zf({
|
|
|
8039
8039
|
{
|
|
8040
8040
|
type: "button",
|
|
8041
8041
|
className: `${D.modeToggleBtn} ${_e === "system" ? D.modeToggleBtnActive : ""}`,
|
|
8042
|
-
onClick: () =>
|
|
8042
|
+
onClick: () => Ge("system"),
|
|
8043
8043
|
title: "系统",
|
|
8044
8044
|
children: /* @__PURE__ */ e(si, {})
|
|
8045
8045
|
}
|
|
@@ -8049,7 +8049,7 @@ function Zf({
|
|
|
8049
8049
|
{
|
|
8050
8050
|
type: "button",
|
|
8051
8051
|
className: `${D.modeToggleBtn} ${_e === "rpa" ? D.modeToggleBtnActive : ""}`,
|
|
8052
|
-
onClick: () =>
|
|
8052
|
+
onClick: () => Ge("rpa"),
|
|
8053
8053
|
title: "RPA",
|
|
8054
8054
|
children: /* @__PURE__ */ e(ii, {})
|
|
8055
8055
|
}
|
|
@@ -8105,7 +8105,7 @@ function Zf({
|
|
|
8105
8105
|
Gf,
|
|
8106
8106
|
{
|
|
8107
8107
|
embedded: !0,
|
|
8108
|
-
onSwitchToCollaboration: () =>
|
|
8108
|
+
onSwitchToCollaboration: () => ot("collaboration")
|
|
8109
8109
|
}
|
|
8110
8110
|
)
|
|
8111
8111
|
) : _e === "system" ? (
|
|
@@ -8120,7 +8120,7 @@ function Zf({
|
|
|
8120
8120
|
/* ── FEATURE063: RPA 模式 ──
|
|
8121
8121
|
* 左侧 RpaSidebar (7 个菜单) + 右侧 useRoutes 渲染 7 个一级页面.
|
|
8122
8122
|
*/
|
|
8123
|
-
/* @__PURE__ */ e("div", { className: D.smartWorkbenchArea, children: /* @__PURE__ */ e(Vf, { onModeSwitch:
|
|
8123
|
+
/* @__PURE__ */ e("div", { className: D.smartWorkbenchArea, children: /* @__PURE__ */ e(Vf, { onModeSwitch: Ge }) })
|
|
8124
8124
|
) : _e === "product" ? (
|
|
8125
8125
|
/* ── 产品工作台 ── */
|
|
8126
8126
|
/* @__PURE__ */ e("div", { className: D.smartWorkbenchArea, children: /* @__PURE__ */ e(Jf, {}) })
|
|
@@ -8154,11 +8154,11 @@ function Zf({
|
|
|
8154
8154
|
Ff,
|
|
8155
8155
|
{
|
|
8156
8156
|
onOpenProject: Nn,
|
|
8157
|
-
onSwitchMode: (M) =>
|
|
8157
|
+
onSwitchMode: (M) => Ge(M),
|
|
8158
8158
|
openAgentRequest: {
|
|
8159
|
-
agent:
|
|
8159
|
+
agent: me,
|
|
8160
8160
|
view: pe,
|
|
8161
|
-
newSession:
|
|
8161
|
+
newSession: Xe,
|
|
8162
8162
|
ts: K
|
|
8163
8163
|
}
|
|
8164
8164
|
}
|
|
@@ -8205,7 +8205,7 @@ function Zf({
|
|
|
8205
8205
|
kind: "history",
|
|
8206
8206
|
ts: Date.now()
|
|
8207
8207
|
}),
|
|
8208
|
-
onOpenPersonalTab:
|
|
8208
|
+
onOpenPersonalTab: Ue,
|
|
8209
8209
|
onOpenWorkbenchShell: pt
|
|
8210
8210
|
} : void 0
|
|
8211
8211
|
}
|
|
@@ -8237,7 +8237,7 @@ function Zf({
|
|
|
8237
8237
|
onCreated: _,
|
|
8238
8238
|
presetScenarioCode: u
|
|
8239
8239
|
}
|
|
8240
|
-
) :
|
|
8240
|
+
) : at === "personal" ? ke ? /* @__PURE__ */ e("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ e(zn, { fallback: /* @__PURE__ */ e("div", { style: { padding: 24, color: "rgba(0,0,0,0.45)" }, children: "加载中…" }), children: /* @__PURE__ */ e(
|
|
8241
8241
|
Bf,
|
|
8242
8242
|
{
|
|
8243
8243
|
view: ke,
|
|
@@ -8250,7 +8250,7 @@ function Zf({
|
|
|
8250
8250
|
ts: Date.now()
|
|
8251
8251
|
}),
|
|
8252
8252
|
onBackToExtensions: () => Me({ kind: "extensions", ts: Date.now() }),
|
|
8253
|
-
onOpenTab:
|
|
8253
|
+
onOpenTab: Ue,
|
|
8254
8254
|
onAgentCreated: (M) => ut((oe) => [...oe, M]),
|
|
8255
8255
|
onOpenProject: Nn
|
|
8256
8256
|
}
|
|
@@ -8271,7 +8271,7 @@ function Zf({
|
|
|
8271
8271
|
/* @__PURE__ */ e(
|
|
8272
8272
|
Mo,
|
|
8273
8273
|
{
|
|
8274
|
-
lane:
|
|
8274
|
+
lane: at,
|
|
8275
8275
|
onLaneChange: xe
|
|
8276
8276
|
}
|
|
8277
8277
|
),
|
|
@@ -8289,7 +8289,7 @@ function Zf({
|
|
|
8289
8289
|
) : /* @__PURE__ */ e(
|
|
8290
8290
|
$h,
|
|
8291
8291
|
{
|
|
8292
|
-
lane:
|
|
8292
|
+
lane: at,
|
|
8293
8293
|
onLaneChange: xe
|
|
8294
8294
|
}
|
|
8295
8295
|
) }),
|
|
@@ -8347,21 +8347,21 @@ function Zf({
|
|
|
8347
8347
|
] }),
|
|
8348
8348
|
/* @__PURE__ */ n("div", { className: D.announcementModalBody, children: [
|
|
8349
8349
|
/* @__PURE__ */ e("div", { className: D.announcementList, children: de.map((M, oe) => {
|
|
8350
|
-
const
|
|
8350
|
+
const ue = M.title || M.content;
|
|
8351
8351
|
return /* @__PURE__ */ e(
|
|
8352
8352
|
"div",
|
|
8353
8353
|
{
|
|
8354
8354
|
className: `${D.announcementListItem} ${oe === wn ? D.announcementListItemActive : ""}`,
|
|
8355
|
-
title:
|
|
8355
|
+
title: ue,
|
|
8356
8356
|
onClick: () => R(oe),
|
|
8357
|
-
children:
|
|
8357
|
+
children: ue
|
|
8358
8358
|
},
|
|
8359
|
-
M.id ?? `${
|
|
8359
|
+
M.id ?? `${ue}-${oe}`
|
|
8360
8360
|
);
|
|
8361
8361
|
}) }),
|
|
8362
|
-
/* @__PURE__ */ e("div", { className: D.announcementDetail, children:
|
|
8363
|
-
/* @__PURE__ */ e("div", { className: D.announcementDetailTitle, children:
|
|
8364
|
-
/* @__PURE__ */ e("div", { className: D.announcementDetailContent, children:
|
|
8362
|
+
/* @__PURE__ */ e("div", { className: D.announcementDetail, children: We ? /* @__PURE__ */ n(nt, { children: [
|
|
8363
|
+
/* @__PURE__ */ e("div", { className: D.announcementDetailTitle, children: We.title || "公告详情" }),
|
|
8364
|
+
/* @__PURE__ */ e("div", { className: D.announcementDetailContent, children: We.content || "暂无公告内容" }),
|
|
8365
8365
|
Cn.length > 0 && /* @__PURE__ */ e("div", { className: D.announcementDetailMeta, children: Cn.map((M) => /* @__PURE__ */ e("span", { children: M }, M)) })
|
|
8366
8366
|
] }) : /* @__PURE__ */ e("div", { className: D.announcementDetailEmpty, children: "暂无生效公告" }) })
|
|
8367
8367
|
] })
|
|
@@ -8475,7 +8475,7 @@ function ug({ onClose: t }) {
|
|
|
8475
8475
|
});
|
|
8476
8476
|
}, r = (g) => {
|
|
8477
8477
|
G(null, async () => {
|
|
8478
|
-
await d(
|
|
8478
|
+
await d(Ye(g));
|
|
8479
8479
|
});
|
|
8480
8480
|
}, f = a.filter((g) => g.member_type === "HUMAN"), C = a.filter(
|
|
8481
8481
|
(g) => {
|
|
@@ -8988,18 +8988,18 @@ function Tg({
|
|
|
8988
8988
|
return;
|
|
8989
8989
|
}
|
|
8990
8990
|
if (U.getState().currentUser) {
|
|
8991
|
-
const
|
|
8992
|
-
|
|
8991
|
+
const me = U.getState().token;
|
|
8992
|
+
me && Jn(me, w).catch(() => {
|
|
8993
8993
|
});
|
|
8994
8994
|
return;
|
|
8995
8995
|
}
|
|
8996
8996
|
let v = !1, O = 0;
|
|
8997
8997
|
const ve = 100;
|
|
8998
8998
|
let Ae = !1, $e = 0;
|
|
8999
|
-
const de = 3, F = (
|
|
8999
|
+
const de = 3, F = (me) => {
|
|
9000
9000
|
const X = U.getState().token;
|
|
9001
9001
|
if (j.current != null) {
|
|
9002
|
-
v || (w(ka(
|
|
9002
|
+
v || (w(ka(me)), f(!0)), Jn(X, (Ce) => {
|
|
9003
9003
|
v || w(Ce);
|
|
9004
9004
|
}).catch(() => {
|
|
9005
9005
|
!v && X && (localStorage.removeItem("z_team_token"), U.setState({ token: "" }));
|
|
@@ -9012,14 +9012,14 @@ function Tg({
|
|
|
9012
9012
|
}),
|
|
9013
9013
|
Cg
|
|
9014
9014
|
).catch((Ce) => {
|
|
9015
|
-
v || (!(Ce && Ce.timedOut) && X && (localStorage.removeItem("z_team_token"), U.setState({ token: "" })), w(ka(
|
|
9015
|
+
v || (!(Ce && Ce.timedOut) && X && (localStorage.removeItem("z_team_token"), U.setState({ token: "" })), w(ka(me)));
|
|
9016
9016
|
}).finally(() => {
|
|
9017
9017
|
v || f(!0);
|
|
9018
9018
|
});
|
|
9019
9019
|
};
|
|
9020
9020
|
return (() => {
|
|
9021
9021
|
if (v) return;
|
|
9022
|
-
const
|
|
9022
|
+
const me = async () => {
|
|
9023
9023
|
if (v) return;
|
|
9024
9024
|
let X = cs();
|
|
9025
9025
|
if ((!X || !va(X)) && !Ae) {
|
|
@@ -9045,10 +9045,10 @@ function Tg({
|
|
|
9045
9045
|
return;
|
|
9046
9046
|
}
|
|
9047
9047
|
window.setTimeout(() => {
|
|
9048
|
-
|
|
9048
|
+
me();
|
|
9049
9049
|
}, 150);
|
|
9050
9050
|
};
|
|
9051
|
-
|
|
9051
|
+
me();
|
|
9052
9052
|
})(), () => {
|
|
9053
9053
|
v = !0;
|
|
9054
9054
|
};
|
|
@@ -9145,7 +9145,7 @@ function Tg({
|
|
|
9145
9145
|
try {
|
|
9146
9146
|
if (await ve(), O)
|
|
9147
9147
|
return;
|
|
9148
|
-
let { token: F, projects: re, expandProject:
|
|
9148
|
+
let { token: F, projects: re, expandProject: me } = U.getState(), X = re.find((pe) => pe.id === S);
|
|
9149
9149
|
if (!X) {
|
|
9150
9150
|
const pe = await yi(S, F);
|
|
9151
9151
|
if (O)
|
|
@@ -9157,15 +9157,15 @@ function Tg({
|
|
|
9157
9157
|
if (X = await bi(S, F), O)
|
|
9158
9158
|
return;
|
|
9159
9159
|
}
|
|
9160
|
-
await
|
|
9160
|
+
await me(X), O || (J.current = S, ao());
|
|
9161
9161
|
} catch {
|
|
9162
9162
|
} finally {
|
|
9163
9163
|
de(), R(null), Wt(H.current, S) && (H.current = null), (() => {
|
|
9164
9164
|
const F = localStorage.getItem("ft_sidebar_time_filter") || "all", re = F === "1d" ? 1 : F === "3d" ? 3 : F === "7d" ? 7 : 0;
|
|
9165
9165
|
if (re > 0) {
|
|
9166
|
-
const
|
|
9167
|
-
|
|
9168
|
-
).padStart(2, "0")}-${String(
|
|
9166
|
+
const me = new Date(Date.now() - re * 864e5), X = `${me.getFullYear()}-${String(
|
|
9167
|
+
me.getMonth() + 1
|
|
9168
|
+
).padStart(2, "0")}-${String(me.getDate()).padStart(2, "0")}`;
|
|
9169
9169
|
U.getState().loadProjects(X);
|
|
9170
9170
|
} else
|
|
9171
9171
|
U.getState().loadProjects();
|