From c4edcbd95c26ba05bb7cb051fda35f2f50ab0ee5 Mon Sep 17 00:00:00 2001 From: matevip Date: Thu, 9 Apr 2026 19:48:17 +0800 Subject: [PATCH] feat(ui): unify workspace and platform console surfaces --- mateclaw-ui/src/components/chat/ChatInput.vue | 96 ++-- .../src/components/chat/MessageBubble.vue | 105 ++-- .../src/components/chat/MessageList.vue | 32 +- mateclaw-ui/src/components/chat/TalkMode.vue | 25 +- mateclaw-ui/src/i18n/locales/en-US.ts | 35 ++ mateclaw-ui/src/i18n/locales/zh-CN.ts | 35 ++ mateclaw-ui/src/views/AgentContext.vue | 77 ++- mateclaw-ui/src/views/ChatConsole.vue | 165 +++--- mateclaw-ui/src/views/CronJobs.vue | 491 +++++++++++++----- mateclaw-ui/src/views/Dashboard.vue | 242 +++++---- mateclaw-ui/src/views/Datasources.vue | 267 ++++++---- mateclaw-ui/src/views/Login.vue | 292 ++++++++--- mateclaw-ui/src/views/McpServers.vue | 241 ++++++--- mateclaw-ui/src/views/Security/Layout.vue | 77 ++- mateclaw-ui/src/views/Settings/Layout.vue | 74 ++- mateclaw-ui/src/views/SkillMarket.vue | 130 ++--- mateclaw-ui/src/views/TokenUsage.vue | 382 ++++++++------ mateclaw-ui/src/views/Tools.vue | 58 ++- .../Wiki/components/RawMaterialPanel.vue | 57 +- .../src/views/Wiki/components/WikiConfig.vue | 42 +- .../views/Wiki/components/WikiPageViewer.vue | 66 ++- mateclaw-ui/src/views/Wiki/index.vue | 85 ++- mateclaw-ui/src/views/layout/MainLayout.vue | 202 ++++--- 23 files changed, 2194 insertions(+), 1082 deletions(-) diff --git a/mateclaw-ui/src/components/chat/ChatInput.vue b/mateclaw-ui/src/components/chat/ChatInput.vue index 4c17e5f7..8aef9f0c 100644 --- a/mateclaw-ui/src/components/chat/ChatInput.vue +++ b/mateclaw-ui/src/components/chat/ChatInput.vue @@ -61,9 +61,7 @@
- - - + {{ t('chat.approvalAllow') }} {{ pendingApproval.toolName }} @@ -75,9 +73,7 @@ class="approval-bar__btn approval-bar__btn--deny" @click="emit('deny', pendingApproval.pendingId)" > - - - + {{ t('chat.deny') }}
@@ -210,6 +198,7 @@ import { ref, computed, onMounted, onBeforeUnmount, watch } from 'vue' import { useRoute, useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' import { ElMessage } from 'element-plus' +import { ChatDotRound, Delete, Plus, Setting, UploadFilled } from '@element-plus/icons-vue' import { conversationApi, agentApi, modelApi, chatApi } from '@/api/index' import { channelIconUrl } from '@/utils/channelSource' import { useChat } from '@/composables/chat/useChat' @@ -1137,10 +1126,15 @@ function handleCodeCopy(e: MouseEvent) { diff --git a/mateclaw-ui/src/views/Dashboard.vue b/mateclaw-ui/src/views/Dashboard.vue index 8184ed12..12252719 100644 --- a/mateclaw-ui/src/views/Dashboard.vue +++ b/mateclaw-ui/src/views/Dashboard.vue @@ -1,7 +1,7 @@