💄 chore: 服务监控相关的前端优化
This commit is contained in:
parent
d896a01883
commit
161102a37b
@ -10,7 +10,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>目标</label>
|
<label>目标</label>
|
||||||
<input type="text" name="Target" placeholder="https://t.tt,t.tt,t.tt:80">
|
<input type="text" name="Target" placeholder="HTTP(https://t.tt)|Ping(t.tt)|TCP(t.tt:80)">
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>类型</label>
|
<label>类型</label>
|
||||||
@ -21,6 +21,13 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</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
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class=" actions">
|
<div class=" actions">
|
||||||
<div class="ui negative button">取消</div>
|
<div class="ui negative button">取消</div>
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
<th>备注</th>
|
<th>备注</th>
|
||||||
<th>类型</th>
|
|
||||||
<th>目标</th>
|
<th>目标</th>
|
||||||
|
<th>类型</th>
|
||||||
<th>管理</th>
|
<th>管理</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -26,7 +26,14 @@
|
|||||||
<td>{{$monitor.ID}}</td>
|
<td>{{$monitor.ID}}</td>
|
||||||
<td>{{$monitor.Name}}</td>
|
<td>{{$monitor.Name}}</td>
|
||||||
<td>{{$monitor.Target}}</td>
|
<td>{{$monitor.Target}}</td>
|
||||||
<td>{{$monitor.Type}}</td>
|
<td>
|
||||||
|
{{if eq $monitor.Type 1}}HTTP(S)/SSL证书
|
||||||
|
{{else if eq $monitor.Type 2}}
|
||||||
|
ICMP Ping
|
||||||
|
{{else}}
|
||||||
|
TCP 端口
|
||||||
|
{{end}}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="ui mini icon buttons">
|
<div class="ui mini icon buttons">
|
||||||
<button class="ui button" onclick="addOrEditMonitor({{$monitor}})">
|
<button class="ui button" onclick="addOrEditMonitor({{$monitor}})">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user