@yuku123/z-team-component 0.2.104 → 0.2.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChangeLogView-DG-ogBff.js → ChangeLogView-B0ML82u0.js} +1 -1
- package/dist/{ComponentDoc-BW1SyDxk.js → ComponentDoc-C_289lsE.js} +12 -12
- package/dist/{InvitationManagementPage-hYvoPEcm.js → InvitationManagementPage-D2ezz4ZQ.js} +1 -1
- package/dist/{OnboardingPage-KDp-DrzY.js → OnboardingPage-BXsJ-kcJ.js} +2 -2
- package/dist/{ScheduledTasks-CErSDgyW.js → ScheduledTasks-Cn8BsDkN.js} +6 -6
- package/dist/{SystemShell-DvrY4Bl7.js → SystemShell-gcfNlt2L.js} +4 -4
- package/dist/{admin-logs-uPnnclwN.js → admin-logs-B6K1DwRL.js} +5 -5
- package/dist/api-BdP8mK8v.js +101 -0
- package/dist/{api-B__qdRIf.js → api-DxSgE7qw.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BXbn5-Ft.js → createWorkspaceWsHandler-DcNA1pfi.js} +3 -3
- package/dist/{index-D-xPVrY3.js → index-54iTaRVW.js} +1 -1
- package/dist/{index-0smeCTnr.js → index-BCw3Oxp1.js} +1255 -1255
- package/dist/{index-ByhCWenF.js → index-BDq0ofl2.js} +102 -188
- package/dist/{index-DtHoMz1H.js → index-BN-o5nZM.js} +1 -1
- package/dist/{index-BwJPAN8f.js → index-Bf1K9zpk.js} +19 -19
- package/dist/{index-Cb88Xdh4.js → index-BfMFQ6RD.js} +3 -3
- package/dist/{index-DIFIvVWE.js → index-C-8n6xxK.js} +2 -2
- package/dist/{index-aI2EXKED.js → index-C8m8s-SU.js} +26 -26
- package/dist/{index-BK3YDeXH.js → index-CXJXSmhB.js} +6 -6
- package/dist/{index-BnJ8UEeZ.js → index-CdugR2_4.js} +3 -3
- package/dist/{index-YVtm1SRy.js → index-CeCsncoT.js} +28 -28
- package/dist/{index-CkWKJORv.js → index-CgCB0-yK.js} +1 -1
- package/dist/{index-DcurzowX.js → index-Cjddvrij.js} +4 -4
- package/dist/{index-q_TPea69.js → index-D487Inba.js} +15 -15
- package/dist/{index-BOJm25by.js → index-DK71mfJn.js} +1 -1
- package/dist/{index-C9fGup9t.js → index-DLHcoHS9.js} +3 -3
- package/dist/{index-Cih0yoxc.js → index-DUiFk01c.js} +5 -5
- package/dist/{index-2isWwv1X.js → index-DgN13A-E.js} +9 -9
- package/dist/{index-DOgCfVB2.js → index-DpLamT1r.js} +2 -2
- package/dist/{index-DBnH-lRh.js → index-DszzQwsc.js} +1 -1
- package/dist/index-HJ3Kt-NT.js +358 -0
- package/dist/{index-BC8f-JP9.js → index-Nj-dlFKY.js} +3 -3
- package/dist/{index-C2_tfpEj.js → index-ZuYJoo9E.js} +2 -2
- package/dist/{index-DAGa9v8r.js → index-etyS3HY2.js} +2 -2
- package/dist/{index-CsaGecGX.js → index-jIh52A4c.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/{instance-pdQ_wAhB.js → instance-p-ezisoS.js} +5 -5
- package/dist/{menuPermission-CCQjJVXg.js → menuPermission-u3Gd_c8S.js} +11 -11
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BzeR4ahf.js → send-default-agent-team-message-BhIV6T6O.js} +1 -1
- package/dist/{sso-user-DI7oiDdc.js → sso-user-Ib1jhF7t.js} +1 -1
- package/dist/{training-Bz7Sr5yC.js → training-D3Uy5K_M.js} +1 -1
- package/dist/{webide-NcHLDiSn.js → webide-BGQnArzY.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import { a as he, f as Le, B as Me, v as Ye,
|
|
2
|
+
import { a as he, f as Le, B as Me, v as Ye, b as Nt, aq as ia, ar as as, u as V, T as hn, as as os, at as ca, t as Xe, au as In, a6 as Re, av as ss, aw as rs, g as is, aa as cs, an as ko, c as ls, n as Wt, ax as ds, ay as us, az as ms, _ as la, a4 as ps, aA as qt, aB as hs, aC as fs, aj as gs, ak as _s, a8 as ys, e as bo, i as ks, Q as bs, U as vs, V as ws, W as Ns, Y as Cs, k as Ss, aD as Ts } from "./ComponentDoc-C_289lsE.js";
|
|
3
3
|
import { s as Is, r as Ln, f as Ls } from "./ctc-sso-DtJHC-2M.js";
|
|
4
|
-
import { r as Ms, h as xa, s as Ea } from "./sso-user-
|
|
4
|
+
import { r as Ms, h as xa, s as Ea } from "./sso-user-Ib1jhF7t.js";
|
|
5
5
|
import { Input as gn, Tooltip as _n, Spin as _t, Tabs as ha, Popconfirm as Zn, Button as At, Empty as Mn, Modal as yn, Form as un, Checkbox as $s, Tag as As, Select as xs, Popover as Pa, Dropdown as Es, Avatar as Ps, message as Oa } from "antd";
|
|
6
6
|
import fn from "query-string";
|
|
7
7
|
import { useState as d, useRef as ue, useCallback as J, useEffect as z, createElement as Os, useLayoutEffect as vo, useMemo as De, memo as Ds, Suspense as $n, lazy as bt } from "react";
|
|
8
8
|
import { useLocation as Rs, useNavigate as Fs } from "react-router-dom";
|
|
9
9
|
import { h as $t } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-
|
|
10
|
+
import { z as Ne, A as Bs, B as wo, S as No, D as js, E as Da, F as Ra, G as Hs, H as Ws, u as fa, i as Co, v as Us, I as zs, J as Fa, K as Gs, L as Ks, M as qs, N as Vs, O as Js, a as Ys, P as Qs, Q as Zs, R as Xs, U as er, V as m, W as Bn, C as tr, c as nr, X as ar } from "./createWorkspaceWsHandler-DcNA1pfi.js";
|
|
11
11
|
import { BarChartOutlined as or, PieChartOutlined as sr, LinkOutlined as So, UnorderedListOutlined as rr, FileTextOutlined as ga, ReadOutlined as To, ConsoleSqlOutlined as ir, DashboardOutlined as cr, SearchOutlined as Rn, CloseOutlined as sn, ProfileOutlined as lr, CustomerServiceOutlined as Io, ThunderboltOutlined as Ba, MessageOutlined as dr, ReloadOutlined as ur, UndoOutlined as mr, DeleteOutlined as pr, FolderOpenOutlined as hr, BugOutlined as _a, SolutionOutlined as fr, BellOutlined as gr, CheckOutlined as _r, SettingOutlined as da, LaptopOutlined as yr, MenuFoldOutlined as kr, HeartOutlined as br, BookOutlined as vr, BulbOutlined as wr, TeamOutlined as Nr, ProductOutlined as Cr, CodeOutlined as Sr, CloudServerOutlined as Tr, DatabaseOutlined as Ir, AppstoreOutlined as Lr, UserOutlined as Mr, NotificationOutlined as $r, LogoutOutlined as Ar } from "@ant-design/icons";
|
|
12
|
-
import { h as jn, f as xr, E as ja } from "./index-
|
|
13
|
-
import { s as Lo } from "./admin-logs-
|
|
12
|
+
import { h as jn, f as xr, E as ja } from "./index-54iTaRVW.js";
|
|
13
|
+
import { s as Lo } from "./admin-logs-B6K1DwRL.js";
|
|
14
14
|
import { createPortal as Mo } from "react-dom";
|
|
15
|
-
import { c as Er, l as Pr, j as Or } from "./instance-
|
|
15
|
+
import { c as Er, l as Pr, j as Or } from "./instance-p-ezisoS.js";
|
|
16
16
|
import Ha from "react-markdown";
|
|
17
17
|
import Wa from "rehype-highlight";
|
|
18
18
|
import Ua from "remark-gfm";
|
|
@@ -5334,7 +5334,7 @@ function dh() {
|
|
|
5334
5334
|
/* @__PURE__ */ o("div", { className: b.card, children: [
|
|
5335
5335
|
/* @__PURE__ */ e(Ie, { title: "z-team 智能工作台", desc: "个人工作台 / 协作工作台 / 群学习。", children: /* @__PURE__ */ o("span", { className: b.mono, children: [
|
|
5336
5336
|
"v",
|
|
5337
|
-
"0.2.
|
|
5337
|
+
"0.2.105"
|
|
5338
5338
|
] }) }),
|
|
5339
5339
|
/* @__PURE__ */ e(Ie, { title: "运行形态", desc: "Web 浏览器接入,也可内嵌于桌面客户端。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "Web" }) }),
|
|
5340
5340
|
/* @__PURE__ */ e(Ie, { title: "统一认证", desc: "登录态由 4A / CTC SSO 托管。", children: /* @__PURE__ */ e("span", { className: b.mono, children: "SSO" }) }),
|
|
@@ -8475,7 +8475,7 @@ const Mf = "_layout_1ae41_1", $f = "_banner_1ae41_8", Af = "_bannerLeft_1ae41_20
|
|
|
8475
8475
|
smartWorkbenchArea: Eg
|
|
8476
8476
|
}, Pg = "/api";
|
|
8477
8477
|
Rr({ apiBase: Pg });
|
|
8478
|
-
const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-
|
|
8478
|
+
const Og = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3ctitle%3elogo%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='01-1.全部应用'%20transform='translate(-20.000000,%20-8.000000)'%3e%3cg%20id='logo'%20transform='translate(20.000000,%208.000000)'%3e%3crect%20id='蒙版'%20fill='%23F5FAFF'%20x='0'%20y='0'%20width='24'%20height='24'%20rx='2'%3e%3c/rect%3e%3cg%20id='资源-1'%20transform='translate(4.000000,%204.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M1.16034197,15.1111111%20C0.519502794,15.1111111%200,14.6106136%200,13.9932187%20L0,2.69831289%20C0.00159892866,1.20871436%201.25461265,0.00154043404%202.80077542,0%20L8.75478013,0%20C10.3009429,0.00154043404%2011.5539566,1.20871436%2011.5555556,2.69831289%20L11.5555556,8.29476193%20C11.5555556,8.91215688%2011.0360528,9.41265438%2010.3952136,9.41265438%20C9.75437442,9.41265438%209.23487162,8.91215688%209.23487162,8.29476193%20L9.23487162,2.70529971%20C9.23681414,2.5814236%209.18709207,2.46197487%209.09684605,2.37371702%20C9.00660003,2.28545916%208.88337485,2.23577075%208.75478013,2.23578489%20L2.80802756,2.23578489%20C2.67944752,2.23391343%202.55546299,2.28181649%202.46385373,2.36876099%20C2.37224448,2.45570548%202.32066926,2.57442264%202.32068393,2.69831289%20L2.32068393,13.9932187%20C2.32068393,14.6106136%201.80118114,15.1111111%201.16034197,15.1111111%20Z'%20id='路径'%20fill='%231F8BFF'%3e%3c/path%3e%3cpath%20d='M13.1974657,15.1111111%20L7.2469787,15.1111111%20C5.70041075,15.1095715%204.44684388,13.9026896%204.44444444,12.4129481%20L4.44444444,6.81251221%20C4.44444444,6.19483167%204.96427348,5.69410265%205.60551509,5.69410265%20C6.24675669,5.69410265%206.76658573,6.19483167%206.76658573,6.81251221%20L6.76658573,12.4129481%20C6.76738557,12.6679673%206.98223074,12.8742932%207.2469787,12.874292%20L13.1974657,12.874292%20C13.4622137,12.8742932%2013.6770589,12.6679673%2013.6778587,12.4129481%20L13.6778587,1.11840956%20C13.6778587,0.500729014%2014.1976878,0%2014.8389294,0%20C15.480171,0%2016,0.500729014%2016,1.11840956%20L16,12.4129481%20C15.9976006,13.9026896%2014.7440337,15.1095715%2013.1974657,15.1111111%20L13.1974657,15.1111111%20Z'%20id='路径'%20fill='%23FFDC29'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Dg = bt(() => import("./index-CXJXSmhB.js")), Rg = bt(() => import("./index-DLHcoHS9.js")), Fg = bt(() => import("./index-CgCB0-yK.js")), Bg = bt(() => import("./index-DszzQwsc.js")), jg = bt(() => import("./index-Cjddvrij.js").then((t) => t.i)), Hg = bt(() => import("./index-Nj-dlFKY.js")), Wg = bt(() => import("./index-DpLamT1r.js")), Ug = bt(() => import("./index-BCw3Oxp1.js")), zg = bt(() => import("./index-ZuYJoo9E.js")), Gg = bt(() => import("./index-CdugR2_4.js")), Kg = bt(() => import("./index-HJ3Kt-NT.js").then((t) => ({ default: t.default }))), fo = bt(() => import("./SystemShell-gcfNlt2L.js")), Go = "ft_popup_read";
|
|
8479
8479
|
function go(t) {
|
|
8480
8480
|
return t.id != null ? String(t.id) : `${t.title ?? ""}|${t.content ?? ""}`;
|
|
8481
8481
|
}
|
|
@@ -9058,7 +9058,7 @@ function Vg({
|
|
|
9058
9058
|
*/
|
|
9059
9059
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e(fo, {}) })
|
|
9060
9060
|
) : Ee === "product" ? (
|
|
9061
|
-
/* ──
|
|
9061
|
+
/* ── 产品工作台 v2:左(产品树/文件树)中(渲染)右(群聊) ── */
|
|
9062
9062
|
/* @__PURE__ */ e("div", { className: A.smartWorkbenchArea, children: /* @__PURE__ */ e($n, { fallback: null, children: /* @__PURE__ */ e(ja, { children: /* @__PURE__ */ e(Kg, {}) }) }) })
|
|
9063
9063
|
) : Ee === "dev" ? (
|
|
9064
9064
|
/* ── 研发模式:z-lc 低代码平台 ──
|
|
@@ -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 A } from "react";
|
|
4
4
|
import { UnorderedListOutlined as i, HistoryOutlined as T, ClusterOutlined as p, DashboardOutlined as s, ExperimentOutlined as q, SettingOutlined as d, KeyOutlined as n, AppstoreOutlined as r, SafetyCertificateOutlined as P, TeamOutlined as w, ProfileOutlined as b, ApiOutlined as u, HddOutlined as l, ApartmentOutlined as g, InboxOutlined as k, FileTextOutlined as y, SendOutlined as G, CloudServerOutlined as a, NodeIndexOutlined as z, TableOutlined as f, SearchOutlined as m, DatabaseOutlined as v, ConsoleSqlOutlined as E, BranchesOutlined as I, DeploymentUnitOutlined as M, BookOutlined as h, FundOutlined as N, CloudUploadOutlined as _, TagsOutlined as x, CodeOutlined as B } from "@ant-design/icons";
|
|
5
|
-
import { W as R } from "./index-
|
|
5
|
+
import { W as R } from "./index-Bf1K9zpk.js";
|
|
6
6
|
import { ConfigApp as U } from "@yuku123/z-config-component";
|
|
7
7
|
import { MistApp as H } from "@yuku123/z-mist-component";
|
|
8
8
|
import { MetaApp as L } from "@yuku123/z-meta-component";
|
|
@@ -16,7 +16,7 @@ import { MqApp as Z } from "@yuku123/z-mq-component";
|
|
|
16
16
|
import { OssApp as J } from "@yuku123/z-oss-component";
|
|
17
17
|
import { ZkbApp as X } from "@yuku123/z-kb-component";
|
|
18
18
|
import { ScriptProductizationPage as o } from "@yuku123/z-agent-component";
|
|
19
|
-
import "./index-
|
|
19
|
+
import "./index-DgN13A-E.js";
|
|
20
20
|
const $ = "/api/graph";
|
|
21
21
|
let O = !1;
|
|
22
22
|
function ee() {
|
|
@@ -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,
|
|
5
|
+
import { a as A, B as R, b as E } from "./ComponentDoc-C_289lsE.js";
|
|
6
6
|
function B(a) {
|
|
7
7
|
const l = new URLSearchParams();
|
|
8
8
|
Object.entries(a).forEach(([N, s]) => {
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { jsxs as l, jsx as n, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { ReloadOutlined as se, SearchOutlined as oe, RightOutlined as le, TeamOutlined as de, MessageOutlined as ue } from "@ant-design/icons";
|
|
3
|
+
import { Tooltip as he, Input as pe, Spin as G, Empty as h, Tag as K, Button as U } from "antd";
|
|
4
|
+
import { useState as d, useRef as _e, useCallback as m, useEffect as z, useMemo as D } from "react";
|
|
5
|
+
import { u as v } from "./ComponentDoc-C_289lsE.js";
|
|
6
|
+
import { C as me } from "./createWorkspaceWsHandler-DcNA1pfi.js";
|
|
7
|
+
import { l as ve, c as fe } from "./api-BdP8mK8v.js";
|
|
8
|
+
const Ce = "product-workspace", W = "productCode";
|
|
9
|
+
function L(c) {
|
|
10
|
+
if (!c.ok) throw new Error(`产品接口失败 (${c.status})`);
|
|
11
|
+
return c.json();
|
|
12
|
+
}
|
|
13
|
+
async function Ne() {
|
|
14
|
+
const c = v.getState().token, i = await fetch(`/api/product/list${c ? `?token=${encodeURIComponent(c)}` : ""}`, {
|
|
15
|
+
credentials: "include",
|
|
16
|
+
headers: { Accept: "application/json" }
|
|
17
|
+
}), a = await L(i), r = Array.isArray(a) ? a : a == null ? void 0 : a.data;
|
|
18
|
+
return Array.isArray(r) ? r.map((u) => ({
|
|
19
|
+
...u,
|
|
20
|
+
productCode: String(u.productCode ?? u.code ?? ""),
|
|
21
|
+
name: String(u.name ?? u.productCode ?? u.code ?? "未命名")
|
|
22
|
+
})) : [];
|
|
23
|
+
}
|
|
24
|
+
async function we(c) {
|
|
25
|
+
try {
|
|
26
|
+
const i = await fetch(`/api/product/${encodeURIComponent(c)}`, {
|
|
27
|
+
credentials: "include",
|
|
28
|
+
headers: { Accept: "application/json" }
|
|
29
|
+
}), a = await L(i), r = (a == null ? void 0 : a.data) ?? a;
|
|
30
|
+
return r && typeof r == "object" ? { ...r, productCode: c } : null;
|
|
31
|
+
} catch {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async function Re(c) {
|
|
36
|
+
try {
|
|
37
|
+
const i = await fetch(`/api/product/${encodeURIComponent(c)}/atelier/workspace`, {
|
|
38
|
+
credentials: "include",
|
|
39
|
+
headers: { Accept: "application/json" }
|
|
40
|
+
}), a = await L(i), r = (a == null ? void 0 : a.data) ?? a;
|
|
41
|
+
return r && typeof r == "object" && Array.isArray(r.files) ? r.files : Array.isArray(r) ? r : [];
|
|
42
|
+
} catch {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async function Pe(c, i) {
|
|
47
|
+
try {
|
|
48
|
+
const a = await fetch(
|
|
49
|
+
`/api/product/${encodeURIComponent(c)}/atelier/files/raw?path=${encodeURIComponent(i)}`,
|
|
50
|
+
{ credentials: "include", headers: { Accept: "text/html, application/json" } }
|
|
51
|
+
);
|
|
52
|
+
return a.ok ? await a.text() : null;
|
|
53
|
+
} catch {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function ye(c) {
|
|
58
|
+
var r;
|
|
59
|
+
const i = (r = c.ext) == null ? void 0 : r.params;
|
|
60
|
+
if (!i || typeof i != "object") return null;
|
|
61
|
+
const a = i[W];
|
|
62
|
+
return a == null ? null : String(a);
|
|
63
|
+
}
|
|
64
|
+
async function ge(c, i) {
|
|
65
|
+
try {
|
|
66
|
+
return (await ve(i)).filter((r) => ye(r) === c);
|
|
67
|
+
} catch {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async function Te(c, i, a) {
|
|
72
|
+
return fe(
|
|
73
|
+
{ scenario_code: Ce, name: i || `产品 ${c} 讨论组` },
|
|
74
|
+
a,
|
|
75
|
+
{ [W]: c }
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
const Se = "_container_nuvv9_5", Ae = "_left_nuvv9_14", Ee = "_leftHeader_nuvv9_24", Ie = "_leftTitleRow_nuvv9_30", ke = "_leftTitle_nuvv9_30", Ge = "_backBtn_nuvv9_47", Le = "_iconBtn_nuvv9_61", je = "_leftBody_nuvv9_76", He = "_searchInput_nuvv9_82", $e = "_productList_nuvv9_86", Be = "_fileList_nuvv9_87", Fe = "_productRow_nuvv9_93", be = "_productRowActive_nuvv9_107", Me = "_productName_nuvv9_111", xe = "_productCode_nuvv9_120", Oe = "_fileTreeHint_nuvv9_126", Ke = "_fileRow_nuvv9_132", Ue = "_fileRowActive_nuvv9_146", ze = "_fileRowIcon_nuvv9_150", De = "_fileRowName_nuvv9_155", We = "_fileKindTag_nuvv9_164", qe = "_center_nuvv9_172", Je = "_centerFill_nuvv9_181", Ye = "_productInfoCard_nuvv9_189", Qe = "_pCardHeader_nuvv9_199", Ve = "_pCardCode_nuvv9_206", Xe = "_pCardName_nuvv9_214", Ze = "_pCardDesc_nuvv9_221", et = "_pCardStats_nuvv9_228", tt = "_renderArea_nuvv9_236", nt = "_renderIframe_nuvv9_246", ct = "_renderCode_nuvv9_252", at = "_right_nuvv9_265", rt = "_chatSide_nuvv9_276", it = "_chatSideHeader_nuvv9_282", st = "_chatSideTitle_nuvv9_291", ot = "_chatGroupList_nuvv9_300", lt = "_chatGroupRow_nuvv9_309", dt = "_chatGroupRowActive_nuvv9_323", ut = "_chatGroupName_nuvv9_327", ht = "_chatGroupTime_nuvv9_336", pt = "_chatPane_nuvv9_343", _t = "_chatPaneHeader_nuvv9_349", mt = "_chatPaneTitle_nuvv9_358", vt = "_chatPaneBody_nuvv9_367", t = {
|
|
79
|
+
container: Se,
|
|
80
|
+
left: Ae,
|
|
81
|
+
leftHeader: Ee,
|
|
82
|
+
leftTitleRow: Ie,
|
|
83
|
+
leftTitle: ke,
|
|
84
|
+
backBtn: Ge,
|
|
85
|
+
iconBtn: Le,
|
|
86
|
+
leftBody: je,
|
|
87
|
+
searchInput: He,
|
|
88
|
+
productList: $e,
|
|
89
|
+
fileList: Be,
|
|
90
|
+
productRow: Fe,
|
|
91
|
+
productRowActive: be,
|
|
92
|
+
productName: Me,
|
|
93
|
+
productCode: xe,
|
|
94
|
+
fileTreeHint: Oe,
|
|
95
|
+
fileRow: Ke,
|
|
96
|
+
fileRowActive: Ue,
|
|
97
|
+
fileRowIcon: ze,
|
|
98
|
+
fileRowName: De,
|
|
99
|
+
fileKindTag: We,
|
|
100
|
+
center: qe,
|
|
101
|
+
centerFill: Je,
|
|
102
|
+
productInfoCard: Ye,
|
|
103
|
+
pCardHeader: Qe,
|
|
104
|
+
pCardCode: Ve,
|
|
105
|
+
pCardName: Xe,
|
|
106
|
+
pCardDesc: Ze,
|
|
107
|
+
pCardStats: et,
|
|
108
|
+
renderArea: tt,
|
|
109
|
+
renderIframe: nt,
|
|
110
|
+
renderCode: ct,
|
|
111
|
+
right: at,
|
|
112
|
+
chatSide: rt,
|
|
113
|
+
chatSideHeader: it,
|
|
114
|
+
chatSideTitle: st,
|
|
115
|
+
chatGroupList: ot,
|
|
116
|
+
chatGroupRow: lt,
|
|
117
|
+
chatGroupRowActive: dt,
|
|
118
|
+
chatGroupName: ut,
|
|
119
|
+
chatGroupTime: ht,
|
|
120
|
+
chatPane: pt,
|
|
121
|
+
chatPaneHeader: _t,
|
|
122
|
+
chatPaneTitle: mt,
|
|
123
|
+
chatPaneBody: vt
|
|
124
|
+
};
|
|
125
|
+
function ft(c) {
|
|
126
|
+
return {
|
|
127
|
+
id: String(c.id),
|
|
128
|
+
name: c.name,
|
|
129
|
+
description: c.description ?? "",
|
|
130
|
+
workspace_path: c.workspacePath || c.name,
|
|
131
|
+
status: c.status,
|
|
132
|
+
created_at: c.createTime ?? "",
|
|
133
|
+
scenario_id: String(c.id),
|
|
134
|
+
scenario_code: c.scenarioCode,
|
|
135
|
+
scenario_name: c.scenarioName ?? c.name
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function q(c) {
|
|
139
|
+
const i = c.toLowerCase();
|
|
140
|
+
return /\.(html?|png|jpe?g|webp|svg|pdf)$/.test(i) ? "design" : /\.(md|markdown|txt|docx?)$/.test(i) ? "doc" : /\.(js|ts|tsx|jsx|java|py|json|yml|yaml|sql|css|vue|go|rs)$/.test(i) ? "code" : "other";
|
|
141
|
+
}
|
|
142
|
+
function J(c, i = "") {
|
|
143
|
+
const a = [];
|
|
144
|
+
for (const r of c ?? []) {
|
|
145
|
+
const u = r.path || `${i}${r.name ?? ""}`, N = r.name || u.split("/").pop() || u, o = r.type === "dir" || Array.isArray(r.children);
|
|
146
|
+
a.push({ path: u, name: N, dir: o, kind: q(u), depth: i.split("/").filter(Boolean).length }), o && Array.isArray(r.children) && a.push(...J(r.children, `${u}/`));
|
|
147
|
+
}
|
|
148
|
+
return a;
|
|
149
|
+
}
|
|
150
|
+
function Tt() {
|
|
151
|
+
const c = v((e) => e.token), i = v((e) => e.selectProject), [a, r] = d([]), [u, N] = d(!0), [o, Y] = d(null), [s, Q] = d(null), [P, j] = d(!1), [y, V] = d([]), [X, H] = d(!1), [g, T] = d(null), [S, w] = d(null), [Z, ee] = d("other"), [f, te] = d(""), [C, $] = d([]), [B, ne] = d(null), [R, F] = d(!1), [ce, b] = d("list"), _ = _e(null), A = m(async () => {
|
|
152
|
+
N(!0);
|
|
153
|
+
try {
|
|
154
|
+
const e = await Ne();
|
|
155
|
+
r(e);
|
|
156
|
+
} catch {
|
|
157
|
+
r([]);
|
|
158
|
+
} finally {
|
|
159
|
+
N(!1);
|
|
160
|
+
}
|
|
161
|
+
}, []);
|
|
162
|
+
z(() => {
|
|
163
|
+
A();
|
|
164
|
+
}, [A]);
|
|
165
|
+
const M = m(
|
|
166
|
+
async (e) => {
|
|
167
|
+
Y(e), j(!1), T(null), w(null);
|
|
168
|
+
const p = await we(e);
|
|
169
|
+
Q(p);
|
|
170
|
+
const k = await ge(e, c);
|
|
171
|
+
$(k);
|
|
172
|
+
},
|
|
173
|
+
[c]
|
|
174
|
+
), ae = m(async () => {
|
|
175
|
+
if (!o) return;
|
|
176
|
+
j(!0), T(null), w(null), H(!0);
|
|
177
|
+
const e = await Re(o);
|
|
178
|
+
V(e), H(!1);
|
|
179
|
+
}, [o]), re = m(
|
|
180
|
+
async (e) => {
|
|
181
|
+
if (!o) return;
|
|
182
|
+
T(e), w(null);
|
|
183
|
+
const p = q(e);
|
|
184
|
+
ee(p);
|
|
185
|
+
const k = await Pe(o, e);
|
|
186
|
+
w(k ?? "");
|
|
187
|
+
},
|
|
188
|
+
[o]
|
|
189
|
+
), E = m(
|
|
190
|
+
async (e) => {
|
|
191
|
+
if (!e) return;
|
|
192
|
+
const p = ft(e);
|
|
193
|
+
_.current = v.getState().currentProject, ne(e.id), b("chat"), i(p);
|
|
194
|
+
},
|
|
195
|
+
[i]
|
|
196
|
+
), ie = m(async () => {
|
|
197
|
+
if (!(!o || R)) {
|
|
198
|
+
F(!0);
|
|
199
|
+
try {
|
|
200
|
+
const e = await Te(
|
|
201
|
+
o,
|
|
202
|
+
`${(s == null ? void 0 : s.name) || o} · 讨论组 ${C.length + 1}`,
|
|
203
|
+
c
|
|
204
|
+
);
|
|
205
|
+
$((p) => [...p, e]), await E(e);
|
|
206
|
+
} finally {
|
|
207
|
+
F(!1);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}, [o, R, C.length, s == null ? void 0 : s.name, c, E]);
|
|
211
|
+
z(() => () => {
|
|
212
|
+
_.current !== void 0 && v.setState({ currentProject: _.current });
|
|
213
|
+
}, [B]);
|
|
214
|
+
const I = D(() => J(y), [y]), x = D(
|
|
215
|
+
() => a.filter((e) => !f || e.name.includes(f) || e.productCode.includes(f)),
|
|
216
|
+
[a, f]
|
|
217
|
+
);
|
|
218
|
+
return /* @__PURE__ */ l("div", { className: t.container, children: [
|
|
219
|
+
/* @__PURE__ */ l("aside", { className: t.left, children: [
|
|
220
|
+
/* @__PURE__ */ n("div", { className: t.leftHeader, children: P && o ? /* @__PURE__ */ l("div", { className: t.leftTitleRow, children: [
|
|
221
|
+
/* @__PURE__ */ n("button", { type: "button", className: t.backBtn, onClick: () => M(o), children: "←" }),
|
|
222
|
+
/* @__PURE__ */ n("span", { className: t.leftTitle, title: (s == null ? void 0 : s.name) || o, children: (s == null ? void 0 : s.name) || o })
|
|
223
|
+
] }) : /* @__PURE__ */ l("div", { className: t.leftTitleRow, children: [
|
|
224
|
+
/* @__PURE__ */ n("span", { className: t.leftTitle, children: "产品" }),
|
|
225
|
+
/* @__PURE__ */ n(he, { title: "刷新产品列表", children: /* @__PURE__ */ n("button", { type: "button", className: t.iconBtn, onClick: A, children: /* @__PURE__ */ n(se, {}) }) })
|
|
226
|
+
] }) }),
|
|
227
|
+
/* @__PURE__ */ n("div", { className: t.leftBody, children: P ? /* @__PURE__ */ l(O, { children: [
|
|
228
|
+
/* @__PURE__ */ n("div", { className: t.fileTreeHint, children: "文件(设计稿 · 文档 · 产物)" }),
|
|
229
|
+
X ? /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(G, { size: "small" }) }) : I.length === 0 ? /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "产品下暂无文件" }) : /* @__PURE__ */ n("div", { className: t.fileList, children: I.map((e) => /* @__PURE__ */ l(
|
|
230
|
+
"div",
|
|
231
|
+
{
|
|
232
|
+
className: `${t.fileRow} ${g === e.path ? t.fileRowActive : ""}`,
|
|
233
|
+
style: { paddingLeft: 12 + e.depth * 16 },
|
|
234
|
+
onClick: () => !e.dir && re(e.path),
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ n("span", { className: t.fileRowIcon, children: e.dir ? "📁" : e.kind === "design" ? "🖼" : e.kind === "doc" ? "📄" : e.kind === "code" ? "{" : "◦" }),
|
|
237
|
+
/* @__PURE__ */ n("span", { className: t.fileRowName, children: e.name }),
|
|
238
|
+
e.kind === "design" && /* @__PURE__ */ n(K, { className: t.fileKindTag, color: "blue", children: "设计稿" })
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
e.path
|
|
242
|
+
)) })
|
|
243
|
+
] }) : /* @__PURE__ */ l(O, { children: [
|
|
244
|
+
/* @__PURE__ */ n(
|
|
245
|
+
pe,
|
|
246
|
+
{
|
|
247
|
+
prefix: /* @__PURE__ */ n(oe, {}),
|
|
248
|
+
placeholder: "搜索产品",
|
|
249
|
+
value: f,
|
|
250
|
+
onChange: (e) => te(e.target.value),
|
|
251
|
+
allowClear: !0,
|
|
252
|
+
size: "small",
|
|
253
|
+
className: t.searchInput
|
|
254
|
+
}
|
|
255
|
+
),
|
|
256
|
+
u ? /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(G, { size: "small" }) }) : x.length === 0 ? /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "暂无产品" }) : /* @__PURE__ */ n("div", { className: t.productList, children: x.map((e) => /* @__PURE__ */ l(
|
|
257
|
+
"div",
|
|
258
|
+
{
|
|
259
|
+
className: `${t.productRow} ${o === e.productCode ? t.productRowActive : ""}`,
|
|
260
|
+
onClick: () => M(e.productCode),
|
|
261
|
+
children: [
|
|
262
|
+
/* @__PURE__ */ n("span", { className: t.productName, title: e.name, children: e.name }),
|
|
263
|
+
/* @__PURE__ */ n("span", { className: t.productCode, children: e.productCode })
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
e.productCode
|
|
267
|
+
)) })
|
|
268
|
+
] }) })
|
|
269
|
+
] }),
|
|
270
|
+
/* @__PURE__ */ n("main", { className: t.center, children: o ? P ? g == null ? /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "点击左侧文件查看渲染" }) }) : S == null ? /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(G, {}) }) : /* @__PURE__ */ n("div", { className: t.renderArea, children: Z === "design" ? (
|
|
271
|
+
/* 设计稿:raw 通常为 HTML → iframe srcdoc 渲染 */
|
|
272
|
+
/* @__PURE__ */ n(
|
|
273
|
+
"iframe",
|
|
274
|
+
{
|
|
275
|
+
className: t.renderIframe,
|
|
276
|
+
srcDoc: S,
|
|
277
|
+
title: g,
|
|
278
|
+
sandbox: "allow-scripts allow-same-origin"
|
|
279
|
+
}
|
|
280
|
+
)
|
|
281
|
+
) : /* @__PURE__ */ n("pre", { className: t.renderCode, children: S || "(空文件)" }) }) : /* @__PURE__ */ l("div", { className: t.productInfoCard, children: [
|
|
282
|
+
/* @__PURE__ */ l("div", { className: t.pCardHeader, children: [
|
|
283
|
+
/* @__PURE__ */ n("span", { className: t.pCardCode, children: o }),
|
|
284
|
+
(s == null ? void 0 : s.status) && /* @__PURE__ */ n(K, { children: s.status })
|
|
285
|
+
] }),
|
|
286
|
+
/* @__PURE__ */ n("h2", { className: t.pCardName, children: (s == null ? void 0 : s.name) || o }),
|
|
287
|
+
/* @__PURE__ */ n("p", { className: t.pCardDesc, children: (s == null ? void 0 : s.description) || "暂无产品描述" }),
|
|
288
|
+
/* @__PURE__ */ l("div", { className: t.pCardStats, children: [
|
|
289
|
+
/* @__PURE__ */ l("span", { children: [
|
|
290
|
+
"文件: ",
|
|
291
|
+
y.length > 0 ? I.filter((e) => !e.dir).length : "未加载"
|
|
292
|
+
] }),
|
|
293
|
+
/* @__PURE__ */ l("span", { children: [
|
|
294
|
+
"聊天组: ",
|
|
295
|
+
C.length
|
|
296
|
+
] })
|
|
297
|
+
] }),
|
|
298
|
+
/* @__PURE__ */ n(U, { type: "primary", icon: /* @__PURE__ */ n(le, {}), onClick: ae, children: "进入产品" })
|
|
299
|
+
] }) : /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "从左侧选择一个产品" }) }) }),
|
|
300
|
+
/* @__PURE__ */ n("aside", { className: t.right, children: o ? ce === "list" ? /* @__PURE__ */ l("div", { className: t.chatSide, children: [
|
|
301
|
+
/* @__PURE__ */ l("div", { className: t.chatSideHeader, children: [
|
|
302
|
+
/* @__PURE__ */ l("span", { className: t.chatSideTitle, children: [
|
|
303
|
+
/* @__PURE__ */ n(de, {}),
|
|
304
|
+
" 聊天组"
|
|
305
|
+
] }),
|
|
306
|
+
/* @__PURE__ */ l(
|
|
307
|
+
U,
|
|
308
|
+
{
|
|
309
|
+
size: "small",
|
|
310
|
+
type: "primary",
|
|
311
|
+
ghost: !0,
|
|
312
|
+
loading: R,
|
|
313
|
+
onClick: ie,
|
|
314
|
+
children: [
|
|
315
|
+
/* @__PURE__ */ n(ue, {}),
|
|
316
|
+
" 发起聊天"
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
)
|
|
320
|
+
] }),
|
|
321
|
+
/* @__PURE__ */ n("div", { className: t.chatGroupList, children: C.length === 0 ? /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "还没有聊天组,点「发起聊天」开始" }) : C.map((e) => /* @__PURE__ */ l(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
className: `${t.chatGroupRow} ${B === e.id ? t.chatGroupRowActive : ""}`,
|
|
325
|
+
onClick: () => !R && E(e),
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ n("span", { className: t.chatGroupName, title: e.name, children: e.name }),
|
|
328
|
+
/* @__PURE__ */ n("span", { className: t.chatGroupTime, children: String(e.createTime ?? "").slice(5, 16).replace("T", " ") })
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
e.id
|
|
332
|
+
)) })
|
|
333
|
+
] }) : /* @__PURE__ */ l("div", { className: t.chatPane, children: [
|
|
334
|
+
/* @__PURE__ */ l("div", { className: t.chatPaneHeader, children: [
|
|
335
|
+
/* @__PURE__ */ n(
|
|
336
|
+
"button",
|
|
337
|
+
{
|
|
338
|
+
type: "button",
|
|
339
|
+
className: t.backBtn,
|
|
340
|
+
onClick: () => {
|
|
341
|
+
b("list"), _.current !== void 0 && v.setState({ currentProject: _.current }), _.current = void 0;
|
|
342
|
+
},
|
|
343
|
+
title: "返回聊天组列表",
|
|
344
|
+
children: "←"
|
|
345
|
+
}
|
|
346
|
+
),
|
|
347
|
+
/* @__PURE__ */ l("span", { className: t.chatPaneTitle, children: [
|
|
348
|
+
"群聊 · ",
|
|
349
|
+
(s == null ? void 0 : s.name) || o
|
|
350
|
+
] })
|
|
351
|
+
] }),
|
|
352
|
+
/* @__PURE__ */ n("div", { className: t.chatPaneBody, children: /* @__PURE__ */ n(me, { hideTabs: !0 }) })
|
|
353
|
+
] }) : /* @__PURE__ */ n("div", { className: t.centerFill, children: /* @__PURE__ */ n(h, { image: h.PRESENTED_IMAGE_SIMPLE, description: "选择产品后在此发起群聊" }) }) })
|
|
354
|
+
] });
|
|
355
|
+
}
|
|
356
|
+
export {
|
|
357
|
+
Tt as default
|
|
358
|
+
};
|
|
@@ -2,9 +2,9 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Navigate as i, useLocation as b } from "react-router-dom";
|
|
3
3
|
import { Alert as u } from "antd";
|
|
4
4
|
import { DashboardOutlined as v, ClusterOutlined as r, ContainerOutlined as y, CloudServerOutlined as l, BranchesOutlined as O, RocketOutlined as g, AlertOutlined as k, FileTextOutlined as S, DatabaseOutlined as c, CloudOutlined as f, DeploymentUnitOutlined as z } from "@ant-design/icons";
|
|
5
|
-
import { W as P } from "./index-
|
|
6
|
-
import { M as D } from "./ComponentDoc-
|
|
7
|
-
import "./index-
|
|
5
|
+
import { W as P } from "./index-Bf1K9zpk.js";
|
|
6
|
+
import { M as D } from "./ComponentDoc-C_289lsE.js";
|
|
7
|
+
import "./index-DgN13A-E.js";
|
|
8
8
|
const a = "K8s 管理面的数据源在**独立运维平台 z-ops**:/z-team/ops/k8s/** 由 z-ops 仓的 z-ops-web 提供(K8sController 注册 /z-team/ops/k8s,HpaController 注册 /z-team/ops/k8s/hpa)。**z-opc 主壳不承载它**:主壳制品 BOOT-INF/lib 里 0 个 z-ops-*,主壳 nginx 路由总表里也没有^/z-team/ops 这条反代规则 ⇒ 实测 GET /z-team/ops/k8s/nodes 得到的是 SPA 兜底页(HTTP 200 + text/html + 451B,与必假路径逐字节相同),不是后端 JSON。该页面的真实入口在 z-ops 独立平台(集群内端口 8886,其前端路由 /ops/k8s)。", E = [
|
|
9
9
|
{
|
|
10
10
|
title: "DevOps 运维",
|
|
@@ -3,8 +3,8 @@ import { useState as y, useMemo as d } from "react";
|
|
|
3
3
|
import { useNavigate as G, useLocation as k } from "react-router-dom";
|
|
4
4
|
import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
|
|
5
5
|
import R from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as U, M as x } from "./menuPermission-
|
|
7
|
-
import {
|
|
6
|
+
import { f as U, M as x } from "./menuPermission-u3Gd_c8S.js";
|
|
7
|
+
import { u as b } from "./ComponentDoc-C_289lsE.js";
|
|
8
8
|
const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
|
|
9
9
|
shell: D,
|
|
10
10
|
sidebar: E,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-C_289lsE.js";
|
|
3
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-p-ezisoS.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,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import { r as L, h as N, s as T } from "./sso-user-
|
|
3
|
+
import { r as L, h as N, s as T } from "./sso-user-Ib1jhF7t.js";
|
|
4
4
|
import { CheckCircleFilled as q } from "@ant-design/icons";
|
|
5
5
|
import { Spin as R } from "antd";
|
|
6
6
|
import W from "query-string";
|
|
7
7
|
import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
|
|
8
8
|
import { useLocation as F } from "react-router-dom";
|
|
9
9
|
import { h as H } from "./history-BlrA1eaW.js";
|
|
10
|
-
import {
|
|
10
|
+
import { u as m, g as Y, k as B } from "./ComponentDoc-C_289lsE.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { b as G } from "./mobile-client-O3yr9h6t.js";
|
|
13
13
|
function oe() {
|
|
@@ -17,7 +17,7 @@ function oe() {
|
|
|
17
17
|
), _ = P(
|
|
18
18
|
() => String(g.source ?? "z-team-webide").trim(),
|
|
19
19
|
[i.search]
|
|
20
|
-
), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [
|
|
20
|
+
), [b, E] = p(!1), [I, y] = p("正在登录…"), [w, M] = p([]), [k, x] = p(""), { currentUser: d, updateCurrentUser: u, expandProject: $ } = m(), f = A((e, o) => {
|
|
21
21
|
M((a) => [...a, e]), y(o);
|
|
22
22
|
}, []);
|
|
23
23
|
return U(() => {
|
|
@@ -73,11 +73,11 @@ function oe() {
|
|
|
73
73
|
try {
|
|
74
74
|
const a = m.getState(), r = /* @__PURE__ */ new Date(), n = (c) => String(c).padStart(2, "0"), h = `${r.getFullYear()}-${n(r.getMonth() + 1)}-${n(
|
|
75
75
|
r.getDate()
|
|
76
|
-
)} ${n(r.getHours())}:${n(r.getMinutes())}`,
|
|
76
|
+
)} ${n(r.getHours())}:${n(r.getMinutes())}`, j = `${S} - ${d.display_name || d.username} - ${h}`;
|
|
77
77
|
y("正在创建咨询群组…");
|
|
78
78
|
const l = await Y(
|
|
79
79
|
{
|
|
80
|
-
name:
|
|
80
|
+
name: j,
|
|
81
81
|
description: `${_} 发起的在线咨询`,
|
|
82
82
|
workspace_path: `webide_consult_${Date.now()}`,
|
|
83
83
|
scenario_code: "z_team_webide_console_scenario"
|
|
@@ -111,7 +111,7 @@ function oe() {
|
|
|
111
111
|
$,
|
|
112
112
|
f,
|
|
113
113
|
i.search
|
|
114
|
-
]),
|
|
114
|
+
]), k ? /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--error", children: /* @__PURE__ */ s("p", { children: k }) }) : /* @__PURE__ */ s("div", { className: "embed-chat-page embed-chat-page--loading", children: /* @__PURE__ */ C("div", { className: "embed-chat-page__panel", children: [
|
|
115
115
|
/* @__PURE__ */ s(R, { size: "large" }),
|
|
116
116
|
/* @__PURE__ */ s("p", { className: "embed-chat-page__step", children: I }),
|
|
117
117
|
w.length > 0 ? /* @__PURE__ */ s("ul", { className: "embed-chat-page__done-list", children: w.filter((e) => e.trim().length > 0).map((e, o) => /* @__PURE__ */ C(
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r,
|
|
1
|
+
import { a as o, f as d, B as r, b as c } from "./ComponentDoc-C_289lsE.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -107,7 +107,7 @@ async function U(e, n = "") {
|
|
|
107
107
|
};
|
|
108
108
|
return t.scenarioInstance;
|
|
109
109
|
}
|
|
110
|
-
async function
|
|
110
|
+
async function b(e, n = "") {
|
|
111
111
|
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
112
|
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
113
|
{
|
|
@@ -117,7 +117,7 @@ async function k(e, n = "") {
|
|
|
117
117
|
), a = await c(s, "加入工程失败");
|
|
118
118
|
return u(a);
|
|
119
119
|
}
|
|
120
|
-
async function
|
|
120
|
+
async function k(e = "") {
|
|
121
121
|
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, d), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
122
122
|
if (!Number.isFinite(a) || a <= 0)
|
|
123
123
|
throw {
|
|
@@ -202,12 +202,12 @@ export {
|
|
|
202
202
|
T as b,
|
|
203
203
|
F as c,
|
|
204
204
|
I as d,
|
|
205
|
-
|
|
205
|
+
k as e,
|
|
206
206
|
C as f,
|
|
207
207
|
O as g,
|
|
208
208
|
A as h,
|
|
209
209
|
N as i,
|
|
210
|
-
|
|
210
|
+
b as j,
|
|
211
211
|
y as k,
|
|
212
212
|
S as l,
|
|
213
213
|
U as m,
|