Merge pull request #175 from hhhkkk520/master [skip ci]
提取全部主题文本到 zh-CN.toml Co-authored-by: hhhkkk520 <52115472+hhhkkk520@users.noreply.github.com>
This commit is contained in:
		
						commit
						d5ee1ca4ff
					
				
							
								
								
									
										238
									
								
								resource/l10n/zh-CN.toml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										238
									
								
								resource/l10n/zh-CN.toml
									
									
									
									
										vendored
									
									
								
							@ -1,217 +1,455 @@
 | 
				
			|||||||
[nezhaMonitor]
 | 
					[nezhaMonitor]
 | 
				
			||||||
other = "哪吒监控"
 | 
					other = "哪吒监控"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Server]
 | 
					[Server]
 | 
				
			||||||
other = "主机"
 | 
					other = "主机"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Services]
 | 
					[Services]
 | 
				
			||||||
other = "服务"
 | 
					other = "服务"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Task]
 | 
					[Task]
 | 
				
			||||||
other = "任务"
 | 
					other = "任务"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Notification]
 | 
					[Notification]
 | 
				
			||||||
other = "报警"
 | 
					other = "报警"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Settings]
 | 
					[Settings]
 | 
				
			||||||
other = "设置"
 | 
					other = "设置"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Home]
 | 
					[Home]
 | 
				
			||||||
other = "首页"
 | 
					other = "首页"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[BackToHomepage]
 | 
					[BackToHomepage]
 | 
				
			||||||
other = "返回前台"
 | 
					other = "返回前台"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AdminPanel]
 | 
					[AdminPanel]
 | 
				
			||||||
other = "管理后台"
 | 
					other = "管理后台"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Logout]
 | 
					[Logout]
 | 
				
			||||||
other = "注销登录"
 | 
					other = "注销登录"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Login]
 | 
					[Login]
 | 
				
			||||||
other = "登录"
 | 
					other = "登录"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ConfirmLogout]
 | 
					[ConfirmLogout]
 | 
				
			||||||
other = "确认注销?"
 | 
					other = "确认注销?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AfterLoggingOutYouHaveToLoginAgain]
 | 
					[AfterLoggingOutYouHaveToLoginAgain]
 | 
				
			||||||
other = "注销后您必须重新登录才能使用"
 | 
					other = "注销后您必须重新登录才能使用"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Cancel]
 | 
					[Cancel]
 | 
				
			||||||
other = "取消"
 | 
					other = "取消"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Confirm]
 | 
					[Confirm]
 | 
				
			||||||
other = "确认"
 | 
					other = "确认"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AddScheduledTasks]
 | 
					[AddScheduledTasks]
 | 
				
			||||||
other = "添加计划任务"
 | 
					other = "添加计划任务"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Name]
 | 
					[Name]
 | 
				
			||||||
other = "名称"
 | 
					other = "名称"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Scheduler]
 | 
					[Scheduler]
 | 
				
			||||||
other = "计划"
 | 
					other = "计划"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[BackUp]
 | 
					[BackUp]
 | 
				
			||||||
other = "备份"
 | 
					other = "备份"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[3amDaily]
 | 
					[3amDaily]
 | 
				
			||||||
other = "(每天3点)"
 | 
					other = "(每天3点)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Command]
 | 
					[Command]
 | 
				
			||||||
other = "命令"
 | 
					other = "命令"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Coverage]
 | 
					[Coverage]
 | 
				
			||||||
other = "覆盖范围"
 | 
					other = "覆盖范围"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IgnoreAllAndExecuteOnlyThroughSpecificServers]
 | 
					[IgnoreAllAndExecuteOnlyThroughSpecificServers]
 | 
				
			||||||
other = "忽略所有,仅通过特定服务器执行"
 | 
					other = "忽略所有,仅通过特定服务器执行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AllIncludedOnlySpecificServersAreNotExecuted]
 | 
					[AllIncludedOnlySpecificServersAreNotExecuted]
 | 
				
			||||||
other = "覆盖所有,仅特定服务器不执行"
 | 
					other = "覆盖所有,仅特定服务器不执行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SpecificServers]
 | 
					[SpecificServers]
 | 
				
			||||||
other = "特定服务器"
 | 
					other = "特定服务器"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[EnterIdAndNameToSearch]
 | 
					[EnterIdAndNameToSearch]
 | 
				
			||||||
other = "输入ID/名称以搜索"
 | 
					other = "输入ID/名称以搜索"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[NotificationMethod]
 | 
					[NotificationMethod]
 | 
				
			||||||
other = "通知方式组"
 | 
					other = "通知方式组"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[PushSuccessMessages]
 | 
					[PushSuccessMessages]
 | 
				
			||||||
other = "推送成功的消息"
 | 
					other = "推送成功的消息"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TheFormaOfTheScheduleIs]
 | 
					[TheFormaOfTheScheduleIs]
 | 
				
			||||||
other = "计划的格式为:"
 | 
					other = "计划的格式为:"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SecondsMinutesHoursDaysMonthsWeeksSeeDetails]
 | 
					[SecondsMinutesHoursDaysMonthsWeeksSeeDetails]
 | 
				
			||||||
other = "秒 分 时 天 月 星期,详情见"
 | 
					other = "秒 分 时 天 月 星期,详情见"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ScheduleExpressionFormat]
 | 
					[ScheduleExpressionFormat]
 | 
				
			||||||
other = "计划表达式格式"
 | 
					other = "计划表达式格式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IntroductionOfCommands]
 | 
					[IntroductionOfCommands]
 | 
				
			||||||
other = "命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是<code>PATH</code> 环境变量的问题,<code>Linux</code> 主机在命令开头加入<code>source ~/.bashrc</code>或者使用绝对路径执行。"
 | 
					other = "命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是<code>PATH</code> 环境变量的问题,<code>Linux</code> 主机在命令开头加入<code>source ~/.bashrc</code>或者使用绝对路径执行。"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AddMonitor]
 | 
					[AddMonitor]
 | 
				
			||||||
other = "添加监控"
 | 
					other = "添加监控"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Blog]
 | 
					[Blog]
 | 
				
			||||||
other = "博客"
 | 
					other = "博客"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Target]
 | 
					[Target]
 | 
				
			||||||
other = "目标"
 | 
					other = "目标"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Type]
 | 
					[Type]
 | 
				
			||||||
other = "类型"
 | 
					other = "类型"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SslExpirationOrChange]
 | 
					[SslExpirationOrChange]
 | 
				
			||||||
other = "(SSL到期、变更)"
 | 
					other = "(SSL到期、变更)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Duration]
 | 
					[Duration]
 | 
				
			||||||
other = "请求间隔"
 | 
					other = "请求间隔"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Seconds]
 | 
					[Seconds]
 | 
				
			||||||
other = "秒"
 | 
					other = "秒"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[EnableFailureNotification]
 | 
					[EnableFailureNotification]
 | 
				
			||||||
other = "启用故障通知"
 | 
					other = "启用故障通知"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IntroductionOfMonitor]
 | 
					[IntroductionOfMonitor]
 | 
				
			||||||
other = """
 | 
					other = """
 | 
				
			||||||
类型为 <b>HTTP-GET</b> 时输入URL(带 http/https, HTTPS协议的会顺带监控SSL证书);<br>
 | 
					类型为 <b>HTTP-GET</b> 时输入URL(带 http/https, HTTPS协议的会顺带监控SSL证书);<br>
 | 
				
			||||||
类型为 <b>ICMP-Ping</b> 时输入主机名/IP,不带端口;<br>
 | 
					类型为 <b>ICMP-Ping</b> 时输入主机名/IP,不带端口;<br>
 | 
				
			||||||
类型为 <b>TCP-Ping</b> 时输入主机名/IP + 端口号:example.com:22"""
 | 
					类型为 <b>TCP-Ping</b> 时输入主机名/IP + 端口号:example.com:22"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AddNotificationMethod]
 | 
					[AddNotificationMethod]
 | 
				
			||||||
other = "添加通知方式"
 | 
					other = "添加通知方式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Tag]
 | 
					[Tag]
 | 
				
			||||||
other = "分组"
 | 
					other = "分组"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DoNotSendTestMessages]
 | 
					[DoNotSendTestMessages]
 | 
				
			||||||
other = "不发送测试信息"
 | 
					other = "不发送测试信息"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[RequestMethod]
 | 
					[RequestMethod]
 | 
				
			||||||
other = "请求方式"
 | 
					other = "请求方式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[RequestType]
 | 
					[RequestType]
 | 
				
			||||||
other = "请求类型"
 | 
					other = "请求类型"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[VerifySSL]
 | 
					[VerifySSL]
 | 
				
			||||||
other = "验证SSL"
 | 
					other = "验证SSL"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AddNotificationRule]
 | 
					[AddNotificationRule]
 | 
				
			||||||
other = "添加报警规则"
 | 
					other = "添加报警规则"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Rules]
 | 
					[Rules]
 | 
				
			||||||
other = "规则"
 | 
					other = "规则"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Enable]
 | 
					[Enable]
 | 
				
			||||||
other = "启用"
 | 
					other = "启用"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AddServer]
 | 
					[AddServer]
 | 
				
			||||||
other = "添加服务器"
 | 
					other = "添加服务器"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ServerGroup]
 | 
					[ServerGroup]
 | 
				
			||||||
other = "服务器分组"
 | 
					other = "服务器分组"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[EinsteinLightspeed1]
 | 
					[EinsteinLightspeed1]
 | 
				
			||||||
other = "爱因斯坦-光速1号"
 | 
					other = "爱因斯坦-光速1号"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DisplayIndex]
 | 
					[DisplayIndex]
 | 
				
			||||||
other = "排序"
 | 
					other = "排序"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TheLargerTheNumberTheHigherThePriority]
 | 
					[TheLargerTheNumberTheHigherThePriority]
 | 
				
			||||||
other = "越大越靠前"
 | 
					other = "越大越靠前"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Secret]
 | 
					[Secret]
 | 
				
			||||||
other = "密钥"
 | 
					other = "密钥"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Note]
 | 
					[Note]
 | 
				
			||||||
other = "备注"
 | 
					other = "备注"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[LinuxOneKeyInstall]
 | 
					[LinuxOneKeyInstall]
 | 
				
			||||||
other = "Linux 一键安装"
 | 
					other = "Linux 一键安装"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[NoDomainAlert]
 | 
					[NoDomainAlert]
 | 
				
			||||||
other = "请先在设置页面配置 未接入CDN的面板服务器域名/IP"
 | 
					other = "请先在设置页面配置 未接入CDN的面板服务器域名/IP"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[PushSuccessfully]
 | 
					[PushSuccessfully]
 | 
				
			||||||
other = "成功推送"
 | 
					other = "成功推送"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[LastExecution]
 | 
					[LastExecution]
 | 
				
			||||||
other = "最后执行"
 | 
					other = "最后执行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[LastResult]
 | 
					[LastResult]
 | 
				
			||||||
other = "最后结果"
 | 
					other = "最后结果"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Administration]
 | 
					[Administration]
 | 
				
			||||||
other = "管理"
 | 
					other = "管理"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[CoverAll]
 | 
					[CoverAll]
 | 
				
			||||||
other = "覆盖所有"
 | 
					other = "覆盖所有"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IgnoreAll]
 | 
					[IgnoreAll]
 | 
				
			||||||
other = "忽略所有"
 | 
					other = "忽略所有"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DeleteScheduledTask]
 | 
					[DeleteScheduledTask]
 | 
				
			||||||
other = "删除计划任务"
 | 
					other = "删除计划任务"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ConfirmToDeleteThisScheduledTask]
 | 
					[ConfirmToDeleteThisScheduledTask]
 | 
				
			||||||
other = "确认删除此计划任务?"
 | 
					other = "确认删除此计划任务?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AccessDenied]
 | 
					[AccessDenied]
 | 
				
			||||||
other = "访问受限"
 | 
					other = "访问受限"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Use]
 | 
					[Use]
 | 
				
			||||||
other = "使用"
 | 
					other = "使用"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AccountToLogin]
 | 
					[AccountToLogin]
 | 
				
			||||||
other = "账号登录"
 | 
					other = "账号登录"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SignUp]
 | 
					[SignUp]
 | 
				
			||||||
other = "注册"
 | 
					other = "注册"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DontHaveAnAccount]
 | 
					[DontHaveAnAccount]
 | 
				
			||||||
other = "没有账号?"
 | 
					other = "没有账号?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SSLCertificate]
 | 
					[SSLCertificate]
 | 
				
			||||||
other = "HTTP(S)/SSL证书"
 | 
					other = "HTTP(S)/SSL证书"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TCPPort]
 | 
					[TCPPort]
 | 
				
			||||||
other = "TCP 端口"
 | 
					other = "TCP 端口"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DeleteService]
 | 
					[DeleteService]
 | 
				
			||||||
other = "删除服务"
 | 
					other = "删除服务"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ConfirmToDeleteThisService]
 | 
					[ConfirmToDeleteThisService]
 | 
				
			||||||
other = "确认删除此服务?"
 | 
					other = "确认删除此服务?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DeleteNotificationMethod]
 | 
					[DeleteNotificationMethod]
 | 
				
			||||||
other = "删除通知方式"
 | 
					other = "删除通知方式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ConfirmToDeleteThisNotificationMethod]
 | 
					[ConfirmToDeleteThisNotificationMethod]
 | 
				
			||||||
other = "确认删除此通知方式?"
 | 
					other = "确认删除此通知方式?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ForceUpdate]
 | 
					[ForceUpdate]
 | 
				
			||||||
other = "强制更新"
 | 
					other = "强制更新"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SelectAll]
 | 
					[SelectAll]
 | 
				
			||||||
other = "全选"
 | 
					other = "全选"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[VersionNumber]
 | 
					[VersionNumber]
 | 
				
			||||||
other = "版本号"
 | 
					other = "版本号"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[OneKeyInstall]
 | 
					[OneKeyInstall]
 | 
				
			||||||
other = "一键安装"
 | 
					other = "一键安装"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ClickToCopyTheInstallationCommand]
 | 
					[ClickToCopyTheInstallationCommand]
 | 
				
			||||||
other = "点击复制安装命令"
 | 
					other = "点击复制安装命令"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[NotSupportedYet]
 | 
					[NotSupportedYet]
 | 
				
			||||||
other = "尚未支持,请下载release手动安装"
 | 
					other = "尚未支持,请下载release手动安装"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DeleteServer]
 | 
					[DeleteServer]
 | 
				
			||||||
other = "删除主机"
 | 
					other = "删除主机"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ConfirmToDeleteThisServer]
 | 
					[ConfirmToDeleteThisServer]
 | 
				
			||||||
other = "确认删除此主机?"
 | 
					other = "确认删除此主机?"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[NoServerSelected]
 | 
					[NoServerSelected]
 | 
				
			||||||
other = "当前没有选中的服务器"
 | 
					other = "当前没有选中的服务器"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ExecutionResults]
 | 
					[ExecutionResults]
 | 
				
			||||||
other = "执行结果"
 | 
					other = "执行结果"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[SiteTitle]
 | 
					[SiteTitle]
 | 
				
			||||||
other = "站点标题"
 | 
					other = "站点标题"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AdministratorList]
 | 
					[AdministratorList]
 | 
				
			||||||
other = "管理员列表"
 | 
					other = "管理员列表"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Theme]
 | 
					[Theme]
 | 
				
			||||||
other = "主题"
 | 
					other = "主题"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[DefaultTheme]
 | 
					[DefaultTheme]
 | 
				
			||||||
other = "默认主题"
 | 
					other = "默认主题"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[CustomCodes]
 | 
					[CustomCodes]
 | 
				
			||||||
other = "自定义代码(style、script 都可以)"
 | 
					other = "自定义代码(style、script 都可以)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AccessPassword]
 | 
					[AccessPassword]
 | 
				
			||||||
other = "前台查看密码"
 | 
					other = "前台查看密码"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[PanelServerDomainAndIP]
 | 
					[PanelServerDomainAndIP]
 | 
				
			||||||
other = "未接入CDN的面板服务器域名/IP"
 | 
					other = "未接入CDN的面板服务器域名/IP"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IPChangeAlert]
 | 
					[IPChangeAlert]
 | 
				
			||||||
other = "IP 变更提醒"
 | 
					other = "IP 变更提醒"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AllIncludedOnlySpecificServersAreNotAlerted]
 | 
					[AllIncludedOnlySpecificServersAreNotAlerted]
 | 
				
			||||||
other = "覆盖所有,仅特定服务器不提醒"
 | 
					other = "覆盖所有,仅特定服务器不提醒"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IgnoreAllOnlyAlertSpecificServers]
 | 
					[IgnoreAllOnlyAlertSpecificServers]
 | 
				
			||||||
other = "忽略所有,仅提醒特定服务器"
 | 
					other = "忽略所有,仅提醒特定服务器"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IgnoreAllRequestOnlyThroughSpecificServers]
 | 
					[IgnoreAllRequestOnlyThroughSpecificServers]
 | 
				
			||||||
other = "忽略所有,仅通过特定服务器请求"
 | 
					other = "忽略所有,仅通过特定服务器请求"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[AllIncludedOnlySpecificServersAreNotRequest]
 | 
					[AllIncludedOnlySpecificServersAreNotRequest]
 | 
				
			||||||
other = "覆盖所有,仅特定服务器不请求"
 | 
					other = "覆盖所有,仅特定服务器不请求"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ServerIDSeparatedByCommas]
 | 
					[ServerIDSeparatedByCommas]
 | 
				
			||||||
other = "服务器ID 以逗号隔开"
 | 
					other = "服务器ID 以逗号隔开"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[IPChangeNotificationTag]
 | 
					[IPChangeNotificationTag]
 | 
				
			||||||
other = "提醒发送至指定的通知分组"
 | 
					other = "提醒发送至指定的通知分组"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[NotificationMessagesDoNotHideIP]
 | 
					[NotificationMessagesDoNotHideIP]
 | 
				
			||||||
other = "通知信息IP不打码"
 | 
					other = "通知信息IP不打码"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Save]
 | 
					[Save]
 | 
				
			||||||
other = "保存"
 | 
					other = "保存"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ModifiedSuccessfully]
 | 
					[ModifiedSuccessfully]
 | 
				
			||||||
other = "修改成功"
 | 
					other = "修改成功"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TerminalConnectionTimeOutOrSessionEnded]
 | 
					[TerminalConnectionTimeOutOrSessionEnded]
 | 
				
			||||||
other = "Terminal 连接超时或会话已结束"
 | 
					other = "Terminal 连接超时或会话已结束"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[TerminalConnectionFailed]
 | 
					[TerminalConnectionFailed]
 | 
				
			||||||
other = "Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况"
 | 
					other = "Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Default]
 | 
				
			||||||
 | 
					other = "默认"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Offline]
 | 
				
			||||||
 | 
					other = "已离线"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Platform]
 | 
				
			||||||
 | 
					other = "系统"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[DiskUsed]
 | 
				
			||||||
 | 
					other = "硬盘"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[MemUsed]
 | 
				
			||||||
 | 
					other = "内存"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[SwapUsed]
 | 
				
			||||||
 | 
					other = "交换"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[NetTransfer]
 | 
				
			||||||
 | 
					other = "流量"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Load]
 | 
				
			||||||
 | 
					other = "负载"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ProcessCount]
 | 
				
			||||||
 | 
					other = "进程数"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ConnCount]
 | 
				
			||||||
 | 
					other = "连接数"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[BootTime]
 | 
				
			||||||
 | 
					other = "启动"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[LastActive]
 | 
				
			||||||
 | 
					other = "活动"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Version]
 | 
				
			||||||
 | 
					other = "版本"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[NetSpeed]
 | 
				
			||||||
 | 
					other = "网络"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Uptime]
 | 
				
			||||||
 | 
					other = "在线"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ServerIsOffline]
 | 
				
			||||||
 | 
					other = "节点已离线"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Day]
 | 
				
			||||||
 | 
					other = "天"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[RealtimeChannelEstablished]
 | 
				
			||||||
 | 
					other = "实时通道建立"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[GetTheLatestMonitoringDataInRealTime]
 | 
				
			||||||
 | 
					other = "可以实时获取最新监控数据啦"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[RealtimeChannelDisconnect]
 | 
				
			||||||
 | 
					other = "实时通道断开"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[CanNotGetTheLatestMonitoringDataInRealTime]
 | 
				
			||||||
 | 
					other = "无法实时获取最新监控数据咯"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[30DaysOnline]
 | 
				
			||||||
 | 
					other = "30天在线率"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Details]
 | 
				
			||||||
 | 
					other = "详情"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Status]
 | 
				
			||||||
 | 
					other = "状态"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Availability]
 | 
				
			||||||
 | 
					other = "在线率"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[AverageLatency]
 | 
				
			||||||
 | 
					other = "平均延迟"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[CycleTransferStats]
 | 
				
			||||||
 | 
					other = "循环流量统计"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[From]
 | 
				
			||||||
 | 
					other = "自"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[To]
 | 
				
			||||||
 | 
					other = "至"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[NextCheck]
 | 
				
			||||||
 | 
					other = "下次检查"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[CurrentUsage]
 | 
				
			||||||
 | 
					other = "当前用量"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[VerifyPassword]
 | 
				
			||||||
 | 
					other = "验证查看密码"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[LightMode]
 | 
				
			||||||
 | 
					other = "白昼模式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[DarkMode]
 | 
				
			||||||
 | 
					other = "暗黑模式"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[GridLayout]
 | 
				
			||||||
 | 
					other = "网格视图"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ListLayout]
 | 
				
			||||||
 | 
					other = "列表视图"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[EnterPassword]
 | 
				
			||||||
 | 
					other = "输入密码"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Location]
 | 
				
			||||||
 | 
					other = "地区"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Running]
 | 
				
			||||||
 | 
					other = "运行中"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[UpNetTransfer]
 | 
				
			||||||
 | 
					other = "上行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[DownNetTransfer]
 | 
				
			||||||
 | 
					other = "下行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TotalUpNetTransfer]
 | 
				
			||||||
 | 
					other = "总上行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[TotalDownNetTransfer]
 | 
				
			||||||
 | 
					other = "总下行"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[WrongPassword]
 | 
				
			||||||
 | 
					other = "密码错误"
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										28
									
								
								resource/template/theme-daynight/home.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								resource/template/theme-daynight/home.html
									
									
									
									
										vendored
									
									
								
							@ -37,12 +37,12 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <nav class="nav-menu">
 | 
					            <nav class="nav-menu">
 | 
				
			||||||
                <ul>
 | 
					                <ul>
 | 
				
			||||||
                    <li><a href="/">首页</a></li>
 | 
					                    <li><a href="/">{{tr "Home"}}</a></li>
 | 
				
			||||||
                    <li><a href="/service">服务状态</a></li>
 | 
					                    <li><a href="/service">{{tr "Services"}}</a></li>
 | 
				
			||||||
                    {{if .Admin}}
 | 
					                    {{if .Admin}}
 | 
				
			||||||
                    <li><a href="/server">管理后台</a></li>
 | 
					                    <li><a href="/server">{{tr "AdminPanel"}}</a></li>
 | 
				
			||||||
                    {{else}}
 | 
					                    {{else}}
 | 
				
			||||||
                    <li><a href="/login">登录</a></li>
 | 
					                    <li><a href="/login">{{tr "Login"}}</a></li>
 | 
				
			||||||
                    {{end}}
 | 
					                    {{end}}
 | 
				
			||||||
                </ul>
 | 
					                </ul>
 | 
				
			||||||
            </nav>
 | 
					            </nav>
 | 
				
			||||||
@ -111,7 +111,7 @@
 | 
				
			|||||||
                        <li>
 | 
					                        <li>
 | 
				
			||||||
                            <div class="disk-bar">
 | 
					                            <div class="disk-bar">
 | 
				
			||||||
                                <div>
 | 
					                                <div>
 | 
				
			||||||
                                    <h4>硬盘</h4>
 | 
					                                    <h4>{{tr "DiskUsed"}}</h4>
 | 
				
			||||||
                                </div>
 | 
					                                </div>
 | 
				
			||||||
                                <div v-if="server.State"
 | 
					                                <div v-if="server.State"
 | 
				
			||||||
                                    :class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class"
 | 
					                                    :class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class"
 | 
				
			||||||
@ -133,10 +133,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        <div class="sidebar-container">
 | 
					        <div class="sidebar-container">
 | 
				
			||||||
            <ul>
 | 
					            <ul>
 | 
				
			||||||
                <li><i class="fas fa-sun" title="白昼模式"></i><span>白昼模式</span></li>
 | 
					                <li><i class="fas fa-sun" title='{{tr "LightMode"}}'></i><span>{{tr "LightMode"}}</span></li>
 | 
				
			||||||
                <li><i class="fas fa-moon" title="暗黑模式"></i><span>暗黑模式</span></li>
 | 
					                <li><i class="fas fa-moon" title='{{tr "DarkMode"}}'></i><span>{{tr "DarkMode"}}</span></li>
 | 
				
			||||||
                <li><i class="fas fa-th" title="网格视图"></i><span>网格视图</span></li>
 | 
					                <li><i class="fas fa-th" title='{{tr "GridLayout"}}'></i><span>{{tr "GridLayout"}}</span></li>
 | 
				
			||||||
                <li><i class="fas fa-list-ul" title="列表视图"></i><span>列表视图</span></li>
 | 
					                <li><i class="fas fa-list-ul" title='{{tr "ListLayout"}}'></i><span>{{tr "ListLayout"}}</span></li>
 | 
				
			||||||
            </ul>
 | 
					            </ul>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </main>
 | 
					    </main>
 | 
				
			||||||
@ -239,7 +239,7 @@
 | 
				
			|||||||
                secondToDate(s) {
 | 
					                secondToDate(s) {
 | 
				
			||||||
                    var d = Math.floor(s / 3600 / 24);
 | 
					                    var d = Math.floor(s / 3600 / 24);
 | 
				
			||||||
                    if (d > 0) {
 | 
					                    if (d > 0) {
 | 
				
			||||||
                        return d + "天"
 | 
					                        return d + "{{tr "Day"}}"
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    var h = Math.floor(s / 3600 % 24);
 | 
					                    var h = Math.floor(s / 3600 % 24);
 | 
				
			||||||
                    var m = Math.floor(s / 60 % 60);
 | 
					                    var m = Math.floor(s / 60 % 60);
 | 
				
			||||||
@ -261,8 +261,8 @@
 | 
				
			|||||||
            Swal.fire({
 | 
					            Swal.fire({
 | 
				
			||||||
                position: 'top',
 | 
					                position: 'top',
 | 
				
			||||||
                icon: 'success',
 | 
					                icon: 'success',
 | 
				
			||||||
                title: '实时通道建立',
 | 
					                title: '{{tr "RealtimeChannelEstablished"}}',
 | 
				
			||||||
                text: '可以实时获取最新监控数据啦',
 | 
					                text: '{{tr "GetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
                showConfirmButton: false,
 | 
					                showConfirmButton: false,
 | 
				
			||||||
                timer: 2000
 | 
					                timer: 2000
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
@ -288,8 +288,8 @@
 | 
				
			|||||||
            Swal.fire({
 | 
					            Swal.fire({
 | 
				
			||||||
                position: 'top',
 | 
					                position: 'top',
 | 
				
			||||||
                icon: 'error',
 | 
					                icon: 'error',
 | 
				
			||||||
                title: '实时通道断开',
 | 
					                title: '{{tr "RealtimeChannelDisconnect"}}',
 | 
				
			||||||
                text: '无法实时获取最新监控数据咯',
 | 
					                text: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
                showConfirmButton: false,
 | 
					                showConfirmButton: false,
 | 
				
			||||||
                timer: 2000
 | 
					                timer: 2000
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										20
									
								
								resource/template/theme-daynight/service.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								resource/template/theme-daynight/service.html
									
									
									
									
										vendored
									
									
								
							@ -41,12 +41,12 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <nav class="nav-menu">
 | 
					            <nav class="nav-menu">
 | 
				
			||||||
              <ul>
 | 
					              <ul>
 | 
				
			||||||
                <li><a href="/">首页</a></li>
 | 
					                <li><a href="/">{{tr "Home"}}</a></li>
 | 
				
			||||||
                <li><a href="/service">服务状态</a></li>
 | 
					                <li><a href="/service">{{tr "Services"}}</a></li>
 | 
				
			||||||
                {{if .Admin}}
 | 
					                {{if .Admin}}
 | 
				
			||||||
                <li><a href="/server">管理后台</a></li>
 | 
					                <li><a href="/server">{{tr "AdminPanel"}}</a></li>
 | 
				
			||||||
                {{else}}
 | 
					                {{else}}
 | 
				
			||||||
                <li><a href="/login">登录</a></li>
 | 
					                <li><a href="/login">{{tr "Login"}}</a></li>
 | 
				
			||||||
                {{end}}
 | 
					                {{end}}
 | 
				
			||||||
              </ul>
 | 
					              </ul>
 | 
				
			||||||
            </nav>
 | 
					            </nav>
 | 
				
			||||||
@ -55,8 +55,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      <main>
 | 
					      <main>
 | 
				
			||||||
        <section class="monitor-header">
 | 
					        <section class="monitor-header">
 | 
				
			||||||
          <h2>服务状态</h2>
 | 
					          <h2>{{tr "Status"}}</h2>
 | 
				
			||||||
          <h4>最近30天在线率</h4>
 | 
					          <h4>{{tr "30DaysOnline"}}</h4>
 | 
				
			||||||
        </section>
 | 
					        </section>
 | 
				
			||||||
        <section class="monitor-container">
 | 
					        <section class="monitor-container">
 | 
				
			||||||
          {{range $service := .Services}}
 | 
					          {{range $service := .Services}}
 | 
				
			||||||
@ -86,10 +86,10 @@
 | 
				
			|||||||
      
 | 
					      
 | 
				
			||||||
      <div class="sidebar-container">
 | 
					      <div class="sidebar-container">
 | 
				
			||||||
        <ul>
 | 
					        <ul>
 | 
				
			||||||
          <li><i class="fas fa-sun" title="白昼模式"></i><span>白昼模式</span></li>
 | 
					          <li><i class="fas fa-sun" title='{{tr "LightMode"}}'></i><span>{{tr "LightMode"}}</span></li>
 | 
				
			||||||
          <li><i class="fas fa-moon" title="暗黑模式"></i><span>暗黑模式</span></li>
 | 
					          <li><i class="fas fa-moon" title='{{tr "DarkMode"}}'></i><span>{{tr "DarkMode"}}</span></li>
 | 
				
			||||||
          <li><i class="fas fa-th" title="网格视图"></i><span>网格视图</span></li>
 | 
					          <li><i class="fas fa-th" title='{{tr "GridLayout"}}'></i><span>{{tr "GridLayout"}}</span></li>
 | 
				
			||||||
          <li><i class="fas fa-list-ul" title="列表视图"></i><span>列表视图</span></li>
 | 
					          <li><i class="fas fa-list-ul" title='{{tr "ListLayout"}}'></i><span>{{tr "ListLayout"}}</span></li>
 | 
				
			||||||
        </ul>
 | 
					        </ul>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -17,13 +17,13 @@
 | 
				
			|||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <article>
 | 
					    <article>
 | 
				
			||||||
      <section class="passwd-container">
 | 
					      <section class="passwd-container">
 | 
				
			||||||
        <h2>登 录</h2>
 | 
					        <h2>{{tr "Login"}}</h2>
 | 
				
			||||||
        <form action="/view-password" method="POST">
 | 
					        <form action="/view-password" method="POST">
 | 
				
			||||||
          <h4>验证查看密码</h4>
 | 
					          <h4>{{tr "VerifyPassword"}}</h4>
 | 
				
			||||||
          <input type="password" name="Password" placeholder="输入密码  " required /><svg class="passwd-icon" viewBox="97 6 809 988" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
 | 
					          <input type="password" name="Password" placeholder="{{tr "EnterPassword"}}" required /><svg class="passwd-icon" viewBox="97 6 809 988" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
 | 
				
			||||||
            <g><path d="M321.8,455.5h356.4V321.8c0-49.2-17.4-91.2-52.2-126c-34.8-34.8-76.8-52.2-126-52.2c-49.2,0-91.2,17.4-126,52.2c-34.8,34.8-52.2,76.8-52.2,126L321.8,455.5L321.8,455.5z M900.9,522.3v400.9c0,18.6-6.5,34.3-19.5,47.3c-13,13-28.8,19.5-47.3,19.5H165.9c-18.6,0-34.3-6.5-47.3-19.5c-13-13-19.5-28.8-19.5-47.3V522.3c0-18.6,6.5-34.3,19.5-47.3c13-13,28.8-19.5,47.3-19.5h22.3V321.8c0-85.4,30.6-158.7,91.9-219.9C341.3,40.7,414.7,10,500,10c85.3,0,158.7,30.6,219.9,91.9c61.3,61.3,91.9,134.6,91.9,219.9v133.6h22.3c18.6,0,34.3,6.5,47.3,19.5C894.4,488,900.9,503.7,900.9,522.3L900.9,522.3z" /></g>
 | 
					            <g><path d="M321.8,455.5h356.4V321.8c0-49.2-17.4-91.2-52.2-126c-34.8-34.8-76.8-52.2-126-52.2c-49.2,0-91.2,17.4-126,52.2c-34.8,34.8-52.2,76.8-52.2,126L321.8,455.5L321.8,455.5z M900.9,522.3v400.9c0,18.6-6.5,34.3-19.5,47.3c-13,13-28.8,19.5-47.3,19.5H165.9c-18.6,0-34.3-6.5-47.3-19.5c-13-13-19.5-28.8-19.5-47.3V522.3c0-18.6,6.5-34.3,19.5-47.3c13-13,28.8-19.5,47.3-19.5h22.3V321.8c0-85.4,30.6-158.7,91.9-219.9C341.3,40.7,414.7,10,500,10c85.3,0,158.7,30.6,219.9,91.9c61.3,61.3,91.9,134.6,91.9,219.9v133.6h22.3c18.6,0,34.3,6.5,47.3,19.5C894.4,488,900.9,503.7,900.9,522.3L900.9,522.3z" /></g>
 | 
				
			||||||
          </svg>
 | 
					          </svg>
 | 
				
			||||||
          <button type="submit">确认</button>
 | 
					          <button type="submit">{{tr "Confirm"}}</button>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
        <figure class="logo">
 | 
					        <figure class="logo">
 | 
				
			||||||
          <a href="/">
 | 
					          <a href="/">
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										50
									
								
								resource/template/theme-default/home.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								resource/template/theme-default/home.html
									
									
									
									
										vendored
									
									
								
							@ -6,7 +6,7 @@
 | 
				
			|||||||
      <div class="ui styled fluid accordion" v-for="group in groups">
 | 
					      <div class="ui styled fluid accordion" v-for="group in groups">
 | 
				
			||||||
        <div class="active title">
 | 
					        <div class="active title">
 | 
				
			||||||
          <i class="dropdown icon"></i>
 | 
					          <i class="dropdown icon"></i>
 | 
				
			||||||
          @#(group.Tag!==''?group.Tag:'默认')#@
 | 
					          @#(group.Tag!==''?group.Tag:'{{tr "Default"}}')#@
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div class="active content">
 | 
					        <div class="active content">
 | 
				
			||||||
          <div class="ui four stackable status cards">
 | 
					          <div class="ui four stackable status cards">
 | 
				
			||||||
@ -17,26 +17,26 @@
 | 
				
			|||||||
                    class="apple icon"></i><i v-if='server.Host.Platform == "linux"' class="linux icon"></i><i
 | 
					                    class="apple icon"></i><i v-if='server.Host.Platform == "linux"' class="linux icon"></i><i
 | 
				
			||||||
                    v-if='server.Host.Platform == "windows"' class="windows icon"></i><i
 | 
					                    v-if='server.Host.Platform == "windows"' class="windows icon"></i><i
 | 
				
			||||||
                    v-if='server.Host.Platform == "freebsd"' class="freebsd icon"></i>
 | 
					                    v-if='server.Host.Platform == "freebsd"' class="freebsd icon"></i>
 | 
				
			||||||
                  @#server.Name + (server.live?'':'[已离线]')#@
 | 
					                  @#server.Name + (server.live?'':'[{{tr "Offline"}}]')#@
 | 
				
			||||||
                  <i class="nezha-secondary-font info circle icon" style="height: 28px"></i>
 | 
					                  <i class="nezha-secondary-font info circle icon" style="height: 28px"></i>
 | 
				
			||||||
                  <div class="ui content popup" style="margin-bottom: 0">
 | 
					                  <div class="ui content popup" style="margin-bottom: 0">
 | 
				
			||||||
                    系统:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@
 | 
					                    {{tr "Platform"}}:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@
 | 
				
			||||||
                    [<span
 | 
					                    [<span
 | 
				
			||||||
                      v-if="server.Host.Virtualization">@#server.Host.Virtualization#@:</span>@#server.Host.Arch#@]<br />
 | 
					                      v-if="server.Host.Virtualization">@#server.Host.Virtualization#@:</span>@#server.Host.Arch#@]<br />
 | 
				
			||||||
                    CPU:@#server.Host.CPU#@<br />
 | 
					                    CPU:@#server.Host.CPU#@<br />
 | 
				
			||||||
                    硬盘:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br />
 | 
					                    {{tr "DiskUsed"}}:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br />
 | 
				
			||||||
                    内存:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br />
 | 
					                    {{tr "MemUsed"}}:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br />
 | 
				
			||||||
                    交换:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br />
 | 
					                    {{tr "SwapUsed"}}:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br />
 | 
				
			||||||
                    流量:<i
 | 
					                    {{tr "NetTransfer"}}:<i
 | 
				
			||||||
                      class="arrow alternate circle down outline icon"></i>@#formatByteSize(server.State.NetInTransfer)#@<i
 | 
					                      class="arrow alternate circle down outline icon"></i>@#formatByteSize(server.State.NetInTransfer)#@<i
 | 
				
			||||||
                      class="arrow alternate circle up outline icon"></i>@#formatByteSize(server.State.NetOutTransfer)#@<br />
 | 
					                      class="arrow alternate circle up outline icon"></i>@#formatByteSize(server.State.NetOutTransfer)#@<br />
 | 
				
			||||||
                    负载:@# toFixed2(server.State.Load1) #@/@# toFixed2(server.State.Load5) #@/@#
 | 
					                      {{tr "Load"}}:@# toFixed2(server.State.Load1) #@/@# toFixed2(server.State.Load5) #@/@#
 | 
				
			||||||
                    toFixed2(server.State.Load15) #@<br />
 | 
					                    toFixed2(server.State.Load15) #@<br />
 | 
				
			||||||
                    进程数:@# server.State.ProcessCount #@<br />
 | 
					                    {{tr "ProcessCount"}}:@# server.State.ProcessCount #@<br />
 | 
				
			||||||
                    连接数:TCP @# server.State.TcpConnCount #@ / UDP @# server.State.UdpConnCount #@<br />
 | 
					                    {{tr "ConnCount"}}:TCP @# server.State.TcpConnCount #@ / UDP @# server.State.UdpConnCount #@<br />
 | 
				
			||||||
                    启动:@# formatTimestamp(server.Host.BootTime) #@<br />
 | 
					                    {{tr "BootTime"}}:@# formatTimestamp(server.Host.BootTime) #@<br />
 | 
				
			||||||
                    活动:@# new Date(server.LastActive).toLocaleString() #@<br />
 | 
					                    {{tr "LastActive"}}:@# new Date(server.LastActive).toLocaleString() #@<br />
 | 
				
			||||||
                    版本:@#server.Host.Version#@<br />
 | 
					                    {{tr "Version"}}:@#server.Host.Version#@<br />
 | 
				
			||||||
                  </div>
 | 
					                  </div>
 | 
				
			||||||
                  <div class="ui divider" style="margin-bottom: 5px"></div>
 | 
					                  <div class="ui divider" style="margin-bottom: 5px"></div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
@ -50,7 +50,7 @@
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="three wide column">内存</div>
 | 
					                    <div class="three wide column">{{tr "MemUsed"}}</div>
 | 
				
			||||||
                    <div class="thirteen wide column">
 | 
					                    <div class="thirteen wide column">
 | 
				
			||||||
                      <div :class="formatPercent(server.live,server.State.MemUsed, server.Host.MemTotal).class">
 | 
					                      <div :class="formatPercent(server.live,server.State.MemUsed, server.Host.MemTotal).class">
 | 
				
			||||||
                        <div class="bar"
 | 
					                        <div class="bar"
 | 
				
			||||||
@ -59,7 +59,7 @@
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="three wide column">交换</div>
 | 
					                    <div class="three wide column">{{tr "SwapUsed"}}</div>
 | 
				
			||||||
                    <div class="thirteen wide column">
 | 
					                    <div class="thirteen wide column">
 | 
				
			||||||
                      <div :class="formatPercent(server.live,server.State.SwapUsed, server.Host.SwapTotal).class">
 | 
					                      <div :class="formatPercent(server.live,server.State.SwapUsed, server.Host.SwapTotal).class">
 | 
				
			||||||
                        <div class="bar"
 | 
					                        <div class="bar"
 | 
				
			||||||
@ -68,14 +68,14 @@
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="three wide column">网络</div>
 | 
					                    <div class="three wide column">{{tr "NetSpeed"}}</div>
 | 
				
			||||||
                    <div class="thirteen wide column">
 | 
					                    <div class="thirteen wide column">
 | 
				
			||||||
                      <i class="arrow alternate circle down outline icon"></i>
 | 
					                      <i class="arrow alternate circle down outline icon"></i>
 | 
				
			||||||
                      @#formatByteSize(server.State.NetInSpeed)#@/s
 | 
					                      @#formatByteSize(server.State.NetInSpeed)#@/s
 | 
				
			||||||
                      <i class="arrow alternate circle up outline icon"></i>
 | 
					                      <i class="arrow alternate circle up outline icon"></i>
 | 
				
			||||||
                      @#formatByteSize(server.State.NetOutSpeed)#@/s
 | 
					                      @#formatByteSize(server.State.NetOutSpeed)#@/s
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="three wide column">硬盘</div>
 | 
					                    <div class="three wide column">{{tr "DiskUsed"}}</div>
 | 
				
			||||||
                    <div class="thirteen wide column">
 | 
					                    <div class="thirteen wide column">
 | 
				
			||||||
                      <div :class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class">
 | 
					                      <div :class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class">
 | 
				
			||||||
                        <div class="bar"
 | 
					                        <div class="bar"
 | 
				
			||||||
@ -84,7 +84,7 @@
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                      </div>
 | 
					                      </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                    <div class="three wide column">在线</div>
 | 
					                    <div class="three wide column">{{tr "Uptime"}}</div>
 | 
				
			||||||
                    <div class="thirteen wide column">
 | 
					                    <div class="thirteen wide column">
 | 
				
			||||||
                      <i class="clock icon"></i>@#secondToDate(server.State.Uptime)#@
 | 
					                      <i class="clock icon"></i>@#secondToDate(server.State.Uptime)#@
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
@ -93,7 +93,7 @@
 | 
				
			|||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="content" v-else>
 | 
					              <div class="content" v-else>
 | 
				
			||||||
                <p>@#server.Name#@</p>
 | 
					                <p>@#server.Name#@</p>
 | 
				
			||||||
                <p>节点已离线</p>
 | 
					                <p>{{tr "ServerIsOffline"}}</p>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
@ -163,7 +163,7 @@
 | 
				
			|||||||
      secondToDate(s) {
 | 
					      secondToDate(s) {
 | 
				
			||||||
        var d = Math.floor(s / 3600 / 24);
 | 
					        var d = Math.floor(s / 3600 / 24);
 | 
				
			||||||
        if (d > 0) {
 | 
					        if (d > 0) {
 | 
				
			||||||
          return d + "天"
 | 
					          return d + "{{tr "Day"}}"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        var h = Math.floor(s / 3600 % 24);
 | 
					        var h = Math.floor(s / 3600 % 24);
 | 
				
			||||||
        var m = Math.floor(s / 60 % 60);
 | 
					        var m = Math.floor(s / 60 % 60);
 | 
				
			||||||
@ -205,8 +205,8 @@
 | 
				
			|||||||
  const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
					  const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
				
			||||||
  ws.onopen = function (evt) {
 | 
					  ws.onopen = function (evt) {
 | 
				
			||||||
    $.suiAlert({
 | 
					    $.suiAlert({
 | 
				
			||||||
      title: '实时通道建立',
 | 
					      title: '{{tr "RealtimeChannelEstablished"}}',
 | 
				
			||||||
      description: '可以实时获取最新监控数据啦',
 | 
					      description: '{{tr "GetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
      type: 'success',
 | 
					      type: 'success',
 | 
				
			||||||
      time: '2',
 | 
					      time: '2',
 | 
				
			||||||
      position: 'top-center',
 | 
					      position: 'top-center',
 | 
				
			||||||
@ -232,8 +232,8 @@
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  ws.onclose = function () {
 | 
					  ws.onclose = function () {
 | 
				
			||||||
    $.suiAlert({
 | 
					    $.suiAlert({
 | 
				
			||||||
      title: '实时通道断开',
 | 
					      title: '{{tr "RealtimeChannelDisconnect"}}',
 | 
				
			||||||
      description: '无法实时获取最新监控数据咯',
 | 
					      description: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
      type: 'warning',
 | 
					      type: 'warning',
 | 
				
			||||||
      time: '2',
 | 
					      time: '2',
 | 
				
			||||||
      position: 'top-center',
 | 
					      position: 'top-center',
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										24
									
								
								resource/template/theme-default/service.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								resource/template/theme-default/service.html
									
									
									
									
										vendored
									
									
								
							@ -10,10 +10,10 @@
 | 
				
			|||||||
            <table class="ui celled table">
 | 
					            <table class="ui celled table">
 | 
				
			||||||
                <thead>
 | 
					                <thead>
 | 
				
			||||||
                    <tr>
 | 
					                    <tr>
 | 
				
			||||||
                        <th class="ui center aligned">名称</th>
 | 
					                        <th class="ui center aligned">{{tr "Name"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">30天在线率</th>
 | 
					                        <th class="ui center aligned">{{tr "30DaysOnline"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">详情</th>
 | 
					                        <th class="ui center aligned">{{tr "Details"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">状态</th>
 | 
					                        <th class="ui center aligned">{{tr "Status"}}</th>
 | 
				
			||||||
                    </tr>
 | 
					                    </tr>
 | 
				
			||||||
                </thead>
 | 
					                </thead>
 | 
				
			||||||
                <tbody>
 | 
					                <tbody>
 | 
				
			||||||
@ -25,7 +25,7 @@
 | 
				
			|||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
                        <td class="ui center aligned">{{range $i,$d := $service.Delay}}
 | 
					                        <td class="ui center aligned">{{range $i,$d := $service.Delay}}
 | 
				
			||||||
                            <div class="ui icon button {{className (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}"
 | 
					                            <div class="ui icon button {{className (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}"
 | 
				
			||||||
                                data-tooltip="{{dayBefore $i}},在线率:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,平均延迟:{{float32f $d}}ms">
 | 
					                                data-tooltip="{{dayBefore $i}},{{tr "Availability"}}:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,{{tr "AverageLatency"}}:{{float32f $d}}ms">
 | 
				
			||||||
                            </div> {{end}}
 | 
					                            </div> {{end}}
 | 
				
			||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
                        <td class="ui center aligned delay-today">
 | 
					                        <td class="ui center aligned delay-today">
 | 
				
			||||||
@ -39,20 +39,20 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            {{if .CycleTransferStats}}
 | 
					            {{if .CycleTransferStats}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <h2 style="text-align: center;">循环流量统计</h2>
 | 
					            <h2 style="text-align: center;">{{tr "CycleTransferStats"}}</h2>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <table class="ui celled table">
 | 
					            <table class="ui celled table">
 | 
				
			||||||
                <thead>
 | 
					                <thead>
 | 
				
			||||||
                    <tr>
 | 
					                    <tr>
 | 
				
			||||||
                        <th class="ui center aligned">ID</th>
 | 
					                        <th class="ui center aligned">ID</th>
 | 
				
			||||||
                        <th class="ui center aligned">规则</th>
 | 
					                        <th class="ui center aligned">{{tr "Rules"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">服务器</th>
 | 
					                        <th class="ui center aligned">{{tr "Server"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">自</th>
 | 
					                        <th class="ui center aligned">{{tr "From"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">至</th>
 | 
					                        <th class="ui center aligned">{{tr "To"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">MAX</th>
 | 
					                        <th class="ui center aligned">MAX</th>
 | 
				
			||||||
                        <th class="ui center aligned">MIN</th>
 | 
					                        <th class="ui center aligned">MIN</th>
 | 
				
			||||||
                        <th class="ui center aligned">下次检查</th>
 | 
					                        <th class="ui center aligned">{{tr "NextCheck"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">当前用量</th>
 | 
					                        <th class="ui center aligned">{{tr "CurrentUsage"}}</th>
 | 
				
			||||||
                    </tr>
 | 
					                    </tr>
 | 
				
			||||||
                </thead>
 | 
					                </thead>
 | 
				
			||||||
                <tbody>
 | 
					                <tbody>
 | 
				
			||||||
 | 
				
			|||||||
@ -9,14 +9,14 @@
 | 
				
			|||||||
            <h2 class="ui image header">
 | 
					            <h2 class="ui image header">
 | 
				
			||||||
                <img src="static/logo.svg?v20210804" class="image">
 | 
					                <img src="static/logo.svg?v20210804" class="image">
 | 
				
			||||||
                <div class="content">
 | 
					                <div class="content">
 | 
				
			||||||
                    验证查看密码
 | 
					                    {{tr "VerifyPassword"}}
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </h2>
 | 
					            </h2>
 | 
				
			||||||
            <form action="/view-password" method="POST" class="ui form">
 | 
					            <form action="/view-password" method="POST" class="ui form">
 | 
				
			||||||
                <div class="field">
 | 
					                <div class="field">
 | 
				
			||||||
                    <input type="password" name="Password">
 | 
					                    <input type="password" name="Password">
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <button class="ui nezha-primary-btn button" type="submit">确认</button>
 | 
					                <button class="ui nezha-primary-btn button" type="submit">{{tr "Confirm"}}</button>
 | 
				
			||||||
            </form>
 | 
					            </form>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										45
									
								
								resource/template/theme-hotaru/home.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								resource/template/theme-hotaru/home.html
									
									
									
									
										vendored
									
									
								
							@ -28,14 +28,9 @@
 | 
				
			|||||||
<body>
 | 
					<body>
 | 
				
			||||||
    <section class="hotaru-cover">
 | 
					    <section class="hotaru-cover">
 | 
				
			||||||
        <div class="container" style="text-align: center;">
 | 
					        <div class="container" style="text-align: center;">
 | 
				
			||||||
            <h1>
 | 
					            <h1 style="line-height: 8rem;">
 | 
				
			||||||
                <strong>{{.Title}}</strong>
 | 
					                <strong>{{.Title}}</strong>
 | 
				
			||||||
            </h1>
 | 
					            </h1>
 | 
				
			||||||
            <div>
 | 
					 | 
				
			||||||
                <p>
 | 
					 | 
				
			||||||
                    <small>狀態更新和事件報告可能會延遲最多30秒鐘<br />具體取決於手頭的技術問題。請向下滾動查看過去的事件報告</small>
 | 
					 | 
				
			||||||
                </p>
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </section>
 | 
					    </section>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -44,16 +39,16 @@
 | 
				
			|||||||
            <table class="table table-striped">
 | 
					            <table class="table table-striped">
 | 
				
			||||||
                <thead>
 | 
					                <thead>
 | 
				
			||||||
                    <tr>
 | 
					                    <tr>
 | 
				
			||||||
                        <th>运行状态</th>
 | 
					                        <th>{{tr "Status"}}</th>
 | 
				
			||||||
                        <th>节点名</th>
 | 
					                        <th>{{tr "Name"}}</th>
 | 
				
			||||||
                        <th>系统</th>
 | 
					                        <th>{{tr "Platform"}}</th>
 | 
				
			||||||
                        <th>位置</th>
 | 
					                        <th>{{tr "Location"}}</th>
 | 
				
			||||||
                        <th>在线</th>
 | 
					                        <th>{{tr "Uptime"}}</th>
 | 
				
			||||||
                        <th>网络(B/s) ↓|↑</th>
 | 
					                        <th>{{tr "NetSpeed"}}(B/s) ↓|↑</th>
 | 
				
			||||||
                        <th>流量(B) ↓|↑</th>
 | 
					                        <th>{{tr "NetTransfer"}}(B) ↓|↑</th>
 | 
				
			||||||
                        <th>CPU</th>
 | 
					                        <th>CPU</th>
 | 
				
			||||||
                        <th>RAM</th>
 | 
					                        <th>RAM</th>
 | 
				
			||||||
                        <th>硬盘</th>
 | 
					                        <th>{{tr "DiskUsed"}}</th>
 | 
				
			||||||
                    </tr>
 | 
					                    </tr>
 | 
				
			||||||
                </thead>
 | 
					                </thead>
 | 
				
			||||||
                <tbody id="servers" style="text-align:center;">
 | 
					                <tbody id="servers" style="text-align:center;">
 | 
				
			||||||
@ -61,7 +56,7 @@
 | 
				
			|||||||
                        <td>
 | 
					                        <td>
 | 
				
			||||||
                            <div class="progress">
 | 
					                            <div class="progress">
 | 
				
			||||||
                                <div :class="'state-'+ (server.live?'online':'offline')">
 | 
					                                <div :class="'state-'+ (server.live?'online':'offline')">
 | 
				
			||||||
                                    <small>@#server.live?'运行中':'已离线'#@</small>
 | 
					                                    <small>@#server.live?'{{tr "Running"}}':'{{tr "Offline"}}'#@</small>
 | 
				
			||||||
                                </div>
 | 
					                                </div>
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
@ -123,7 +118,7 @@
 | 
				
			|||||||
                                </div>
 | 
					                                </div>
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                            <ul class="location-info list-styled">
 | 
					                            <ul class="location-info list-styled">
 | 
				
			||||||
                                <li><span class="list-label">网络:</span>
 | 
					                                <li><span class="list-label">{{tr "NetSpeed"}}:</span>
 | 
				
			||||||
                                    @#server.State?formatByteSize(server.State.NetInSpeed)+'/s|'+formatByteSize(server.State.NetOutSpeed)+'/s':'-'#@
 | 
					                                    @#server.State?formatByteSize(server.State.NetInSpeed)+'/s|'+formatByteSize(server.State.NetOutSpeed)+'/s':'-'#@
 | 
				
			||||||
                                </li>
 | 
					                                </li>
 | 
				
			||||||
                            </ul>
 | 
					                            </ul>
 | 
				
			||||||
@ -135,15 +130,15 @@
 | 
				
			|||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class="sidebar-container">
 | 
					    <div class="sidebar-container">
 | 
				
			||||||
        <ul>
 | 
					        <ul>
 | 
				
			||||||
            <li id='sun'><i class="fas fa-sun" title="白昼模式"></i><span>白昼模式</span></li>
 | 
					            <li id='sun'><i class="fas fa-sun" title='{{tr "LightMode"}}'></i><span>{{tr "LightMode"}}</span></li>
 | 
				
			||||||
            <li id='moon'><i class="fas fa-moon" title="暗黑模式"></i><span>暗黑模式</span></li>
 | 
					            <li id='moon'><i class="fas fa-moon" title='{{tr "DarkMode"}}'></i><span>{{tr "DarkMode"}}</span></li>
 | 
				
			||||||
        </ul>
 | 
					        </ul>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <footer>
 | 
					    <footer>
 | 
				
			||||||
        <p style="text-align:center;padding: 15px;">Powered by <a href="https://github.com/naiba/nezha">{{tr "nezhaMonitor"}}</a> build ·
 | 
					        <p style="text-align:center;padding: 15px;">Powered by <a href="https://github.com/naiba/nezha">{{tr "nezhaMonitor"}}</a> build ·
 | 
				
			||||||
            {{.Version}}
 | 
					            {{.Version}}
 | 
				
			||||||
            <a href="/service">服务状态</a>
 | 
					            <a href="/service">{{tr "Services"}}</a>
 | 
				
			||||||
            <a href="/server">管理后台</a>
 | 
					            <a href="/server">{{tr "AdminPanel"}}</a>
 | 
				
			||||||
        </p>
 | 
					        </p>
 | 
				
			||||||
    </footer>
 | 
					    </footer>
 | 
				
			||||||
    <script src="https://fastly.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
 | 
					    <script src="https://fastly.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
 | 
				
			||||||
@ -224,7 +219,7 @@
 | 
				
			|||||||
                secondToDate(s) {
 | 
					                secondToDate(s) {
 | 
				
			||||||
                    var d = Math.floor(s / 3600 / 24);
 | 
					                    var d = Math.floor(s / 3600 / 24);
 | 
				
			||||||
                    if (d > 0) {
 | 
					                    if (d > 0) {
 | 
				
			||||||
                        return d + "天"
 | 
					                        return d + "{{tr "Day"}}"
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    var h = Math.floor(s / 3600 % 24);
 | 
					                    var h = Math.floor(s / 3600 % 24);
 | 
				
			||||||
                    var m = Math.floor(s / 60 % 60);
 | 
					                    var m = Math.floor(s / 60 % 60);
 | 
				
			||||||
@ -251,8 +246,8 @@
 | 
				
			|||||||
        const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
					        const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
				
			||||||
        ws.onopen = function (evt) {
 | 
					        ws.onopen = function (evt) {
 | 
				
			||||||
            $.suiAlert({
 | 
					            $.suiAlert({
 | 
				
			||||||
                title: '实时通道建立',
 | 
					                title: '{{tr "RealtimeChannelEstablished"}}',
 | 
				
			||||||
                description: '可以实时获取最新监控数据啦',
 | 
					                description: '{{tr "GetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
                type: 'success',
 | 
					                type: 'success',
 | 
				
			||||||
                time: '2',
 | 
					                time: '2',
 | 
				
			||||||
                position: 'top-center',
 | 
					                position: 'top-center',
 | 
				
			||||||
@ -276,8 +271,8 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        ws.onclose = function () {
 | 
					        ws.onclose = function () {
 | 
				
			||||||
            $.suiAlert({
 | 
					            $.suiAlert({
 | 
				
			||||||
                title: '实时通道断开',
 | 
					                title: '{{tr "RealtimeChannelDisconnect"}}',
 | 
				
			||||||
                description: '无法实时获取最新监控数据咯',
 | 
					                description: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}',
 | 
				
			||||||
                type: 'warning',
 | 
					                type: 'warning',
 | 
				
			||||||
                time: '2',
 | 
					                time: '2',
 | 
				
			||||||
                position: 'top-center',
 | 
					                position: 'top-center',
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								resource/template/theme-hotaru/service.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								resource/template/theme-hotaru/service.html
									
									
									
									
										vendored
									
									
								
							@ -11,10 +11,10 @@
 | 
				
			|||||||
            <table class="ui celled table">
 | 
					            <table class="ui celled table">
 | 
				
			||||||
                <thead>
 | 
					                <thead>
 | 
				
			||||||
                    <tr>
 | 
					                    <tr>
 | 
				
			||||||
                        <th class="ui center aligned">名称</th>
 | 
					                        <th class="ui center aligned">{{tr "Name"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">30天在线率</th>
 | 
					                        <th class="ui center aligned">{{tr "30DaysOnline"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">详情</th>
 | 
					                        <th class="ui center aligned">{{tr "Details"}}</th>
 | 
				
			||||||
                        <th class="ui center aligned">状态</th>
 | 
					                        <th class="ui center aligned">{{tr "Status"}}</th>
 | 
				
			||||||
                    </tr>
 | 
					                    </tr>
 | 
				
			||||||
                </thead>
 | 
					                </thead>
 | 
				
			||||||
                <tbody>
 | 
					                <tbody>
 | 
				
			||||||
@ -26,7 +26,7 @@
 | 
				
			|||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
                        <td class="ui center aligned">{{range $i,$d := $service.Delay}}
 | 
					                        <td class="ui center aligned">{{range $i,$d := $service.Delay}}
 | 
				
			||||||
                            <div class="ui icon button {{className (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}"
 | 
					                            <div class="ui icon button {{className (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}"
 | 
				
			||||||
                                data-tooltip="{{dayBefore $i}},平均延迟:{{float32f $d}}ms">
 | 
					                                data-tooltip="{{dayBefore $i}}, {{tr "AverageLatency"}}:{{float32f $d}}ms">
 | 
				
			||||||
                            </div> {{end}}
 | 
					                            </div> {{end}}
 | 
				
			||||||
                        </td>
 | 
					                        </td>
 | 
				
			||||||
                        <td class="ui center aligned delay-today">
 | 
					                        <td class="ui center aligned delay-today">
 | 
				
			||||||
 | 
				
			|||||||
@ -9,14 +9,14 @@
 | 
				
			|||||||
            <h2 class="ui image header">
 | 
					            <h2 class="ui image header">
 | 
				
			||||||
                <img src="static/logo.svg?v20210804" class="image">
 | 
					                <img src="static/logo.svg?v20210804" class="image">
 | 
				
			||||||
                <div class="content">
 | 
					                <div class="content">
 | 
				
			||||||
                    验证查看密码
 | 
					                    {{tr "VerifyPassword"}}
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </h2>
 | 
					            </h2>
 | 
				
			||||||
            <form action="/view-password" method="POST" class="ui form">
 | 
					            <form action="/view-password" method="POST" class="ui form">
 | 
				
			||||||
                <div class="field">
 | 
					                <div class="field">
 | 
				
			||||||
                    <input type="password" name="Password">
 | 
					                    <input type="password" name="Password">
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <button class="ui nezha-primary-btn button" type="submit">确认</button>
 | 
					                <button class="ui nezha-primary-btn button" type="submit">{{tr "Confirm"}}</button>
 | 
				
			||||||
            </form>
 | 
					            </form>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								resource/template/theme-mdui/home.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								resource/template/theme-mdui/home.html
									
									
									
									
										vendored
									
									
								
							@ -68,13 +68,13 @@
 | 
				
			|||||||
                <li class="mdui-list-item">
 | 
					                <li class="mdui-list-item">
 | 
				
			||||||
                  <i class="mdui-list-item-icon mdui-icon material-icons">swap_vert</i>
 | 
					                  <i class="mdui-list-item-icon mdui-icon material-icons">swap_vert</i>
 | 
				
			||||||
                  <div class="mdui-list-item-content">
 | 
					                  <div class="mdui-list-item-content">
 | 
				
			||||||
                    <div class="mdui-list-item-title">上行</div>
 | 
					                    <div class="mdui-list-item-title">{{tr "UpNetTransfer"}}</div>
 | 
				
			||||||
                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
					                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
				
			||||||
                      <at><span>@#formatNetByteSize(server.State.NetOutSpeed)#@</span></at>
 | 
					                      <at><span>@#formatNetByteSize(server.State.NetOutSpeed)#@</span></at>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                  </div>
 | 
					                  </div>
 | 
				
			||||||
                  <div class="mdui-list-item-content">
 | 
					                  <div class="mdui-list-item-content">
 | 
				
			||||||
                    <div class="mdui-list-item-title">下行</div>
 | 
					                    <div class="mdui-list-item-title">{{tr "DownNetTransfer"}}</div>
 | 
				
			||||||
                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
					                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
				
			||||||
                      <st><span>@#formatNetByteSize(server.State.NetInSpeed)#@</span></st>
 | 
					                      <st><span>@#formatNetByteSize(server.State.NetInSpeed)#@</span></st>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
@ -83,13 +83,13 @@
 | 
				
			|||||||
                <li class="mdui-list-item">
 | 
					                <li class="mdui-list-item">
 | 
				
			||||||
                  <i class="mdui-list-item-icon mdui-icon material-icons">swap_horiz</i>
 | 
					                  <i class="mdui-list-item-icon mdui-icon material-icons">swap_horiz</i>
 | 
				
			||||||
                  <div class="mdui-list-item-content">
 | 
					                  <div class="mdui-list-item-content">
 | 
				
			||||||
                    <div class="mdui-list-item-title">总上行</div>
 | 
					                    <div class="mdui-list-item-title">{{tr "TotalUpNetTransfer"}}</div>
 | 
				
			||||||
                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
					                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
				
			||||||
                      <at><span>@#formatByteSize(server.State.NetOutTransfer)#@</span></at>
 | 
					                      <at><span>@#formatByteSize(server.State.NetOutTransfer)#@</span></at>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                  </div>
 | 
					                  </div>
 | 
				
			||||||
                  <div class="mdui-list-item-content">
 | 
					                  <div class="mdui-list-item-content">
 | 
				
			||||||
                    <div class="mdui-list-item-title">总下行</div>
 | 
					                    <div class="mdui-list-item-title">{{tr "TotalDownNetTransfer"}}</div>
 | 
				
			||||||
                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
					                    <div class="mdui-list-item-text mdui-list-item-one-line" style="opacity:1;">
 | 
				
			||||||
                      <st><span>@#formatByteSize(server.State.NetInTransfer)#@</span></st>
 | 
					                      <st><span>@#formatByteSize(server.State.NetInTransfer)#@</span></st>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
@ -107,14 +107,14 @@
 | 
				
			|||||||
		<thead>
 | 
							<thead>
 | 
				
			||||||
		  <tr>
 | 
							  <tr>
 | 
				
			||||||
		    <th class="mdui-text-center">ID</th>
 | 
							    <th class="mdui-text-center">ID</th>
 | 
				
			||||||
		    <th class="mdui-text-center">Name</th>
 | 
							    <th class="mdui-text-center">{{tr "Name"}}</th>
 | 
				
			||||||
		    <th class="mdui-text-center">Up</th>
 | 
							    <th class="mdui-text-center">{{tr "UpNetTransfer"}}</th>
 | 
				
			||||||
		    <th class="mdui-text-center">Down</th>
 | 
							    <th class="mdui-text-center">{{tr "DownNetTransfer"}}</th>
 | 
				
			||||||
		   	<th class="mdui-text-center">Total Up</th>
 | 
							   	<th class="mdui-text-center">{{tr "TotalUpNetTransfer"}}</th>
 | 
				
			||||||
		    <th class="mdui-text-center">Total Down</th>
 | 
							    <th class="mdui-text-center">{{tr "TotalDownNetTransfer"}}</th>
 | 
				
			||||||
		    <th class="mdui-text-center">CPU</th>
 | 
							    <th class="mdui-text-center">CPU</th>
 | 
				
			||||||
		    <th class="mdui-text-center">RAM</th>
 | 
							    <th class="mdui-text-center">RAM</th>
 | 
				
			||||||
		    <th class="mdui-text-center">Online</th>
 | 
							    <th class="mdui-text-center">{{tr "Uptime"}}</th>
 | 
				
			||||||
		  </tr>
 | 
							  </tr>
 | 
				
			||||||
		</thead>
 | 
							</thead>
 | 
				
			||||||
		<tbody>
 | 
							<tbody>
 | 
				
			||||||
@ -178,7 +178,7 @@
 | 
				
			|||||||
            secondToDate(s) {
 | 
					            secondToDate(s) {
 | 
				
			||||||
                var d = Math.floor(s / 3600 / 24);
 | 
					                var d = Math.floor(s / 3600 / 24);
 | 
				
			||||||
                if (d > 0) {
 | 
					                if (d > 0) {
 | 
				
			||||||
                    return d + "天"
 | 
					                    return d + "{{tr "Day"}}"
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                var h = Math.floor(s / 3600 % 24);
 | 
					                var h = Math.floor(s / 3600 % 24);
 | 
				
			||||||
                var m = Math.floor(s / 60 % 60);
 | 
					                var m = Math.floor(s / 60 % 60);
 | 
				
			||||||
@ -229,7 +229,7 @@
 | 
				
			|||||||
    const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
					    const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
 | 
				
			||||||
    ws.onopen = function (evt) {
 | 
					    ws.onopen = function (evt) {
 | 
				
			||||||
        mdui.snackbar({
 | 
					        mdui.snackbar({
 | 
				
			||||||
          message: '实时通道建立',
 | 
					          message: '{{tr "RealtimeChannelEstablished"}}',
 | 
				
			||||||
          timeout: 2000,
 | 
					          timeout: 2000,
 | 
				
			||||||
          position: 'top',
 | 
					          position: 'top',
 | 
				
			||||||
          onClosed: function(){
 | 
					          onClosed: function(){
 | 
				
			||||||
@ -281,7 +281,7 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    ws.onclose = function () {
 | 
					    ws.onclose = function () {
 | 
				
			||||||
        mdui.snackbar({
 | 
					        mdui.snackbar({
 | 
				
			||||||
          message: '实时通道断开',
 | 
					          message: '{{tr "RealtimeChannelDisconnect"}}',
 | 
				
			||||||
          timeout: 2000,
 | 
					          timeout: 2000,
 | 
				
			||||||
          position: 'top',
 | 
					          position: 'top',
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										22
									
								
								resource/template/theme-mdui/menu.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								resource/template/theme-mdui/menu.html
									
									
									
									
										vendored
									
									
								
							@ -4,25 +4,25 @@
 | 
				
			|||||||
  <div class="mdui-appbar">
 | 
					  <div class="mdui-appbar">
 | 
				
			||||||
    <div class="mdui-tab mdui-color-theme" mdui-tab>
 | 
					    <div class="mdui-tab mdui-color-theme" mdui-tab>
 | 
				
			||||||
      {{if .IsAdminPage}}
 | 
					      {{if .IsAdminPage}}
 | 
				
			||||||
      <a href="/server" class="mdui-ripple mdui-ripple-white mdui-hoverable "><i class="mdui-icon material-icons">computer</i>主机</a>
 | 
					      <a href="/server" class="mdui-ripple mdui-ripple-white mdui-hoverable "><i class="mdui-icon material-icons">computer</i>{{tr "Server"}}</a>
 | 
				
			||||||
      <a href="/monitor" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">accessibility</i>服务</a>
 | 
					      <a href="/monitor" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">accessibility</i>{{tr "Services"}}</a>
 | 
				
			||||||
      <a href="/cron" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">access_time</i>任务</a>
 | 
					      <a href="/cron" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">access_time</i>{{tr "Task"}}</a>
 | 
				
			||||||
      <a href="/notification" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">notifications</i>报警</a>
 | 
					      <a href="/notification" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">notifications</i>{{tr "Notification"}}</a>
 | 
				
			||||||
      <a href="/setting" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">settings</i>设置</a>
 | 
					      <a href="/setting" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">settings</i>{{tr "Settings"}}</a>
 | 
				
			||||||
      {{else}}
 | 
					      {{else}}
 | 
				
			||||||
      <a href="/" class='mdui-ripple mdui-ripple-white mdui-hoverable{{if eq .MatchedPath "/"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">home</i>首页</a>
 | 
					      <a href="/" class='mdui-ripple mdui-ripple-white mdui-hoverable{{if eq .MatchedPath "/"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">home</i>{{tr "Home"}}</a>
 | 
				
			||||||
      <a href="/service" class='mdui-ripple mdui-ripple-white mdui-hoverable{{if eq .MatchedPath "/service"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">accessibility</i>服务</a>
 | 
					      <a href="/service" class='mdui-ripple mdui-ripple-white mdui-hoverable{{if eq .MatchedPath "/service"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">accessibility</i>{{tr "Services"}}</a>
 | 
				
			||||||
      {{end}}
 | 
					      {{end}}
 | 
				
			||||||
      <div class="mdui-toolbar-spacer"></div>
 | 
					      <div class="mdui-toolbar-spacer"></div>
 | 
				
			||||||
      {{if .Admin}}
 | 
					      {{if .Admin}}
 | 
				
			||||||
        {{if .IsAdminPage}}
 | 
					        {{if .IsAdminPage}}
 | 
				
			||||||
        <a href="/" class='mdui-ripple mdui-ripple-white mdui-hoverable {{if eq .MatchedPath "/"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">arrow_back</i>返回前台</a>
 | 
					        <a href="/" class='mdui-ripple mdui-ripple-white mdui-hoverable {{if eq .MatchedPath "/"}} mdui-tab-active{{end}}'><i class="mdui-icon material-icons">arrow_back</i>{{tr "BackToHomepage"}}</a>
 | 
				
			||||||
        {{else}}
 | 
					        {{else}}
 | 
				
			||||||
        <a href="/server" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">arrow_forward</i>管理后台</a>
 | 
					        <a href="/server" class="mdui-ripple mdui-ripple-white mdui-hoverable"><i class="mdui-icon material-icons">arrow_forward</i>{{tr "AdminPanel"}}</a>
 | 
				
			||||||
        {{end}}
 | 
					        {{end}}
 | 
				
			||||||
        <a class="mdui-ripple mdui-ripple-white mdui-hoverable" onclick="showConfirm('确认注销?','注销后您必须重新登录才能使用',logout,{{.Admin.ID}})"><i class="mdui-icon material-icons">directions_run</i>注销登录</a>
 | 
					        <a class="mdui-ripple mdui-ripple-white mdui-hoverable" onclick="showConfirm('{{tr "ConfirmLogout"}}','{{tr "AfterLoggingOutYouHaveToLoginAgain"}}',logout,{{.Admin.ID}})"><i class="mdui-icon material-icons">directions_run</i>{{tr "Logout"}}</a>
 | 
				
			||||||
      {{else}}
 | 
					      {{else}}
 | 
				
			||||||
      <a href="/login" class="mdui-ripple mdui-ripple-white mdui-hoverable">登录</a>
 | 
					      <a href="/login" class="mdui-ripple mdui-ripple-white mdui-hoverable">{{tr "Login"}}</a>
 | 
				
			||||||
      {{end}}
 | 
					      {{end}}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										30
									
								
								resource/template/theme-mdui/service.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								resource/template/theme-mdui/service.html
									
									
									
									
										vendored
									
									
								
							@ -26,10 +26,10 @@
 | 
				
			|||||||
      <table class="mdui-table mdui-table-hoverable">
 | 
					      <table class="mdui-table mdui-table-hoverable">
 | 
				
			||||||
        <thead>
 | 
					        <thead>
 | 
				
			||||||
          <tr>
 | 
					          <tr>
 | 
				
			||||||
            <th class="mdui-text-center">Name</th>
 | 
					            <th class="mdui-text-center">{{tr "Name"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center" mdui-tooltip="{content: 'The status of last 30 days', position: 'top'}">SLA</th>
 | 
					            <th class="mdui-text-center" mdui-tooltip="{content: 'The status of last 30 days', position: 'top'}">{{tr "Availability"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Details of Last 30 Days</th>
 | 
					            <th class="mdui-text-center">{{tr "30DaysOnline"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Now</th>
 | 
					            <th class="mdui-text-center">{{tr "Status"}}</th>
 | 
				
			||||||
          </tr>
 | 
					          </tr>
 | 
				
			||||||
        </thead>
 | 
					        </thead>
 | 
				
			||||||
        <tbody>
 | 
					        <tbody>
 | 
				
			||||||
@ -41,13 +41,13 @@
 | 
				
			|||||||
              {{range $i,$d := $service.Delay}}
 | 
					              {{range $i,$d := $service.Delay}}
 | 
				
			||||||
                {{$percent := (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}
 | 
					                {{$percent := (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}
 | 
				
			||||||
                {{if eq $percent 0.0}}
 | 
					                {{if eq $percent 0.0}}
 | 
				
			||||||
                <i class="mdui-icon material-icons" mdui-tooltip="{content: '{{dayBefore $i}},在线率:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,平均延迟:{{float32f $d}}ms'}">favorite_border</i>
 | 
					                <i class="mdui-icon material-icons" mdui-tooltip="{content: '{{dayBefore $i}},{{tr "Availability"}}:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,{{tr "AverageLatency"}}:{{float32f $d}}ms'}">favorite_border</i>
 | 
				
			||||||
                {{else if ge $percent 95.0}}
 | 
					                {{else if ge $percent 95.0}}
 | 
				
			||||||
                <i class="mdui-icon material-icons mdui-text-color-red-a700" mdui-tooltip="{position: 'top', content: '{{dayBefore $i}},在线率:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,平均延迟:{{float32f $d}}ms'}">favorite</i>
 | 
					                <i class="mdui-icon material-icons mdui-text-color-red-a700" mdui-tooltip="{position: 'top', content: '{{dayBefore $i}},{{tr "Availability"}}:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,{{tr "AverageLatency"}}:{{float32f $d}}ms'}">favorite</i>
 | 
				
			||||||
                {{else if ge $percent 80.0}}
 | 
					                {{else if ge $percent 80.0}}
 | 
				
			||||||
                <i class="mdui-icon material-icons mdui-text-color-orange" mdui-tooltip="{content: '{{dayBefore $i}},在线率:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,平均延迟:{{float32f $d}}ms'}">favorite</i>
 | 
					                <i class="mdui-icon material-icons mdui-text-color-orange" mdui-tooltip="{content: '{{dayBefore $i}},{{tr "Availability"}}:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,{{tr "AverageLatency"}}:{{float32f $d}}ms'}">favorite</i>
 | 
				
			||||||
                {{else}}
 | 
					                {{else}}
 | 
				
			||||||
                <i class="mdui-icon material-icons mdui-text-color-black" mdui-tooltip="{content: '{{dayBefore $i}},在线率:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,平均延迟:{{float32f $d}}ms'}">favorite</i>
 | 
					                <i class="mdui-icon material-icons mdui-text-color-black" mdui-tooltip="{content: '{{dayBefore $i}},{{tr "Availability"}}:{{float32f (div (index $service.Up $i) (add (index $service.Up $i) (index $service.Down $i)))}}%,{{tr "AverageLatency"}}:{{float32f $d}}ms'}">favorite</i>
 | 
				
			||||||
                {{end}}
 | 
					                {{end}}
 | 
				
			||||||
              {{end}}
 | 
					              {{end}}
 | 
				
			||||||
            </td>
 | 
					            </td>
 | 
				
			||||||
@ -74,20 +74,20 @@
 | 
				
			|||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{if .CycleTransferStats}}
 | 
					    {{if .CycleTransferStats}}
 | 
				
			||||||
    <h2 class="mdui-m-t-5 mdui-text-center">Network Traffic Statistics</h2>
 | 
					    <h2 class="mdui-m-t-5 mdui-text-center">{{tr "CycleTransferStats"}}</h2>
 | 
				
			||||||
    <div class="mdui-table-fluid">
 | 
					    <div class="mdui-table-fluid">
 | 
				
			||||||
      <table class="mdui-table mdui-table-hoverable">
 | 
					      <table class="mdui-table mdui-table-hoverable">
 | 
				
			||||||
        <thead>
 | 
					        <thead>
 | 
				
			||||||
          <tr>
 | 
					          <tr>
 | 
				
			||||||
            <th class="mdui-text-center">ID</th>
 | 
					            <th class="mdui-text-center">ID</th>
 | 
				
			||||||
            <th class="mdui-text-center">Rule</th>
 | 
					            <th class="mdui-text-center">{{tr "Rules"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Sever</th>
 | 
					            <th class="mdui-text-center">{{tr "Server"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Date From</th>
 | 
					            <th class="mdui-text-center">{{tr "From"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Date To</th>
 | 
					            <th class="mdui-text-center">{{tr "To"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">MAX</th>
 | 
					            <th class="mdui-text-center">MAX</th>
 | 
				
			||||||
            <th class="mdui-text-center">MIN</th>
 | 
					            <th class="mdui-text-center">MIN</th>
 | 
				
			||||||
            <th class="mdui-text-center">Check Next</th>
 | 
					            <th class="mdui-text-center">{{tr "NextCheck"}}</th>
 | 
				
			||||||
            <th class="mdui-text-center">Usage</th>
 | 
					            <th class="mdui-text-center">{{tr "CurrentUsage"}}</th>
 | 
				
			||||||
          </tr>
 | 
					          </tr>
 | 
				
			||||||
        </thead>
 | 
					        </thead>
 | 
				
			||||||
        <tbody>
 | 
					        <tbody>
 | 
				
			||||||
 | 
				
			|||||||
@ -18,18 +18,18 @@
 | 
				
			|||||||
<body>
 | 
					<body>
 | 
				
			||||||
  <div class="mdui-container" id="container">
 | 
					  <div class="mdui-container" id="container">
 | 
				
			||||||
    <div class="mdui-dialog mdui-dialog-prompt mdui-dialog-open">
 | 
					    <div class="mdui-dialog mdui-dialog-prompt mdui-dialog-open">
 | 
				
			||||||
      <div class="mdui-dialog-title">验证查看密码</div>
 | 
					      <div class="mdui-dialog-title">{{tr "VerifyPassword"}}</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div class="mdui-dialog-content">
 | 
					      <div class="mdui-dialog-content">
 | 
				
			||||||
        <div class="mdui-textfield">
 | 
					        <div class="mdui-textfield">
 | 
				
			||||||
          <i class="mdui-icon material-icons">lock</i>
 | 
					          <i class="mdui-icon material-icons">lock</i>
 | 
				
			||||||
          <label class="mdui-textfield-label">密码</label>
 | 
					          <label class="mdui-textfield-label">{{tr "EnterPassword"}}</label>
 | 
				
			||||||
          <input class="mdui-textfield-input" type="password" id="password">
 | 
					          <input class="mdui-textfield-input" type="password" id="password">
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div class="mdui-dialog-actions">
 | 
					      <div class="mdui-dialog-actions">
 | 
				
			||||||
        <button class="mdui-btn mdui-ripple mdui-text-color-primary" id="confimBtn">验证</button>
 | 
					        <button class="mdui-btn mdui-ripple mdui-text-color-primary" id="confimBtn">{{tr "Confirm"}}</button>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@ -52,7 +52,7 @@
 | 
				
			|||||||
          window.location.href = res.url;
 | 
					          window.location.href = res.url;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          mdui.snackbar({
 | 
					          mdui.snackbar({
 | 
				
			||||||
           message: '密码错误',
 | 
					           message: '{{tr "WrongPassword"}}',
 | 
				
			||||||
           position: 'top',
 | 
					           position: 'top',
 | 
				
			||||||
           timeout: 2000,
 | 
					           timeout: 2000,
 | 
				
			||||||
         });
 | 
					         });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user