Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 20, 2024
1 parent 2828795 commit f182eab
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 84 deletions.
2 changes: 1 addition & 1 deletion web/settings/proxy-config.example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ const proxyConfigMappings: Record<ProxyType, ProxyConfig> = {
]
}

export function getProxyConfig(envType: ProxyType = 'dev'): ProxyConfig {
export function getProxyConfigs(envType: ProxyType = 'dev'): ProxyConfig[] {
return proxyConfigMappings[envType]
}
36 changes: 0 additions & 36 deletions web/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
52 changes: 8 additions & 44 deletions web/src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "耗子面板",
"certIndex": {
"title": "HTTPS 证书"
"title": "证书"
},
"containerIndex": {
"title": "容器管理"
"title": "容器"
},
"cronIndex": {
"title": "计划任务"
},
"fileIndex": {
"title": "文件管理"
"title": "文件"
},
"homeUpdate": {
"title": "更新面板",
Expand All @@ -33,10 +33,10 @@
}
},
"monitorIndex": {
"title": "资源监控"
"title": "监控"
},
"appIndex": {
"title": "应用中心",
"title": "应用",
"alerts": {
"cache": "缓存更新成功",
"warning": "更新应用前强烈建议先备份/快照,以免出现问题时无法回滚!",
Expand Down Expand Up @@ -65,7 +65,7 @@
}
},
"settingIndex": {
"title": "面板设置",
"title": "设置",
"info": "修改面板端口 / 入口后,需要在浏览器地址栏做相应修改方可打开面板!",
"edit": {
"toasts": {
Expand Down Expand Up @@ -127,7 +127,7 @@
}
},
"sshIndex": {
"title": "SSH 终端",
"title": "终端",
"alerts": {
"save": "保存成功"
},
Expand Down Expand Up @@ -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": "运行",
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/backup/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
path: '',
component: () => import('./IndexView.vue'),
meta: {
title: '据备份',
title: '',
icon: 'mdi:backup-outline',
role: ['admin'],
requireAuth: true
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/safe/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
path: '',
component: () => import('./IndexView.vue'),
meta: {
title: '统安全',
title: '',
icon: 'mdi:shield-check-outline',
role: ['admin'],
requireAuth: true
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/task/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
path: '',
component: () => import('./IndexView.vue'),
meta: {
title: 'taskIndex.title',
title: '',
icon: 'mdi:table-sync',
role: ['admin'],
requireAuth: true
Expand Down

0 comments on commit f182eab

Please sign in to comment.