From e1da2a2eedd0436296fba7e5a214ed9a347a1ef3 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 10 Dec 2023 15:06:42 +0100 Subject: [PATCH] small fixes #1300 --- web/assets/js/model/setting.js | 6 ++- web/html/xui/form/protocol/trojan.html | 57 ++++++++++++++++++------- web/html/xui/form/protocol/vless.html | 58 +++++++++++++++++++------- web/html/xui/form/tls_settings.html | 39 +++++++++-------- web/html/xui/inbound_info_modal.html | 38 ++++++++--------- web/html/xui/inbounds.html | 3 +- web/html/xui/index.html | 8 ++-- 7 files changed, 132 insertions(+), 77 deletions(-) diff --git a/web/assets/js/model/setting.js b/web/assets/js/model/setting.js index 61b7b532..86bea983 100644 --- a/web/assets/js/model/setting.js +++ b/web/assets/js/model/setting.js @@ -3,7 +3,7 @@ class AllSetting { constructor(data) { this.webListen = ""; this.webDomain = ""; - this.webPort = 54321; + this.webPort = 2053; this.webCertFile = ""; this.webKeyFile = ""; this.webBasePath = "/"; @@ -19,7 +19,9 @@ class AllSetting { this.tgBotBackup = false; this.tgBotLoginNotify = false; this.tgCpu = ""; - this.tgLang = ""; + this.tgLang = "en-US"; + this.xrayTemplateConfig = ""; + this.secretEnable = false; this.subEnable = false; this.subListen = ""; this.subPort = "2096"; diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html index b2ac3dba..51389e30 100644 --- a/web/html/xui/form/protocol/trojan.html +++ b/web/html/xui/form/protocol/trojan.html @@ -38,21 +38,48 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
Name + + + +
Alpn + + + +
Path + + + +
Dest + + + +
xVer + + + +
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html index 261e6616..c3037935 100644 --- a/web/html/xui/form/protocol/vless.html +++ b/web/html/xui/form/protocol/vless.html @@ -40,21 +40,49 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
Name + + + +
Alpn + + + +
Path + + + +
Dest + + + +
xVer + + + +
+ {{end}} diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html index 9c55b410..d277df79 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -5,26 +5,25 @@ - - diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index bd1fea72..9d1527b0 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -18,7 +18,7 @@
- {{ i18n "security" }} - - - {{ i18n "none" }} - - - XTLS - - - - Reality - - TLS - + + + + {{ i18n "none" }} + + + XTLS + + + + Reality + + TLS + +
- +
{{ i18n "transmission" }}[[ inbound.network ]]{{ i18n "transmission" }}[[ inbound.network ]]