持久化Token

This commit is contained in:
奶爸
2019-12-20 23:58:09 +08:00
parent af146872fe
commit 70f0e92343
13 changed files with 82 additions and 55 deletions

View File

@@ -3,7 +3,7 @@
{{template "common/menu" .}}
<div class="nb-container">
<div class="ui container">
<button class="ui right labeled positive icon button" onclick="addServer()"><i class="add icon"></i> 添加服务器
<button class="ui right labeled positive icon button" onclick="addOrEditServer()"><i class="add icon"></i> 添加服务器
</button>
<table class="ui very basic table">
<thead>
@@ -11,6 +11,7 @@
<th>ID</th>
<th>备注</th>
<th>密钥</th>
<th>管理</th>
</tr>
</thead>
<tbody>
@@ -19,6 +20,16 @@
<td>{{$server.ID}}</td>
<td>{{$server.Name}}</td>
<td>{{$server.Secret}}</td>
<td>
<div class="ui mini icon buttons">
<button class="ui button" onclick="addOrEditServer({{$server}})">
<i class="edit icon"></i>
</button>
<button class="ui button">
<i class="delete icon"></i>
</button>
</div>
</td>
</tr>
{{end}}
</tbody>