From 837d7f77a16bf570735fb6d5bb5e3073e03d8f43 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 16 May 2023 23:39:59 +0330 Subject: [PATCH] update - xray configuration Co-Authored-By: Alireza Ahmadi --- web/assets/js/util/common.js | 9 + web/html/xui/settings.html | 717 ++++++++++++++++--------- web/translation/translate.en_US.toml | 103 ++-- web/translation/translate.fa_IR.toml | 109 ++-- web/translation/translate.ru_RU.toml | 161 +++--- web/translation/translate.zh_Hans.toml | 95 ++-- 6 files changed, 765 insertions(+), 429 deletions(-) diff --git a/web/assets/js/util/common.js b/web/assets/js/util/common.js index 808b1ba9..a695f081 100644 --- a/web/assets/js/util/common.js +++ b/web/assets/js/util/common.js @@ -90,3 +90,12 @@ function setCookie(cname, cvalue, exdays) { let expires = 'expires=' + d.toUTCString(); document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/'; } + +function doAllItemsExist(array1, array2) { + for (let i = 0; i < array1.length; i++) { + if (!array2.includes(array1[i])) { + return false; + } + } + return true; +} \ No newline at end of file diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 49e62df9..7226c0ac 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -24,7 +24,6 @@ background: white; } - {{ template "commonSider" . }} @@ -64,7 +63,8 @@ style="width: 100%" > -    + +    @@ -72,8 +72,13 @@ + +

+ + {{ i18n "pages.settings.infoDesc" }} +

+
- @@ -116,7 +121,7 @@