From e31ec2cade40b60420ec6e3e2bfef34820ed0b25 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Wed, 13 Dec 2023 12:22:08 +0100 Subject: [PATCH] [gui] redesign forms --- web/assets/css/custom.css | 13 +- web/html/xui/client_bulk_modal.html | 263 +++---- web/html/xui/form/client.html | 291 ++++---- web/html/xui/form/inbound.html | 138 ++-- web/html/xui/form/outbound.html | 681 ++++++------------ web/html/xui/form/protocol/dokodemo.html | 56 +- web/html/xui/form/protocol/http.html | 2 +- web/html/xui/form/protocol/shadowsocks.html | 74 +- web/html/xui/form/protocol/socks.html | 79 +- web/html/xui/form/protocol/trojan.html | 1 - web/html/xui/form/protocol/vless.html | 1 - web/html/xui/form/protocol/vmess.html | 1 - web/html/xui/form/sniffing.html | 8 +- web/html/xui/form/stream/external_proxy.html | 46 +- web/html/xui/form/stream/stream_grpc.html | 26 +- web/html/xui/form/stream/stream_http.html | 37 +- web/html/xui/form/stream/stream_kcp.html | 117 +-- web/html/xui/form/stream/stream_quic.html | 59 +- web/html/xui/form/stream/stream_settings.html | 4 +- web/html/xui/form/stream/stream_sockopt.html | 58 +- web/html/xui/form/stream/stream_tcp.html | 159 ++-- web/html/xui/form/stream/stream_ws.html | 11 +- web/html/xui/form/tls_settings.html | 348 +++------ web/html/xui/inbounds.html | 4 +- web/html/xui/settings.html | 42 +- web/html/xui/xray.html | 4 + web/html/xui/xray_reverse_modal.html | 100 +-- web/html/xui/xray_rule_modal.html | 183 ++--- 28 files changed, 1028 insertions(+), 1778 deletions(-) diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css index 146b27f8..1673f07e 100644 --- a/web/assets/css/custom.css +++ b/web/assets/css/custom.css @@ -55,7 +55,7 @@ style attribute { } .ant-table-tbody > tr > td, .ant-table-thead > tr > th { - padding: 12px 16px; + padding: 12px 8px; overflow-wrap: break-word; } .ant-table-thead > tr > th { @@ -132,6 +132,13 @@ style attribute { margin: 0.5rem; padding: 0.5rem; } + .ant-modal-body { + padding: 10px; + } + .ant-form-item-label { + line-height: 1.5; + padding: 8px 0 0; + } } .ant-layout-content { @@ -409,6 +416,10 @@ style attribute { background-color: white; } +.ant-form-item { + margin-bottom: 0; +} + .ant-setting-textarea { margin-top: 1.5rem; } diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 30409e7d..cf9d9dc6 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -2,170 +2,105 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ i18n "pages.client.method" }} - - - Random - Random+Prefix - Random+Prefix+Num - Random+Prefix+Num+Postfix - Prefix+Num+Postfix - - -
{{ i18n "pages.client.first" }} - - - -
{{ i18n "pages.client.last" }} - - - -
{{ i18n "pages.client.prefix" }} - - - -
{{ i18n "pages.client.postfix" }} - - - -
{{ i18n "pages.client.clientCount" }} - - - -
Flow - - - {{ i18n "none" }} - [[ key ]] - - -
Subscription - - - - - - - - -
Telegram ID - - - - - - - - -
- {{ i18n "pages.inbounds.totalFlow" }}(GB) - - - - - - - - -
{{ i18n "pages.client.delayedStart" }} - - - -
{{ i18n "pages.client.expireDays" }} - - - -
- {{ i18n "pages.inbounds.expireDate" }} - - - - - - - - -
- {{ i18n "pages.client.renew" }} - - - - - - - - -
+ + + + Random + Random+Prefix + Random+Prefix+Num + Random+Prefix+Num+Postfix + Prefix+Num+Postfix + + + + + + + + + + + + + + + + + + + + {{ i18n "none" }} + [[ key ]] + + + + + + + + + + + + + + + + + + + + + + + + + + + +