@yuku123/z-team-component 0.2.130 → 0.2.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChangeLogView-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
- package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
- package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
- package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
- package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
- package/dist/SystemShell-CSXcsiNp.js +752 -0
- package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
- package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
- package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
- package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
- package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
- package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
- package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
- package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
- package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
- package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
- package/dist/index-Bs9odXxd.js +1214 -0
- package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
- package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
- package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
- package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
- package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
- package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
- package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
- package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
- package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
- package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
- package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
- package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
- package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
- package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
- package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
- package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
- package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
- package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
- package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
- package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
- package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
- package/dist/useSidebarResize--Avuabb1.js +46 -0
- package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/SystemShell-Cz7S4YnT.js +0 -718
- package/dist/index-4apTfQuo.js +0 -2213
|
@@ -6,9 +6,9 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
|
|
|
6
6
|
import Vp, { defaultUrlTransform as KA } from "react-markdown";
|
|
7
7
|
import gp from "rehype-highlight";
|
|
8
8
|
import Jp from "remark-gfm";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-
|
|
9
|
+
import { a5 as xa, a6 as jA, u as Dp } from "./ComponentDoc-Dh5YhLCI.js";
|
|
10
|
+
import { u as ia, v as oA, x as fA, y as lA, h as xA, z as iA, B as cA, E as TA, G as vA, H as up, I as Yp, J as mp, K as yp, M as Ip, O as FA, Q as dA, V as OA, X as XA } from "./index-DM6XeWFk.js";
|
|
11
|
+
import { b as RA, d as NA, f as kA, e as WA, g as Cp, h as DA, j as qA, r as uA, k as mA, l as wA, m as BA, n as GA, o as LA, p as zA, q as VA } from "./createWorkspaceWsHandler-BwDUTYXH.js";
|
|
12
12
|
import { h as r } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
|
|
14
14
|
editorView: gA,
|
|
@@ -1681,7 +1681,7 @@ const Rt = [
|
|
|
1681
1681
|
draftDeleteBtn: T0,
|
|
1682
1682
|
markdown: v0
|
|
1683
1683
|
}, F0 = HA(
|
|
1684
|
-
() => import("./index-
|
|
1684
|
+
() => import("./index-CXEYA7rt.js").then((a) => ({ default: a.MarketContent }))
|
|
1685
1685
|
);
|
|
1686
1686
|
function d0(a) {
|
|
1687
1687
|
const n = [], x = a.split(`
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
|
|
3
3
|
import { message as Se, Spin as F } from "antd";
|
|
4
4
|
import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
|
|
5
|
-
import { a as A, B as R, b as E } from "./ComponentDoc-
|
|
5
|
+
import { a as A, B as R, b as E } from "./ComponentDoc-Dh5YhLCI.js";
|
|
6
6
|
function B(a) {
|
|
7
7
|
const l = new URLSearchParams();
|
|
8
8
|
Object.entries(a).forEach(([N, s]) => {
|
|
@@ -2,9 +2,9 @@ import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as L, useMemo as p } from "react";
|
|
3
3
|
import { useNavigate as v, useLocation as A } from "react-router-dom";
|
|
4
4
|
import { DownOutlined as k, RightOutlined as w } from "@ant-design/icons";
|
|
5
|
-
import { P as W, R as $ } from "./index-
|
|
6
|
-
import { f as E, M as g } from "./menuPermission-
|
|
7
|
-
import { u as j } from "./ComponentDoc-
|
|
5
|
+
import { P as W, R as $ } from "./index-9rfSVSTh.js";
|
|
6
|
+
import { f as E, M as g } from "./menuPermission-v0881tid.js";
|
|
7
|
+
import { u as j } from "./ComponentDoc-Dh5YhLCI.js";
|
|
8
8
|
const H = "_shell_1jjcx_7", M = "_sidebar_1jjcx_15", R = "_menuList_1jjcx_37", T = "_menuGroup_1jjcx_43", C = "_menuGroupHeader_1jjcx_47", P = "_menuGroupIcon_1jjcx_65", z = "_menuGroupLabel_1jjcx_70", K = "_menuGroupArrow_1jjcx_74", U = "_menuSubList_1jjcx_80", Z = "_menuSubItem_1jjcx_86", B = "_menuSubItemActive_1jjcx_103", D = "_menuSubItemIcon_1jjcx_110", O = "_menuSubItemLabel_1jjcx_115", q = "_menuSubItemWrap_1jjcx_119", F = "_main_1jjcx_123", J = "_empty_1jjcx_134", Q = "_emptyIcon_1jjcx_144", V = "_emptyText_1jjcx_149", n = {
|
|
9
9
|
shell: H,
|
|
10
10
|
sidebar: M,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as re, useCallback as O } from "react";
|
|
3
|
-
import { a as U, f as $, B, b as D, u as F } from "./ComponentDoc-
|
|
3
|
+
import { a as U, f as $, B, b as D, u as F } from "./ComponentDoc-Dh5YhLCI.js";
|
|
4
4
|
import { SearchOutlined as Ce, ReloadOutlined as Se, PlusOutlined as Te, FileZipOutlined as Z, CloudDownloadOutlined as Y, EditOutlined as he, UserSwitchOutlined as be, ArrowLeftOutlined as fe, UserOutlined as Ue, CloudUploadOutlined as $e, PictureOutlined as de, EyeOutlined as Be } from "@ant-design/icons";
|
|
5
5
|
import { message as b, Input as H, Tooltip as se, Button as g, Spin as ce, Empty as De, Popconfirm as pe, Tag as ie, Modal as Re, Select as Pe, Upload as me, Tabs as Le } from "antd";
|
|
6
6
|
import ve from "react-markdown";
|
|
7
7
|
import _e from "rehype-highlight";
|
|
8
8
|
import ge from "remark-gfm";
|
|
9
|
-
import { M as na } from "./index-
|
|
9
|
+
import { M as na } from "./index-CF3xDZ7q.js";
|
|
10
10
|
function j(a) {
|
|
11
11
|
return a ? `?token=${encodeURIComponent(a)}` : "";
|
|
12
12
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { Navigate as t } from "react-router-dom";
|
|
3
3
|
import { lazy as T } from "react";
|
|
4
4
|
import { UnorderedListOutlined as o, HistoryOutlined as d, ClusterOutlined as s, DashboardOutlined as n, ExperimentOutlined as q, SettingOutlined as u, KeyOutlined as p, AppstoreOutlined as r, SafetyCertificateOutlined as P, TeamOutlined as w, ProfileOutlined as b, ApiOutlined as g, HddOutlined as l, ApartmentOutlined as k, InboxOutlined as y, FileTextOutlined as f, SendOutlined as G, CloudServerOutlined as a, NodeIndexOutlined as z, TableOutlined as v, SearchOutlined as m, DatabaseOutlined as O, ConsoleSqlOutlined as E, BranchesOutlined as I, DeploymentUnitOutlined as M, BookOutlined as h, ScheduleOutlined as N, FundOutlined as _, CloudUploadOutlined as x, TagsOutlined as B, CodeOutlined as R } from "@ant-design/icons";
|
|
5
|
-
import { W as U } from "./index-
|
|
5
|
+
import { W as U } from "./index-CU6jFFl5.js";
|
|
6
6
|
import { ConfigApp as j } from "@yuku123/z-config-component";
|
|
7
7
|
import { MistApp as H } from "@yuku123/z-mist-component";
|
|
8
8
|
import { MetaApp as K } from "@yuku123/z-meta-component";
|
|
@@ -17,7 +17,7 @@ import { OssApp as Z } from "@yuku123/z-oss-component";
|
|
|
17
17
|
import { KbApp as $ } from "@yuku123/z-cognition-kb-component";
|
|
18
18
|
import { ScheduleApp as ee } from "@yuku123/z-schedule-component";
|
|
19
19
|
import { ScriptProductizationPage as i } from "@yuku123/z-agent-component";
|
|
20
|
-
import "./index-
|
|
20
|
+
import "./index-DM6XeWFk.js";
|
|
21
21
|
const te = "/api/graph";
|
|
22
22
|
let C = !1;
|
|
23
23
|
function ce() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { r as D, f as le } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as de, h as Z, s as
|
|
3
|
+
import { r as de, h as Z, s as K } from "./sso-user-CnVXqYR7.js";
|
|
4
4
|
import { ArrowLeftOutlined as ue, LogoutOutlined as pe, SearchOutlined as me } from "@ant-design/icons";
|
|
5
|
-
import { Spin as O, Button as
|
|
5
|
+
import { Spin as O, Button as X, Input as he, Empty as Y, Tag as fe, message as ge } from "antd";
|
|
6
6
|
import B from "query-string";
|
|
7
|
-
import { useState as y, useRef as E, useEffect as w, useMemo as
|
|
7
|
+
import { useState as y, useRef as E, useEffect as w, useMemo as J, useCallback as q } from "react";
|
|
8
8
|
import { useLocation as be } from "react-router-dom";
|
|
9
9
|
import { h as A } from "./history-BlrA1eaW.js";
|
|
10
|
-
import {
|
|
11
|
-
import { u as c,
|
|
12
|
-
import { l as Ce, j as Pe } from "./instance-
|
|
10
|
+
import { a as ke, C as we } from "./createWorkspaceWsHandler-BwDUTYXH.js";
|
|
11
|
+
import { u as c, Y as Se, _ as ye, $ as ve, a0 as Ne, a1 as Te, a2 as je, k as ee } from "./ComponentDoc-Dh5YhLCI.js";
|
|
12
|
+
import { l as Ce, j as Pe } from "./instance-DD3kbAUh.js";
|
|
13
13
|
import { i as xe, s as _e } from "./mobile-client-O3yr9h6t.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { s as Ee } from "./admin-logs-
|
|
16
|
-
const
|
|
17
|
-
function Ae(o, i =
|
|
15
|
+
import { s as Ee } from "./admin-logs-CExsxQ5h.js";
|
|
16
|
+
const ae = 2e4;
|
|
17
|
+
function Ae(o, i = ae, n = globalThis) {
|
|
18
18
|
let s = null;
|
|
19
19
|
return {
|
|
20
20
|
start() {
|
|
@@ -53,8 +53,8 @@ function Me({
|
|
|
53
53
|
loadingText: o,
|
|
54
54
|
timeoutText: i = Le,
|
|
55
55
|
onRetry: n,
|
|
56
|
-
timeoutMs: s =
|
|
57
|
-
className:
|
|
56
|
+
timeoutMs: s = ae,
|
|
57
|
+
className: r
|
|
58
58
|
}) {
|
|
59
59
|
const [T, h] = y(!1), g = E(n);
|
|
60
60
|
return g.current = n, w(() => {
|
|
@@ -63,7 +63,7 @@ function Me({
|
|
|
63
63
|
s
|
|
64
64
|
);
|
|
65
65
|
return m.start(), () => m.stop();
|
|
66
|
-
}, [s]), T ? /* @__PURE__ */ p("div", { className:
|
|
66
|
+
}, [s]), T ? /* @__PURE__ */ p("div", { className: r, children: [
|
|
67
67
|
/* @__PURE__ */ t(O, { description: "" }),
|
|
68
68
|
/* @__PURE__ */ t(
|
|
69
69
|
Ie,
|
|
@@ -72,7 +72,7 @@ function Me({
|
|
|
72
72
|
onRetry: () => g.current()
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
|
-
] }) : /* @__PURE__ */ t("div", { className:
|
|
75
|
+
] }) : /* @__PURE__ */ t("div", { className: r, children: /* @__PURE__ */ t(O, { description: o }) });
|
|
76
76
|
}
|
|
77
77
|
function Oe(o, i) {
|
|
78
78
|
w(() => {
|
|
@@ -93,18 +93,18 @@ function Oe(o, i) {
|
|
|
93
93
|
});
|
|
94
94
|
ye(o, i, n), c.getState().loadRunningExecutions().catch(() => {
|
|
95
95
|
});
|
|
96
|
-
const
|
|
96
|
+
const r = c.getState(), { handler: T, dispose: h } = ke({
|
|
97
97
|
projectId: o,
|
|
98
98
|
token: i,
|
|
99
|
-
updateExecution:
|
|
100
|
-
registerExecutionStart:
|
|
101
|
-
clearExecution:
|
|
102
|
-
applyExecutionCancelled:
|
|
103
|
-
addMessage:
|
|
104
|
-
addTaskMessage:
|
|
105
|
-
deleteMessage:
|
|
106
|
-
updateMessageReadStatus:
|
|
107
|
-
loadFileTree:
|
|
99
|
+
updateExecution: r.updateExecution,
|
|
100
|
+
registerExecutionStart: r.registerExecutionStart,
|
|
101
|
+
clearExecution: r.clearExecution,
|
|
102
|
+
applyExecutionCancelled: r.applyExecutionCancelled,
|
|
103
|
+
addMessage: r.addMessage,
|
|
104
|
+
addTaskMessage: r.addTaskMessage,
|
|
105
|
+
deleteMessage: r.deleteMessage,
|
|
106
|
+
updateMessageReadStatus: r.updateMessageReadStatus,
|
|
107
|
+
loadFileTree: r.loadFileTree
|
|
108
108
|
}), g = ve(T);
|
|
109
109
|
return () => {
|
|
110
110
|
g(), h(), Ne(), s(), c.getState().setObserverStatus(null);
|
|
@@ -123,8 +123,8 @@ function te() {
|
|
|
123
123
|
search: s ? `?${s}` : ""
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
const o = be(), [i, n] = y("list"), [s,
|
|
126
|
+
function Ye() {
|
|
127
|
+
const o = be(), [i, n] = y("list"), [s, r] = y("chat"), [T, h] = y("team"), [g, m] = y(""), [f, Q] = y(!1), [re, I] = y(!1), {
|
|
128
128
|
currentProject: v,
|
|
129
129
|
currentUser: R,
|
|
130
130
|
projects: L,
|
|
@@ -132,17 +132,17 @@ function Je() {
|
|
|
132
132
|
members: W,
|
|
133
133
|
token: oe,
|
|
134
134
|
loadProjects: V,
|
|
135
|
-
expandProject:
|
|
135
|
+
expandProject: $,
|
|
136
136
|
updateCurrentUser: j,
|
|
137
137
|
requestChatScrollBottom: S
|
|
138
|
-
} = c(), k =
|
|
139
|
-
const e = B.parse(o.search),
|
|
140
|
-
if (!
|
|
138
|
+
} = c(), k = J(() => {
|
|
139
|
+
const e = B.parse(o.search), a = String(e.projectId ?? e.project_id ?? "").trim();
|
|
140
|
+
if (!a)
|
|
141
141
|
return null;
|
|
142
|
-
const l = Number(
|
|
142
|
+
const l = Number(a);
|
|
143
143
|
return Number.isFinite(l) && l > 0 ? l : null;
|
|
144
|
-
}, [o.search]),
|
|
145
|
-
|
|
144
|
+
}, [o.search]), F = E(!1), C = E(!1), P = E(!1), z = E(k);
|
|
145
|
+
z.current = k, Oe(v == null ? void 0 : v.id, oe), w(() => (document.body.classList.add("team-phone-workspace-route"), () => {
|
|
146
146
|
document.body.classList.remove("team-phone-workspace-route");
|
|
147
147
|
}), []), w(() => {
|
|
148
148
|
!xe(o.search) && _e() || A.replace({
|
|
@@ -152,18 +152,18 @@ function Je() {
|
|
|
152
152
|
}, [o.search]);
|
|
153
153
|
const se = q(
|
|
154
154
|
(e) => {
|
|
155
|
-
|
|
155
|
+
r("chat"), h(e), S(e, !0);
|
|
156
156
|
},
|
|
157
157
|
[S]
|
|
158
158
|
);
|
|
159
159
|
w(() => {
|
|
160
|
-
let e = !1,
|
|
160
|
+
let e = !1, a = 0;
|
|
161
161
|
const l = 100;
|
|
162
|
-
let x = !1,
|
|
162
|
+
let x = !1, U = 0;
|
|
163
163
|
const M = 3, N = (b) => {
|
|
164
164
|
const d = c.getState().token;
|
|
165
|
-
if (
|
|
166
|
-
e || (j(
|
|
165
|
+
if (z.current != null) {
|
|
166
|
+
e || (j(K(b)), Q(!0)), ee().then((G) => {
|
|
167
167
|
e || j(G);
|
|
168
168
|
}).catch(() => {
|
|
169
169
|
!e && d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" }));
|
|
@@ -173,7 +173,7 @@ function Je() {
|
|
|
173
173
|
ee().then((G) => {
|
|
174
174
|
e || j(G);
|
|
175
175
|
}).catch(() => {
|
|
176
|
-
e || (d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" })), j(
|
|
176
|
+
e || (d && (localStorage.removeItem("z_team_token"), c.setState({ token: "" })), j(K(b)));
|
|
177
177
|
}).finally(() => {
|
|
178
178
|
e || Q(!0);
|
|
179
179
|
});
|
|
@@ -189,7 +189,7 @@ function Je() {
|
|
|
189
189
|
x = !0;
|
|
190
190
|
try {
|
|
191
191
|
const u = await le();
|
|
192
|
-
u.kind === "authenticated" ? d = u.user : u.kind === "unauthenticated" && (
|
|
192
|
+
u.kind === "authenticated" ? d = u.user : u.kind === "unauthenticated" && (U += 1);
|
|
193
193
|
} catch {
|
|
194
194
|
} finally {
|
|
195
195
|
x = !1;
|
|
@@ -199,11 +199,11 @@ function Je() {
|
|
|
199
199
|
N(d);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
if (
|
|
202
|
+
if (U >= M) {
|
|
203
203
|
D();
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
|
-
if (
|
|
206
|
+
if (a += 1, a >= l) {
|
|
207
207
|
D();
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
@@ -221,33 +221,33 @@ function Je() {
|
|
|
221
221
|
var l;
|
|
222
222
|
if (!f || k != null || i === "project" || P.current)
|
|
223
223
|
return;
|
|
224
|
-
const e = c.getState(),
|
|
225
|
-
|
|
224
|
+
const e = c.getState(), a = (l = e.currentProject) == null ? void 0 : l.id;
|
|
225
|
+
a == null || !e.expandedProjectIds.includes(String(a)) || (n("project"), r("chat"), h("team"), S("team", !0));
|
|
226
226
|
}, [f, k, i, S]);
|
|
227
227
|
const ce = q(
|
|
228
228
|
async (e) => {
|
|
229
229
|
P.current = !1, I(!0);
|
|
230
230
|
try {
|
|
231
|
-
await
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
String(
|
|
235
|
-
|
|
231
|
+
await $(e), n("project"), r("chat"), h("team");
|
|
232
|
+
const a = c.getState();
|
|
233
|
+
a.currentProject && await a.refreshProjectPanels(
|
|
234
|
+
String(a.currentProject.id),
|
|
235
|
+
a.projectSwitchSeq,
|
|
236
236
|
!1
|
|
237
237
|
), S("team", !0);
|
|
238
238
|
} finally {
|
|
239
239
|
I(!1);
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
|
-
[
|
|
242
|
+
[$, S]
|
|
243
243
|
);
|
|
244
244
|
w(() => {
|
|
245
245
|
var M;
|
|
246
|
-
if (!f || k == null ||
|
|
246
|
+
if (!f || k == null || F.current || C.current)
|
|
247
247
|
return;
|
|
248
|
-
const e = k == null ? "" : String(k),
|
|
249
|
-
if (String(((M =
|
|
250
|
-
|
|
248
|
+
const e = k == null ? "" : String(k), a = c.getState();
|
|
249
|
+
if (String(((M = a.currentProject) == null ? void 0 : M.id) ?? "") === e && a.expandedProjectIds.includes(e)) {
|
|
250
|
+
F.current = !0, te(), P.current = !1, n("project"), r("chat"), h("team"), c.getState().loadMessages().catch(() => {
|
|
251
251
|
});
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
@@ -286,8 +286,8 @@ function Je() {
|
|
|
286
286
|
}
|
|
287
287
|
if (l || !d)
|
|
288
288
|
return;
|
|
289
|
-
if (
|
|
290
|
-
P.current = !1, n("project"),
|
|
289
|
+
if (F.current = !0, await b(d), !l) {
|
|
290
|
+
P.current = !1, n("project"), r("chat"), h("team"), te();
|
|
291
291
|
const u = c.getState();
|
|
292
292
|
u.currentProject && await u.refreshProjectPanels(
|
|
293
293
|
String(u.currentProject.id),
|
|
@@ -303,13 +303,13 @@ function Je() {
|
|
|
303
303
|
l = !0, C.current && (C.current = !1);
|
|
304
304
|
};
|
|
305
305
|
}, [f, k]);
|
|
306
|
-
const
|
|
306
|
+
const H = J(() => {
|
|
307
307
|
const e = g.trim().toLowerCase();
|
|
308
308
|
return e ? L.filter(
|
|
309
|
-
(
|
|
309
|
+
(a) => a.name.toLowerCase().includes(e) || (a.scenario_name ?? "").toLowerCase().includes(e)
|
|
310
310
|
) : L;
|
|
311
311
|
}, [g, L]), ie = q(() => {
|
|
312
|
-
P.current = !0, n("list"),
|
|
312
|
+
P.current = !0, n("list"), r("chat");
|
|
313
313
|
}, []);
|
|
314
314
|
return !f || !R ? /* @__PURE__ */ t(
|
|
315
315
|
Me,
|
|
@@ -322,7 +322,7 @@ function Je() {
|
|
|
322
322
|
) : /* @__PURE__ */ p("div", { className: "phone-workspace", children: [
|
|
323
323
|
/* @__PURE__ */ p("header", { className: "phone-workspace-header", children: [
|
|
324
324
|
i === "project" ? /* @__PURE__ */ t(
|
|
325
|
-
|
|
325
|
+
X,
|
|
326
326
|
{
|
|
327
327
|
type: "text",
|
|
328
328
|
icon: /* @__PURE__ */ t(ue, {}),
|
|
@@ -350,7 +350,7 @@ function Je() {
|
|
|
350
350
|
}
|
|
351
351
|
) : /* @__PURE__ */ t("span", { className: "phone-workspace-project-name", children: (v == null ? void 0 : v.name) ?? "工程" }) }),
|
|
352
352
|
/* @__PURE__ */ t("div", { className: "phone-workspace-header-actions", children: /* @__PURE__ */ t(
|
|
353
|
-
|
|
353
|
+
X,
|
|
354
354
|
{
|
|
355
355
|
type: "text",
|
|
356
356
|
icon: /* @__PURE__ */ t(pe, {}),
|
|
@@ -372,14 +372,14 @@ function Je() {
|
|
|
372
372
|
onChange: (e) => m(e.target.value)
|
|
373
373
|
}
|
|
374
374
|
) }),
|
|
375
|
-
ne && L.length === 0 ? /* @__PURE__ */ t("div", { className: "phone-workspace-list-loading", children: /* @__PURE__ */ t(O, { description: "加载项目…" }) }) :
|
|
376
|
-
|
|
375
|
+
ne && L.length === 0 ? /* @__PURE__ */ t("div", { className: "phone-workspace-list-loading", children: /* @__PURE__ */ t(O, { description: "加载项目…" }) }) : H.length === 0 ? /* @__PURE__ */ t(
|
|
376
|
+
Y,
|
|
377
377
|
{
|
|
378
378
|
description: g ? "无匹配项目" : "暂无项目",
|
|
379
379
|
className: "phone-workspace-empty"
|
|
380
380
|
}
|
|
381
|
-
) : /* @__PURE__ */ t("ul", { className: "phone-project-list", children:
|
|
382
|
-
const
|
|
381
|
+
) : /* @__PURE__ */ t("ul", { className: "phone-project-list", children: H.map((e) => {
|
|
382
|
+
const a = Te(
|
|
383
383
|
e.created_at
|
|
384
384
|
);
|
|
385
385
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ p(
|
|
@@ -393,9 +393,9 @@ function Je() {
|
|
|
393
393
|
children: [
|
|
394
394
|
/* @__PURE__ */ p("div", { className: "phone-project-item-main", children: [
|
|
395
395
|
/* @__PURE__ */ t("span", { className: "phone-project-item-name", children: e.name }),
|
|
396
|
-
e.scenario_name ||
|
|
396
|
+
e.scenario_name || a ? /* @__PURE__ */ p("div", { className: "phone-project-item-meta", children: [
|
|
397
397
|
e.scenario_name ? /* @__PURE__ */ t("span", { className: "phone-project-item-scenario", children: e.scenario_name }) : null,
|
|
398
|
-
|
|
398
|
+
a ? /* @__PURE__ */ t("span", { className: "phone-project-item-time", children: a }) : null
|
|
399
399
|
] }) : null
|
|
400
400
|
] }),
|
|
401
401
|
/* @__PURE__ */ t(
|
|
@@ -426,7 +426,7 @@ function Je() {
|
|
|
426
426
|
{
|
|
427
427
|
type: "button",
|
|
428
428
|
className: s === "members" ? "phone-toolbar-tab phone-toolbar-members phone-toolbar-active" : "phone-toolbar-tab phone-toolbar-members",
|
|
429
|
-
onClick: () =>
|
|
429
|
+
onClick: () => r("members"),
|
|
430
430
|
children: [
|
|
431
431
|
"成员 (",
|
|
432
432
|
W.length,
|
|
@@ -435,7 +435,7 @@ function Je() {
|
|
|
435
435
|
}
|
|
436
436
|
)
|
|
437
437
|
] }),
|
|
438
|
-
/* @__PURE__ */ t("div", { className: "phone-workspace-detail-body", children: s === "members" ? /* @__PURE__ */ t("ul", { className: "phone-member-list", children: W.length === 0 ? /* @__PURE__ */ t(
|
|
438
|
+
/* @__PURE__ */ t("div", { className: "phone-workspace-detail-body", children: s === "members" ? /* @__PURE__ */ t("ul", { className: "phone-member-list", children: W.length === 0 ? /* @__PURE__ */ t(Y, { description: "暂无成员" }) : W.map((e) => /* @__PURE__ */ p("li", { className: "phone-member-item", children: [
|
|
439
439
|
/* @__PURE__ */ t("span", { className: "phone-member-avatar", children: e.member_type === "AGENT" ? "🤖" : "👤" }),
|
|
440
440
|
/* @__PURE__ */ p("div", { className: "phone-member-info", children: [
|
|
441
441
|
/* @__PURE__ */ t("span", { className: "phone-member-name", children: e.display_name }),
|
|
@@ -458,10 +458,10 @@ function Je() {
|
|
|
458
458
|
}
|
|
459
459
|
) }) })
|
|
460
460
|
] }) }),
|
|
461
|
-
|
|
461
|
+
re ? /* @__PURE__ */ t("div", { className: "phone-workspace-overlay", children: /* @__PURE__ */ t(O, { description: "正在打开工程…" }) }) : null,
|
|
462
462
|
/* @__PURE__ */ t(je, {})
|
|
463
463
|
] });
|
|
464
464
|
}
|
|
465
465
|
export {
|
|
466
|
-
|
|
466
|
+
Ye as default
|
|
467
467
|
};
|
|
@@ -3,15 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
|
|
|
3
3
|
import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
|
|
4
4
|
import { ListTable as Ae, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
|
|
5
5
|
import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
|
|
6
|
-
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-
|
|
7
|
-
import { u as Ce,
|
|
6
|
+
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-BS23m-yy.js";
|
|
7
|
+
import { u as Ce, a4 as Wl } from "./ComponentDoc-Dh5YhLCI.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
9
|
import Hl from "dayjs";
|
|
10
10
|
import xt from "react-markdown";
|
|
11
11
|
import Tt from "remark-gfm";
|
|
12
12
|
import { h as be } from "./index.module-CAa-2T7m.js";
|
|
13
13
|
import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
|
|
14
|
-
import { h as ql } from "./index-
|
|
14
|
+
import { h as ql } from "./index-ftuPuj0s.js";
|
|
15
15
|
function Vl() {
|
|
16
16
|
const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
|
|
17
17
|
L(!0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-Dh5YhLCI.js";
|
|
3
3
|
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
4
|
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
5
|
import B from "query-string";
|
|
6
6
|
import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
7
|
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as w } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-DD3kbAUh.js";
|
|
10
10
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
11
|
function nt() {
|
|
12
12
|
const m = W(), p = B.parse(m.search), o = String(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useCallback as u } from "react";
|
|
3
|
-
import { S as I, P } from "./webide-
|
|
4
|
-
import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-
|
|
5
|
-
import { w as q, p as z } from "./index-
|
|
3
|
+
import { S as I, P } from "./webide-BPJ1IpZq.js";
|
|
4
|
+
import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-COgb4MZJ.js";
|
|
5
|
+
import { w as q, p as z } from "./index-DM6XeWFk.js";
|
|
6
6
|
import { TodoTab as E } from "@yuku123/z-task-component";
|
|
7
7
|
function J({
|
|
8
8
|
view: s,
|