From 0c54f5ba34cc23ef9e78e6fcd14273baf4dac081 Mon Sep 17 00:00:00 2001 From: teukkk Date: Tue, 24 Jun 2025 18:15:26 +0800 Subject: [PATCH] refactor: chat left menu --- ui/src/locales/lang/en-US/views/tool.ts | 1 + ui/src/locales/lang/zh-CN/views/tool.ts | 1 + ui/src/locales/lang/zh-Hant/views/tool.ts | 1 + ui/src/views/chat/pc/index.vue | 261 +++++++++++++----- .../views/tool/toolStore/ToolStoreDialog.vue | 63 +++-- 5 files changed, 232 insertions(+), 95 deletions(-) diff --git a/ui/src/locales/lang/en-US/views/tool.ts b/ui/src/locales/lang/en-US/views/tool.ts index 16268cad1..cfdbd38f3 100644 --- a/ui/src/locales/lang/en-US/views/tool.ts +++ b/ui/src/locales/lang/en-US/views/tool.ts @@ -9,6 +9,7 @@ export default { toolStore: { title: 'Tool Store', createFromToolStore: 'Create from Tool Store', + internal: 'Built in system', recommend: 'Recommended', webSearch: 'Web Search', databaseQuery: 'Database Query', diff --git a/ui/src/locales/lang/zh-CN/views/tool.ts b/ui/src/locales/lang/zh-CN/views/tool.ts index 417c3dd73..1cb5c46dc 100644 --- a/ui/src/locales/lang/zh-CN/views/tool.ts +++ b/ui/src/locales/lang/zh-CN/views/tool.ts @@ -7,6 +7,7 @@ export default { toolStore: { title: '工具商店', createFromToolStore: '从工具商店创建', + internal: '系统内置', recommend: '推荐', webSearch: '联网搜索', databaseQuery: '数据库查询', diff --git a/ui/src/locales/lang/zh-Hant/views/tool.ts b/ui/src/locales/lang/zh-Hant/views/tool.ts index 4e3670a52..d751b7b5c 100644 --- a/ui/src/locales/lang/zh-Hant/views/tool.ts +++ b/ui/src/locales/lang/zh-Hant/views/tool.ts @@ -9,6 +9,7 @@ export default { toolStore: { title: '工具商店', createFromToolStore: '從工具商店創建', + internal: '系统内置', recommend: '推薦', webSearch: '聯網搜索', databaseQuery: '數據庫查詢', diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index 1fec481c9..14e4aa6f6 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -4,15 +4,16 @@ :class="classObj" v-loading="loading" :style="{ - '--el-color-primary': applicationDetail?.custom_theme?.theme_color, - '--el-color-primary-light-9': hexToRgba(applicationDetail?.custom_theme?.theme_color, 0.1), + '--el-color-primary': applicationDetail?.custom_theme?.theme_color, + '--el-color-primary-light-9': hexToRgba(applicationDetail?.custom_theme?.theme_color, 0.1), }" > -
-
-
-
-
+
+
+ +
+
+
-

{{ applicationDetail?.name }}

+

{{ applicationDetail?.name }}

- + {{ $t('chat.createChat') }} -

{{ $t('chat.history') }}

-
-
- -
- - - - +
+ + +
+ {{ $t('chat.noHistory') }}
-
- {{ $t('chat.only20history') }} -
-
-
+ +
+ + + + +
@@ -150,7 +204,7 @@