diff --git a/ui/src/locales/lang/en_US/views/application-overview.ts b/ui/src/locales/lang/en_US/views/application-overview.ts new file mode 100644 index 000000000..13bddfc61 --- /dev/null +++ b/ui/src/locales/lang/en_US/views/application-overview.ts @@ -0,0 +1,103 @@ +export default { + title: 'Overview', + appInfo: { + header: 'Application Info', + publicAccessLink: 'Public Access Link', + openText: 'On', + closeText: 'Off', + copyLinkText: 'Copy Link', + refreshLinkText: 'Refresh Link', + demo: 'Demo', + embedThirdParty: 'Embed Third Party', + accessRestrictions: 'Access Restrictions', + apiAccessCredentials: 'API Access Credentials', + apiKey: 'API Key', + refreshToken: { + msgConfirm1: 'Do you want to regenerate the public access link?', + msgConfirm2: 'Regenerating the public access link will affect third-party embedded scripts changes and will require re-embedding the new script into third-party sites. Please proceed with caution!', + confirm: 'Confirm', + cancel: 'Cancel', + refreshSuccess: 'Refresh Successful', + }, + changeState: { + enableSuccess: 'Enable Successful', + disableSuccess: 'Disable Successful', + }, + APIKeyDialog: { + creatApiKey: 'Create', + status: 'Status', + creationDate: 'Creation Date', + operations: 'Operations', + settings: 'Settings', + delete: 'Delete', + saveSettings: 'Save Settings', + msgConfirm1: 'Are you sure you want to delete the API Key?', + msgConfirm2: 'Deleting the API Key cannot be undone. Please confirm if you want to delete it!', + confirmDelete: 'Delete', + deleteSuccess: 'Delete Successful', + cancel: 'Cancel', + enabledSuccess: 'Enabled', + disabledSuccess: 'Disabled', + }, + EditAvatarDialog: { + title: 'Edit Logo', + customizeUpload: 'Custom Upload', + upload: 'Upload', + default: 'Default Logo', + custom: 'Custom', + sizeTip: 'Suggested size 32*32, supports ico, png, size no more than 200KB', + cancel: 'Cancel', + save: 'Save', + fileSizeExceeded: 'File size exceeds 200KB', + setSuccess: 'Setting Successful', + uploadImagePrompt: 'Please upload an image' + }, + EmbedDialog: { + embedDialogTitle: 'Embed Third Party', + fullscreenModeTitle: 'Fullscreen Mode', + copyInstructions: 'Copy the following code to embed', + floatingModeTitle: 'Floating Mode' + }, + LimitDialog: { + dialogTitle: 'Access Restrictions', + showSourceLabel: 'Show Source', + clientQueryLimitLabel: 'Client Query Limit', + timesDays: 'Times/Day', + whitelistLabel: 'Whitelist', + whitelistPlaceholder: 'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io', + cancelButtonText: 'Cancel', + saveButtonText: 'Save', + settingSuccessMessage: 'Setting Successful' + }, + SettingAPIKeyDialog: { + dialogTitle: 'Settings', + allowCrossDomainLabel: 'Allow Cross-Domain Address', + crossDomainPlaceholder: 'Please enter allowed cross-domain addresses, if open without inputting addresses, there are no restrictions.\nCross-domain addresses one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io', + cancelButtonText: 'Cancel', + saveButtonText: 'Save', + successMessage: 'Setting Successful' + } + }, + monitor: { + monitoringStatistics: 'Monitoring Statistics', + customRange: 'Custom Range', + startDatePlaceholder: 'Start Date', + endDatePlaceholder: 'End Date', + pastDayOptions: { + past7Days: 'Past 7 Days', + past30Days: 'Past 30 Days', + past90Days: 'Past 90 Days', + past183Days: 'Past Half Year', + other: 'Custom' + }, + charts: { + customerTotal: 'Total Customers', + customerNew: 'New Customers', + queryCount: 'Query Count', + tokensTotal: 'Total Tokens', + userSatisfaction: 'User Satisfaction', + approval: 'Approval', + disapproval: 'Disapproval' + } + }, +}; diff --git a/ui/src/locales/lang/en_US/views/index.ts b/ui/src/locales/lang/en_US/views/index.ts index 37553f490..076cd0a6b 100644 --- a/ui/src/locales/lang/en_US/views/index.ts +++ b/ui/src/locales/lang/en_US/views/index.ts @@ -1,6 +1,8 @@ import notFound from './404'; import application from './application'; +import applicationOverview from './application-overview'; export default { notFound, application, + applicationOverview }; diff --git a/ui/src/locales/lang/zh_CN/views/404.ts b/ui/src/locales/lang/zh_CN/views/404.ts index 44562310c..a65dcbbd0 100644 --- a/ui/src/locales/lang/zh_CN/views/404.ts +++ b/ui/src/locales/lang/zh_CN/views/404.ts @@ -1,5 +1,5 @@ export default { title: "404", - Message: "无法访问应用", + message: "无法访问应用", operate: "返回首页", }; diff --git a/ui/src/locales/lang/zh_CN/views/application-overview.ts b/ui/src/locales/lang/zh_CN/views/application-overview.ts new file mode 100644 index 000000000..4914f9898 --- /dev/null +++ b/ui/src/locales/lang/zh_CN/views/application-overview.ts @@ -0,0 +1,103 @@ +export default { + title: '概览', + appInfo:{ + header: '应用信息', + publicAccessLink: '公开访问链接', + openText: '开', + closeText: '关', + copyLinkText: '复制链接', + refreshLinkText: '刷新链接', + demo: '演示', + embedThirdParty: '嵌入第三方', + accessRestrictions: '访问限制', + apiAccessCredentials: 'API访问凭据', + apiKey: 'API Key', + refreshToken:{ + msgConfirm1:'是否重新生成公开访问链接?', + msgConfirm2:'重新生成公开访问链接会影响嵌入第三方脚本变更,需要将新脚本重新嵌入第三方,请谨慎操作!', + confirm: '确认', + cancel: '取消', + refreshSuccess: '刷新成功', + }, + changeState:{ + enableSuccess: '启用成功', + disableSuccess: '禁用成功', + }, + APIKeyDialog:{ + creatApiKey: '创建', + status: '状态', + creationDate: '创建日期', + operations: '操作', + settings: '设置', + delete: '删除', + saveSettings: '保存设置', + msgConfirm1: '是否删除API Key?', + msgConfirm2: '删除API Key后将无法恢复,请确认是否删除!', + confirmDelete: '删除', + deleteSuccess: '删除成功', + cancel: '取消', + enabledSuccess: '已启用', + disabledSuccess: '已禁用', + }, + EditAvatarDialog:{ + title: '编辑logo', + customizeUpload: '自定义上传', + upload: '上传', + default: '默认logo', + custom: '自定义', + sizeTip: '建议尺寸 32*32,支持 ico、png,大小不超过200KB', + cancel: '取消', + save: '保存', + fileSizeExceeded: '文件大小超过 200KB', + setSuccess: '设置成功', + uploadImagePrompt: '请上传一张图片' + }, + EmbedDialog:{ + embedDialogTitle: '嵌入第三方', + fullscreenModeTitle: '全屏模式', + copyInstructions: '复制以下代码进行嵌入', + floatingModeTitle: '浮窗模式' + }, + LimitDialog:{ + dialogTitle: '访问限制', + showSourceLabel: '显示知识来源', + clientQueryLimitLabel: '客户端提问限制', + timesDays: '次/天', + whitelistLabel: '白名单', + whitelistPlaceholder: '请输入允许嵌入第三方的源地址,一行一个,如:\nhttp://127.0.0.1:5678\nhttps://dataease.io', + cancelButtonText: '取消', + saveButtonText: '保存', + settingSuccessMessage: '设置成功' + }, + SettingAPIKeyDialog:{ + dialogTitle: '设置', + allowCrossDomainLabel: '允许跨域地址', + crossDomainPlaceholder: '请输入允许的跨域地址,开启后不输入跨域地址则不限制。\n跨域地址一行一个,如:\nhttp://127.0.0.1:5678 \nhttps://dataease.io', + cancelButtonText: '取消', + saveButtonText: '保存', + successMessage: '设置成功' + } + }, + monitor:{ + monitoringStatistics: '监控统计', + customRange: '自定义范围', + startDatePlaceholder: '开始时间', + endDatePlaceholder: '结束时间', + pastDayOptions:{ + past7Days:'过去7天', + past30Days:'过去30天', + past90Days:'过去90天', + past183Days:'过去半年', + other:'自定义' + }, + charts:{ + 'customerTotal': '用户总数', + 'customerNew': '用户新增数', + 'queryCount': '提问次数', + 'tokensTotal': 'Tokens 总数', + 'userSatisfaction': '用户满意度', + 'approval': '赞同', + 'disapproval': '反对' + } + }, +}; diff --git a/ui/src/locales/lang/zh_CN/views/index.ts b/ui/src/locales/lang/zh_CN/views/index.ts index 37553f490..076cd0a6b 100644 --- a/ui/src/locales/lang/zh_CN/views/index.ts +++ b/ui/src/locales/lang/zh_CN/views/index.ts @@ -1,6 +1,8 @@ import notFound from './404'; import application from './application'; +import applicationOverview from './application-overview'; export default { notFound, application, + applicationOverview }; diff --git a/ui/src/views/application-overview/component/APIKeyDialog.vue b/ui/src/views/application-overview/component/APIKeyDialog.vue index 8a887d911..2ad4bb1e2 100644 --- a/ui/src/views/application-overview/component/APIKeyDialog.vue +++ b/ui/src/views/application-overview/component/APIKeyDialog.vue @@ -1,6 +1,6 @@