@yuku123/z-team-component 0.2.138 → 0.2.140
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/{AdminModuleContent-9gH_G78B.js → AdminModuleContent-DDB35gOh.js} +11463 -12034
- package/dist/{ChangeLogView-DzFmZVBw.js → ChangeLogView-AKOZ6Ski.js} +1 -1
- package/dist/{ComponentDoc-KyD5wtuW.js → ComponentDoc-SiXXhka1.js} +204 -212
- package/dist/{InvitationManagementPage-6-0uZNuO.js → InvitationManagementPage-CRbABOKe.js} +1 -1
- package/dist/{OnboardingPage-tLarxnp5.js → OnboardingPage-BNJopRYO.js} +2 -2
- package/dist/{ScheduledTasks-QGmD7Uhz.js → ScheduledTasks-Cn_CEZ-B.js} +3104 -3141
- package/dist/{SystemShell-CWawiWOn.js → SystemShell-B8Tyluzu.js} +170 -162
- package/dist/SystemWorkbench.module-DpLM0zgA.js +36 -0
- package/dist/{admin-logs-DXjxD-y2.js → admin-logs-B3IxooG2.js} +1 -1
- package/dist/{api-Dzr8HLsU.js → api-DW8nsucC.js} +1 -1
- package/dist/{api-DOjASQ0k.js → api-DmBlT5MH.js} +1 -1
- package/dist/{createWorkspaceWsHandler-DCokPv4M.js → createWorkspaceWsHandler-5MHgQGfJ.js} +3417 -3479
- package/dist/{index-PJZV-bFc.js → index-BBLRGBWu.js} +1 -1
- package/dist/{index-4icVyiM3.js → index-BSqUODiN.js} +6 -6
- package/dist/{index-DXA0r7Co.js → index-BT4oQJby.js} +2 -2
- package/dist/{index-DC1fQH0J.js → index-BV64kKse.js} +2 -2
- package/dist/{index-CUOByyqy.js → index-C1nr0UeB.js} +5 -5
- package/dist/index-C24QsGsG.js +576 -0
- package/dist/{index-0AjMJyFL.js → index-C7DSDopw.js} +5 -5
- package/dist/{index-BdEokzAv.js → index-CEoS_jEa.js} +6 -6
- package/dist/{index-8VddM67M.js → index-CJ7dJejJ.js} +2 -2
- package/dist/{index-DZcMGMHV.js → index-CXjen4Gx.js} +292 -292
- package/dist/{index-CjYmL2yJ.js → index-CvHMXrAD.js} +2 -2
- package/dist/{index-Crzx3zh2.js → index-D-G4mbxH.js} +2 -2
- package/dist/{index-CLP0LnEz.js → index-D440bEgm.js} +5 -5
- package/dist/{index-C9NwYJh-.js → index-D7thpI99.js} +1 -1
- package/dist/{index-DGdtqBi4.js → index-DCAO83Wb.js} +4 -4
- package/dist/index-DDOfdrn4.js +9527 -0
- package/dist/{index-DarTFF-M.js → index-DHrMSEVJ.js} +1 -1
- package/dist/{index-ZqDoLUxb.js → index-DULYXalY.js} +1 -1
- package/dist/{index-VqKcDrn3.js → index-DjbLq5lI.js} +2 -2
- package/dist/{index-4NOi2xz4.js → index-Du95tdVf.js} +2 -2
- package/dist/{index-Cwptuq_d.js → index-DvslXAjT.js} +7 -7
- package/dist/{index-BHfNKXIA.js → index-Hv2KDG7i.js} +3 -3
- package/dist/{index-CNmSLd0s.js → index-NIu3OKHi.js} +610 -636
- package/dist/index-QNpTaU--.js +237 -0
- package/dist/{index-B75TTql4.js → index-VmRWH4U5.js} +2 -2
- package/dist/{index-BgdqkNkT.js → index-l9KH8r7F.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-CDA6R8yG.js → instance-B4SrJ-BY.js} +1 -1
- package/dist/{menuPermission-LCjN8Osm.js → menuPermission-DxknHmt8.js} +3 -3
- package/dist/{menuTree-Ctcz41N8.js → menuTree-BjchjhUw.js} +25 -23
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-3Uyy88s_.js → send-default-agent-team-message-DYytBtLc.js} +1 -1
- package/dist/{sso-user-DX2FYQCh.js → sso-user-DN6kSAc0.js} +1 -1
- package/dist/{training-BgYM7EV-.js → training-CKYPSkUP.js} +1 -1
- package/dist/{webide-BsF30aLX.js → webide-JAalC_Wr.js} +213 -213
- package/dist/z-team-component.css +1 -1
- package/package.json +13 -4
- package/dist/SystemWorkbench.module-CZv_ruUa.js +0 -36
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DxZEpsT6.js +0 -10339
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuku123/z-team-component",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.140",
|
|
4
4
|
"description": "z-team 团队工作台组件层(lead 005 §8.7:403 文件整体接管,含 pages/workspace/ 系统模式集成 shell)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@yuku123/z-agent-component": "^0.1.0",
|
|
63
63
|
"@yuku123/z-cache-component": "^0.1.0",
|
|
64
|
-
"@yuku123/z-cognition-component": "^1.0.
|
|
64
|
+
"@yuku123/z-cognition-component": "^1.0.4",
|
|
65
65
|
"@yuku123/z-cognition-indexer-component": "^0.1.0",
|
|
66
66
|
"@yuku123/z-cognition-kb-component": "^0.1.6",
|
|
67
67
|
"@yuku123/z-config-component": "^0.1.0",
|
|
@@ -75,11 +75,13 @@
|
|
|
75
75
|
"@yuku123/z-mist-component": "^0.1.0",
|
|
76
76
|
"@yuku123/z-mq-component": "^0.1.0",
|
|
77
77
|
"@yuku123/z-msg-component": "^0.1.0",
|
|
78
|
+
"@yuku123/z-ops-component": "^0.1.3",
|
|
78
79
|
"@yuku123/z-oss-component": "^0.1.0",
|
|
79
80
|
"@yuku123/z-product-component": "^0.3.0",
|
|
80
81
|
"@yuku123/z-qa-component": "^0.1.9",
|
|
81
82
|
"@yuku123/z-rpc-component": "^0.1.0",
|
|
82
83
|
"@yuku123/z-schedule-component": "^0.1.0",
|
|
84
|
+
"@yuku123/z-skill-component": "^0.1.4",
|
|
83
85
|
"@yuku123/z-task-component": "^0.1.0",
|
|
84
86
|
"@yuku123/z-vector-component": "^0.1.0",
|
|
85
87
|
"@yuku123/z-wf-component": "^0.1.1"
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
"cron-parser": "*",
|
|
94
96
|
"dayjs": "^1.11.13",
|
|
95
97
|
"diff": "^5.2.0",
|
|
96
|
-
"echarts": "^
|
|
98
|
+
"echarts": "^6.1.0",
|
|
97
99
|
"handlebars": "^4.7.8",
|
|
98
100
|
"highlight.js": "^11.10.0",
|
|
99
101
|
"less": "^4.2.1",
|
|
@@ -110,11 +112,18 @@
|
|
|
110
112
|
"sql-formatter": "^15.4.9",
|
|
111
113
|
"unified": "^11.0.5",
|
|
112
114
|
"vditor": "^3.9.7",
|
|
113
|
-
"vite": "^6.
|
|
115
|
+
"vite": "^6.4.5",
|
|
114
116
|
"zustand": "^5.0.0"
|
|
115
117
|
},
|
|
116
118
|
"publishConfig": {
|
|
117
119
|
"registry": "https://registry.npmjs.org/",
|
|
118
120
|
"access": "public"
|
|
121
|
+
},
|
|
122
|
+
"overrides": {
|
|
123
|
+
"follow-redirects": "^1.16.2",
|
|
124
|
+
"echarts": "^6.1.0",
|
|
125
|
+
"decode-uri-component": "^0.5.1",
|
|
126
|
+
"prismjs": "^1.30.0",
|
|
127
|
+
"uuid": "^11.1.1"
|
|
119
128
|
}
|
|
120
129
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const e = "_container_7o64f_7", n = "_sidebar_7o64f_17", u = "_sidebarHeader_7o64f_26", o = "_menuList_7o64f_37", t = "_menuGroup_7o64f_44", _ = "_menuGroupHeader_7o64f_49", m = "_menuGroupHeaderOpen_7o64f_68", r = "_menuGroupHeaderActive_7o64f_79", a = "_menuGroupIcon_7o64f_83", c = "_menuGroupLabel_7o64f_92", i = "_menuGroupArrow_7o64f_97", s = "_menuSubList_7o64f_104", d = "_menuSubItem_7o64f_111", p = "_menuSubGroup_7o64f_112", b = "_menuItemOnPath_7o64f_157", l = "_menuSubItemPill_7o64f_178", G = "_menuSubItemActive_7o64f_194", S = "_menuSubItemIcon_7o64f_204", f = "_menuSubGroupHeader_7o64f_224", H = "_menuSubGroupHeaderOpen_7o64f_251", I = "_menuSubGroupHeaderActive_7o64f_261", A = "_menuSubGroupLabel_7o64f_278", L = "_main_7o64f_298", v = "_detailPanel_7o64f_308", O = "_detailHeader_7o64f_318", P = "_detailIcon_7o64f_325", y = "_detailTitle_7o64f_338", g = "_detailDesc_7o64f_345", h = "_detailAction_7o64f_352", w = "_goBtn_7o64f_357", B = "_emptyState_7o64f_377", D = {
|
|
2
|
-
container: e,
|
|
3
|
-
sidebar: n,
|
|
4
|
-
sidebarHeader: u,
|
|
5
|
-
menuList: o,
|
|
6
|
-
menuGroup: t,
|
|
7
|
-
menuGroupHeader: _,
|
|
8
|
-
menuGroupHeaderOpen: m,
|
|
9
|
-
menuGroupHeaderActive: r,
|
|
10
|
-
menuGroupIcon: a,
|
|
11
|
-
menuGroupLabel: c,
|
|
12
|
-
menuGroupArrow: i,
|
|
13
|
-
menuSubList: s,
|
|
14
|
-
menuSubItem: d,
|
|
15
|
-
menuSubGroup: p,
|
|
16
|
-
menuItemOnPath: b,
|
|
17
|
-
menuSubItemPill: l,
|
|
18
|
-
menuSubItemActive: G,
|
|
19
|
-
menuSubItemIcon: S,
|
|
20
|
-
menuSubGroupHeader: f,
|
|
21
|
-
menuSubGroupHeaderOpen: H,
|
|
22
|
-
menuSubGroupHeaderActive: I,
|
|
23
|
-
menuSubGroupLabel: A,
|
|
24
|
-
main: L,
|
|
25
|
-
detailPanel: v,
|
|
26
|
-
detailHeader: O,
|
|
27
|
-
detailIcon: P,
|
|
28
|
-
detailTitle: y,
|
|
29
|
-
detailDesc: g,
|
|
30
|
-
detailAction: h,
|
|
31
|
-
goBtn: w,
|
|
32
|
-
emptyState: B
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
D as s
|
|
36
|
-
};
|
package/dist/index-DhDdFRHC.js
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
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
|
-
};
|