From 5b87b1253555b7e932f79bd86795e350f9f3de2e Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 11 Mar 2024 16:14:24 +0330 Subject: [sub] JSON sub enhancement + minor changes Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/outbound.js | 3 +++ web/html/common/qrcode_modal.html | 9 +++++---- web/html/xui/inbound_modal.html | 9 +++++---- web/html/xui/index.html | 14 +++++--------- web/html/xui/settings.html | 37 +++++++++++++++++++++++++++++++++---- 5 files changed, 51 insertions(+), 21 deletions(-) (limited to 'web') diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index f62b06b9..0b699f49 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -397,6 +397,7 @@ class StreamSettings extends CommonClass { quicSettings=new QuicStreamSettings(), grpcSettings=new GrpcStreamSettings(), httpupgradeSettings=new HttpUpgradeStreamSettings(), + sockopt = undefined, ) { super(); this.network = network; @@ -410,6 +411,7 @@ class StreamSettings extends CommonClass { this.quic = quicSettings; this.grpc = grpcSettings; this.httpupgrade = httpupgradeSettings; + this.sockopt = sockopt; } get isTls() { @@ -441,6 +443,7 @@ class StreamSettings extends CommonClass { QuicStreamSettings.fromJson(json.quicSettings), GrpcStreamSettings.fromJson(json.grpcSettings), HttpUpgradeStreamSettings.fromJson(json.httpupgradeSettings), + SockoptStreamSettings.fromJson(json.sockopt), ); } diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 3fcfdfc1..0e2b3a63 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -1,9 +1,10 @@ {{define "qrcodeModal"}} + :dialog-style="{ top: '20px' }" + :closable="true" + :class="themeSwitcher.currentTheme" + :footer="null" + width="300px"> {{ i18n "pages.inbounds.clickOnQRcode" }} diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index fa89fada..f605b4fd 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -1,8 +1,9 @@ {{define "inboundModal"}} - + {{template "form/inbound"}}