@yuku123/z-team-component 0.2.103 → 0.2.104
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 +542 -0
- package/dist/ComponentDoc-BW1SyDxk.js +8035 -0
- package/dist/InvitationManagementPage-hYvoPEcm.js +495 -0
- package/dist/OnboardingPage-KDp-DrzY.js +393 -0
- package/dist/ScheduledTasks-CErSDgyW.js +12127 -0
- package/dist/SystemShell-DvrY4Bl7.js +688 -0
- package/dist/_commonjsHelpers-B52_cu2H.js +26 -0
- package/dist/admin-logs-uPnnclwN.js +198 -0
- package/dist/api-B__qdRIf.js +20 -0
- package/dist/browser-jb_PFvU3.js +1538 -0
- package/dist/createWorkspaceWsHandler-BXbn5-Ft.js +13142 -0
- package/dist/ctc-sso-DtJHC-2M.js +117 -0
- package/dist/echarts-B1OU1xr4.js +16 -0
- package/dist/history-BlrA1eaW.js +41 -0
- package/dist/index-0smeCTnr.js +42049 -0
- package/dist/index-2isWwv1X.js +10169 -0
- package/dist/index-BC8f-JP9.js +242 -0
- package/dist/index-BK3YDeXH.js +2217 -0
- package/dist/index-BOJm25by.js +999 -0
- package/dist/index-B_LJRFsK.js +339 -0
- package/dist/index-BnJ8UEeZ.js +5892 -0
- package/dist/index-BohoJQPr.js +7631 -0
- package/dist/index-BwJPAN8f.js +112 -0
- package/dist/index-ByhCWenF.js +434 -0
- package/dist/index-C2_tfpEj.js +118 -0
- package/dist/index-C815hPWS.js +430 -0
- package/dist/index-C9fGup9t.js +189 -0
- package/dist/index-Cb88Xdh4.js +169 -0
- package/dist/index-Cih0yoxc.js +178 -0
- package/dist/index-CkWKJORv.js +1645 -0
- package/dist/index-CsaGecGX.js +132 -0
- package/dist/index-D-xPVrY3.js +316 -0
- package/dist/index-DAGa9v8r.js +142 -0
- package/dist/index-DBnH-lRh.js +956 -0
- package/dist/index-DIFIvVWE.js +93 -0
- package/dist/index-DOgCfVB2.js +574 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/index-DcurzowX.js +2699 -0
- package/dist/index-DhDdFRHC.js +279 -0
- package/dist/index-Dpii3P5J.js +1302 -0
- package/dist/index-DtHoMz1H.js +8 -0
- package/dist/index-YVtm1SRy.js +913 -0
- package/dist/index-aI2EXKED.js +479 -0
- package/dist/index-q_TPea69.js +315 -0
- package/dist/index.js +10 -0
- package/dist/index.module-CAa-2T7m.js +72 -0
- package/dist/index.module-UI0iz8K0.js +42 -0
- package/dist/instance-pdQ_wAhB.js +216 -0
- package/dist/menuPermission-CCQjJVXg.js +60 -0
- package/dist/mobile-client-O3yr9h6t.js +24 -0
- package/dist/pages.js +21 -0
- package/dist/send-default-agent-team-message-BzeR4ahf.js +35 -0
- package/dist/spark-md5-Dld54a-T.js +178 -0
- package/dist/sso-user-DI7oiDdc.js +43 -0
- package/dist/training-Bz7Sr5yC.js +450 -0
- package/dist/webide-NcHLDiSn.js +5233 -0
- package/dist/z-team-component.css +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { FilePptOutlined as P, EditOutlined as O, ScheduleOutlined as A, FileImageOutlined as $, CloseOutlined as F } from "@ant-design/icons";
|
|
3
|
+
import { useState as m, useCallback as x } from "react";
|
|
4
|
+
import { h as w } from "./history-BlrA1eaW.js";
|
|
5
|
+
const R = "_portalRoot_1sa2c_7", q = "_portalHeader_1sa2c_47", B = "_brandRow_1sa2c_53", D = "_brandLogo_1sa2c_59", L = "_brandTitle_1sa2c_63", M = "_brandSubtitle_1sa2c_70", G = "_portalMain_1sa2c_76", H = "_sectionTitle_1sa2c_85", j = "_cardGrid_1sa2c_92", K = "_scenarioCard_1sa2c_98", W = "_cardTop_1sa2c_114", z = "_cardIcon_1sa2c_119", Z = "_cardInfo_1sa2c_123", Q = "_cardTitle_1sa2c_127", J = "_cardTags_1sa2c_134", U = "_tag_1sa2c_139", X = "_cardDesc_1sa2c_148", Y = "_cardAction_1sa2c_154", V = "_btnCreate_1sa2c_159", ee = "_portalFooter_1sa2c_184", ae = "_linkWorkspace_1sa2c_190", oe = "_modalOverlay_1sa2c_206", te = "_modalBox_1sa2c_217", re = "_modalHeader_1sa2c_226", ne = "_modalIcon_1sa2c_239", ce = "_modalClose_1sa2c_242", le = "_modalBody_1sa2c_255", ie = "_modalDesc_1sa2c_258", se = "_fieldGroup_1sa2c_264", de = "_fieldLabel_1sa2c_269", _e = "_required_1sa2c_274", pe = "_fieldInput_1sa2c_278", me = "_fieldInputError_1sa2c_298", ue = "_fieldTextarea_1sa2c_301", fe = "_fieldTextareaError_1sa2c_325", he = "_fieldError_1sa2c_328", ge = "_modalFooter_1sa2c_333", Ce = "_btnCancel_1sa2c_339", be = "_btnConfirm_1sa2c_354", e = {
|
|
6
|
+
portalRoot: R,
|
|
7
|
+
portalHeader: q,
|
|
8
|
+
brandRow: B,
|
|
9
|
+
brandLogo: D,
|
|
10
|
+
brandTitle: L,
|
|
11
|
+
brandSubtitle: M,
|
|
12
|
+
portalMain: G,
|
|
13
|
+
sectionTitle: H,
|
|
14
|
+
cardGrid: j,
|
|
15
|
+
scenarioCard: K,
|
|
16
|
+
cardTop: W,
|
|
17
|
+
cardIcon: z,
|
|
18
|
+
cardInfo: Z,
|
|
19
|
+
cardTitle: Q,
|
|
20
|
+
cardTags: J,
|
|
21
|
+
tag: U,
|
|
22
|
+
cardDesc: X,
|
|
23
|
+
cardAction: Y,
|
|
24
|
+
btnCreate: V,
|
|
25
|
+
portalFooter: ee,
|
|
26
|
+
linkWorkspace: ae,
|
|
27
|
+
modalOverlay: oe,
|
|
28
|
+
modalBox: te,
|
|
29
|
+
modalHeader: re,
|
|
30
|
+
modalIcon: ne,
|
|
31
|
+
modalClose: ce,
|
|
32
|
+
modalBody: le,
|
|
33
|
+
modalDesc: ie,
|
|
34
|
+
fieldGroup: se,
|
|
35
|
+
fieldLabel: de,
|
|
36
|
+
required: _e,
|
|
37
|
+
fieldInput: pe,
|
|
38
|
+
fieldInputError: me,
|
|
39
|
+
fieldTextarea: ue,
|
|
40
|
+
fieldTextareaError: fe,
|
|
41
|
+
fieldError: he,
|
|
42
|
+
modalFooter: ge,
|
|
43
|
+
btnCancel: Ce,
|
|
44
|
+
btnConfirm: be
|
|
45
|
+
}, Ne = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api", Te = [
|
|
46
|
+
{
|
|
47
|
+
key: "ppt-creation",
|
|
48
|
+
icon: /* @__PURE__ */ a(P, {}),
|
|
49
|
+
title: "PPT 制作",
|
|
50
|
+
description: "PPT 制作:主题/受众/页数 → 大纲生成 → 逐页内容填充 → 风格与可视化建议",
|
|
51
|
+
scenarioCode: "ppt_creation",
|
|
52
|
+
source: "ppt_creation",
|
|
53
|
+
tags: ["大纲生成", "内容填充", "风格建议"],
|
|
54
|
+
inputConfig: {
|
|
55
|
+
label: "PPT 主题与需求",
|
|
56
|
+
placeholder: `请输入 PPT 主题、受众、页数、风格等关键信息,例如:
|
|
57
|
+
主题:2026 Q3 产品回顾
|
|
58
|
+
受众:公司管理层
|
|
59
|
+
页数:15 页
|
|
60
|
+
风格:商务简洁,重点突出数据`,
|
|
61
|
+
required: !0,
|
|
62
|
+
paramKey: "topic",
|
|
63
|
+
multiline: !0
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: "longform-writing",
|
|
68
|
+
icon: /* @__PURE__ */ a(O, {}),
|
|
69
|
+
title: "长文写作",
|
|
70
|
+
description: "长文写作:主题/关键词/风格 → 结构化大纲 → Markdown 正文 → 润色与精简",
|
|
71
|
+
scenarioCode: "longform_writing",
|
|
72
|
+
source: "longform_writing",
|
|
73
|
+
tags: ["结构化", "Markdown", "风格可控"],
|
|
74
|
+
inputConfig: {
|
|
75
|
+
label: "写作主题与要求",
|
|
76
|
+
placeholder: `请输入主题、关键词、目标读者、风格等关键信息,例如:
|
|
77
|
+
主题:z-opc 平台 2026 年度回顾
|
|
78
|
+
读者:全体员工
|
|
79
|
+
风格:积极、突出成绩、控制在 2000 字以内`,
|
|
80
|
+
required: !0,
|
|
81
|
+
paramKey: "topic",
|
|
82
|
+
multiline: !0
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "weekly-report",
|
|
87
|
+
icon: /* @__PURE__ */ a(A, {}),
|
|
88
|
+
title: "周报月报",
|
|
89
|
+
description: "周报/月报:碎片记录/时间段 → 自动汇总 → 模板化输出(本周工作/下周计划/风险对齐)",
|
|
90
|
+
scenarioCode: "weekly_report",
|
|
91
|
+
source: "weekly_report",
|
|
92
|
+
tags: ["自动汇总", "模板化", "目标对齐"],
|
|
93
|
+
inputConfig: {
|
|
94
|
+
label: "碎片记录与时间段",
|
|
95
|
+
placeholder: `粘贴或描述一段时间内的碎片工作记录,例如:
|
|
96
|
+
时间段:2026-08-25 ~ 2026-08-31
|
|
97
|
+
记录:
|
|
98
|
+
- 完成 X 功能开发
|
|
99
|
+
- 修复 Y 故障
|
|
100
|
+
- 与 Z 团队对齐方案`,
|
|
101
|
+
required: !0,
|
|
102
|
+
paramKey: "topic",
|
|
103
|
+
multiline: !0
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "image-understanding",
|
|
108
|
+
icon: /* @__PURE__ */ a($, {}),
|
|
109
|
+
title: "图片理解",
|
|
110
|
+
description: "图片理解:图片 + 问题 → OCR 文本提取 → 图表/表格识别 → 智能问答",
|
|
111
|
+
scenarioCode: "image_understanding",
|
|
112
|
+
source: "image_understanding",
|
|
113
|
+
tags: ["OCR", "图表识别", "智能问答"],
|
|
114
|
+
inputConfig: {
|
|
115
|
+
label: "图片描述或问题",
|
|
116
|
+
placeholder: `粘贴图片链接或描述图片内容,并附上你的问题,例如:
|
|
117
|
+
图片:https://example.com/sales-chart.png
|
|
118
|
+
问题:分析 2026 Q3 各区域销售额同比变化及异常原因`,
|
|
119
|
+
required: !0,
|
|
120
|
+
paramKey: "topic",
|
|
121
|
+
multiline: !0
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
function ye({
|
|
126
|
+
scenario: o,
|
|
127
|
+
onClose: c,
|
|
128
|
+
onCreated: d
|
|
129
|
+
}) {
|
|
130
|
+
var g, C, b, N, T;
|
|
131
|
+
const [r, s] = m(""), [u, f] = m(!1), [l, i] = m(""), E = !!((g = o.inputConfig) != null && g.multiline), h = x(async () => {
|
|
132
|
+
var y, k, I;
|
|
133
|
+
const t = r.trim();
|
|
134
|
+
if ((y = o.inputConfig) != null && y.required && !t) {
|
|
135
|
+
i(`请填写${o.inputConfig.label}`);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
i(""), f(!0);
|
|
139
|
+
try {
|
|
140
|
+
const _ = ((k = t.split(`
|
|
141
|
+
`)[0]) == null ? void 0 : k.trim()) ?? "", S = _.length > 0 ? _.length > 32 ? `${_.slice(0, 32)}…` : _ : `${Date.now()}`, v = `${o.title}-${S}`, p = await (await fetch(`${Ne}/scenario-instances/`, {
|
|
142
|
+
method: "POST",
|
|
143
|
+
credentials: "include",
|
|
144
|
+
headers: {
|
|
145
|
+
Accept: "application/json",
|
|
146
|
+
"Content-Type": "application/json"
|
|
147
|
+
},
|
|
148
|
+
body: JSON.stringify({
|
|
149
|
+
name: v,
|
|
150
|
+
description: `${o.title}:${t.length > 120 ? `${t.slice(0, 120)}…` : t}`,
|
|
151
|
+
workspace_path: v,
|
|
152
|
+
scenario_code: o.scenarioCode,
|
|
153
|
+
extend_params: {
|
|
154
|
+
[o.inputConfig.paramKey]: t,
|
|
155
|
+
source: o.source
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
})).json();
|
|
159
|
+
p.success && ((I = p.data) != null && I.id) ? d(p.data.id) : i(p.message || "创建失败,请重试");
|
|
160
|
+
} catch {
|
|
161
|
+
i("网络错误,请检查服务是否可用");
|
|
162
|
+
} finally {
|
|
163
|
+
f(!1);
|
|
164
|
+
}
|
|
165
|
+
}, [r, o, d]);
|
|
166
|
+
return /* @__PURE__ */ a("div", { className: e.modalOverlay, onClick: c, children: /* @__PURE__ */ n("div", { className: e.modalBox, onClick: (t) => t.stopPropagation(), children: [
|
|
167
|
+
/* @__PURE__ */ n("div", { className: e.modalHeader, children: [
|
|
168
|
+
/* @__PURE__ */ a("span", { className: e.modalIcon, children: o.icon }),
|
|
169
|
+
/* @__PURE__ */ a("h3", { children: o.title }),
|
|
170
|
+
/* @__PURE__ */ a("button", { className: e.modalClose, onClick: c, children: /* @__PURE__ */ a(F, {}) })
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ n("div", { className: e.modalBody, children: [
|
|
173
|
+
/* @__PURE__ */ a("p", { className: e.modalDesc, children: o.description }),
|
|
174
|
+
/* @__PURE__ */ n("div", { className: e.fieldGroup, children: [
|
|
175
|
+
/* @__PURE__ */ n("label", { className: e.fieldLabel, children: [
|
|
176
|
+
(C = o.inputConfig) == null ? void 0 : C.label,
|
|
177
|
+
((b = o.inputConfig) == null ? void 0 : b.required) && /* @__PURE__ */ a("span", { className: e.required, children: "*" })
|
|
178
|
+
] }),
|
|
179
|
+
E ? /* @__PURE__ */ a(
|
|
180
|
+
"textarea",
|
|
181
|
+
{
|
|
182
|
+
className: `${e.fieldTextarea} ${l ? e.fieldTextareaError : ""}`,
|
|
183
|
+
value: r,
|
|
184
|
+
placeholder: (N = o.inputConfig) == null ? void 0 : N.placeholder,
|
|
185
|
+
onChange: (t) => {
|
|
186
|
+
s(t.target.value), l && i("");
|
|
187
|
+
},
|
|
188
|
+
rows: 5,
|
|
189
|
+
autoFocus: !0
|
|
190
|
+
}
|
|
191
|
+
) : /* @__PURE__ */ a(
|
|
192
|
+
"input",
|
|
193
|
+
{
|
|
194
|
+
className: `${e.fieldInput} ${l ? e.fieldInputError : ""}`,
|
|
195
|
+
type: "text",
|
|
196
|
+
value: r,
|
|
197
|
+
placeholder: (T = o.inputConfig) == null ? void 0 : T.placeholder,
|
|
198
|
+
onChange: (t) => {
|
|
199
|
+
s(t.target.value), l && i("");
|
|
200
|
+
},
|
|
201
|
+
onKeyDown: (t) => {
|
|
202
|
+
t.key === "Enter" && h();
|
|
203
|
+
},
|
|
204
|
+
autoFocus: !0
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
l && /* @__PURE__ */ a("p", { className: e.fieldError, children: l })
|
|
208
|
+
] })
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ n("div", { className: e.modalFooter, children: [
|
|
211
|
+
/* @__PURE__ */ a("button", { className: e.btnCancel, onClick: c, children: "取消" }),
|
|
212
|
+
/* @__PURE__ */ a(
|
|
213
|
+
"button",
|
|
214
|
+
{
|
|
215
|
+
className: e.btnConfirm,
|
|
216
|
+
onClick: h,
|
|
217
|
+
disabled: u,
|
|
218
|
+
children: u ? "创建中..." : "确认并开始"
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
] })
|
|
222
|
+
] }) });
|
|
223
|
+
}
|
|
224
|
+
function Ee() {
|
|
225
|
+
const [o, c] = m(
|
|
226
|
+
null
|
|
227
|
+
), d = x((r) => {
|
|
228
|
+
localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), w.push("/workspace");
|
|
229
|
+
}, []);
|
|
230
|
+
return /* @__PURE__ */ n("div", { className: e.portalRoot, children: [
|
|
231
|
+
/* @__PURE__ */ n("header", { className: e.portalHeader, children: [
|
|
232
|
+
/* @__PURE__ */ n("div", { className: e.brandRow, children: [
|
|
233
|
+
/* @__PURE__ */ a("img", { src: "/logo.svg", alt: "logo", className: e.brandLogo }),
|
|
234
|
+
/* @__PURE__ */ a("h1", { className: e.brandTitle, children: "Z-OPC 一人公司基建" })
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ a("p", { className: e.brandSubtitle, children: "一人公司的 AI 基建 — 选择场景,即刻启动智能协作" })
|
|
237
|
+
] }),
|
|
238
|
+
/* @__PURE__ */ n("main", { className: e.portalMain, children: [
|
|
239
|
+
/* @__PURE__ */ a("h2", { className: e.sectionTitle, children: "可用场景" }),
|
|
240
|
+
/* @__PURE__ */ a("div", { className: e.cardGrid, children: Te.map((r) => /* @__PURE__ */ n("div", { className: e.scenarioCard, children: [
|
|
241
|
+
/* @__PURE__ */ n("div", { className: e.cardTop, children: [
|
|
242
|
+
/* @__PURE__ */ a("span", { className: e.cardIcon, children: r.icon }),
|
|
243
|
+
/* @__PURE__ */ n("div", { className: e.cardInfo, children: [
|
|
244
|
+
/* @__PURE__ */ a("h3", { className: e.cardTitle, children: r.title }),
|
|
245
|
+
/* @__PURE__ */ a("div", { className: e.cardTags, children: r.tags.map((s) => /* @__PURE__ */ a("span", { className: e.tag, children: s }, s)) })
|
|
246
|
+
] })
|
|
247
|
+
] }),
|
|
248
|
+
/* @__PURE__ */ a("p", { className: e.cardDesc, children: r.description }),
|
|
249
|
+
/* @__PURE__ */ a("div", { className: e.cardAction, children: /* @__PURE__ */ a(
|
|
250
|
+
"button",
|
|
251
|
+
{
|
|
252
|
+
className: e.btnCreate,
|
|
253
|
+
onClick: () => c(r),
|
|
254
|
+
children: "创建"
|
|
255
|
+
}
|
|
256
|
+
) })
|
|
257
|
+
] }, r.key)) })
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ a("footer", { className: e.portalFooter, children: /* @__PURE__ */ a(
|
|
260
|
+
"button",
|
|
261
|
+
{
|
|
262
|
+
className: e.linkWorkspace,
|
|
263
|
+
onClick: () => w.push("/workspace"),
|
|
264
|
+
children: "进入工作台 →"
|
|
265
|
+
}
|
|
266
|
+
) }),
|
|
267
|
+
o && /* @__PURE__ */ a(
|
|
268
|
+
ye,
|
|
269
|
+
{
|
|
270
|
+
scenario: o,
|
|
271
|
+
onClose: () => c(null),
|
|
272
|
+
onCreated: d
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
] });
|
|
276
|
+
}
|
|
277
|
+
export {
|
|
278
|
+
Ee as default
|
|
279
|
+
};
|