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}}
&&
/&
连接,如果遇到 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 @@