diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 17:05:03 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 17:18:23 +0300 |
| commit | 81d47f75127d1b72e1ff67593826fb1b459b8682 (patch) | |
| tree | f756aaaaeee156620e8581bb64c0bb1a894d5a90 /web/html | |
| parent | 0baa204ce951184e3567705532eaace215834714 (diff) | |
[xray] add meta, apple, reddit option to warp
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/xray.html | 42 |
1 files changed, 42 insertions, 0 deletions
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 @@ <setting-list-item type="switch" title='{{ i18n "pages.xray.OpenAIWARP"}}' desc='{{ i18n "pages.xray.OpenAIWARPDesc"}}' v-model="OpenAIWARPSettings"></setting-list-item> <setting-list-item type="switch" title='{{ i18n "pages.xray.NetflixWARP"}}' desc='{{ i18n "pages.xray.NetflixWARPDesc"}}' v-model="NetflixWARPSettings"></setting-list-item> <setting-list-item type="switch" title='{{ i18n "pages.xray.SpotifyWARP"}}' desc='{{ i18n "pages.xray.SpotifyWARPDesc"}}' v-model="SpotifyWARPSettings"></setting-list-item> + <setting-list-item type="switch" title='{{ i18n "pages.xray.MetaWARP"}}' desc='{{ i18n "pages.xray.MetaWARPDesc"}}' v-model="MetaWARPSettings"></setting-list-item> + <setting-list-item type="switch" title='{{ i18n "pages.xray.AppleWARP"}}' desc='{{ i18n "pages.xray.AppleWARPDesc"}}' v-model="AppleWARPSettings"></setting-list-item> + <setting-list-item type="switch" title='{{ i18n "pages.xray.RedditWARP"}}' desc='{{ i18n "pages.xray.RedditWARPDesc"}}' v-model="RedditWARPSettings"></setting-list-item> </template> <a-button v-else style="margin: 10px 0;" @click="showWarp">WARP {{ i18n "pages.xray.rules.outbound" }}</a-button> </a-collapse-panel> @@ -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); |
