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/common/head.html | 54 +- web/html/common/qrcode_modal.html | 249 ++++--- web/html/login.html | 145 ++-- 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 ++++++------- 25 files changed, 2543 insertions(+), 2392 deletions(-) (limited to 'web/html') diff --git a/web/html/common/head.html b/web/html/common/head.html index b2533098..6c195db5 100644 --- a/web/html/common/head.html +++ b/web/html/common/head.html @@ -1,32 +1,32 @@ {{define "head"}} - - - - - - - - - {{ .host }}-{{ i18n .title}} + + + + + + + + + {{ .host }}-{{ i18n .title}}
{{end}} \ No newline at end of file diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 524335cf..fd5a17b7 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -1,110 +1,165 @@ {{define "qrcodeModal"}} - - {{ i18n "pages.inbounds.clickOnQRcode" }} - - - {{ i18n "pages.inbounds.client" }} - + :footer="null" width="fit-content"> + + + + {{end}} diff --git a/web/html/login.html b/web/html/login.html index dfb01cea..ae6bfde5 100644 --- a/web/html/login.html +++ b/web/html/login.html @@ -400,7 +400,7 @@ - + @@ -461,7 +461,7 @@ - + @@ -476,83 +476,82 @@ {{template "component/themeSwitcher" .}} {{template "component/password" .}} 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"}} - - - - {{template "menuItems" .}} - + + + + {{template "menuItems" .}} + - -
- -
- - - {{template "menuItems" .}} - + +
+ +
+ + + {{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"}} +{{end}} + +{{define "component/themeSwitchTemplateLogin"}} +