From 4af626bb4b92570032a68e55ece7cb208821fa9f Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 11:21:12 +0430 Subject: update html of setting.html --- web/html/xui/setting.html | 231 +++++++++++++++++++++++++--------------------- 1 file changed, 124 insertions(+), 107 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index 0218aea8..7691a284 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -24,121 +24,138 @@ background: white; } + - - {{ template "commonSider" . }} - - - - - - {{ i18n "pages.setting.save" }} - {{ i18n "pages.setting.restartPanel" }} - - - + + {{ template "commonSider" . }} + + + + + + {{ i18n "pages.setting.save" }} + {{ i18n "pages.setting.restartPanel" }} + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + + + {{ i18n "pages.setting.generalConfigs"}} + + + + + {{ i18n "pages.setting.countryConfigs"}} + + + + + {{ i18n "pages.setting.ipv4Configs"}} + + + {{ i18n "pages.setting.warpConfigs"}} + + + + + + {{ i18n "pages.setting.advancedTemplate"}} + + + + + + + + + + + + {{ i18n "pages.setting.completeTemplate"}} + + + + + + + + + + + + + + + + + + + + + + + + + - -{{template "js" .}} -{{template "component/setting"}} - + - \ No newline at end of file + + -- cgit v1.2.3 From 72a1b1e3f33cbe96c313f4f1da3ad771195c2a26 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 21:23:12 +0430 Subject: update domain list of setting.html --- web/html/xui/setting.html | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index 54d54d72..dba8e14c 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -196,6 +196,7 @@ const app = new Vue({ google: ["geoip:google"], cn: ["geoip:cn"], ir: ["geoip:ir"], + ru: ["geoip:ru"], }, domains: { ads: [ @@ -210,30 +211,13 @@ const app = new Vue({ spotify: ["geosite:spotify"], netflix: ["geosite:netflix"], cn: ["geosite:cn"], + ru: ["geosite:category-ru-gov"], ir: [ "regexp:.*\\.ir$", "ext:iran.dat:ir", "ext:iran.dat:other", - "geosite:category-ir", - "bank", - "tapsi", - "snapp", - "blogfa", - "digikala", - "Torob.com", - "sheypoor.com", - "Tgju.org", - "sb24.com", - "tebyan.net", - "beytoote.com", - "telewebion.com", - "Film2movie.ws", - "Setare.com", - "Filimo.com", - "downloadha.com", - "P30download.com", - "Sarzamindownload.com", - "Sanjesh.org" + "ext:iran.dat:ads", + "geosite:category-ir" ] }, } -- cgit v1.2.3 From f26a7df11b9b3455e461b7d5ca7a51cf4ca0a838 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 21:23:51 +0430 Subject: add reset default config function --- web/html/xui/setting.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/html') diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index dba8e14c..b7869c66 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -271,6 +271,15 @@ const app = new Vue({ location.reload(); } }, + async resetXrayConfigToDefault() { + this.loading(true); + const msg = await HttpUtil.get("/xui/setting/getDefaultJsonConfig"); + this.loading(false); + if (msg.success) { + this.templateSettings = JSON.parse(JSON.stringify(msg.obj, null, 2)); + this.saveBtnDisable = true; + } + }, checkRequiredOutbounds() { const newTemplateSettings = this.templateSettings; const haveIPv4Outbounds = newTemplateSettings.outbounds.some((o) => o?.tag === "IPv4"); -- cgit v1.2.3 From e0e7c102b8564bbc4483aa58737ff8547070fe0d Mon Sep 17 00:00:00 2001 From: Hamidreza Ghava