@yuku123/z-team-component 0.2.28 → 0.2.30

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.
Files changed (45) hide show
  1. package/dist/{ChangeLogView-CG-o5YP1.js → ChangeLogView-FLd1wS8H.js} +1 -1
  2. package/dist/{InvitationManagementPage-DpA3Xlq1.js → InvitationManagementPage-CttWZdu8.js} +87 -82
  3. package/dist/{OnboardingPage-DFRAwruv.js → OnboardingPage-CAI-P20Q.js} +2 -2
  4. package/dist/ProjectApp-ZR_QUlPs.js +3839 -0
  5. package/dist/{SystemShell-BLXTOqFb.js → SystemShell-BKNdXqXt.js} +1 -1
  6. package/dist/{admin-logs-C2V1ElH9.js → admin-logs-Dv86pFvY.js} +2 -2
  7. package/dist/{api--Fg0hL9Y.js → api-19TXED_O.js} +52 -39
  8. package/dist/api-BNwdLozd.js +20 -0
  9. package/dist/{createWorkspaceWsHandler-CqGqcTh_.js → createWorkspaceWsHandler-CBk4DqP4.js} +6 -5
  10. package/dist/{index-hPzswwk2.js → index-B5_xKK08.js} +1139 -1152
  11. package/dist/{index-D5u3BjCZ.js → index-BIJnjJd5.js} +2 -2
  12. package/dist/{index-BylksTyk.js → index-BKwpQ-HW.js} +136 -134
  13. package/dist/{index-bbwTcNjB.js → index-BTLD5gUt.js} +3 -3
  14. package/dist/{index-C9BOtjtQ.js → index-BTaLAs80.js} +9 -9
  15. package/dist/{index-CiMxCTOS.js → index-B_EBV24V.js} +1 -1
  16. package/dist/{index-BafC42Cl.js → index-Bd57t_yF.js} +1 -1
  17. package/dist/{index-C2aPiQSz.js → index-BjqYiZpC.js} +3 -3
  18. package/dist/{index-BaCiSbPR.js → index-BoGVJ0hC.js} +1 -1
  19. package/dist/{index-C01UUprh.js → index-BpuJ9Njb.js} +7016 -6946
  20. package/dist/{index-CcFJEYgr.js → index-C815hPWS.js} +55 -52
  21. package/dist/{index-DIxwe_pk.js → index-C8GK1bOQ.js} +358 -347
  22. package/dist/{index-DvIHX7lZ.js → index-CcpWacSZ.js} +243 -236
  23. package/dist/{index-Da7ls5q6.js → index-DOPkM2W8.js} +6 -6
  24. package/dist/index-DQNZE7Go.js +169 -0
  25. package/dist/{index-BYEx4vlI.js → index-DR_FCf71.js} +1134 -1132
  26. package/dist/{index-CTD7k9dP.js → index-DYgD6BuB.js} +4 -4
  27. package/dist/{index-dSnK7qcL.js → index-DdN9Apqq.js} +5 -5
  28. package/dist/{index-CPF3LS0x.js → index-DuGWlMWm.js} +3 -3
  29. package/dist/index-JMzBzwiO.js +1746 -0
  30. package/dist/{index-Dao4uqQd.js → index-x4-W5ClM.js} +4 -4
  31. package/dist/index.js +1 -1
  32. package/dist/{instance-1QEDBRqA.js → instance-D951fRuD.js} +1 -1
  33. package/dist/pages.js +5 -4
  34. package/dist/{schedule-C89oiqIR.js → schedule-DD50-7cs.js} +1 -1
  35. package/dist/{send-default-agent-team-message-CxkWi3XC.js → send-default-agent-team-message-Bbs2rMNf.js} +1 -1
  36. package/dist/{sso-user-BE1Ell5F.js → sso-user-BEY5ICaR.js} +1 -1
  37. package/dist/{training-o-vSBkqP.js → training-B-9tNFQw.js} +1 -1
  38. package/dist/{useAppStore-wgWaxcyc.js → useAppStore-BQN-26ns.js} +1 -1
  39. package/dist/{webide-BxD6cYe-.js → webide-P867RFZi.js} +4 -4
  40. package/dist/z-team-component.css +1 -1
  41. package/package.json +3 -3
  42. package/dist/ProjectApp-BquB_X7K.js +0 -4591
  43. package/dist/api-CX7MUpws.js +0 -19
  44. package/dist/index-CcTdM5kT.js +0 -178
  45. package/dist/index-pfzY68PH.js +0 -1408
@@ -1,19 +0,0 @@
1
- import "@yuku123/z-frontend-common";
2
- import { a } from "./ProjectApp-BquB_X7K.js";
3
- import "react/jsx-runtime";
4
- import "react";
5
- import "antd";
6
- import "@ant-design/icons";
7
- const r = () => a.get("/ctc/authn/my-tenants"), p = (t, s) => a.post("/ctc/authn/select-tenant", { tenantCode: t, domainCode: "" }), v = (t) => a.post("/ctc/ac/invitations", t), l = (t) => a.post("/ctc/ac/invitations/accept", { token: t }), d = (t) => a.post("/ctc/ac/invitations/redeem", { code: t }), u = (t) => a.get("/ctc/ac/invitations", { params: { tenantCode: t } }), b = (t, s) => a.post(`/ctc/ac/invitations/${t}/revoke`, null, { params: { tenantCode: s } }), g = (t) => a.get("/ctc/ac/invitations/members", { params: { tenantCode: t } }), I = (t, s) => a.post(`/ctc/ac/invitations/members/${t}/remove`, null, { params: { tenantCode: s } }), h = (t) => a.post("/ctc/ac/invitations/leave", null, { params: { tenantCode: t } });
8
- export {
9
- l as a,
10
- g as b,
11
- h as c,
12
- I as d,
13
- b as e,
14
- v as f,
15
- r as g,
16
- u as l,
17
- d as r,
18
- p as s
19
- };
@@ -1,178 +0,0 @@
1
- import { AppLayout as k, ErrorBoundary as v, LoginPage as H, StatusTag as K, defaultStatusMap as _ } from "@yuku123/z-frontend-common";
2
- import { a as y } from "./ProjectApp-BquB_X7K.js";
3
- import { C as F, E as J, c as Q, M as X, d as Y, O as Z, e as $, R as tt, f as et, g as at, h as rt, j as ot, r as nt, r as it, s as lt } from "./ProjectApp-BquB_X7K.js";
4
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
5
- import { useState as i, useEffect as E } from "react";
6
- import { Card as h, Alert as x, Table as g, Spin as I, Empty as f, Space as R, Button as s, Tag as c } from "antd";
7
- import { ReloadOutlined as T, UserAddOutlined as w, TeamOutlined as b, PlusOutlined as O, CodeOutlined as S } from "@ant-design/icons";
8
- import { D as dt } from "./DebugPlayground-cxffrMgF.js";
9
- const G = y, A = {
10
- LEADER: "red",
11
- WORKER: "blue",
12
- OBSERVER: "default"
13
- };
14
- function N() {
15
- const [r] = i(!1), [d] = i([]);
16
- return /* @__PURE__ */ a(
17
- h,
18
- {
19
- title: /* @__PURE__ */ a("span", { children: [
20
- /* @__PURE__ */ t(b, { style: { marginRight: 8 } }),
21
- "Agent 群组 IM"
22
- ] }),
23
- extra: /* @__PURE__ */ a(R, { children: [
24
- /* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), loading: r, children: "刷新" }),
25
- /* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(w, {}), disabled: !0, children: "创建群组" })
26
- ] }),
27
- children: [
28
- /* @__PURE__ */ t(
29
- x,
30
- {
31
- type: "info",
32
- showIcon: !0,
33
- style: { marginBottom: 16 },
34
- title: "IM 群组 (含 STOMP 实时消息) 后端服务尚未启动",
35
- description: "当前展示群组列表占位。等 z-agent-team 后端就绪后切换为完整 IM 客户端。"
36
- }
37
- ),
38
- /* @__PURE__ */ t(
39
- g,
40
- {
41
- rowKey: "teamCode",
42
- size: "small",
43
- loading: r,
44
- dataSource: d,
45
- columns: [
46
- { title: "群组编码", dataIndex: "teamCode", width: 200, ellipsis: !0 },
47
- { title: "群组名称", dataIndex: "teamName", width: 200 },
48
- {
49
- title: "我的角色",
50
- dataIndex: "role",
51
- width: 120,
52
- render: (o) => /* @__PURE__ */ t(c, { color: A[o] || "default", children: o || "-" })
53
- },
54
- { title: "成员数", dataIndex: "memberCount", width: 100 },
55
- { title: "最近消息", dataIndex: "lastMessage", width: 240, ellipsis: !0 },
56
- { title: "更新时间", dataIndex: "updatedAt", width: 180 }
57
- ],
58
- locale: { emptyText: r ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "暂无群组" }) },
59
- pagination: { pageSize: 20 }
60
- }
61
- )
62
- ]
63
- }
64
- );
65
- }
66
- const M = {
67
- CREATING: { text: "创建中", color: "processing" },
68
- RUNNING: { text: "运行中", color: "success" },
69
- STOPPED: { text: "已停止", color: "default" },
70
- ERROR: { text: "错误", color: "error" }
71
- }, C = {
72
- GIT: { text: "GIT 模式", color: "blue" },
73
- SHARED: { text: "SHARED 模式", color: "purple" }
74
- };
75
- function U() {
76
- const [r, d] = i([]), [l, o] = i(!1), [u, p] = i(null), m = async () => {
77
- o(!0), p(null);
78
- try {
79
- d([]);
80
- } catch (e) {
81
- p((e == null ? void 0 : e.message) || "加载失败");
82
- } finally {
83
- o(!1);
84
- }
85
- };
86
- return E(() => {
87
- m();
88
- }, []), /* @__PURE__ */ a(
89
- h,
90
- {
91
- title: /* @__PURE__ */ a("span", { children: [
92
- /* @__PURE__ */ t(S, { style: { marginRight: 8 } }),
93
- "WebIDE 容器管理"
94
- ] }),
95
- extra: /* @__PURE__ */ a(R, { children: [
96
- /* @__PURE__ */ t(s, { icon: /* @__PURE__ */ t(T, {}), onClick: m, loading: l, children: "刷新" }),
97
- /* @__PURE__ */ t(s, { type: "primary", icon: /* @__PURE__ */ t(O, {}), disabled: !0, children: "新建 WebIDE" })
98
- ] }),
99
- children: [
100
- u && /* @__PURE__ */ t(
101
- x,
102
- {
103
- type: "warning",
104
- showIcon: !0,
105
- style: { marginBottom: 16 },
106
- title: "后端 API 暂未连接",
107
- description: u
108
- }
109
- ),
110
- /* @__PURE__ */ t(
111
- g,
112
- {
113
- rowKey: "containerId",
114
- size: "small",
115
- loading: l,
116
- dataSource: r,
117
- columns: [
118
- { title: "容器ID", dataIndex: "containerId", width: 220, ellipsis: !0 },
119
- {
120
- title: "模式",
121
- dataIndex: "mode",
122
- width: 120,
123
- render: (e) => {
124
- const n = C[e] || { text: e, color: "default" };
125
- return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
126
- }
127
- },
128
- { title: "Git URL", dataIndex: "gitUrl", width: 240, ellipsis: !0 },
129
- { title: "分支", dataIndex: "branch", width: 120 },
130
- {
131
- title: "状态",
132
- dataIndex: "status",
133
- width: 120,
134
- render: (e) => {
135
- const n = M[e] || { text: e, color: "default" };
136
- return /* @__PURE__ */ t(c, { color: n.color, children: n.text });
137
- }
138
- },
139
- { title: "创建时间", dataIndex: "createdAt", width: 180 }
140
- ],
141
- locale: {
142
- emptyText: l ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(f, { description: "后端 z-webide 服务尚未启动" })
143
- },
144
- pagination: { pageSize: 20 },
145
- scroll: { x: 1e3 }
146
- }
147
- )
148
- ]
149
- }
150
- );
151
- }
152
- export {
153
- N as AgentTeamIM,
154
- k as AppLayout,
155
- F as CurlImportModal,
156
- dt as DebugPlayground,
157
- J as EndpointsTab,
158
- Q as EnvironmentsTab,
159
- v as ErrorBoundary,
160
- H as LoginPage,
161
- X as MockPlatform,
162
- Y as MockTemplateHelper,
163
- Z as OpenApiImportModal,
164
- $ as Overview,
165
- tt as RecordingsTab,
166
- et as RequestLogsTab,
167
- at as ScenariosTab,
168
- K as StatusTag,
169
- rt as TestCasesTab,
170
- U as Webide,
171
- y as authRequest,
172
- ot as createRequest,
173
- G as ctcRequest,
174
- nt as default,
175
- _ as defaultStatusMap,
176
- it as request,
177
- lt as setupInterceptors
178
- };