Update theme-default and zh-CN.toml

This commit is contained in:
Kris 2022-04-29 14:49:24 +02:00
parent 77042b98d5
commit cb107ab1e0
4 changed files with 242 additions and 40 deletions

View File

@ -1,217 +1,419 @@
[nezhaMonitor]
other = "哪吒监控"
[Server]
other = "主机"
[Services]
other = "服务"
[Task]
other = "任务"
[Notification]
other = "报警"
[Settings]
other = "设置"
[Home]
other = "首页"
[BackToHomepage]
other = "返回前台"
[AdminPanel]
other = "管理后台"
[Logout]
other = "注销登录"
[Login]
other = "登录"
[ConfirmLogout]
other = "确认注销?"
[AfterLoggingOutYouHaveToLoginAgain]
other = "注销后您必须重新登录才能使用"
[Cancel]
other = "取消"
[Confirm]
other = "确认"
[AddScheduledTasks]
other = "添加计划任务"
[Name]
other = "名称"
[Scheduler]
other = "计划"
[BackUp]
other = "备份"
[3amDaily]
other = "(每天3点)"
[Command]
other = "命令"
[Coverage]
other = "覆盖范围"
[IgnoreAllAndExecuteOnlyThroughSpecificServers]
other = "忽略所有,仅通过特定服务器执行"
[AllIncludedOnlySpecificServersAreNotExecuted]
other = "覆盖所有,仅特定服务器不执行"
[SpecificServers]
other = "特定服务器"
[EnterIdAndNameToSearch]
other = "输入ID/名称以搜索"
[NotificationMethod]
other = "通知方式组"
[PushSuccessMessages]
other = "推送成功的消息"
[TheFormaOfTheScheduleIs]
other = "计划的格式为:"
[SecondsMinutesHoursDaysMonthsWeeksSeeDetails]
other = "秒 分 时 天 月 星期,详情见"
[ScheduleExpressionFormat]
other = "计划表达式格式"
[IntroductionOfCommands]
other = "命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是<code>PATH</code> 环境变量的问题,<code>Linux</code> 主机在命令开头加入<code>source ~/.bashrc</code>或者使用绝对路径执行。"
[AddMonitor]
other = "添加监控"
[Blog]
other = "博客"
[Target]
other = "目标"
[Type]
other = "类型"
[SslExpirationOrChange]
other = "(SSL到期、变更)"
[Duration]
other = "请求间隔"
[Seconds]
other = "秒"
[EnableFailureNotification]
other = "启用故障通知"
[IntroductionOfMonitor]
other = """
<b>HTTP-GET</b> URL( http/https, HTTPSSSL)<br>
<b>ICMP-Ping</b> /IP<br>
<b>TCP-Ping</b> /IP + example.com:22"""
[AddNotificationMethod]
other = "添加通知方式"
[Tag]
other = "分组"
[DoNotSendTestMessages]
other = "不发送测试信息"
[RequestMethod]
other = "请求方式"
[RequestType]
other = "请求类型"
[VerifySSL]
other = "验证SSL"
[AddNotificationRule]
other = "添加报警规则"
[Rules]
other = "规则"
[Enable]
other = "启用"
[AddServer]
other = "添加服务器"
[ServerGroup]
other = "服务器分组"
[EinsteinLightspeed1]
other = "爱因斯坦-光速1号"
[DisplayIndex]
other = "排序"
[TheLargerTheNumberTheHigherThePriority]
other = "越大越靠前"
[Secret]
other = "密钥"
[Note]
other = "备注"
[LinuxOneKeyInstall]
other = "Linux 一键安装"
[NoDomainAlert]
other = "请先在设置页面配置 未接入CDN的面板服务器域名/IP"
[PushSuccessfully]
other = "成功推送"
[LastExecution]
other = "最后执行"
[LastResult]
other = "最后结果"
[Administration]
other = "管理"
[CoverAll]
other = "覆盖所有"
[IgnoreAll]
other = "忽略所有"
[DeleteScheduledTask]
other = "删除计划任务"
[ConfirmToDeleteThisScheduledTask]
other = "确认删除此计划任务?"
[AccessDenied]
other = "访问受限"
[Use]
other = "使用"
[AccountToLogin]
other = "账号登录"
[SignUp]
other = "注册"
[DontHaveAnAccount]
other = "没有账号?"
[SSLCertificate]
other = "HTTP(S)/SSL证书"
[TCPPort]
other = "TCP 端口"
[DeleteService]
other = "删除服务"
[ConfirmToDeleteThisService]
other = "确认删除此服务?"
[DeleteNotificationMethod]
other = "删除通知方式"
[ConfirmToDeleteThisNotificationMethod]
other = "确认删除此通知方式?"
[ForceUpdate]
other = "强制更新"
[SelectAll]
other = "全选"
[VersionNumber]
other = "版本号"
[OneKeyInstall]
other = "一键安装"
[ClickToCopyTheInstallationCommand]
other = "点击复制安装命令"
[NotSupportedYet]
other = "尚未支持请下载release手动安装"
[DeleteServer]
other = "删除主机"
[ConfirmToDeleteThisServer]
other = "确认删除此主机?"
[NoServerSelected]
other = "当前没有选中的服务器"
[ExecutionResults]
other = "执行结果"
[SiteTitle]
other = "站点标题"
[AdministratorList]
other = "管理员列表"
[Theme]
other = "主题"
[DefaultTheme]
other = "默认主题"
[CustomCodes]
other = "自定义代码(style、script 都可以)"
[AccessPassword]
other = "前台查看密码"
[PanelServerDomainAndIP]
other = "未接入CDN的面板服务器域名/IP"
[IPChangeAlert]
other = "IP 变更提醒"
[AllIncludedOnlySpecificServersAreNotAlerted]
other = "覆盖所有,仅特定服务器不提醒"
[IgnoreAllOnlyAlertSpecificServers]
other = "忽略所有,仅提醒特定服务器"
[IgnoreAllRequestOnlyThroughSpecificServers]
other = "忽略所有,仅通过特定服务器请求"
[AllIncludedOnlySpecificServersAreNotRequest]
other = "覆盖所有,仅特定服务器不请求"
[ServerIDSeparatedByCommas]
other = "服务器ID 以逗号隔开"
[IPChangeNotificationTag]
other = "提醒发送至指定的通知分组"
[NotificationMessagesDoNotHideIP]
other = "通知信息IP不打码"
[Save]
other = "保存"
[ModifiedSuccessfully]
other = "修改成功"
[TerminalConnectionTimeOutOrSessionEnded]
other = "Terminal 连接超时或会话已结束"
[TerminalConnectionFailed]
other = "Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况"
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 = "验证查看密码"

View File

@ -6,7 +6,7 @@
<div class="ui styled fluid accordion" v-for="group in groups">
<div class="active title">
<i class="dropdown icon"></i>
@#(group.Tag!==''?group.Tag:'默认')#@
@#(group.Tag!==''?group.Tag:'{{tr "Default"}}')#@
</div>
<div class="active content">
<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
v-if='server.Host.Platform == "windows"' class="windows icon"></i><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>
<div class="ui content popup" style="margin-bottom: 0">
系统:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@
{{tr "Platform"}}:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@
[<span
v-if="server.Host.Virtualization">@#server.Host.Virtualization#@:</span>@#server.Host.Arch#@]<br />
CPU@#server.Host.CPU#@<br />
硬盘:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br />
内存:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br />
交换:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br />
流量:<i
CPU:@#server.Host.CPU#@<br />
{{tr "DiskUsed"}}:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br />
{{tr "MemUsed"}}:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br />
{{tr "SwapUsed"}}:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br />
{{tr "NetTransfer"}}:<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 />
负载:@# toFixed2(server.State.Load1) #@/@# toFixed2(server.State.Load5) #@/@#
{{tr "Load"}}:@# toFixed2(server.State.Load1) #@/@# toFixed2(server.State.Load5) #@/@#
toFixed2(server.State.Load15) #@<br />
进程数:@# server.State.ProcessCount #@<br />
连接数:TCP @# server.State.TcpConnCount #@ / UDP @# server.State.UdpConnCount #@<br />
启动:@# formatTimestamp(server.Host.BootTime) #@<br />
活动:@# new Date(server.LastActive).toLocaleString() #@<br />
版本:@#server.Host.Version#@<br />
{{tr "ProcessCount"}}:@# server.State.ProcessCount #@<br />
{{tr "ConnCount"}}:TCP @# server.State.TcpConnCount #@ / UDP @# server.State.UdpConnCount #@<br />
{{tr "BootTime"}}:@# formatTimestamp(server.Host.BootTime) #@<br />
{{tr "LastActive"}}:@# new Date(server.LastActive).toLocaleString() #@<br />
{{tr "Version"}}:@#server.Host.Version#@<br />
</div>
<div class="ui divider" style="margin-bottom: 5px"></div>
</div>
@ -50,7 +50,7 @@
</div>
</div>
</div>
<div class="three wide column">内存</div>
<div class="three wide column">{{tr "MemUsed"}}</div>
<div class="thirteen wide column">
<div :class="formatPercent(server.live,server.State.MemUsed, server.Host.MemTotal).class">
<div class="bar"
@ -59,7 +59,7 @@
</div>
</div>
</div>
<div class="three wide column">交换</div>
<div class="three wide column">{{tr "SwapUsed"}}</div>
<div class="thirteen wide column">
<div :class="formatPercent(server.live,server.State.SwapUsed, server.Host.SwapTotal).class">
<div class="bar"
@ -68,14 +68,14 @@
</div>
</div>
</div>
<div class="three wide column">网络</div>
<div class="three wide column">{{tr "NetSpeed"}}</div>
<div class="thirteen wide column">
<i class="arrow alternate circle down outline icon"></i>
@#formatByteSize(server.State.NetInSpeed)#@/s
<i class="arrow alternate circle up outline icon"></i>
@#formatByteSize(server.State.NetOutSpeed)#@/s
</div>
<div class="three wide column">硬盘</div>
<div class="three wide column">{{tr "DiskUsed"}}</div>
<div class="thirteen wide column">
<div :class="formatPercent(server.live,server.State.DiskUsed, server.Host.DiskTotal).class">
<div class="bar"
@ -84,7 +84,7 @@
</div>
</div>
</div>
<div class="three wide column">在线</div>
<div class="three wide column">{{tr "Uptime"}}</div>
<div class="thirteen wide column">
<i class="clock icon"></i>@#secondToDate(server.State.Uptime)#@
</div>
@ -93,7 +93,7 @@
</div>
<div class="content" v-else>
<p>@#server.Name#@</p>
<p>节点已离线</p>
<p>{{tr "ServerIsOffline"}}</p>
</div>
</div>
</div>
@ -163,7 +163,7 @@
secondToDate(s) {
var d = Math.floor(s / 3600 / 24);
if (d > 0) {
return d + ""
return d + "{{tr "Day"}}"
}
var h = Math.floor(s / 3600 % 24);
var m = Math.floor(s / 60 % 60);
@ -205,8 +205,8 @@
const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
ws.onopen = function (evt) {
$.suiAlert({
title: '实时通道建立',
description: '可以实时获取最新监控数据啦',
title: '{{tr "RealtimeChannelEstablished"}}',
description: '{{tr "GetTheLatestMonitoringDataInRealTime"}}',
type: 'success',
time: '2',
position: 'top-center',
@ -232,8 +232,8 @@
}
ws.onclose = function () {
$.suiAlert({
title: '实时通道断开',
description: '无法实时获取最新监控数据咯',
title: '{{tr "RealtimeChannelDisconnect"}}',
description: '{{tr "CanNotGetTheLatestMonitoringDataInRealTime"}}',
type: 'warning',
time: '2',
position: 'top-center',

View File

@ -10,10 +10,10 @@
<table class="ui celled table">
<thead>
<tr>
<th class="ui center aligned">名称</th>
<th class="ui center aligned">30天在线率</th>
<th class="ui center aligned">详情</th>
<th class="ui center aligned">状态</th>
<th class="ui center aligned">{{tr "Name"}}</th>
<th class="ui center aligned">{{tr "30DaysOnline"}}</th>
<th class="ui center aligned">{{tr "Details"}}</th>
<th class="ui center aligned">{{tr "Status"}}</th>
</tr>
</thead>
<tbody>
@ -25,7 +25,7 @@
</td>
<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)))}}"
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}}
</td>
<td class="ui center aligned delay-today">
@ -39,20 +39,20 @@
{{if .CycleTransferStats}}
<h2 style="text-align: center;">循环流量统计</h2>
<h2 style="text-align: center;">{{tr "CycleTransferStats"}}</h2>
<table class="ui celled table">
<thead>
<tr>
<th class="ui center aligned">ID</th>
<th class="ui center aligned">规则</th>
<th class="ui center aligned">服务器</th>
<th class="ui center aligned"></th>
<th class="ui center aligned"></th>
<th class="ui center aligned">{{tr "Rules"}}</th>
<th class="ui center aligned">{{tr "Server"}}</th>
<th class="ui center aligned">{{tr "From"}}</th>
<th class="ui center aligned">{{tr "To"}}</th>
<th class="ui center aligned">MAX</th>
<th class="ui center aligned">MIN</th>
<th class="ui center aligned">下次检查</th>
<th class="ui center aligned">当前用量</th>
<th class="ui center aligned">{{tr "NextCheck"}}</th>
<th class="ui center aligned">{{tr "CurrentUsage"}}</th>
</tr>
</thead>
<tbody>

View File

@ -9,14 +9,14 @@
<h2 class="ui image header">
<img src="static/logo.svg?v20210804" class="image">
<div class="content">
验证查看密码
{{tr "VerifyPassword"}}
</div>
</h2>
<form action="/view-password" method="POST" class="ui form">
<div class="field">
<input type="password" name="Password">
</div>
<button class="ui nezha-primary-btn button" type="submit">确认</button>
<button class="ui nezha-primary-btn button" type="submit">{{tr "Confirm"}}</button>
</form>
</div>
</div>