From db24d216210e0038f92e634de1ab8a46fbce4632 Mon Sep 17 00:00:00 2001
From: Tara Rostami <132676256+TaraRostami@users.noreply.github.com>
Date: Sat, 20 Apr 2024 22:15:36 +0330
Subject: UI Improvements (#2228)
* UI Improvements
Better Table
Update QR Code Modal
Better Info Modal
Compression HTML files
Better Dropdown Menu
Better Calendar
and more ..
Remove files
Minor Fixes
---
web/html/xui/form/protocol/http.html | 36 ++++----
web/html/xui/form/protocol/socks.html | 59 ++++++-------
web/html/xui/form/protocol/trojan.html | 88 +++++++++----------
web/html/xui/form/protocol/vless.html | 92 ++++++++++----------
web/html/xui/form/protocol/wireguard.html | 136 +++++++++++++++---------------
5 files changed, 201 insertions(+), 210 deletions(-)
(limited to 'web/html/xui/form/protocol')
diff --git a/web/html/xui/form/protocol/http.html b/web/html/xui/form/protocol/http.html
index a14418a2..3206139e 100644
--- a/web/html/xui/form/protocol/http.html
+++ b/web/html/xui/form/protocol/http.html
@@ -1,21 +1,23 @@
{{define "form/http"}}
-
-
- | {{ i18n "username" }} |
- {{ i18n "password" }} |
- + |
-
-
-
-
- [[ index+1 ]]
-
-
-
- -
-
-
-
+
+
+ | {{ i18n "username" }} |
+ {{ i18n "password" }} |
+
+
+ |
+
+
+
+
+ [[ index+1 ]]
+
+
+
+
+
+
+
{{end}}
diff --git a/web/html/xui/form/protocol/socks.html b/web/html/xui/form/protocol/socks.html
index 105603e5..849ec210 100644
--- a/web/html/xui/form/protocol/socks.html
+++ b/web/html/xui/form/protocol/socks.html
@@ -1,33 +1,34 @@
{{define "form/socks"}}
-
-
-
-
-
-
-
- inbound.settings.auth = checked ? 'password' : 'noauth'">
-
-
-
-
- | {{ i18n "username" }} |
- {{ i18n "password" }} |
- + |
-
-
-
-
- [[ index+1 ]]
-
-
-
- -
-
-
-
-
+
+
+
+
+
+
+
+ inbound.settings.auth = checked ? 'password' : 'noauth'">
+
+
+
+
+ | {{ i18n "username" }} |
+ {{ i18n "password" }} |
+
+
+ |
+
+
+
+
+ [[ index+1 ]]
+
+
+
+
+
+
+
+
{{end}}
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index fe1db139..8c99a67a 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -1,54 +1,50 @@
{{define "form/trojan"}}
-
-
- {{template "form/client"}}
-
+
+
+ {{template "form/client"}}
+
-
-
-
-
- | [[ client.email ]] |
- [[ client.password ]] |
-
-
-
+
+
+
+
+ | [[ client.email ]] |
+ [[ client.password ]] |
+
+
+
-
-
- +
-
-
+
+
+
+
+
-
-
-
- Fallback [[ index + 1 ]]
- inbound.settings.delFallback(index)"
- style="color: rgb(255, 77, 79);cursor: pointer;" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Fallback [[ index + 1 ]] inbound.settings.delFallback(index)" style="color: rgb(255, 77, 79);cursor: pointer;">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{end}}
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index 5ccec3fe..82d5424e 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -1,56 +1,52 @@
{{define "form/vless"}}
-
-
- {{template "form/client"}}
-
+
+
+ {{template "form/client"}}
+
-
-
-
-
- | [[ client.email ]] |
- [[ client.flow ]] |
- [[ client.id ]] |
-
-
-
+
+
+
+
+ | [[ client.email ]] |
+ [[ client.flow ]] |
+ [[ client.id ]] |
+
+
+
-
-
- +
-
-
+
+
+
+
+
-
-
-
- Fallback [[ index + 1 ]]
- inbound.settings.delFallback(index)"
- style="color: rgb(255, 77, 79);cursor: pointer;" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Fallback [[ index + 1 ]] inbound.settings.delFallback(index)" style="color: rgb(255, 77, 79);cursor: pointer;">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{end}}
diff --git a/web/html/xui/form/protocol/wireguard.html b/web/html/xui/form/protocol/wireguard.html
index a1ac5628..738aaf5f 100644
--- a/web/html/xui/form/protocol/wireguard.html
+++ b/web/html/xui/form/protocol/wireguard.html
@@ -1,80 +1,76 @@
{{define "form/wireguard"}}
-
-
-
-
- {{ i18n "reset" }}
-
- {{ i18n "pages.xray.wireguard.secretKey" }}
-
-
-
+
+
+
+
+ {{ i18n "reset" }}
-
+ {{ i18n "pages.xray.wireguard.secretKey" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Peer [[ index + 1 ]] inbound.settings.delPeer(index)" style="color: rgb(255, 77, 79);cursor: pointer;">
+
+
+
+
+
+ {{ i18n "reset" }}
+
+ {{ i18n "pages.xray.wireguard.secretKey" }}
+
+
+
+
-
-
+
+
+ {{ i18n "pages.xray.wireguard.publicKey" }}
+
+
-
-
+
+
+
+
+ {{ i18n "reset" }}
+
+ {{ i18n "pages.xray.wireguard.psk" }}
+
+
+
+
-
-
+
+
+ {{ i18n "pages.xray.wireguard.allowedIPs" }}
+
+
+
+
+
+
+
-
- +
+
+
-
-
- Peer [[ index + 1 ]]
- inbound.settings.delPeer(index)"
- style="color: rgb(255, 77, 79);cursor: pointer;"/>
-
-
-
-
-
- {{ i18n "reset" }}
-
- {{ i18n "pages.xray.wireguard.secretKey" }}
-
-
-
-
-
-
-
- {{ i18n "pages.xray.wireguard.publicKey" }}
-
-
-
-
-
-
-
- {{ i18n "reset" }}
-
- {{ i18n "pages.xray.wireguard.psk" }}
-
-
-
-
-
-
-
- {{ i18n "pages.xray.wireguard.allowedIPs" }} +
-
-
-
- -
-
-
-
-
-
-
-
+
{{end}}
\ No newline at end of file
--
cgit v1.2.3