From dae12ec9db3a9de4bc54856a0c4cd8d35ed54186 Mon Sep 17 00:00:00 2001
From: suifeng <369202865@qq.com>
Date: Wed, 13 Aug 2025 01:52:33 +0800
Subject: [PATCH 1/2] =?UTF-8?q?[dev]=20=E5=AF=B9=E6=8E=A5=E5=AF=B9?=
=?UTF-8?q?=E8=AF=9D=E6=A0=91=E7=9A=84=E7=9B=B8=E5=85=B3=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
prompto-lab-ui/src/components/AIChatPage.vue | 847 +++++++++++++++++
prompto-lab-ui/src/components/ChatMain.vue | 850 ++++++++++++++++++
prompto-lab-ui/src/components/ChatTree.vue | 377 ++++++++
prompto-lab-ui/src/components/MindMapTree.vue | 643 +++++++++++++
prompto-lab-ui/src/components/TreeNode.vue | 355 ++++++++
.../src/views/PromptBuilderView.vue | 144 +++
6 files changed, 3216 insertions(+)
create mode 100644 prompto-lab-ui/src/components/AIChatPage.vue
create mode 100644 prompto-lab-ui/src/components/ChatMain.vue
create mode 100644 prompto-lab-ui/src/components/ChatTree.vue
create mode 100644 prompto-lab-ui/src/components/MindMapTree.vue
create mode 100644 prompto-lab-ui/src/components/TreeNode.vue
create mode 100644 prompto-lab-ui/src/views/PromptBuilderView.vue
diff --git a/prompto-lab-ui/src/components/AIChatPage.vue b/prompto-lab-ui/src/components/AIChatPage.vue
new file mode 100644
index 0000000..f036f3d
--- /dev/null
+++ b/prompto-lab-ui/src/components/AIChatPage.vue
@@ -0,0 +1,847 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/prompto-lab-ui/src/components/ChatMain.vue b/prompto-lab-ui/src/components/ChatMain.vue
new file mode 100644
index 0000000..70cbc2c
--- /dev/null
+++ b/prompto-lab-ui/src/components/ChatMain.vue
@@ -0,0 +1,850 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.type === 'user' ? '👤' : '🤖' }}
+
+
+
+
+
+
+
{{ message.content }}
+
{{ formatTime(message.timestamp) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/prompto-lab-ui/src/components/ChatTree.vue b/prompto-lab-ui/src/components/ChatTree.vue
new file mode 100644
index 0000000..e634c9f
--- /dev/null
+++ b/prompto-lab-ui/src/components/ChatTree.vue
@@ -0,0 +1,377 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
暂无对话记录
+
开始新的对话来构建对话树
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/prompto-lab-ui/src/components/MindMapTree.vue b/prompto-lab-ui/src/components/MindMapTree.vue
new file mode 100644
index 0000000..fb3f5a8
--- /dev/null
+++ b/prompto-lab-ui/src/components/MindMapTree.vue
@@ -0,0 +1,643 @@
+
+
+
对话思维导图
+
+
+
+
+
+
+
+
+
diff --git a/prompto-lab-ui/src/components/TreeNode.vue b/prompto-lab-ui/src/components/TreeNode.vue
new file mode 100644
index 0000000..b19f614
--- /dev/null
+++ b/prompto-lab-ui/src/components/TreeNode.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+ {{ node.type === 'user' ? '👤' : '🤖' }}
+
+
{{ truncatedText }}
+
+
+
+
+
+
+
+ {{ node.children.length }}
+ 个分支
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/prompto-lab-ui/src/views/PromptBuilderView.vue b/prompto-lab-ui/src/views/PromptBuilderView.vue
new file mode 100644
index 0000000..f4d172a
--- /dev/null
+++ b/prompto-lab-ui/src/views/PromptBuilderView.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
\ No newline at end of file
From 3438831a71ba3f68a20211f8633a3e638096e12a Mon Sep 17 00:00:00 2001
From: suifeng <369202865@qq.com>
Date: Wed, 13 Aug 2025 01:52:37 +0800
Subject: [PATCH 2/2] =?UTF-8?q?[dev]=20=E5=AF=B9=E6=8E=A5=E5=AF=B9?=
=?UTF-8?q?=E8=AF=9D=E6=A0=91=E7=9A=84=E7=9B=B8=E5=85=B3=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
prompto-lab-ui/src/components/ApiInfoConfig.vue | 4 ++--
prompto-lab-ui/src/router/index.ts | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/prompto-lab-ui/src/components/ApiInfoConfig.vue b/prompto-lab-ui/src/components/ApiInfoConfig.vue
index ad5f102..eef8df0 100644
--- a/prompto-lab-ui/src/components/ApiInfoConfig.vue
+++ b/prompto-lab-ui/src/components/ApiInfoConfig.vue
@@ -119,8 +119,8 @@
diff --git a/prompto-lab-ui/src/router/index.ts b/prompto-lab-ui/src/router/index.ts
index f8ec092..8f181e9 100644
--- a/prompto-lab-ui/src/router/index.ts
+++ b/prompto-lab-ui/src/router/index.ts
@@ -17,6 +17,14 @@ const router = createRouter({
title: '登录注册 - AI诗人'
}
},
+ {
+ path: '/prompt-builder',
+ name: 'prompt-builder',
+ component: () => import('../views/PromptBuilderView.vue'),
+ meta: {
+ title: 'AI构建器 - PromptoLab'
+ }
+ },
{
path: '/settings',
name: 'settings',