Work on Maatma interface
This commit is contained in:
parent
9cb1ad6e97
commit
e965705bfe
6 changed files with 401 additions and 13 deletions
48
token-validator/htdocs/views/tunnels.html
Normal file
48
token-validator/htdocs/views/tunnels.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<h2>
|
||||
Tunnels
|
||||
</h2>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Token</th>
|
||||
<th>Dernière utilisation</th>
|
||||
<th>Clef publique</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="tunnel in tunnels">
|
||||
<td><code>{{ tunnel.TokenText }}</code></td>
|
||||
<td>{{ tunnel.Time | date:"medium" }}</td>
|
||||
<td><code ng-show="tunnel.PubKey">{{ tunnel.PubKey }}</code><span ng-show="!tunnel.PubKey">(none)</span></td>
|
||||
<td>
|
||||
<button class="btn btn-danger" ng-click="dropTunnel(tunnel)" disabled>
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ng-show="tunnel.pleaseWaitDrop"></span>
|
||||
Supprimer
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<button class="btn btn-primary" ng-click="newTunnel()">
|
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ng-show="pleaseWaitNew"></span>
|
||||
Nouveau tunnel
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<div class="card mb-4" style="margin: auto; width: 50%;">
|
||||
<h4 class="card-header">Paramètres du tunnel</h4>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><strong>Statut :</strong> {{ wginfo.status }}</li>
|
||||
<li class="list-group-item"><strong>Clef publique du serveur :</strong> <code>{{ wginfo.srv_pubkey }}</code></li>
|
||||
<li class="list-group-item"><strong>Port d'écoute du serveur :</strong> {{ wginfo.srv_port }}</li>
|
||||
<li class="list-group-item"><strong>Adresse IPv6 du tunnel :</strong> {{ wginfo.clt_ipv6 }}/{{ wginfo.clt_range }}</li>
|
||||
<li class="list-group-item"><strong>Gateway/passerelle IPv6 :</strong> {{ wginfo.srv_gw6 }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in a new issue