diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 13:23:17 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 13:23:17 +0300 |
| commit | a55a1a7102dd7b689c2b804fcbb648fbc005a099 (patch) | |
| tree | 4bd5fa06de97f95fcad811878955206a06b6d09e /web | |
| parent | 46bc39c160d28dc3f131d87c7bace01747cbebb9 (diff) | |
fix
Diffstat (limited to 'web')
| -rw-r--r-- | web/html/xui/index.html | 2 | ||||
| -rw-r--r-- | web/html/xui/settings.html | 24 |
2 files changed, 1 insertions, 25 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html index fa7d576e..fb12bb1f 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -242,7 +242,7 @@ <a-icon type="warning" style="color: inherit; font-size: 20px;"></a-icon> [[ backupModal.description ]] </p> - <a-space direction="horizontal" align="center" style="margin-bottom: 10px;"> + <a-space direction="horizontal" style="text-align: center" style="margin-bottom: 10px;"> <a-button type="primary" @click="exportDatabase()"> [[ backupModal.exportText ]] </a-button> diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 9dec0e0c..c6d5f303 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -309,9 +309,6 @@ }, } }, - created() { - this.checkForGeosites(); - }, methods: { loading(spinning = true, obj) { if (obj == null) this.spinning = spinning; @@ -406,27 +403,6 @@ 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(`/panel/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"); |
