From 9d47d74a7a076921d157188ae82ea83e66c96d09 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 7 May 2023 14:36:43 +0330 Subject: [PATCH] design update --- web/assets/ant-design-vue@1.7.2/antd.min.css | 8 +- web/assets/js/model/xray.js | 2 +- web/html/xui/client_bulk_modal.html | 15 +- web/html/xui/form/client.html | 26 +-- web/html/xui/form/inbound.html | 2 + web/html/xui/form/protocol/shadowsocks.html | 14 +- web/html/xui/form/protocol/trojan.html | 180 ++++++++--------- web/html/xui/form/protocol/vless.html | 192 ++++++++++--------- web/html/xui/form/protocol/vmess.html | 175 +++++++++-------- web/html/xui/inbounds.html | 8 +- 10 files changed, 325 insertions(+), 297 deletions(-) diff --git a/web/assets/ant-design-vue@1.7.2/antd.min.css b/web/assets/ant-design-vue@1.7.2/antd.min.css index 696a6b06..846bbe54 100644 --- a/web/assets/ant-design-vue@1.7.2/antd.min.css +++ b/web/assets/ant-design-vue@1.7.2/antd.min.css @@ -1362,7 +1362,7 @@ to{transform:scale(1.6);opacity:0} .ant-tabs:after,.ant-tabs:before{display:table;content:""} .ant-tabs:after{clear:both} .ant-tabs-ink-bar{position:absolute;bottom:1px;left:0;z-index:1;box-sizing:border-box;width:0;height:2px;background-color:#1890ff;transform-origin:0 0} -.ant-tabs-bar{margin:1.5rem 1.5rem 0rem 1.5rem !important;border-bottom:2px solid rgb(153 153 153 / 20%);outline:0} +.ant-tabs-bar{margin:1.5rem 1.5rem 0rem 1.5rem!important;border-bottom:2px solid rgb(153 153 153 / 20%);outline:0} .ant-tabs-bar,.ant-tabs-nav-container{transition:padding .3s cubic-bezier(.645,.045,.355,1)} .ant-tabs-nav-container{position:relative;box-sizing:border-box;margin-bottom:-1px;overflow:hidden;font-size:14px;line-height:1.5;white-space:nowrap;zoom:1} .ant-tabs-nav-container:after,.ant-tabs-nav-container:before{display:table;content:""} @@ -3261,7 +3261,7 @@ textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height .ant-input-number-handler-down:hover{height:60%!important} .ant-input-number-handler-down-disabled,.ant-input-number-handler-up-disabled{cursor:not-allowed} .ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner,.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner{color:rgba(0,0,0,.25)} -.ant-layout{display:flex;flex:auto;flex-direction:column;min-height:0;background:#f0f2f5} +.ant-layout{display:flex;flex:auto;flex-direction:column;min-height:0;background:#fff} .ant-layout,.ant-layout *{box-sizing:border-box} .ant-layout.ant-layout-has-sider{flex-direction:row} .ant-layout.ant-layout-has-sider>.ant-layout,.ant-layout.ant-layout-has-sider>.ant-layout-content{overflow-x:hidden} @@ -3278,9 +3278,9 @@ textarea.ant-input-number{max-width:100%;height:auto;min-height:32px;line-height .ant-layout-sider-zero-width-trigger{position:absolute;top:64px;right:-36px;z-index:1;width:36px;height:42px;color:#fff;font-size:18px;line-height:42px;text-align:center;background:#001529;border-radius:0 4px 4px 0;cursor:pointer;transition:background .3s ease} .ant-layout-sider-zero-width-trigger:hover{background:#192c3e} .ant-layout-sider-zero-width-trigger-right{left:-36px;border-radius:4px 0 0 4px} -.ant-layout-sider-light{background:#fff} +.ant-layout-sider-light{background:#f7f7f7} .ant-layout-sider-light .ant-layout-sider-trigger,.ant-layout-sider-light .ant-layout-sider-zero-width-trigger{color:rgba(0,0,0,.65);background:#fff} -.ant-list{box-sizing:border-box;margin: 1.5em;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum";position:relative} +.ant-list{box-sizing:border-box;margin:1.5em;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum";position:relative} .ant-list *{outline:0} .ant-list-pagination{margin-top:24px;text-align:right} .ant-list-pagination .ant-pagination-options{text-align:left} diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 22573a23..37717c9e 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -939,7 +939,7 @@ class Inbound extends XrayCommonClass { this._protocol = protocol; this.settings = Inbound.Settings.getSettings(protocol); if (protocol === Protocols.TROJAN) { - this.tls = true; + this.tls = false; } } diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 274f8588..e856c6df 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -33,6 +33,12 @@ {{ i18n "pages.client.clientCount" }} + + + + + + {{ i18n "pages.inbounds.IPLimit" }} @@ -45,6 +51,7 @@ +
{{ i18n "none" }} @@ -57,12 +64,6 @@ [[ key ]] - - - - - - {{ i18n "pages.inbounds.totalFlow" }} (GB) @@ -75,9 +76,11 @@ +
+
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index 1740e74b..017bd7dc 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -3,6 +3,10 @@ + + + +
{{ i18n "pages.inbounds.Email" }} @@ -13,17 +17,14 @@ - - - - + - + - + @@ -44,7 +45,7 @@ - + @@ -69,13 +70,14 @@ +
{{ i18n "none" }} [[ key ]] - + {{ i18n "none" }} [[ key ]] @@ -91,9 +93,9 @@ - + + +
+
diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html index 603ca46a..3c40447e 100644 --- a/web/html/xui/form/inbound.html +++ b/web/html/xui/form/inbound.html @@ -24,9 +24,11 @@
+
+
{{ i18n "pages.inbounds.totalFlow" }} (GB) diff --git a/web/html/xui/form/protocol/shadowsocks.html b/web/html/xui/form/protocol/shadowsocks.html index b143cff1..c739ae10 100644 --- a/web/html/xui/form/protocol/shadowsocks.html +++ b/web/html/xui/form/protocol/shadowsocks.html @@ -1,5 +1,5 @@ {{define "form/shadowsocks"}} - + @@ -16,7 +16,7 @@ - + @@ -34,8 +34,9 @@ - + +
{{ i18n "pages.inbounds.totalFlow" }} (GB) @@ -48,13 +49,15 @@ +
+
- + {{ i18n "pages.inbounds.expireDate" }} @@ -82,6 +85,8 @@ + + [[ method ]] @@ -97,4 +102,5 @@ UDP + {{end}} \ No newline at end of file diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html index cee59c34..9c392926 100644 --- a/web/html/xui/form/protocol/trojan.html +++ b/web/html/xui/form/protocol/trojan.html @@ -1,92 +1,96 @@ {{define "form/trojan"}} - - - - - - {{ i18n "pages.inbounds.Email" }} - - - - - - - - - - - - - - - - - - - {{ i18n "pages.inbounds.IPLimit" }} - - - - - - - - - - {{ i18n "none" }} - [[ key ]] - - - - - {{ i18n "pages.inbounds.totalFlow" }} (GB) - - - - - - - - - - - - - - - - {{ i18n "pages.inbounds.expireDate" }} - - - - - - - - - - - - - - - - - - -
[[ col ]]
[[ col ]]
-
-
+ + + + + + {{ i18n "pages.inbounds.Email" }} + + + + + + + + + + + + + + + + + + + {{ i18n "pages.inbounds.IPLimit" }} + + + + + + + +
+ + + {{ i18n "none" }} + [[ key ]] + + + + + {{ i18n "pages.inbounds.totalFlow" }} (GB) + + + + + + + +
+ + + +
+ + + + + + {{ i18n "pages.inbounds.expireDate" }} + + + + + + + +
+
+ + + + + + + + + +
[[ col ]]
[[ col ]]
+
+
+