From 4543fed58a37199048fe3a79d55d58ccf9fc4d51 Mon Sep 17 00:00:00 2001 From: ViperEkura <3081035982@qq.com> Date: Tue, 14 Apr 2026 00:30:05 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/App.vue | 10 +- dashboard/src/components/AppHeader.vue | 4 +- dashboard/src/components/MessageNav.vue | 128 ++++ dashboard/src/components/ProcessBlock.vue | 154 ++--- dashboard/src/style.css | 11 +- dashboard/src/views/AuthView.vue | 1 - dashboard/src/views/ConversationsView.vue | 635 ++++++-------------- dashboard/src/views/SettingsView.vue | 682 +++------------------- dashboard/src/views/ToolsView.vue | 18 +- 9 files changed, 469 insertions(+), 1174 deletions(-) create mode 100644 dashboard/src/components/MessageNav.vue diff --git a/dashboard/src/App.vue b/dashboard/src/App.vue index be2e22a..07033b6 100644 --- a/dashboard/src/App.vue +++ b/dashboard/src/App.vue @@ -16,11 +16,15 @@ const { isLoggedIn } = useAuth() diff --git a/dashboard/src/components/AppHeader.vue b/dashboard/src/components/AppHeader.vue index 887db13..928025b 100644 --- a/dashboard/src/components/AppHeader.vue +++ b/dashboard/src/components/AppHeader.vue @@ -83,7 +83,9 @@ const navItems = [ diff --git a/dashboard/src/components/ProcessBlock.vue b/dashboard/src/components/ProcessBlock.vue index 530ad37..c516f5a 100644 --- a/dashboard/src/components/ProcessBlock.vue +++ b/dashboard/src/components/ProcessBlock.vue @@ -8,8 +8,10 @@ 思考中 {{ item.brief || '正在思考...' }} - ... - + + ... + +
{{ item.displayContent }}
@@ -22,10 +24,12 @@ {{ item.name || '工具调用' }} {{ item.brief || '' }} - ... - 成功 - 失败 - + + ... + 成功 + 失败 + +
@@ -264,8 +268,7 @@ const alertIcon = ` diff --git a/dashboard/src/style.css b/dashboard/src/style.css index 82e7954..595e700 100644 --- a/dashboard/src/style.css +++ b/dashboard/src/style.css @@ -197,6 +197,11 @@ body { color: var(--danger-color); } +/* ============ Spinner Animation ============ */ +@keyframes spin { + to { transform: rotate(360deg); } +} + .ghost-btn.success:hover { background: var(--success-bg); color: var(--success-color); @@ -317,14 +322,14 @@ body { .message-bubble.user .message-container { align-items: flex-end; width: fit-content; - max-width: 85%; + max-width: 70%; } .message-bubble.assistant .message-container { align-items: flex-start; flex: 1 1 auto; - width: 80%; - max-width: 80%; + width: 90%; + max-width: 90%; min-width: 0; } diff --git a/dashboard/src/views/AuthView.vue b/dashboard/src/views/AuthView.vue index 35511b6..712ca30 100644 --- a/dashboard/src/views/AuthView.vue +++ b/dashboard/src/views/AuthView.vue @@ -110,7 +110,6 @@ const handleSubmit = async () => { .btn-submit:hover:not(:disabled) { background: var(--accent-border); } .btn-submit:disabled { opacity: 0.7; cursor: not-allowed; } .spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; } -@keyframes spin { to { transform: rotate(360deg); } } .switch-mode { text-align: center; color: var(--text); margin-top: 1.5rem; } .switch-mode button { background: none; border: none; color: var(--accent); cursor: pointer; font-weight: 500; text-decoration: underline; } diff --git a/dashboard/src/views/ConversationsView.vue b/dashboard/src/views/ConversationsView.vue index aa0b89a..69ee571 100644 --- a/dashboard/src/views/ConversationsView.vue +++ b/dashboard/src/views/ConversationsView.vue @@ -25,8 +25,20 @@
{{ c.model || '-' }}
- - + +
@@ -53,7 +65,7 @@
-
+
{{ msg.role === 'user' ? '👤' : '🤖' }}
@@ -133,15 +145,24 @@
+ + +
diff --git a/dashboard/src/views/SettingsView.vue b/dashboard/src/views/SettingsView.vue index 26d2512..d0aeed0 100644 --- a/dashboard/src/views/SettingsView.vue +++ b/dashboard/src/views/SettingsView.vue @@ -459,622 +459,124 @@ onMounted(() => { diff --git a/dashboard/src/views/ToolsView.vue b/dashboard/src/views/ToolsView.vue index 628d635..3e9e93d 100644 --- a/dashboard/src/views/ToolsView.vue +++ b/dashboard/src/views/ToolsView.vue @@ -83,16 +83,31 @@ onMounted(fetchData)