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/outbound.html | 660 +++++++++++------------
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 +++--
web/html/xui/form/stream/external_proxy.html | 47 +-
web/html/xui/form/stream/stream_http.html | 28 +-
web/html/xui/form/stream/stream_httpupgrade.html | 44 +-
web/html/xui/form/stream/stream_tcp.html | 138 +++--
web/html/xui/form/stream/stream_ws.html | 44 +-
web/html/xui/form/tls_settings.html | 337 ++++++------
12 files changed, 830 insertions(+), 879 deletions(-)
(limited to 'web/html/xui/form')
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index 98551495..af432fdf 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -1,225 +1,211 @@
{{define "form/outbound"}}
- {outModal.toggleJson(activeKey == '2'); }">
-
-
-
-
- [[ y ]]
-
-
-
-
-
-
-
-
+ {outModal.toggleJson(activeKey == '2'); }">
+
+
+
+
+ [[ y ]]
+
+
+
+
+
+
+
+
-
-
+
+
-
- [[ s ]]
-
+
+ [[ s ]]
+
- outbound.settings.fragment = checked ? new Outbound.FreedomSettings.Fragment() : {}">
-
+ outbound.settings.fragment = checked ? new Outbound.FreedomSettings.Fragment() : {}">
-
-
-
- [[ s ]]
+
+
+
+ [[ s ]]
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
[[ s ]]
-
-
-
+
+
+
-
-
-
-
+
+
+
+
[[ s ]]
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
- {{ i18n "pages.xray.rules.useComma" }}
-
- {{ i18n "pages.xray.outbound.address" }}
+
+ {{ i18n "pages.xray.rules.useComma" }}
+
+ {{ i18n "pages.xray.outbound.address" }}
+
-
-
-
-
-
+
+
+
+
+
-
- {{ i18n "reset" }}
-
- {{ i18n "pages.xray.wireguard.secretKey" }}
-
-
+
+ {{ i18n "reset" }}
+
+ {{ i18n "pages.xray.wireguard.secretKey" }}
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
[[ wds ]]
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- {{ i18n "pages.xray.rules.useComma" }}
-
- Reserved
+
+ {{ i18n "pages.xray.rules.useComma" }}
+ Reserved
-
-
-
-
- +
-
-
-
- Peer [[ index + 1 ]]
- outbound.settings.delPeer(index)"
- style="color: rgb(255, 77, 79);cursor: pointer;"/>
-
-
-
-
+
+
-
-
+
+
-
+
+ Peer [[ index + 1 ]] outbound.settings.delPeer(index)" style="color: rgb(255, 77, 79);cursor: pointer;">
+
+
+
+
+
+
+
+
-
-
+
+
- {{ i18n "pages.xray.wireguard.allowedIPs" }} +
+ {{ i18n "pages.xray.wireguard.allowedIPs" }}
+
-
- -
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
-
+
+
+
+
- {{ i18n "none" }}
- [[ key ]]
+ {{ i18n "none" }}
+ [[ key ]]
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- [[ method_name ]]
+ [[ method_name ]]
-
-
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
TCP
mKCP
WebSocket
@@ -227,235 +213,229 @@
QUIC
gRPC
HTTPUpgrade
-
-
-
-
- outbound.stream.tcp.type = checked ? 'http' : 'none'">
-
+
-
+
+
+ outbound.stream.tcp.type = checked ? 'http' : 'none'">
+
+
-
+
-
+
+
-
-
-
-
+
+
+
- None
- SRTP
- uTP
- WeChat
- DTLS 1.2
- WireGuard
- DNS
+ None
+ SRTP
+ uTP
+ WeChat
+ DTLS 1.2
+ WireGuard
+ DNS
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
- None
- AES-128-GCM
- CHACHA20-POLY1305
+ None
+ AES-128-GCM
+ CHACHA20-POLY1305
-
-
+
+
-
-
+
+
- None
- SRTP
- uTP
- WeChat
- DTLS 1.2
- WireGuard
+ None
+ SRTP
+ uTP
+ WeChat
+ DTLS 1.2
+ WireGuard
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
{{ i18n "none" }}
TLS
Reality
-
-
-
-
-
+
-
-
- None
- [[ key ]]
+
+
+
+
+
+
+ None
+ [[ key ]]
-
-
-
- [[ alpn ]]
+
+
+
+ [[ alpn ]]
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
- [[ key ]]
+
+
+
+ [[ key ]]
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
- [[ tag ]]
-
+
+ [[ tag ]]
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
+
+
- [[ c ]]
+ [[ c ]]
-
-
-
-
-
-
-
-
- Link:
-
+
+
+
+
+
+
+ Link:
+
+
+
-
-
+
+
{{end}}
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
diff --git a/web/html/xui/form/stream/external_proxy.html b/web/html/xui/form/stream/external_proxy.html
index 9c3ed2e0..defed984 100644
--- a/web/html/xui/form/stream/external_proxy.html
+++ b/web/html/xui/form/stream/external_proxy.html
@@ -1,26 +1,29 @@
{{define "form/externalProxy"}}
-
-
-
- +
-
-
-
-
-
- {{ i18n "pages.inbounds.same" }}
- {{ i18n "none" }}
- TLS
-
-
-
-
-
-
-
-
- -
-
+
+
+
+
+
+
+
+
+