From f182eab2dc1f5aedc2cfe7699cbee3b06b12bd98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 20 Oct 2024 22:29:25 +0800 Subject: [PATCH] fix: test --- web/settings/proxy-config.example.ts | 2 +- web/src/i18n/en.json | 36 ------------------- web/src/i18n/zh_CN.json | 52 +++++----------------------- web/src/views/backup/route.ts | 2 +- web/src/views/safe/route.ts | 2 +- web/src/views/task/route.ts | 2 +- 6 files changed, 12 insertions(+), 84 deletions(-) diff --git a/web/settings/proxy-config.example.ts b/web/settings/proxy-config.example.ts index a31072fd15..576ec0a0b2 100644 --- a/web/settings/proxy-config.example.ts +++ b/web/settings/proxy-config.example.ts @@ -24,6 +24,6 @@ const proxyConfigMappings: Record = { ] } -export function getProxyConfig(envType: ProxyType = 'dev'): ProxyConfig { +export function getProxyConfigs(envType: ProxyType = 'dev'): ProxyConfig[] { return proxyConfigMappings[envType] } diff --git a/web/src/i18n/en.json b/web/src/i18n/en.json index eb0cb64ca1..c04811ea5d 100644 --- a/web/src/i18n/en.json +++ b/web/src/i18n/en.json @@ -155,42 +155,6 @@ } } }, - "taskIndex": { - "title": "Tasks", - "alerts": { - "delete": "Task has been deleted" - }, - "buttons": { - "delete": "delete", - "log": "log", - "undelete": "undelete" - }, - "confirm": { - "delete": "Are you sure you want to delete the task?" - }, - "columns": { - "name": "task name", - "status": "status", - "createdAt": "created at", - "updatedAt": "updated at", - "actions": "actions" - }, - "options": { - "status": { - "finished": "finished", - "waiting": "waiting", - "failed": "failed", - "running": "running" - } - }, - "logModal": { - "title": "Task log", - "autoRefresh": { - "on": "Auto refresh on", - "off": "Auto refresh off" - } - } - }, "websiteIndex": { "title": "Websites", "columns": { diff --git a/web/src/i18n/zh_CN.json b/web/src/i18n/zh_CN.json index 65fa3474dd..12c807ce6f 100644 --- a/web/src/i18n/zh_CN.json +++ b/web/src/i18n/zh_CN.json @@ -1,16 +1,16 @@ { "name": "耗子面板", "certIndex": { - "title": "HTTPS 证书" + "title": "证书" }, "containerIndex": { - "title": "容器管理" + "title": "容器" }, "cronIndex": { "title": "计划任务" }, "fileIndex": { - "title": "文件管理" + "title": "文件" }, "homeUpdate": { "title": "更新面板", @@ -33,10 +33,10 @@ } }, "monitorIndex": { - "title": "资源监控" + "title": "监控" }, "appIndex": { - "title": "应用中心", + "title": "应用", "alerts": { "cache": "缓存更新成功", "warning": "更新应用前强烈建议先备份/快照,以免出现问题时无法回滚!", @@ -65,7 +65,7 @@ } }, "settingIndex": { - "title": "面板设置", + "title": "设置", "info": "修改面板端口 / 入口后,需要在浏览器地址栏做相应修改方可打开面板!", "edit": { "toasts": { @@ -127,7 +127,7 @@ } }, "sshIndex": { - "title": "SSH 终端", + "title": "终端", "alerts": { "save": "保存成功" }, @@ -155,44 +155,8 @@ } } }, - "taskIndex": { - "title": "后台任务", - "alerts": { - "delete": "任务已删除" - }, - "buttons": { - "delete": "删除", - "log": "日志", - "undelete": "取消删除" - }, - "confirm": { - "delete": "确定删除此任务记录吗?" - }, - "columns": { - "name": "任务名", - "status": "状态", - "createdAt": "创建时间", - "updatedAt": "更新时间", - "actions": "操作" - }, - "options": { - "status": { - "finished": "已完成", - "waiting": "等待中", - "failed": "已失败", - "running": "运行中" - } - }, - "logModal": { - "title": "任务日志", - "autoRefresh": { - "on": "自动刷新开启", - "off": "自动刷新关闭" - } - } - }, "websiteIndex": { - "title": "网站管理", + "title": "网站", "columns": { "name": "网站名", "status": "运行", diff --git a/web/src/views/backup/route.ts b/web/src/views/backup/route.ts index c4947ff148..ae8632948c 100644 --- a/web/src/views/backup/route.ts +++ b/web/src/views/backup/route.ts @@ -15,7 +15,7 @@ export default { path: '', component: () => import('./IndexView.vue'), meta: { - title: '数据备份', + title: '备份', icon: 'mdi:backup-outline', role: ['admin'], requireAuth: true diff --git a/web/src/views/safe/route.ts b/web/src/views/safe/route.ts index 7163ac29a4..7ae7e1f00c 100644 --- a/web/src/views/safe/route.ts +++ b/web/src/views/safe/route.ts @@ -15,7 +15,7 @@ export default { path: '', component: () => import('./IndexView.vue'), meta: { - title: '系统安全', + title: '安全', icon: 'mdi:shield-check-outline', role: ['admin'], requireAuth: true diff --git a/web/src/views/task/route.ts b/web/src/views/task/route.ts index 037bd49b4c..1f1240d270 100644 --- a/web/src/views/task/route.ts +++ b/web/src/views/task/route.ts @@ -15,7 +15,7 @@ export default { path: '', component: () => import('./IndexView.vue'), meta: { - title: 'taskIndex.title', + title: '任务', icon: 'mdi:table-sync', role: ['admin'], requireAuth: true