From 5d18063dd798ccf33320f5f6a21304a035905d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ckris=E2=80=9D?= <“x@hi.sy”> Date: Thu, 28 Apr 2022 17:35:11 +0200 Subject: [PATCH 1/4] First Commit --- resource/l10n/zh-CN.toml | 2 ++ resource/template/common/menu.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resource/l10n/zh-CN.toml b/resource/l10n/zh-CN.toml index b387822..a0ab280 100644 --- a/resource/l10n/zh-CN.toml +++ b/resource/l10n/zh-CN.toml @@ -1,2 +1,4 @@ [nezhaMonitor] other = "哪吒监控" +[Server] +other = "主机" \ No newline at end of file diff --git a/resource/template/common/menu.html b/resource/template/common/menu.html index bd5bb4f..2d8be82 100644 --- a/resource/template/common/menu.html +++ b/resource/template/common/menu.html @@ -5,7 +5,7 @@ {{if .IsAdminPage}} - 主机 + {{tr "Server"}} 服务 任务 报警 From 4dad15150c25f15620264b484a594343eea0ba64 Mon Sep 17 00:00:00 2001 From: Kris <“x@hi.sy”> Date: Thu, 28 Apr 2022 18:13:32 +0200 Subject: [PATCH 2/4] modified: resource/l10n/zh-CN.toml modified: resource/template/common/menu.html --- resource/l10n/zh-CN.toml | 20 +++++++++++++++++++- resource/template/common/menu.html | 20 ++++++++++---------- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/resource/l10n/zh-CN.toml b/resource/l10n/zh-CN.toml index a0ab280..c50ef5b 100644 --- a/resource/l10n/zh-CN.toml +++ b/resource/l10n/zh-CN.toml @@ -1,4 +1,22 @@ [nezhaMonitor] other = "哪吒监控" [Server] -other = "主机" \ No newline at end of file +other = "主机" +[Services] +other = "服务" +[Task] +other = "任务" +[Notification] +other = "报警" +[Settings] +other = "设置" +[Home] +other = "首页" +[Backtohomepage] +other = "返回前台" +[AdminPanel] +other = "管理后台" +[Logout] +other = "注销登录" +[Login] +other = "登录" \ No newline at end of file diff --git a/resource/template/common/menu.html b/resource/template/common/menu.html index 2d8be82..d70530d 100644 --- a/resource/template/common/menu.html +++ b/resource/template/common/menu.html @@ -6,15 +6,15 @@ {{if .IsAdminPage}} {{tr "Server"}} - 服务 - 任务 - 报警 + {{tr "Services"}} + {{tr "Task"}} + {{tr "Notification"}} - 设置 + {{tr "Settings"}} {{else}} - 首页 - 服务 + {{tr "Home"}} + {{tr "Services"}} {{end}}
From 0e9dfc0c7e443d1fd9d48451f230d0459dc695cc Mon Sep 17 00:00:00 2001 From: Kris <“x@hi.sy”> Date: Fri, 29 Apr 2022 04:52:26 +0200 Subject: [PATCH 3/4] modified: resource/l10n/zh-CN.toml modified: resource/template/common/menu.html modified: resource/template/component/confirm.html modified: resource/template/component/cron.html modified: resource/template/component/monitor.html modified: resource/template/component/notification.html modified: resource/template/component/rule.html modified: resource/template/component/server.html modified: resource/template/dashboard/cron.html modified: resource/template/dashboard/error.html modified: resource/template/dashboard/login.html modified: resource/template/dashboard/monitor.html modified: resource/template/dashboard/notification.html modified: resource/template/dashboard/server.html modified: resource/template/dashboard/setting.html modified: resource/template/dashboard/terminal.html --- resource/l10n/zh-CN.toml | 201 +++++++++++++++++- resource/template/common/menu.html | 4 +- resource/template/component/confirm.html | 4 +- resource/template/component/cron.html | 38 ++-- resource/template/component/monitor.html | 39 ++-- resource/template/component/notification.html | 18 +- resource/template/component/rule.html | 14 +- resource/template/component/server.html | 26 +-- resource/template/dashboard/cron.html | 26 +-- resource/template/dashboard/error.html | 2 +- resource/template/dashboard/login.html | 6 +- resource/template/dashboard/monitor.html | 30 +-- resource/template/dashboard/notification.html | 26 +-- resource/template/dashboard/server.html | 36 ++-- resource/template/dashboard/setting.html | 36 ++-- resource/template/dashboard/terminal.html | 4 +- 16 files changed, 351 insertions(+), 159 deletions(-) diff --git a/resource/l10n/zh-CN.toml b/resource/l10n/zh-CN.toml index c50ef5b..54e71cb 100644 --- a/resource/l10n/zh-CN.toml +++ b/resource/l10n/zh-CN.toml @@ -12,11 +12,208 @@ other = "报警" other = "设置" [Home] other = "首页" -[Backtohomepage] +[BackToHomepage] other = "返回前台" [AdminPanel] other = "管理后台" [Logout] other = "注销登录" [Login] -other = "登录" \ No newline at end of file +other = "登录" +[ConfirmLogout] +other = "确认注销?" +[AfterLoggingOutYouHaveToLoginAgain] +other = "注销后您必须重新登录才能使用" +[Cancel] +other = "取消" +[Confirm] +other = "确认" +[AddScheduledTasks] +other = "添加计划任务" +[Name] +other = "名称" +[Scheduler] +other = "计划" +[BackUp] +other = "备份" +[3amDaily] +other = "(每天3点)" +[Command] +other = "命令" +[Coverage] +other = "覆盖范围" +[IgnoreAllAndExecuteOnlyThroughSpecificServers] +other = "忽略所有,仅通过特定服务器执行" +[AllIncludedOnlySpecificServersAreNotExecuted] +other = "覆盖所有,仅特定服务器不执行" +[SpecificServers] +other = "特定服务器" +[EnterIdAndNameToSearch] +other = "输入ID/名称以搜索" +[NotificationMethod] +other = "通知方式组" +[PushSuccessMessages] +other = "推送成功的消息" +[TheFormaOfTheScheduleIs] +other = "计划的格式为:" +[SecondsMinutesHoursDaysMonthsWeeksSeeDetails] +other = "秒 分 时 天 月 星期,详情见" +[ScheduleExpressionFormat] +other = "计划表达式格式" +[IntroductionOfCommands] +other = "命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用&&
/&
连接,如果遇到 xxx 命令找不到,可能是PATH
环境变量的问题,Linux
主机在命令开头加入source ~/.bashrc
或者使用绝对路径执行。"
+[AddMonitor]
+other = "添加监控"
+[Blog]
+other = "博客"
+[Target]
+other = "目标"
+[Type]
+other = "类型"
+[SslExpirationOrChange]
+other = "(SSL到期、变更)"
+[Duration]
+other = "请求间隔"
+[Seconds]
+other = "秒"
+[EnableFailureNotification]
+other = "启用故障通知"
+[IntroductionOfMonitor]
+other = """
+类型为 HTTP-GET 时输入URL(带 http/https, HTTPS协议的会顺带监控SSL证书);
+类型为 ICMP-Ping 时输入主机名/IP,不带端口;
+类型为 TCP-Ping 时输入主机名/IP + 端口号:example.com:22"""
+[AddNotificationMethod]
+other = "添加通知方式"
+[Tag]
+other = "分组"
+[DoNotSendTestMessages]
+other = "不发送测试信息"
+[RequestMethod]
+other = "请求方式"
+[RequestType]
+other = "请求类型"
+[VerifySSL]
+other = "验证SSL"
+[AddNotificationRule]
+other = "添加报警规则"
+[Rules]
+other = "规则"
+[NotificationMethod]
+other = "通知方式组"
+[Enable]
+other = "启用"
+[AddServer]
+other = "添加服务器"
+[ServerGroup]
+other = "服务器分组"
+[EinsteinLightspeed1]
+other = "爱因斯坦-光速1号"
+[DisplayIndex]
+other = "排序"
+[TheLargerTheNumberTheHigherThePriority]
+other = "越大越靠前"
+[Secret]
+other = "密钥"
+[Note]
+other = "备注"
+[LinuxOneKeyInstall]
+other = "Linux 一键安装"
+[NoDomainAlert]
+other = "请先在设置页面配置 未接入CDN的面板服务器域名/IP"
+[PushSuccessfully]
+other = "成功推送"
+[LastExecution]
+other = "最后执行"
+[LastResult]
+other = "最后结果"
+[Administration]
+other = "管理"
+[CoverAll]
+other = "覆盖所有"
+[IgnoreAll]
+other = "忽略所有"
+[DeleteScheduledTask]
+other = "删除计划任务"
+[ConfirmToDeleteThisScheduledTask]
+other = "确认删除此计划任务?"
+[AccessDenied]
+other = "访问受限"
+[Use]
+other = "使用"
+[AccountToLogin]
+other = "账号登录"
+[SignUp]
+other = "注册"
+[DontHaveAnAccount]
+other = "没有账号?"
+[SSLCertificate]
+other = "HTTP(S)/SSL证书"
+[TCPPort]
+other = "TCP 端口"
+[DeleteService]
+other = "删除服务"
+[ConfirmToDeleteThisService]
+other = "确认删除此服务?"
+[DeleteNotificationMethod]
+other = "删除通知方式"
+[ConfirmToDeleteThisNotificationMethod]
+other = "确认删除此通知方式?"
+[ForceUpdate]
+other = "强制更新"
+[SelectAll]
+other = "全选"
+[VersionNumber]
+other = "版本号"
+[OneKeyInstall]
+other = "一键安装"
+[ClickToCopyTheInstallationCommand]
+other = "点击复制安装命令"
+[NotSupportedYet]
+other = "尚未支持,请下载release手动安装"
+[DeleteServer]
+other = "删除主机"
+[ConfirmToDeleteThisServer]
+other = "确认删除此主机?"
+[NoServerSelected]
+other = "当前没有选中的服务器"
+[ExecutionResults]
+other = "执行结果"
+[SiteTitle]
+other = "站点标题"
+[AdministratorList]
+other = "管理员列表"
+[Theme]
+other = "主题"
+[DefaultTheme]
+other = "默认主题"
+[CustomCodes]
+other = "自定义代码(style、script 都可以)"
+[AccessPassword]
+other = "前台查看密码"
+[PanelServerDomainAndIP]
+other = "未接入CDN的面板服务器域名/IP"
+[IPChangeAlert]
+other = "IP 变更提醒"
+[AllIncludedOnlySpecificServersAreNotAlerted]
+other = "覆盖所有,仅特定服务器不提醒"
+[IgnoreAllOnlyAlertSpecificServers]
+other = "忽略所有,仅提醒特定服务器"
+[IgnoreAllRequestOnlyThroughSpecificServers]
+other = "忽略所有,仅通过特定服务器请求"
+[AllIncludedOnlySpecificServersAreNotRequest]
+other = "覆盖所有,仅特定服务器不请求"
+[ServerIDSeparatedByCommas]
+other = "服务器ID 以逗号隔开"
+[IPChangeNotificationTag]
+other = "提醒发送至指定的通知分组"
+[NotificationMessagesDoNotHideIP]
+other = "通知信息IP不打码"
+[Save]
+other = "保存"
+[ModifiedSuccessfully]
+other = "修改成功"
+[TerminalConnectionTimeOutOrSessionEnded]
+other = "Terminal 连接超时或会话已结束"
+[TerminalConnectionFailed]
+other = "Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况"
\ No newline at end of file
diff --git a/resource/template/common/menu.html b/resource/template/common/menu.html
index d70530d..e6c5fdc 100644
--- a/resource/template/common/menu.html
+++ b/resource/template/common/menu.html
@@ -27,14 +27,14 @@
diff --git a/resource/template/component/confirm.html b/resource/template/component/confirm.html
index 3db8b45..9cdbfa1 100644
--- a/resource/template/component/confirm.html
+++ b/resource/template/component/confirm.html
@@ -4,8 +4,8 @@