From 65588a44922ea062cc438c43957f131ba54a1404 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Fri, 12 May 2023 19:30:49 +0430 Subject: add check for geosite function --- web/html/xui/settings.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'web/html/xui') diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index d50822c2..d4b4c028 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -307,6 +307,9 @@ }, } }, + created() { + this.checkForGeosites(); + }, methods: { loading(spinning = true, obj) { if (obj == null) this.spinning = spinning; @@ -401,6 +404,27 @@ this.saveBtnDisable = true; } }, + checkForGeosites() { + const domainsToCheck = [ + { + query: "category-ru-gov", + key: "this.settingsData.domains.ru", + data: [ + "geosite:category-ru-gov", + "regexp:.*\\.ru$" + ] + }, + ]; + this.loading(true); + domainsToCheck.forEach(async (dd) => { + const msg = await HttpUtil.get(`/xui/setting/searchDatafiles?query=${dd.query}`); + if (msg.success && msg.obj) { + [dd.key] = dd.data; + console.log([dd.key]) + } + }) + this.loading(false); + }, checkRequiredOutbounds() { const newTemplateSettings = this.templateSettings; const haveIPv4Outbounds = newTemplateSettings.outbounds.some((o) => o?.tag === "IPv4"); -- cgit v1.2.3 From 5bd6baa0554f6763e6bc81b322b264d45859b74e Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Fri, 12 May 2023 21:54:33 +0430 Subject: Fix darkClass in ThemeSwitcher --- web/html/xui/component/themeSwitch.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html/xui') diff --git a/web/html/xui/component/themeSwitch.html b/web/html/xui/component/themeSwitch.html index 35013a9e..7cbedecf 100644 --- a/web/html/xui/component/themeSwitch.html +++ b/web/html/xui/component/themeSwitch.html @@ -28,7 +28,7 @@ isDarkTheme, bgStyle: `background: ${colors[theme].bg};`, textStyle: `color: ${colors[theme].text};`, - darkClass: isDarkTheme ? 'ant-card-dark' : '', + darkClass: isDarkTheme ? 'ant-dark' : '', darkCardClass: isDarkTheme ? 'ant-card-dark' : '', darkDrawerClass: isDarkTheme ? 'ant-drawer-dark' : '', get currentTheme() { @@ -40,7 +40,7 @@ localStorage.setItem('dark-mode', this.isDarkTheme); this.bgStyle = `background: ${colors[this.theme].bg};`; this.textStyle = `color: ${colors[this.theme].text};`; - this.darkClass = this.isDarkTheme ? 'ant-card-dark' : ''; + this.darkClass = this.isDarkTheme ? 'ant-dark' : ''; this.darkCardClass = this.isDarkTheme ? 'ant-card-dark' : ''; this.darkDrawerClass = this.isDarkTheme ? 'ant-drawer-dark' : ''; }, -- cgit v1.2.3 From 814337964591ac1971ab90662282964984232e24 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Fri, 12 May 2023 21:56:13 +0430 Subject: Add copy button for sub link --- web/html/xui/inbound_info_modal.html | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'web/html/xui') diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index cfaddf3b..d9d0637c 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -114,6 +114,7 @@
[[ infoModal.link ]]
- +