mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
modified: resource/l10n/zh-CN.toml
modified: resource/template/common/menu.html modified: resource/template/component/confirm.html modified: resource/template/component/cron.html modified: resource/template/component/monitor.html modified: resource/template/component/notification.html modified: resource/template/component/rule.html modified: resource/template/component/server.html modified: resource/template/dashboard/cron.html modified: resource/template/dashboard/error.html modified: resource/template/dashboard/login.html modified: resource/template/dashboard/monitor.html modified: resource/template/dashboard/notification.html modified: resource/template/dashboard/server.html modified: resource/template/dashboard/setting.html modified: resource/template/dashboard/terminal.html
This commit is contained in:
4
resource/template/component/confirm.html
vendored
4
resource/template/component/confirm.html
vendored
@@ -4,8 +4,8 @@
|
||||
<div class="content">
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
38
resource/template/component/cron.html
vendored
38
resource/template/component/cron.html
vendored
@@ -1,62 +1,60 @@
|
||||
{{define "component/cron"}}
|
||||
<div class="ui tiny cron modal transition hidden">
|
||||
<div class="header">添加计划任务</div>
|
||||
<div class="header">{{tr "AddScheduledTasks"}}</div>
|
||||
<div class="content">
|
||||
<form id="cronForm" class="ui form">
|
||||
<input type="hidden" name="ID">
|
||||
<div class="field">
|
||||
<label>名称</label>
|
||||
<input type="text" name="Name" placeholder="备份">
|
||||
<label>{{tr "Name"}}</label>
|
||||
<input type="text" name="Name" placeholder="{{tr "BackUp"}}">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>计划</label>
|
||||
<input type="text" name="Scheduler" placeholder="0 0 3 * * *(每天3点)">
|
||||
<label>{{tr "Scheduler"}}</label>
|
||||
<input type="text" name="Scheduler" placeholder="0 0 3 * * *{{tr "3amDaily"}}">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>命令</label>
|
||||
<label>{{tr "Command"}}</label>
|
||||
<textarea name="Command"></textarea>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>覆盖范围</label>
|
||||
<label>{{tr "Coverage"}}</label>
|
||||
<select name="Cover" class="ui fluid dropdown">
|
||||
<option value="0">忽略所有,仅通过特定服务器执行</option>
|
||||
<option value="1">覆盖所有,仅特定服务器不执行</option>
|
||||
<option value="0">{{tr "IgnoreAllAndExecuteOnlyThroughSpecificServers"}}</option>
|
||||
<option value="1">{{tr "AllIncludedOnlySpecificServersAreNotExecuted"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>特定服务器</label>
|
||||
<label>{{tr "SpecificServers"}}</label>
|
||||
<div class="ui fluid multiple servers search selection dropdown">
|
||||
<input type="hidden" name="ServersRaw">
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="default text">输入ID/名称以搜索</div>
|
||||
<div class="default text">{{tr "EnterIdAndNameToSearch"}}</div>
|
||||
<div class="menu"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>通知方式组</label>
|
||||
<label>{{tr "NotificationMethod"}}}</label>
|
||||
<input type="text" name="NotificationTag" placeholder="default">
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui push-successful checkbox">
|
||||
<input name="PushSuccessful" type="checkbox" tabindex="0" class="hidden">
|
||||
<label>推送成功的消息</label>
|
||||
<label>{{tr "PushSuccessMessages"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="ui warning message">
|
||||
<p>
|
||||
计划的格式为:<code>* * * * * *</code> 秒 分 时 天 月 星期,详情见 <a
|
||||
{{tr "TheFormaOfTheScheduleIs"}}<code>* * * * * *</code> {{tr "SecondsMinutesHoursDaysMonthsWeeksSeeDetails"}} <a
|
||||
href="https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format"
|
||||
target="_blank">计划表达式格式</a><br>
|
||||
命令:就像写 shell/bat 脚本一样,但是不推荐换行,多个命令使用 <code>&&</code>/<code>&</code> 连接,如果遇到 xxx 命令找不到,可能是
|
||||
<code>PATH</code> 环境变量的问题,<code>Linux</code> 主机在命令开头加入
|
||||
<code>source ~/.bashrc</code>或者使用绝对路径执行。
|
||||
target="_blank">{{tr "ScheduleExpressionFormat"}}</a><br>
|
||||
{{tr "IntroductionOfCommands"}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
39
resource/template/component/monitor.html
vendored
39
resource/template/component/monitor.html
vendored
@@ -1,15 +1,15 @@
|
||||
{{define "component/monitor"}}
|
||||
<div class="ui tiny monitor modal transition hidden">
|
||||
<div class="header">添加监控</div>
|
||||
<div class="header">{{tr "AddMonitor"}}</div>
|
||||
<div class="content">
|
||||
<form id="monitorForm" class="ui form">
|
||||
<input type="hidden" name="ID" />
|
||||
<div class="field">
|
||||
<label>名称</label>
|
||||
<input type="text" name="Name" placeholder="博客" />
|
||||
<label>{{tr "Name"}}</label>
|
||||
<input type="text" name="Name" placeholder="{{tr "Blog"}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>目标</label>
|
||||
<label>{{tr "Target"}}</label>
|
||||
<input
|
||||
type="text"
|
||||
name="Target"
|
||||
@@ -17,57 +17,54 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>类型</label>
|
||||
<label>{{tr "Type"}}</label>
|
||||
<select name="Type" class="ui fluid dropdown">
|
||||
<option value="1">HTTP-GET(SSL到期、变更)</option>
|
||||
<option value="1">HTTP-GET{{tr "SslExpirationOrChange"}}</option>
|
||||
<option value="2">ICMP-Ping</option>
|
||||
<option value="3">TCP-Ping</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>请求间隔</label>
|
||||
<input type="number" name="Duration" placeholder="秒" />
|
||||
<label>{{tr "Duration"}}</label>
|
||||
<input type="number" name="Duration" placeholder="{{tr "Seconds"}}" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>覆盖范围</label>
|
||||
<label>{{tr "Coverage"}}</label>
|
||||
<select name="Cover" class="ui fluid dropdown">
|
||||
<option value="0">覆盖所有,仅忽略特定服务器</option>
|
||||
<option value="1">忽略所有,仅通过特定服务器请求</option>
|
||||
<option value="0">{{tr "AllIncludedOnlySpecificServersAreNotRequest"}}</option>
|
||||
<option value="1">{{tr "IgnoreAllRequestOnlyThroughSpecificServers"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>特定服务器</label>
|
||||
<label>{{tr "SpecificServers"}}</label>
|
||||
<div class="ui fluid multiple servers search selection dropdown">
|
||||
<input type="hidden" name="SkipServersRaw" />
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="default text">输入ID/名称以搜索</div>
|
||||
<div class="default text">{{tr "EnterIdAndNameToSearch"}}}}</div>
|
||||
<div class="menu"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>通知方式组</label>
|
||||
<label>{{tr "NotificationMethod"}}</label>
|
||||
<input type="text" name="NotificationTag" placeholder="default" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui nb-notify checkbox">
|
||||
<input name="Notify" type="checkbox" tabindex="0" class="hidden" />
|
||||
<label>启用故障通知</label>
|
||||
<label>{{tr "EnableFailureNotification"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="ui warning message">
|
||||
<p>
|
||||
类型为 <b>HTTP-GET</b> 时输入URL(带 http/https, HTTPS
|
||||
协议的会顺带监控SSL证书);<br />
|
||||
类型为 <b>ICMP-Ping</b> 时输入主机名/IP,不带端口;<br />
|
||||
类型为 <b>TCP-Ping</b> 时输入主机名/IP + 端口号:example.com:22
|
||||
{{tr "IntroductionOfMonitor"}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">
|
||||
确认<i class="checkmark icon"></i>
|
||||
{{tr "Confirm"}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
18
resource/template/component/notification.html
vendored
18
resource/template/component/notification.html
vendored
@@ -1,15 +1,15 @@
|
||||
{{define "component/notification"}}
|
||||
<div class="ui tiny notification modal transition hidden">
|
||||
<div class="header">添加通知方式</div>
|
||||
<div class="header">{{tr "AddNotificationMethod"}}</div>
|
||||
<div class="content">
|
||||
<form id="notificationForm" class="ui form">
|
||||
<input type="hidden" name="ID">
|
||||
<div class="field">
|
||||
<label>名称</label>
|
||||
<label>{{tr "Name"}}</label>
|
||||
<input type="text" name="Name">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>分组</label>
|
||||
<label>{{tr "Tag"}}</label>
|
||||
<input type="text" name="Tag" placeholder="default">
|
||||
</div>
|
||||
<div class="field">
|
||||
@@ -17,14 +17,14 @@
|
||||
<input type="text" name="URL">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>请求方式</label>
|
||||
<label>{{tr "RequestMethod"}}</label>
|
||||
<select name="RequestMethod" class="ui fluid dropdown">
|
||||
<option value="1">GET</option>
|
||||
<option value="2">POST</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>请求类型</label>
|
||||
<label>{{tr "RequestType"}}</label>
|
||||
<select name="RequestType" class="ui fluid dropdown">
|
||||
<option value="1">JSON</option>
|
||||
<option value="2">FORM</option>
|
||||
@@ -41,20 +41,20 @@
|
||||
<div class="field">
|
||||
<div class="ui nf-ssl checkbox">
|
||||
<input name="VerifySSL" type="checkbox" tabindex="0" class="hidden">
|
||||
<label>验证SSL</label>
|
||||
<label>{{tr "VerifySSL"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui nf-skip-check checkbox">
|
||||
<input name="SkipCheck" type="checkbox" tabindex="0" class="hidden">
|
||||
<label>不发送测试信息</label>
|
||||
<label>{{tr "DoNotSendTestMessages"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
14
resource/template/component/rule.html
vendored
14
resource/template/component/rule.html
vendored
@@ -1,32 +1,32 @@
|
||||
{{define "component/rule"}}
|
||||
<div class="ui tiny rule modal transition hidden">
|
||||
<div class="header">添加通知规则</div>
|
||||
<div class="header">{{tr "AddNotificationRule"}}</div>
|
||||
<div class="content">
|
||||
<form id="ruleForm" class="ui form">
|
||||
<input type="hidden" name="ID">
|
||||
<div class="field">
|
||||
<label>名称</label>
|
||||
<label>{{tr "Name"}}</label>
|
||||
<input type="text" name="Name">
|
||||
</div>
|
||||
<div class="secret field">
|
||||
<label>规则</label>
|
||||
<label>{{tr "Rules"}}</label>
|
||||
<textarea name="RulesRaw"></textarea>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>通知方式组</label>
|
||||
<label>{{tr "NotificationMethod"}}</label>
|
||||
<input type="text" name="NotificationTag" placeholder="default">
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui rule-enable checkbox">
|
||||
<input name="Enable" type="checkbox" tabindex="0" class="hidden">
|
||||
<label>启用</label>
|
||||
<label>{{tr "Enable"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
26
resource/template/component/server.html
vendored
26
resource/template/component/server.html
vendored
@@ -1,32 +1,32 @@
|
||||
{{define "component/server"}}
|
||||
<div class="ui tiny server modal transition hidden">
|
||||
<div class="header">添加服务器</div>
|
||||
<div class="header">{{tr "AddServer"}}</div>
|
||||
<div class="content">
|
||||
<form id="serverForm" class="ui form">
|
||||
<input type="hidden" name="id">
|
||||
<div class="field">
|
||||
<label>名称</label>
|
||||
<input type="text" name="name" placeholder="爱因斯坦-光速1号">
|
||||
<label>{{tr "Name"}}</label>
|
||||
<input type="text" name="name" placeholder="{{tr "EinsteinLightspeed1"}}">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>分组</label>
|
||||
<input type="text" name="Tag" placeholder="服务器分组">
|
||||
<label>{{tr "Tag"}}</label>
|
||||
<input type="text" name="Tag" placeholder="{{tr "ServerGroup"}}">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>排序</label>
|
||||
<input type="number" name="DisplayIndex" placeholder="越大越靠前">
|
||||
<label>{{tr "DisplayIndex"}}</label>
|
||||
<input type="number" name="DisplayIndex" placeholder="{{tr "TheLargerTheNumberTheHigherThePriority"}}">
|
||||
</div>
|
||||
<div class="secret field">
|
||||
<label>密钥</label>
|
||||
<label>{{tr "Secret"}}</label>
|
||||
<input type="text" name="secret">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>备注</label>
|
||||
<label>{{tr "Note"}}</label>
|
||||
<textarea name="Note"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="command field">
|
||||
<label>Linux 一键安装</label>
|
||||
<label>{{tr "LinuxOneKeyInstall"}}</label>
|
||||
<div class="ui message">
|
||||
{{if .Conf.GRPCHost}}
|
||||
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod
|
||||
@@ -34,15 +34,15 @@
|
||||
class="command">{{if .Conf.ProxyGRPCPort}}{{.Conf.ProxyGRPCPort}}{{else}}{{.Conf.GRPCPort}}{{end}}</code> <code
|
||||
class="command hostSecret"></code> <code class="command">{{if .Conf.TLS}}--tls{{end}}</code>
|
||||
{{else}}
|
||||
请先在设置页面配置 未接入CDN的面板服务器域名/IP
|
||||
{{tr "NoDomainAlert"}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class=" actions">
|
||||
<div class="ui negative button">取消</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
||||
<div class="ui negative button">{{tr "Cancel"}}</div>
|
||||
<button class="ui positive nezha-primary-btn right labeled icon button">{{tr "Confirm"}}<i class="checkmark icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user