diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index b172940d..cd9cd054 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -20,9 +20,13 @@ - - Please go to the panel settings as soon as possible to modify the username and password, otherwise there may be a risk of leaking account information - + + @@ -366,7 +370,8 @@ domain: '', tls: false }, - tgBotEnable: false + tgBotEnable: false, + showAlert: false, }, methods: { loading(spinning = true) { @@ -952,6 +957,9 @@ }, 500) }, mounted() { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } this.loading(); this.getDefaultSettings(); if (this.isRefreshEnabled) { diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 58f12675..1a5e4d89 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -22,6 +22,15 @@ + + + + @@ -409,6 +418,7 @@ backupModal, spinning: false, loadingTip: '{{ i18n "loading"}}', + showAlert: false, }, methods: { loading(spinning, tip = '{{ i18n "loading"}}') { @@ -527,6 +537,9 @@ }, }, async mounted() { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } while (true) { try { await this.getStatus(); diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 4ff02965..3c0b762d 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -52,6 +52,15 @@ + + + + {{ i18n "pages.settings.save" }} @@ -362,6 +371,7 @@ saveBtnDisable: true, user: {}, lang: getLang(), + showAlert: false, ipv4Settings: { tag: "IPv4", protocol: "freedom", @@ -550,6 +560,9 @@ } }, async mounted() { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } await this.getAllSetting(); while (true) { await PromiseUtil.sleep(1000); diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 36c0c5db..a5745f89 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -48,6 +48,8 @@ "clients" = "Clients" "usage" = "Usage" "remained" = "Remained" +"secAlertTitle" = "Security Alert" +"secAlertSsl" = "This connection is not secure; Please refrain from entering sensitive information until TLS is activated for data protection" [menu] "dashboard" = "System Status" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index 114a09db..95cbf4d6 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -48,6 +48,8 @@ "clients" = "کاربران" "usage" = "استفاده" "remained" = "باقیمانده" +"secAlertTitle" = "هشدار امنیتی" +"secAlertSsl" = "این اتصال امن نیست؛ لطفا تا زمانی که تی‌ال‌اس برای حفاظت از داده ها فعال نشده است از وارد کردن اطلاعات حساس خودداری کنید" [menu] "dashboard" = "وضعیت سیستم" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index de5da513..9aac690b 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -48,6 +48,8 @@ "clients" = "клиенты" "usage" = "использование" "remained" = "остались" +"secAlertTitle" = "Предупреждение системы безопасности" +"secAlertSsl" = "Это соединение не защищено. Пожалуйста, воздержитесь от ввода конфиденциальной информации, пока TLS не будет активирован для защиты данных" [menu] "dashboard" = "статус системы" diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 8aaa4e49..07624909 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -48,6 +48,8 @@ "clients" = "客户端" "usage" = "用法" "remained" = "仍然存在" +"secAlertTitle" = "安全警报" +"secAlertSsl" = "此连接不安全;在激活 TLS 进行数据保护之前,请勿输入敏感信息" [menu] "dashboard" = "系统状态"