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')
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 41e929057484b19df644f92a342a1fd8736dc386 Mon Sep 17 00:00:00 2001
From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>
Date: Fri, 12 May 2023 21:53:05 +0430
Subject: Show client email in QR Modal
---
web/html/common/qrcode_modal.html | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
(limited to 'web/html')
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html
index 2bd2f00f..855c349a 100644
--- a/web/html/common/qrcode_modal.html
+++ b/web/html/common/qrcode_modal.html
@@ -7,7 +7,10 @@
{{ i18n "pages.inbounds.clickOnQRcode" }}
-
+
+ {{ i18n "pages.inbounds.email" }}: "[[ qrModal.clientName ]]"
+
+