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/common_sider.html | 86 +--
web/html/xui/component/sortableTable.html | 418 +++++------
web/html/xui/component/themeSwitch.html | 57 +-
web/html/xui/dns_modal.html | 163 ++---
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 +++++----
web/html/xui/inbound_client_table.html | 471 ++++++------
web/html/xui/inbound_info_modal.html | 892 ++++++++++++-----------
web/html/xui/inbounds.html | 95 ++-
web/html/xui/index.html | 25 +-
web/html/xui/xray.html | 78 +-
web/html/xui/xray_rule_modal.html | 493 ++++++-------
22 files changed, 2292 insertions(+), 2195 deletions(-)
(limited to 'web/html/xui')
diff --git a/web/html/xui/common_sider.html b/web/html/xui/common_sider.html
index bc8f4608..df659489 100644
--- a/web/html/xui/common_sider.html
+++ b/web/html/xui/common_sider.html
@@ -1,61 +1,65 @@
{{define "menuItems"}}
-
- {{ i18n "menu.dashboard"}}
+
+
+ {{ i18n "menu.dashboard"}}
+
-
- {{ i18n "menu.inbounds"}}
+
+
+ {{ i18n "menu.inbounds"}}
+
-
- {{ i18n "menu.settings"}}
+
+
+ {{ i18n "menu.settings"}}
+
-
- {{ i18n "menu.xray"}}
+
+
+ {{ i18n "menu.xray"}}
+
-
- {{ i18n "menu.logout"}}
+
+
+ {{ i18n "menu.logout"}}
+
{{end}}
{{define "commonSider"}}
-
-
- key.startsWith('http') ? window.open(key) : location.href = key">
- {{template "menuItems" .}}
-
+
+
+ key.startsWith('http') ? window.open(key) : location.href = key">
+ {{template "menuItems" .}}
+
-
-
-
- key.startsWith('http') ? window.open(key) : location.href = key">
- {{template "menuItems" .}}
-
+
+
+
+ key.startsWith('http') ? window.open(key) : location.href = key">
+ {{template "menuItems" .}}
+
{{end}}
diff --git a/web/html/xui/component/sortableTable.html b/web/html/xui/component/sortableTable.html
index 5eb2e1cc..f62eba44 100644
--- a/web/html/xui/component/sortableTable.html
+++ b/web/html/xui/component/sortableTable.html
@@ -1,236 +1,216 @@
{{define "component/sortableTableTrigger"}}
-
+
{{end}}
{{define "component/sortableTable"}}
-
-
{{end}}
diff --git a/web/html/xui/component/themeSwitch.html b/web/html/xui/component/themeSwitch.html
index 28fe3e11..0de64a84 100644
--- a/web/html/xui/component/themeSwitch.html
+++ b/web/html/xui/component/themeSwitch.html
@@ -1,6 +1,23 @@
{{define "component/themeSwitchTemplate"}}
-
+
+
+
+
+ Theme
+
+
+
+
+
+
+{{end}}
+
+{{define "component/themeSwitchTemplateLogin"}}
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
-
+
+
+
+
- {{ 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 ]]
-
-
+
+
-
-
+
+