From 5468f91101e0fdaf6a2dc380bc609639241bf26f Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 28 Feb 2025 18:32:40 -0300 Subject: [PATCH] vpn invite modal operations --- templates/wireguard/wireguard_peer_list.html | 259 ++++++++++++++++--- 1 file changed, 225 insertions(+), 34 deletions(-) diff --git a/templates/wireguard/wireguard_peer_list.html b/templates/wireguard/wireguard_peer_list.html index 3702563..8a5a5ea 100644 --- a/templates/wireguard/wireguard_peer_list.html +++ b/templates/wireguard/wireguard_peer_list.html @@ -14,6 +14,13 @@ .blinking-icon { animation: blink 1s step-start infinite; } + /* Estilo para diferenciar o texto de invite */ + #inviteTextContainer { + border: 1px solid #ccc; + padding: 10px; + margin-bottom: 10px; + background-color: #f9f9f9; + } {% endblock %} @@ -38,7 +45,7 @@
{% comment %}background: linear-gradient(to right, white 50%, transparent 50%);{% endcomment %} -
+
@@ -46,19 +53,19 @@
- {% if user_acl.user_level >= 30 %} -
- - - -
- - - -
-
- {% endif %} -
+ {% if user_acl.user_level >= 30 %} +
+ + + +
+ + + +
+
+ {% endif %} +
Throughput:
Transfer:
@@ -66,19 +73,19 @@
Endpoints:
- Allowed IPs: - - {% for address in peer.peerallowedip_set.all %} - {% if address.priority == 0 and address.config_file == 'server' %} - {{ address }} - {% endif %} - {% endfor %} - {% for address in peer.peerallowedip_set.all %} - {% if address.priority >= 1 and address.config_file == 'server' %} - {{ address }} - {% endif %} - {% endfor %} - + Allowed IPs: + + {% for address in peer.peerallowedip_set.all %} + {% if address.priority == 0 and address.config_file == 'server' %} + {{ address }} + {% endif %} + {% endfor %} + {% for address in peer.peerallowedip_set.all %} + {% if address.priority >= 1 and address.config_file == 'server' %} + {{ address }} + {% endif %} + {% endfor %} +
@@ -148,11 +155,38 @@ QR Code
+ + +
@@ -215,7 +249,6 @@ legend: { display: false }, - responsive: true, scales: { xAxes: [{ @@ -229,7 +262,6 @@ gridLines: { display: false } }] }, - animation: { duration: 0 } @@ -247,6 +279,7 @@ var uuid = $("#peerPreviewModal").data("peer-uuid"); $("#qrCodeImg").attr("src", "/tools/download_peer_config/?uuid=" + uuid + "&format=qrcode"); $(".info-content").hide(); + $(".invite-content").hide(); $(".qr-code-content").show(); }); @@ -261,6 +294,7 @@ + + + +{% endblock %}