From 420b36fbdb8ba73527d7e9b86adb8b724b0d26b7 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 27 Aug 2025 17:35:47 +0800 Subject: [PATCH] fix: Fix some styling issues --- .../ExecutionDetailContent.vue | 10 +-- ui/src/components/app-icon/icons/knowledge.ts | 42 ++++++++++ ui/src/components/markdown/MdRenderer.vue | 15 ++-- ui/src/components/pdf-export/index.vue | 5 +- .../layout-header/avatar/APIKeyDialog.vue | 7 +- ui/src/locales/lang/en-US/ai-chat.ts | 9 +-- ui/src/locales/lang/en-US/views/404.ts | 5 -- .../lang/en-US/views/application-overview.ts | 60 +++++++-------- ui/src/locales/lang/en-US/views/chat-user.ts | 1 - ui/src/locales/lang/en-US/views/paragraph.ts | 15 ++-- ui/src/locales/lang/zh-CN/ai-chat.ts | 8 +- .../lang/zh-CN/views/application-overview.ts | 60 +++++++-------- ui/src/locales/lang/zh-CN/views/chat-user.ts | 1 - ui/src/locales/lang/zh-CN/views/paragraph.ts | 1 + ui/src/locales/lang/zh-Hant/ai-chat.ts | 9 +-- .../zh-Hant/views/application-overview.ts | 58 +++++++------- .../locales/lang/zh-Hant/views/chat-user.ts | 1 - .../locales/lang/zh-Hant/views/paragraph.ts | 15 ++-- ui/src/styles/element-plus.scss | 5 ++ .../component/DisplaySettingDialog.vue | 8 +- .../XPackDisplaySettingDialog.vue | 76 +++++++++---------- .../views/application/ApplicationSetting.vue | 3 +- ui/src/views/application/index.vue | 6 +- .../knowledge/component/ParagraphList.vue | 2 +- ui/src/views/model/component/Provider.vue | 25 +++--- .../paragraph/component/ParagraphCard.vue | 54 +++++++++---- .../component/SetUserGroupsDialog.vue | 2 +- .../tool/component/ToolListContainer.vue | 5 +- ui/src/workflow/common/shortcut.ts | 2 +- .../component/ApiInputFieldTable.vue | 1 + ui/src/workflow/nodes/start-node/index.vue | 2 +- 31 files changed, 279 insertions(+), 234 deletions(-) delete mode 100644 ui/src/locales/lang/en-US/views/404.ts diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue index 26065a81c..da42e20c4 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue @@ -733,7 +733,7 @@
- {{ $t('chat.paragraphSource.system') }} + {{ $t('views.application.form.roleSettings.label') }}
{{ system }} @@ -742,7 +742,7 @@
- {{ $t('chat.paragraphSource.historyRecord') }} + {{ $t('chat.history') }}
@@ -754,10 +754,10 @@
- {{ $t('chat.paragraphSource.currentChat') }} + {{ $t('chat.executionDetails.currentChat') }}
-
{{ $t('chat.paragraphSource.knowedMessage') }}:
+
{{ $t('chat.executionDetails.knowedMessage') }}:
{{ msg.content }}
@@ -766,7 +766,7 @@
- {{ $t('chat.paragraphSource.AiResponse') }} + {{ $t('chat.executionDetails.answer') }}
diff --git a/ui/src/components/app-icon/icons/knowledge.ts b/ui/src/components/app-icon/icons/knowledge.ts index 32792bb7f..06848014e 100644 --- a/ui/src/components/app-icon/icons/knowledge.ts +++ b/ui/src/components/app-icon/icons/knowledge.ts @@ -106,4 +106,46 @@ export default { ]) }, }, + 'app-drag-outlined': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M682.666667 746.666667a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a21.248 21.248 0 0 1-21.333333 21.333334h-85.333334a21.248 21.248 0 0 1-21.333333-21.333334v-85.333333a21.248 21.248 0 0 1 21.333333-21.333333h85.333334z m-256 0a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a21.248 21.248 0 0 1-21.333333 21.333334H341.333333a21.290667 21.290667 0 0 1-21.333333-21.333334v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h85.333334z m170.666666-298.666667h85.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333334a21.248 21.248 0 0 1-21.333333 21.333333h-85.333334a21.248 21.248 0 0 1-21.333333-21.333333v-85.333334a21.248 21.248 0 0 1 21.333333-21.333333z m-256 0h85.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333334a21.248 21.248 0 0 1-21.333333 21.333333H341.333333a21.290667 21.290667 0 0 1-21.333333-21.333333v-85.333334a21.333333 21.333333 0 0 1 21.333333-21.333333z m341.333334-298.666667a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333h-85.333334a21.333333 21.333333 0 0 1-21.333333-21.333333V170.666667a21.290667 21.290667 0 0 1 21.333333-21.333334h85.333334z m-256 0a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333H341.333333a21.333333 21.333333 0 0 1-21.333333-21.333333V170.666667a21.333333 21.333333 0 0 1 21.333333-21.333334h85.333334z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, + 'app-add-circle-outlined': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg', + }, + [ + h('path', { + d: 'M469.333333 469.333333V320a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V469.333333h149.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333333 21.333334H554.666667v149.333333a21.333333 21.333333 0 0 1-21.333334 21.333333h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333333V554.666667H320a21.333333 21.333333 0 0 1-21.333333-21.333334v-42.666666a21.333333 21.333333 0 0 1 21.333333-21.333334H469.333333z m42.666667 426.666667a384 384 0 1 0 0-768 384 384 0 0 0 0 768z m0 85.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z', + fill: 'currentColor', + }), + ], + ), + ]) + }, + }, } diff --git a/ui/src/components/markdown/MdRenderer.vue b/ui/src/components/markdown/MdRenderer.vue index 3ef6f57d4..abf8fb158 100644 --- a/ui/src/components/markdown/MdRenderer.vue +++ b/ui/src/components/markdown/MdRenderer.vue @@ -8,11 +8,13 @@ @click=" sendMessage && type !== 'log' ? sendMessage(item.content, 'new') : (content: string) => {} " - class="problem-button mt-4 mb-4 flex" + class="problem-button mt-4 mb-4" :class="sendMessage && type !== 'log' ? 'cursor' : 'disabled'" > - - {{ item.content }} + + + {{ item.content }} +
{ } } - :deep(.el-icon) { - color: var(--el-color-primary); - } + // :deep(.el-icon) { + // color: var(--el-color-primary); + // margin-top: 3px; + // } } diff --git a/ui/src/components/pdf-export/index.vue b/ui/src/components/pdf-export/index.vue index 1bc6c734c..0e08eb94f 100644 --- a/ui/src/components/pdf-export/index.vue +++ b/ui/src/components/pdf-export/index.vue @@ -3,13 +3,14 @@ v-model="dialogVisible" :title="$t('chat.preview')" style="overflow: auto" - width="80%" + width="60%" :before-close="close" destroy-on-close + align-center >
diff --git a/ui/src/layout/layout-header/avatar/APIKeyDialog.vue b/ui/src/layout/layout-header/avatar/APIKeyDialog.vue index bbe0240d6..24ea5378e 100644 --- a/ui/src/layout/layout-header/avatar/APIKeyDialog.vue +++ b/ui/src/layout/layout-header/avatar/APIKeyDialog.vue @@ -105,13 +105,12 @@ function settingApiKey(row: any) { function deleteApiKey(row: any) { MsgConfirm( - // @ts-ignore `${t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm1')}: ${row.secret_key}?`, t(t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm2')), { confirmButtonText: t('common.confirm'), cancelButtonText: t('common.cancel'), - confirmButtonClass: 'color-danger', + confirmButtonClass: 'danger', }, ) .then(() => { @@ -128,8 +127,8 @@ function changeState(bool: boolean, row: any) { is_active: bool, } const str = bool - ? t('views.applicationOverview.appInfo.APIKeyDialog.enabledSuccess') - : t('views.applicationOverview.appInfo.APIKeyDialog.disabledSuccess') + ? t('common.enabled') + : t('common.disabled') systemKeyApi.putAPIKey(row.id, obj, loading).then((res) => { MsgSuccess(str) getApiKeyList() diff --git a/ui/src/locales/lang/en-US/ai-chat.ts b/ui/src/locales/lang/en-US/ai-chat.ts index 42c4e1045..f1450f95f 100644 --- a/ui/src/locales/lang/en-US/ai-chat.ts +++ b/ui/src/locales/lang/en-US/ai-chat.ts @@ -13,6 +13,8 @@ export default { exportImg: 'Exporting images', preview: 'Preview', chatId: 'Chat ID', + chatUserId: 'Chat User ID', + chatUserType: 'Chat User Type', userInput: 'User Input', quote: 'Quote', download: 'Click to Download', @@ -74,6 +76,7 @@ export default { imageMessage: 'Please process the image content', fileMessage: 'Please process the file content', errorMessage: 'Upload Failed', + fileRepeat: 'File already exists', }, executionDetails: { title: 'Execution Details', @@ -93,6 +96,7 @@ export default { paragraph: 'Segment', noSubmit: 'No submission from user', errMessage: 'Error Log', + knowedMessage: 'Known Information', }, KnowledgeSource: { title: 'Knowledge Source', @@ -106,11 +110,6 @@ export default { question: 'User Question', optimizationQuestion: 'Optimized Question', questionPadded: 'Padded Question', - system: 'Role Setting', - historyRecord: 'History Record', - currentChat: 'Current Chat', - AiResponse: 'AiResponse', - knowedMessage: 'Knowed Information', }, editTitle: 'Edit Title', } diff --git a/ui/src/locales/lang/en-US/views/404.ts b/ui/src/locales/lang/en-US/views/404.ts deleted file mode 100644 index 0d4861a4a..000000000 --- a/ui/src/locales/lang/en-US/views/404.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default { - title: "404", - message: "Unable to Access APP", - operate: "Back to Home", -}; diff --git a/ui/src/locales/lang/en-US/views/application-overview.ts b/ui/src/locales/lang/en-US/views/application-overview.ts index febc3eec8..06042b8e0 100644 --- a/ui/src/locales/lang/en-US/views/application-overview.ts +++ b/ui/src/locales/lang/en-US/views/application-overview.ts @@ -24,8 +24,6 @@ export default { msgConfirm1: 'Are you sure you want to delete the API Key', msgConfirm2: 'This action is irreversible. Once deleted, the API Key cannot be recovered. Do you still want to proceed?', - enabledSuccess: 'Enabled', - disabledSuccess: 'Disabled', }, EmbedDialog: { fullscreenModeTitle: 'Fullscreen Mode', @@ -34,8 +32,6 @@ export default { mobileModeTitle: 'Mobile Mode', }, LimitDialog: { - dialogTitle: 'Access Restrictions', - showSourceLabel: 'Show Knowledge Source', clientQueryLimitLabel: 'Query Limit per Client', authentication: 'Authentication', authenticationValue: 'Password Access', @@ -52,36 +48,34 @@ export default { crossDomainPlaceholder: 'Enter allowed cross-domain addresses. If enabled but left blank, no restrictions will apply.\nEnter one per line, e.g.:\nhttp://127.0.0.1:5678\nhttps://dataease.io', }, - SettingDisplayDialog: { - dialogTitle: 'Display Settings', - languageLabel: 'Language', - showSourceLabel: 'Show Knowledge Source', - showExecutionDetail: 'Show Execution Details', - restoreDefault: 'Restore Default', - customThemeColor: 'Custom Theme Color', - headerTitleFontColor: 'Header Title Font Color', - default: 'Default', - askUserAvatar: 'User Avatar (Asking)', - replace: 'Replace', - imageMessage: - 'Recommended size: 32×32 pixels. Supports JPG, PNG, and GIF formats. Max size: 10 MB', - AIAvatar: 'AI Avatar', - floatIcon: 'Floating Icon', - iconDefaultPosition: 'Default Icon Position', - iconPosition: { - left: 'Left', - right: 'Right', - bottom: 'Bottom', - top: 'Top', - }, - draggablePosition: 'Draggable Position', - showHistory: 'Show Chat History', - displayGuide: 'Show Guide Image (Floating Mode)', - disclaimer: 'Disclaimer', - disclaimerValue: 'This content is AI-generated and for reference only.', - chatBackground: 'Chat Background', - chatBackgroundMessage: 'Supported formats: JPG, PNG, GIF. Max size: 10MB.', + }, + SettingDisplayDialog: { + showSourceLabel: 'Show Knowledge Source', + showExecutionDetail: 'Show Execution Details', + restoreDefault: 'Restore Default', + customThemeColor: 'Custom Theme Color', + headerTitleFontColor: 'Header Title Font Color', + default: 'Default', + askUserAvatar: 'User Avatar (Asking)', + replace: 'Replace', + imageMessage: + 'Recommended size: 32×32 pixels. Supports JPG, PNG, and GIF formats. Max size: 10 MB', + AIAvatar: 'AI Avatar', + floatIcon: 'Floating Icon', + iconDefaultPosition: 'Default Icon Position', + iconPosition: { + left: 'Left', + right: 'Right', + bottom: 'Bottom', + top: 'Top', }, + draggablePosition: 'Draggable Position', + showHistory: 'Show Chat History', + displayGuide: 'Show Guide Image (Floating Mode)', + disclaimer: 'Disclaimer', + disclaimerValue: 'This content is AI-generated and for reference only.', + chatBackground: 'Chat Background', + chatBackgroundMessage: 'Supported formats: JPG, PNG, GIF. Max size: 10MB.', }, monitor: { monitoringStatistics: 'Monitoring Statistics', diff --git a/ui/src/locales/lang/en-US/views/chat-user.ts b/ui/src/locales/lang/en-US/views/chat-user.ts index 6d9a557d9..14f54d218 100644 --- a/ui/src/locales/lang/en-US/views/chat-user.ts +++ b/ui/src/locales/lang/en-US/views/chat-user.ts @@ -12,7 +12,6 @@ export default { batchDeleteUser: 'Delete selected {count} users?', settingMethod: 'Configuration Method', append: 'Append', - replace: 'Replace', group: { title: 'User Groups', name: 'User Group Name', diff --git a/ui/src/locales/lang/en-US/views/paragraph.ts b/ui/src/locales/lang/en-US/views/paragraph.ts index 812e3ab68..cf6140616 100644 --- a/ui/src/locales/lang/en-US/views/paragraph.ts +++ b/ui/src/locales/lang/en-US/views/paragraph.ts @@ -3,30 +3,31 @@ export default { paragraph_count: 'Segments', editParagraph: 'Edit Segment', addParagraph: 'Add Segment', + prevAddParagraph: 'Insert Segment Above', paragraphDetail: 'Segment Details', character_count: 'characters', setting: { batchSelected: 'Batch Select', - cancelSelected: 'Cancel Selection' + cancelSelected: 'Cancel Selection', }, delete: { confirmTitle: 'Confirm deletion of segment:', - confirmMessage: 'Deletion cannot be undone. Please proceed with caution.' + confirmMessage: 'Deletion cannot be undone. Please proceed with caution.', }, relatedProblem: { title: 'Related Questions', - placeholder: 'Please select a question' + placeholder: 'Please select a question', }, form: { paragraphTitle: { label: 'Title', - placeholder: 'Please enter the segment title' + placeholder: 'Please enter the segment title', }, content: { label: 'Content', placeholder: 'Please enter the segment content', requiredMessage1: 'Please enter the segment content', - requiredMessage2: 'Content must not exceed 100,000 words' - } - } + requiredMessage2: 'Content must not exceed 100,000 words', + }, + }, } diff --git a/ui/src/locales/lang/zh-CN/ai-chat.ts b/ui/src/locales/lang/zh-CN/ai-chat.ts index 88976f169..da43e45cb 100644 --- a/ui/src/locales/lang/zh-CN/ai-chat.ts +++ b/ui/src/locales/lang/zh-CN/ai-chat.ts @@ -15,11 +15,9 @@ export default { chatId: '对话 ID', chatUserId: '对话用户 ID', chatUserType: '对话用户类型', - chatUser: '对话用户', userInput: '用户输入', quote: '引用', download: '点击下载文件', - transcribing: '转文字中', noDocument: '原文档不存在', noPermissionDownload: '无权限下载', passwordValidator: { @@ -96,6 +94,7 @@ export default { paragraph: '分段', noSubmit: '用户未提交', errMessage: '错误日志', + knowedMessage: '已知信息', }, KnowledgeSource: { title: '知识来源', @@ -109,11 +108,6 @@ export default { question: '用户问题', optimizationQuestion: '优化后问题', questionPadded: '优化后问题', - system: '角色设定', - historyRecord: '历史记录', - currentChat: '本次对话', - AiResponse: 'AI 回答', - knowedMessage: '已知信息', }, editTitle: '编辑标题', } diff --git a/ui/src/locales/lang/zh-CN/views/application-overview.ts b/ui/src/locales/lang/zh-CN/views/application-overview.ts index 316bc58ac..55926979a 100644 --- a/ui/src/locales/lang/zh-CN/views/application-overview.ts +++ b/ui/src/locales/lang/zh-CN/views/application-overview.ts @@ -24,8 +24,6 @@ export default { saveSettings: '保存设置', msgConfirm1: '是否删除API Key', msgConfirm2: '删除API Key后将无法恢复,请确认是否删除?', - enabledSuccess: '已启用', - disabledSuccess: '已禁用', }, EmbedDialog: { fullscreenModeTitle: '全屏模式', @@ -34,7 +32,6 @@ export default { mobileModeTitle: '移动端模式', }, LimitDialog: { - showSourceLabel: '显示知识来源', clientQueryLimitLabel: '每个客户端提问限制', timesDays: '次/天', authentication: '身份验证', @@ -47,41 +44,38 @@ export default { toSettingChatUser: '去配置对话用户', }, SettingAPIKeyDialog: { - dialogTitle: '设置', allowCrossDomainLabel: '允许跨域地址', crossDomainPlaceholder: '请输入允许的跨域地址,开启后不输入跨域地址则不限制。\n跨域地址一行一个,如:\nhttp://127.0.0.1:5678 \nhttps://dataease.io', }, - SettingDisplayDialog: { - dialogTitle: '显示设置', - languageLabel: '语言', - showSourceLabel: '显示知识来源', - showExecutionDetail: '显示执行详情', - restoreDefault: '恢复默认', - customThemeColor: '自定义主题色', - headerTitleFontColor: '头部标题字体颜色', - default: '默认', - askUserAvatar: '提问用户头像', - replace: '替换', - imageMessage: '建议尺寸 32*32,支持 JPG、PNG、GIF,大小不超过 10 MB', - AIAvatar: 'AI 回复头像', - display: '显示', - floatIcon: '浮窗入口图标', - iconDefaultPosition: '图标默认位置', - iconPosition: { - left: '左', - right: '右', - bottom: '下', - top: '上', - }, - draggablePosition: '可拖拽位置', - showHistory: '显示历史记录', - displayGuide: '显示引导图(浮窗模式)', - disclaimer: '免责声明', - disclaimerValue: '「以上内容均由 AI 生成,仅供参考和借鉴」', - chatBackground: '聊天背景', - chatBackgroundMessage: '支持 JPG、PNG、GIF,大小不超过 10 MB', + }, + SettingDisplayDialog: { + showSourceLabel: '显示知识来源', + showExecutionDetail: '显示执行详情', + restoreDefault: '恢复默认', + customThemeColor: '自定义主题色', + headerTitleFontColor: '头部标题字体颜色', + default: '默认', + askUserAvatar: '提问用户头像', + replace: '替换', + imageMessage: '建议尺寸 32*32,支持 JPG、PNG、GIF,大小不超过 10 MB', + AIAvatar: 'AI 回复头像', + display: '显示', + floatIcon: '浮窗入口图标', + iconDefaultPosition: '图标默认位置', + iconPosition: { + left: '左', + right: '右', + bottom: '下', + top: '上', }, + draggablePosition: '可拖拽位置', + showHistory: '显示历史记录', + displayGuide: '显示引导图(浮窗模式)', + disclaimer: '免责声明', + disclaimerValue: '「以上内容均由 AI 生成,仅供参考和借鉴」', + chatBackground: '聊天背景', + chatBackgroundMessage: '支持 JPG、PNG、GIF,大小不超过 10 MB', }, monitor: { monitoringStatistics: '监控统计', diff --git a/ui/src/locales/lang/zh-CN/views/chat-user.ts b/ui/src/locales/lang/zh-CN/views/chat-user.ts index d7f8e11c9..f4c640d39 100644 --- a/ui/src/locales/lang/zh-CN/views/chat-user.ts +++ b/ui/src/locales/lang/zh-CN/views/chat-user.ts @@ -10,7 +10,6 @@ export default { batchDeleteUser: '是否删除选中的 {count} 个用户?', settingMethod: '设置方式', append: '追加', - replace: '替换', group: { title: '用户组', requiredMessage: '请选择用户组', diff --git a/ui/src/locales/lang/zh-CN/views/paragraph.ts b/ui/src/locales/lang/zh-CN/views/paragraph.ts index cf38b908f..b5c8268f5 100644 --- a/ui/src/locales/lang/zh-CN/views/paragraph.ts +++ b/ui/src/locales/lang/zh-CN/views/paragraph.ts @@ -3,6 +3,7 @@ export default { paragraph_count: '段落', editParagraph: '编辑分段', addParagraph: '添加分段', + prevAddParagraph:'上方插入分段', paragraphDetail: '分段详情', character_count: '个字符', setting: { diff --git a/ui/src/locales/lang/zh-Hant/ai-chat.ts b/ui/src/locales/lang/zh-Hant/ai-chat.ts index 530714e02..bb9045352 100644 --- a/ui/src/locales/lang/zh-Hant/ai-chat.ts +++ b/ui/src/locales/lang/zh-Hant/ai-chat.ts @@ -13,6 +13,8 @@ export default { exportImg: '匯出圖片', preview: '預覽', chatId: '對話 ID', + chatUserId: '對話用戶 ID', + chatUserType: '對話用戶類型', userInput: '用戶輸入', quote: '引用', download: '點擊下載文件', @@ -72,6 +74,7 @@ export default { imageMessage: '請解析圖片內容', fileMessage: '請解析文件內容', errorMessage: '上傳失敗', + fileRepeat: '文件已存在', }, executionDetails: { title: '執行詳細', @@ -91,6 +94,7 @@ export default { paragraph: '段落', noSubmit: '用戶未提交', errMessage: '錯誤日誌', + knowedMessage: '已知資訊', }, KnowledgeSource: { title: '知識來源', @@ -104,11 +108,6 @@ export default { question: '用戶問題', optimizationQuestion: '優化後問題', questionPadded: '優化後問題', - system: '角色設定', - historyRecord: '歷史記錄', - currentChat: '本次對話', - AiResponse: 'AI 回答', - knowedMessage: '已知資訊', }, editTitle: '編輯標題', } diff --git a/ui/src/locales/lang/zh-Hant/views/application-overview.ts b/ui/src/locales/lang/zh-Hant/views/application-overview.ts index 1fc4ca3c0..3c663d56d 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-overview.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-overview.ts @@ -23,8 +23,6 @@ export default { saveSettings: '儲存設定', msgConfirm1: '是否刪除API Key', msgConfirm2: '刪除API Key後將無法恢復,請確認是否刪除?', - enabledSuccess: '已啟用', - disabledSuccess: '已停用', }, EmbedDialog: { fullscreenModeTitle: '全螢幕模式', @@ -33,8 +31,6 @@ export default { mobileModeTitle: '移動端模式', }, LimitDialog: { - dialogTitle: '訪問限制', - showSourceLabel: '顯示知識來源', clientQueryLimitLabel: '每個用戶端提問限制', timesDays: '次/天', authentication: '身份驗證', @@ -52,35 +48,33 @@ export default { crossDomainPlaceholder: '請輸入允許的跨域位址,開啟後不輸入跨域位址則不限制。\n跨域位址一行一個,如:\nhttp://127.0.0.1:5678 \nhttps://dataease.io', }, - SettingDisplayDialog: { - dialogTitle: '顯示設定', - languageLabel: '語言', - showSourceLabel: '顯示知識來源', - showExecutionDetail: '顯示執行細節', - restoreDefault: '恢復預設', - customThemeColor: '自訂主題色', - headerTitleFontColor: '標頭標題字體顏色', - default: '預設', - askUserAvatar: '提問用戶頭像', - replace: '取代', - imageMessage: '建議尺寸 32*32,支援 JPG、PNG、GIF,大小不超過 10 MB', - AIAvatar: 'AI 回覆頭像', - floatIcon: '浮窗入口圖示', - iconDefaultPosition: '圖示預設位置', - iconPosition: { - left: '左', - right: '右', - bottom: '下', - top: '上', - }, - draggablePosition: '可拖曳位置', - showHistory: '顯示歷史紀錄', - displayGuide: '顯示引導圖(浮窗模式)', - disclaimer: '免責聲明', - disclaimerValue: '「以上內容均由 AI 生成,僅供參考和借鏡」', - chatBackground: '聊天背景', - chatBackgroundMessage: '圖片格式:JPG, PNG, GIF。最大大小:10MB。', + }, + SettingDisplayDialog: { + showSourceLabel: '顯示知識來源', + showExecutionDetail: '顯示執行細節', + restoreDefault: '恢復預設', + customThemeColor: '自訂主題色', + headerTitleFontColor: '標頭標題字體顏色', + default: '預設', + askUserAvatar: '提問用戶頭像', + replace: '取代', + imageMessage: '建議尺寸 32*32,支援 JPG、PNG、GIF,大小不超過 10 MB', + AIAvatar: 'AI 回覆頭像', + floatIcon: '浮窗入口圖示', + iconDefaultPosition: '圖示預設位置', + iconPosition: { + left: '左', + right: '右', + bottom: '下', + top: '上', }, + draggablePosition: '可拖曳位置', + showHistory: '顯示歷史紀錄', + displayGuide: '顯示引導圖(浮窗模式)', + disclaimer: '免責聲明', + disclaimerValue: '「以上內容均由 AI 生成,僅供參考和借鏡」', + chatBackground: '聊天背景', + chatBackgroundMessage: '圖片格式:JPG, PNG, GIF。最大大小:10MB。', }, monitor: { monitoringStatistics: '監控統計', diff --git a/ui/src/locales/lang/zh-Hant/views/chat-user.ts b/ui/src/locales/lang/zh-Hant/views/chat-user.ts index e928586dd..056b054f3 100644 --- a/ui/src/locales/lang/zh-Hant/views/chat-user.ts +++ b/ui/src/locales/lang/zh-Hant/views/chat-user.ts @@ -10,7 +10,6 @@ export default { batchDeleteUser: '是否刪除選中的 {count} 個用戶?', settingMethod: '設定方式', append: '追加', - replace: '替換', group: { title: '用戶組', requiredMessage: '請選擇用戶組', diff --git a/ui/src/locales/lang/zh-Hant/views/paragraph.ts b/ui/src/locales/lang/zh-Hant/views/paragraph.ts index a5b4b3317..bc111ce89 100644 --- a/ui/src/locales/lang/zh-Hant/views/paragraph.ts +++ b/ui/src/locales/lang/zh-Hant/views/paragraph.ts @@ -3,30 +3,31 @@ export default { paragraph_count: '段落', editParagraph: '編輯分段', addParagraph: '添加分段', + prevAddParagraph: '上方插入分段', paragraphDetail: '分段詳情', character_count: '個字符', setting: { batchSelected: '批量選擇', - cancelSelected: '取消選擇' + cancelSelected: '取消選擇', }, delete: { confirmTitle: '是否刪除段落:', - confirmMessage: '刪除後無法恢復,請謹慎操作。' + confirmMessage: '刪除後無法恢復,請謹慎操作。', }, relatedProblem: { title: '關聯問題', - placeholder: '請選擇問題' + placeholder: '請選擇問題', }, form: { paragraphTitle: { label: '分段標題', - placeholder: '請輸入分段標題' + placeholder: '請輸入分段標題', }, content: { label: '分段內容', placeholder: '請輸入分段內容', requiredMessage1: '請輸入分段內容', - requiredMessage2: '內容最多不超過 100000 個字' - } - } + requiredMessage2: '內容最多不超過 100000 個字', + }, + }, } diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss index 379763a26..680c4e4f6 100644 --- a/ui/src/styles/element-plus.scss +++ b/ui/src/styles/element-plus.scss @@ -299,3 +299,8 @@ color: var(--el-text-color-regular); } } + +// el-pagination +.el-pagination .el-select { + width: 105px; +} diff --git a/ui/src/views/application-overview/component/DisplaySettingDialog.vue b/ui/src/views/application-overview/component/DisplaySettingDialog.vue index 33f18f9ce..e32874956 100644 --- a/ui/src/views/application-overview/component/DisplaySettingDialog.vue +++ b/ui/src/views/application-overview/component/DisplaySettingDialog.vue @@ -1,6 +1,6 @@