Skip to content

Commit 0360b85

Browse files
committed
gw: Tune web ui layout
1 parent 890f9e8 commit 0360b85

1 file changed

Lines changed: 56 additions & 55 deletions

File tree

gateway/templates/dashboard.html

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -476,61 +476,6 @@ <h2>Global Connections</h2>
476476
</td>
477477
</tr>
478478
</table>
479-
<h2>Cluster</h2>
480-
<table>
481-
<tr>
482-
<th>ID</th>
483-
<th>UUID</th>
484-
<th>Status</th>
485-
<th>Last Seen</th>
486-
<th>Wg IP</th>
487-
<th>Wg Endpoint</th>
488-
<th>URL</th>
489-
<th>Actions</th>
490-
</tr>
491-
{% for node in status.nodes %}
492-
<tr class="{% if node.uuid == status.uuid %}me{% endif %}">
493-
<td>{{ node.id }}</td>
494-
<td class="truncated-id" title="{{ node.uuid|hex }}">{{ node.uuid|hex }}</td>
495-
<td class="node-status" data-node-id="{{ node.id }}">-</td>
496-
<td class="timestamp">{{ node.last_seen }}</td>
497-
<td>{{ node.wg_ip }}</td>
498-
<td>{{ node.wg_endpoint }}</td>
499-
<td>{{ node.url }}</td>
500-
<td>
501-
<div class="status-controls">
502-
<button class="status-btn up" onclick="setNodeStatus({{ node.id }}, 'up')">Up</button>
503-
<button class="status-btn down" onclick="setNodeStatus({{ node.id }}, 'down')">Down</button>
504-
</div>
505-
</td>
506-
</tr>
507-
{% endfor %}
508-
</table>
509-
<h2>CVM List</h2>
510-
<table>
511-
<tr>
512-
<th>Instance ID</th>
513-
<th>App ID</th>
514-
<th>IP</th>
515-
<th>Last Seen</th>
516-
<th>Connections</th>
517-
</tr>
518-
{% for host in status.hosts %}
519-
<tr>
520-
<td class="truncated-id" title="{{ host.instance_id }}">{{ host.instance_id }}</td>
521-
<td class="truncated-id" title="{{ host.app_id }}">{{ host.app_id }}</td>
522-
<td>{{ host.ip }}</td>
523-
<td class="timestamp">{{ host.latest_handshake }}</td>
524-
<td>{{ host.num_connections }}</td>
525-
</tr>
526-
{% endfor %}
527-
</table>
528-
529-
<h2>WaveKV Sync Status</h2>
530-
<div id="wavekv-status">
531-
<p>Loading WaveKV status...</p>
532-
</div>
533-
534479
<h2>Certbot Configuration</h2>
535480
<table>
536481
<tr>
@@ -587,6 +532,62 @@ <h2>ZT-Domains</h2>
587532
<p>Loading ZT-Domains...</p>
588533
</div>
589534

535+
<h2>Cluster</h2>
536+
<table>
537+
<tr>
538+
<th>ID</th>
539+
<th>UUID</th>
540+
<th>Status</th>
541+
<th>Last Seen</th>
542+
<th>Wg IP</th>
543+
<th>Wg Endpoint</th>
544+
<th>URL</th>
545+
<th>Actions</th>
546+
</tr>
547+
{% for node in status.nodes %}
548+
<tr class="{% if node.uuid == status.uuid %}me{% endif %}">
549+
<td>{{ node.id }}</td>
550+
<td class="truncated-id" title="{{ node.uuid|hex }}">{{ node.uuid|hex }}</td>
551+
<td class="node-status" data-node-id="{{ node.id }}">-</td>
552+
<td class="timestamp">{{ node.last_seen }}</td>
553+
<td>{{ node.wg_ip }}</td>
554+
<td>{{ node.wg_endpoint }}</td>
555+
<td>{{ node.url }}</td>
556+
<td>
557+
<div class="status-controls">
558+
<button class="status-btn up" onclick="setNodeStatus({{ node.id }}, 'up')">Up</button>
559+
<button class="status-btn down" onclick="setNodeStatus({{ node.id }}, 'down')">Down</button>
560+
</div>
561+
</td>
562+
</tr>
563+
{% endfor %}
564+
</table>
565+
566+
<h2>WaveKV Sync Status</h2>
567+
<div id="wavekv-status">
568+
<p>Loading WaveKV status...</p>
569+
</div>
570+
571+
<h2>CVM List</h2>
572+
<table>
573+
<tr>
574+
<th>Instance ID</th>
575+
<th>App ID</th>
576+
<th>IP</th>
577+
<th>Last Seen</th>
578+
<th>Connections</th>
579+
</tr>
580+
{% for host in status.hosts %}
581+
<tr>
582+
<td class="truncated-id" title="{{ host.instance_id }}">{{ host.instance_id }}</td>
583+
<td class="truncated-id" title="{{ host.app_id }}">{{ host.app_id }}</td>
584+
<td>{{ host.ip }}</td>
585+
<td class="timestamp">{{ host.latest_handshake }}</td>
586+
<td>{{ host.num_connections }}</td>
587+
</tr>
588+
{% endfor %}
589+
</table>
590+
590591
<!-- Add DNS Credential Modal -->
591592
<div id="add-dns-cred-modal" class="modal-overlay">
592593
<div class="modal">

0 commit comments

Comments
 (0)