nezha/resource/template/component/server.html

48 lines
2.0 KiB
HTML
Raw Normal View History

2019-12-08 10:18:29 -05:00
{{define "component/server"}}
<div class="ui tiny server modal transition hidden">
<div class="header">添加服务器</div>
<div class="content">
<form id="serverForm" class="ui form">
2020-03-22 08:55:27 -04:00
<input type="hidden" name="id">
2019-12-08 10:18:29 -05:00
<div class="field">
2021-01-29 22:22:59 -05:00
<label>名称</label>
2019-12-08 10:18:29 -05:00
<input type="text" name="name" placeholder="爱因斯坦-光速1号">
</div>
2021-01-12 01:09:25 -05:00
<div class="field">
<label>分组</label>
<input type="text" name="Tag" placeholder="服务器分组">
2021-01-12 01:09:25 -05:00
</div>
2021-01-08 08:04:50 -05:00
<div class="field">
2021-01-29 22:22:59 -05:00
<label>排序</label>
2021-01-08 08:04:50 -05:00
<input type="number" name="DisplayIndex" placeholder="越大越靠前">
</div>
2020-03-22 08:55:27 -04:00
<div class="secret field">
<label>密钥</label>
<input type="text" name="secret">
</div>
<div class="field">
2021-01-29 22:22:59 -05:00
<label>备注</label>
<textarea name="Note"></textarea>
</div>
2021-08-09 23:19:31 -04:00
<div class="command field">
2021-08-10 08:04:58 -04:00
<label>Linux 一键安装</label>
2021-08-09 23:19:31 -04:00
<div class="ui message">
2021-08-10 08:04:58 -04:00
{{if .Conf.GRPCHost}}
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod
+x nezha.sh && sudo ./nezha.sh install_agent <code class="command">{{.Conf.GRPCHost}}</code> <code
class="command">{{.Conf.GRPCPort}}</code> <code class="command hostSecret"></code>
{{else}}
请先在设置页面配置 未接入CDN的面板服务器域名/IP
{{end}}
2021-08-09 23:19:31 -04:00
</div>
</div>
2019-12-08 10:18:29 -05:00
</form>
</div>
2020-03-22 08:55:27 -04:00
<div class=" actions">
2019-12-08 10:18:29 -05:00
<div class="ui negative button">取消</div>
2021-08-05 23:48:34 -04:00
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
2019-12-08 10:18:29 -05:00
</button>
</div>
</div>
{{end}}