From 81d47f75127d1b72e1ff67593826fb1b459b8682 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 21 Feb 2024 17:35:03 +0330 Subject: [xray] add meta, apple, reddit option to warp --- web/html/xui/xray.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'web/html') diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index 614ee65b..519a71e1 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -278,6 +278,9 @@ + + + WARP {{ i18n "pages.xray.rules.outbound" }} @@ -772,6 +775,9 @@ google: ["geosite:google"], spotify: ["geosite:spotify"], netflix: ["geosite:netflix"], + meta: ["geosite:meta"], + apple: ["geosite:apple"], + reddit: ["geosite:reddit"], cn: [ "geosite:cn", "regexp:.*\\.cn$" @@ -1933,6 +1939,42 @@ } }, }, + MetaWARPSettings: { + get: function () { + return doAllItemsExist(this.settingsData.domains.meta, this.warpDomains); + }, + set: function (newValue) { + if (newValue) { + this.warpDomains = [...this.warpDomains, ...this.settingsData.domains.meta]; + } else { + this.warpDomains = this.warpDomains.filter(data => !this.settingsData.domains.meta.includes(data)); + } + }, + }, + AppleWARPSettings: { + get: function () { + return doAllItemsExist(this.settingsData.domains.apple, this.warpDomains); + }, + set: function (newValue) { + if (newValue) { + this.warpDomains = [...this.warpDomains, ...this.settingsData.domains.apple]; + } else { + this.warpDomains = this.warpDomains.filter(data => !this.settingsData.domains.apple.includes(data)); + } + }, + }, + RedditWARPSettings: { + get: function () { + return doAllItemsExist(this.settingsData.domains.reddit, this.warpDomains); + }, + set: function (newValue) { + if (newValue) { + this.warpDomains = [...this.warpDomains, ...this.settingsData.domains.reddit]; + } else { + this.warpDomains = this.warpDomains.filter(data => !this.settingsData.domains.reddit.includes(data)); + } + }, + }, SpotifyWARPSettings: { get: function () { return doAllItemsExist(this.settingsData.domains.spotify, this.warpDomains); -- cgit v1.2.3