Skip to content

Commit

Permalink
refactor(api, external/error): update translations (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuiham authored Mar 31, 2022
1 parent bdb6ee1 commit 12c727f
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/main/[4]task/components/TaskTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function getColumns(
valueEnum: {
cluster: { text: t('model:task.bizType.cluster') },
host: { text: t('model:task.bizType.host') },
checkReport: { text: t('model:task.bizType.checkReport') },
},
},
{
Expand Down
46 changes: 39 additions & 7 deletions external/error/input.csv
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,16 @@ backup record invalid",备份记录无效,400,,
","工作流等待超时(参见workflow错误码40105)
",500,,
,克隆集群-209xx,20900,The version of clone cluster must be higher than current cluster ,克隆集群版本必须高于现有集群,409,,
,主备管理-210xx,,,,,,
,主备管理-210xx,21000,Master slave relation not found,主备集群不存在,404,,
,,21001,Master slave switchover failed,主备集群切换失败,500,,
,,21002,Master slave CDC sync task not found,主备集群CDC同步任务未建立,400,,
,,21003,Slave has no CDC component,备集群未部署CDC组件,400,,
,集群原地升级-211xx,21100,Upgrade path doesn't exist,升级路径不存在,404,,
,,21101,Upgrade software package doesn't exist,升级软件包不存在,404,,
,,21102,Not support to downgrade cluster version,不支持降级集群版本,409,,
,,21103,Failed to in-place upgrade ,原地升级失败,500,,
,,21104,Regions are not fully healthy,存在 Region 不健康,如 miss peer 或 pending peer,,,
,,21105,Upgrade version incorrect,升级后版本信息有误,,,
,集群同步-212xx,21201,Change feed task is not found,任务不存在,404,,
,,21202,Duplicate id,任务重复,,,
,,21203,Task status conflict,任务变更中,不允许操作,409,,
Expand Down Expand Up @@ -116,12 +121,27 @@ backup record invalid",备份记录无效,400,,
,,30123,Decrypt password failed,解密主机密码失败,,,
,,30124,Allocate Resource failed,资源分配失败,,,
,,30125,Recycle Resource failed,资源回收失败,,,
,,30126,connect to host failed,(导入主机前检查)连接主机失败,400,,
,,30127,new connect session to host failed,(导入主机前检查)主机创建session连接失败,500,,
,,30128,run command on host failed,(导入主机前检查)远程主机运行命令失败,500,,
,,30129,host is not expected as import file,主机和导入模板参数不一致,400,,
,,30130,install filebeat on host failed,导入主机安装filebeat失败,400,,
,,30131,extract workflow context failed,(内部)获取上下文失败,,,
,,30126,Connect to host failed,(导入主机前检查)连接主机失败,400,,
,,30127,New connect session to host failed,(导入主机前检查)主机创建session连接失败,500,,
,,30128,Run command on host failed,(导入主机前检查)远程主机运行命令失败,500,,
,,30129,Host is not expected as import file,主机和导入模板参数不一致,400,,
,,30130,Install filebeat on host failed,导入主机安装filebeat失败,400,,
,,30131,Extract workflow context failed,(内部)获取上下文失败,,,
,,30132,Uninstall filebeat on host failed,删除主机时卸载filebeat失败,400,删除一个Fail状态的主机请带上force=true,因为Fail状态的主机一般是还没部署filebeat,
,,30133,Prepare host before verify failed,初始化主机失败,500,,
,,30134,Invalid vendor,无效的厂商ID(暂时没有用到),400,"通过xlsx导入的主机Vendor
都为""Local""",
,,30135,Invalid zone info,导入的主机位置信息不合法,400,,
,,30136,check compute resource mismatch,巡检计算资源不一致,500,巡检发现资源侧和集群侧占用的主机cpu/memory不一致,
,,30137,check disk resource mismatch,巡检磁盘信息不一致,500,,
,,30138,init deploy user failed,创建部署用户失败,500,导入主机创建tidb用户失败,
,,30139,init host auth failed,创建免密失败,500,导入主机建立免密失败,
,,30140,update host info failed,更新主机失败,400,更新主机信息的api返回错误,
,,30141,validate disk info failed,校验磁盘信息失败,400,导入主机文件里的disk json或者更新磁盘api的磁盘信息不对,
,,30142,update disk failed,更新磁盘失败,500,,
,,30143,delete disk failed,删除磁盘失败,500,,
,,30144,disk is still in used,磁盘正在使用中,409,删除磁盘时检查到磁盘还在使用中,
,,30145,disk is already existed,磁盘已存在,409,重复增加磁盘(diskName+path作为标识),
,,,,,,,
工作流管理-4xxxx,工作流管理-401xx,40100,workflow create failed,创建工作流失败,500,,
,,40101,workflow query failed,查询工作流列表失败,500,,
Expand Down Expand Up @@ -155,6 +175,18 @@ TiEM平台管理-7xxxx,TiEM升级-701xx,70100,,,,,
,,70601,User is not found,用户不存在,404,给用户管理模块预留,暂时不会出现,
,,70602,Access token has been expired,用户 Token 已经失效,401,,
,,70603,Incorrect username or password,用户名或密码错误,400,,
,,,,,,,
,,70650,"
rbac permission check failed",RBAC权限校验失败,403,,
,,70651,rbac permission add failed,RBAC权限添加失败,500,,
,,70652,rbac permission delete failed,RBAC权限删除失败,500,,
,,70653,rbac permission query failed,RBAC权限查询失败,500,,
,,70654,rbac role create failed,RBAC角色创建失败,500,,
,,70655,rbac role query failed,RBAC角色查询失败,500,,
,,70656,rbac role delete failed,RBAC角色删除失败,500,,
,,70657,rbac role bind user failed,RBAC角色绑定失败,500,,
,,70658,rbac role unbind user failed,RBAC角色解绑失败,500,,
,,,,,,,
集群监控告警日志-8xxxx,集群监控-801xx,80100,dashboard is not found,未找到dashboard,,,
,,80101,TIEM_MONITOR_NOT_FOUND,未找到监控页面,,,
,集群告警-802xx,,,,,,
Expand Down
1 change: 1 addition & 0 deletions src/api/model/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ task:
bizType:
cluster: Cluster
host: Host
checkReport: Inspection Report
operator:
system: System Automation
knowledge:
Expand Down
1 change: 1 addition & 0 deletions src/api/model/translations/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ task:
bizType:
cluster: 集群
host: 主机
checkReport: 巡检报告
operator:
system: 系统自动
knowledge:
Expand Down
2 changes: 2 additions & 0 deletions src/api/task/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ name:
SwitchoverNormal: Master-Standby Cluster Switchover
SwitchoverForce: Master-Standby Cluster Forced Switchover
SwitchoverForceWithMasterUnavailable: Master-Standby Cluster Forced Switchover
CheckPlatform: Platform Inspection
CheckCluster: Cluster Inspection
2 changes: 2 additions & 0 deletions src/api/task/translations/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ name:
SwitchoverNormal: 切换主备集群
SwitchoverForce: 强制切换主备集群
SwitchoverForceWithMasterUnavailable: 强制切换主备集群
CheckPlatform: 平台巡检
CheckCluster: 集群巡检
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default defineConfig(({ mode }) => {
vitePluginHtml({
inject: {
injectData: {
title: env.VITE_TITLE || 'TiCP Demo',
description: env.VITE_DESCRIPTION || 'Just a demo now.',
title: env.VITE_TITLE || 'TiEM',
description: env.VITE_DESCRIPTION || 'TiDB Enterprise Manager',
},
},
minify: true,
Expand Down

0 comments on commit 12c727f

Please sign in to comment.