From cd83708c1751001e0cfe6ee13108bdbdc28f523d Mon Sep 17 00:00:00 2001 From: ali rahimi Date: Tue, 26 Dec 2023 16:08:23 +0100 Subject: [PATCH] Resolve interference and mistakes --- web/html/xui/form/stream/stream_tcp.html | 2 +- web/html/xui/settings.html | 4 +- web/html/xui/xray.html | 160 +++++++++++++---------- web/html/xui/xray_rule_modal.html | 24 ++-- web/translation/translate.en_US.toml | 12 +- web/translation/translate.es_ES.toml | 14 +- web/translation/translate.fa_IR.toml | 8 +- web/translation/translate.ru_RU.toml | 14 +- web/translation/translate.vi_VN.toml | 20 +-- web/translation/translate.zh_Hans.toml | 30 +++-- 10 files changed, 157 insertions(+), 131 deletions(-) diff --git a/web/html/xui/form/stream/stream_tcp.html b/web/html/xui/form/stream/stream_tcp.html index 3fa0cec9..941a3d79 100644 --- a/web/html/xui/form/stream/stream_tcp.html +++ b/web/html/xui/form/stream/stream_tcp.html @@ -33,7 +33,7 @@ - + + + diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 0725cdf9..e7fcf663 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -412,9 +412,7 @@ if (msg.success) { this.loading(true); await PromiseUtil.sleep(5000); - var { webCertFile, webKeyFile, webDomain: host, webPort: port, webBasePath: base } = this.allSetting; - if (host == this.oldAllSetting.webDomain) host = null; - if (port == this.oldAllSetting.webPort) port = null; + let { webCertFile, webKeyFile, webDomain: host, webPort: port, webBasePath: base } = this.allSetting; const isTLS = webCertFile !== "" || webKeyFile !== ""; const url = buildURL({ host, port, isTLS, base, path: "panel/settings" }); window.location.replace(url); diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 6e727d57..98e1bd4f 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -70,7 +70,7 @@ {{ i18n "pages.xray.save" }} {{ i18n "pages.xray.restart" }} + :overlay-class-name="themeSwitcher.currentTheme"> Error in running xray-core