From 543210bc647e606acdcc066be2feb7406e9ebc0b Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 9 Jul 2025 02:58:16 +0800 Subject: [PATCH] perf: perf --- ui/src/assets/workflow/icon_mcp.svg | 7 +-- ui/src/assets/workflow/icon_tool.svg | 4 ++ ui/src/assets/workflow/icon_tool_custom.svg | 4 ++ ui/src/assets/workflow/icon_tool_outlined.svg | 12 ------ ui/src/locales/lang/en-US/ai-chat.ts | 2 +- ui/src/styles/component.scss | 27 ++++++++++++ .../component/NodeContent.vue | 4 +- ui/src/views/chat/user-login/index.vue | 2 +- ui/src/views/paragraph/index.vue | 6 ++- .../ApplicationResourceIndex.vue | 2 +- .../ToolResourceIndex.vue | 2 +- .../component/PermissionSetting.vue | 2 +- ui/src/views/tool/ToolFormDrawer.vue | 4 +- .../views/tool/component/EditAvatarDialog.vue | 2 +- .../tool/component/ToolListContainer.vue | 6 +-- ui/src/workflow/common/data.ts | 43 +++++++++++-------- ui/src/workflow/icons/tool-lib-node-icon.vue | 2 +- ui/src/workflow/icons/tool-node-icon.vue | 2 +- 18 files changed, 83 insertions(+), 50 deletions(-) create mode 100644 ui/src/assets/workflow/icon_tool.svg create mode 100644 ui/src/assets/workflow/icon_tool_custom.svg delete mode 100644 ui/src/assets/workflow/icon_tool_outlined.svg diff --git a/ui/src/assets/workflow/icon_mcp.svg b/ui/src/assets/workflow/icon_mcp.svg index 1544370a2..5f73dcaa2 100644 --- a/ui/src/assets/workflow/icon_mcp.svg +++ b/ui/src/assets/workflow/icon_mcp.svg @@ -1,4 +1,5 @@ - - - + + + + diff --git a/ui/src/assets/workflow/icon_tool.svg b/ui/src/assets/workflow/icon_tool.svg new file mode 100644 index 000000000..1544370a2 --- /dev/null +++ b/ui/src/assets/workflow/icon_tool.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/src/assets/workflow/icon_tool_custom.svg b/ui/src/assets/workflow/icon_tool_custom.svg new file mode 100644 index 000000000..6a759b923 --- /dev/null +++ b/ui/src/assets/workflow/icon_tool_custom.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/src/assets/workflow/icon_tool_outlined.svg b/ui/src/assets/workflow/icon_tool_outlined.svg deleted file mode 100644 index dbdef4c24..000000000 --- a/ui/src/assets/workflow/icon_tool_outlined.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/ui/src/locales/lang/en-US/ai-chat.ts b/ui/src/locales/lang/en-US/ai-chat.ts index d045e1f3d..30c65d286 100644 --- a/ui/src/locales/lang/en-US/ai-chat.ts +++ b/ui/src/locales/lang/en-US/ai-chat.ts @@ -38,7 +38,7 @@ export default { answerMessage: 'Sorry, no relevant content found. Please rephrase your question or provide more details.', stopAnswer: 'Response Stopped', - answerLoading: 'Generating Response...', + answerLoading: 'Generating Response', recorderTip: `

This feature requires microphone access. Browsers block recording on insecure pages. Solutions:
1. Enable HTTPS;
2. If HTTPS is not available, adjust browser security settings. For Chrome:
diff --git a/ui/src/styles/component.scss b/ui/src/styles/component.scss index 943d083cf..9bf3464e4 100644 --- a/ui/src/styles/component.scss +++ b/ui/src/styles/component.scss @@ -204,6 +204,33 @@ } } +@-webkit-keyframes dot { + 25% { + border-color: transparent; + background-color: transparent; + } + 50% { + border-right-color: transparent; + background-color: transparent; + } + 75% { + border-right-color: transparent; + } +} +@keyframes dot { + 25% { + border-color: transparent; + background-color: transparent; + } + 50% { + border-right-color: transparent; + background-color: transparent; + } + 75% { + border-right-color: transparent; + } +} + // checkbox 一行一个样式 .checkbox-group-block { .el-checkbox { diff --git a/ui/src/views/application-workflow/component/NodeContent.vue b/ui/src/views/application-workflow/component/NodeContent.vue index abdc2dfb3..f1144f9ce 100644 --- a/ui/src/views/application-workflow/component/NodeContent.vue +++ b/ui/src/views/application-workflow/component/NodeContent.vue @@ -19,7 +19,7 @@ - + {{ item.name }} @@ -33,7 +33,7 @@ - + {{ item.name }} diff --git a/ui/src/views/chat/user-login/index.vue b/ui/src/views/chat/user-login/index.vue index 10a752da3..ec7005bd6 100644 --- a/ui/src/views/chat/user-login/index.vue +++ b/ui/src/views/chat/user-login/index.vue @@ -44,7 +44,7 @@ :rules="rules" :model="loginForm" ref="loginFormRef" - @keyup.enter="login" + @keyup.enter="loginHandle" >

diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index 138b291d0..782f42506 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -58,7 +58,11 @@ @click="handleClick" > diff --git a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue index 3fbe472aa..e7f99d26f 100644 --- a/ui/src/views/system-resource-management/ApplicationResourceIndex.vue +++ b/ui/src/views/system-resource-management/ApplicationResourceIndex.vue @@ -61,7 +61,7 @@ - + {{ scope.row.name }} diff --git a/ui/src/views/system-resource-management/ToolResourceIndex.vue b/ui/src/views/system-resource-management/ToolResourceIndex.vue index 6a6f79391..c771b3614 100644 --- a/ui/src/views/system-resource-management/ToolResourceIndex.vue +++ b/ui/src/views/system-resource-management/ToolResourceIndex.vue @@ -61,7 +61,7 @@ - + {{ scope.row.name }} diff --git a/ui/src/views/system/resource-authorization/component/PermissionSetting.vue b/ui/src/views/system/resource-authorization/component/PermissionSetting.vue index bff8ad9d9..fb4efdb78 100644 --- a/ui/src/views/system/resource-authorization/component/PermissionSetting.vue +++ b/ui/src/views/system/resource-authorization/component/PermissionSetting.vue @@ -63,7 +63,7 @@ - + - +
- +

{{ $t('common.EditAvatarDialog.default') }}

- + diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index 811353847..372bb1c57 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -47,7 +47,7 @@
- +
空白创建
@@ -79,7 +79,7 @@
- +
@@ -164,7 +164,7 @@ - +