mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
add default configs in setting.html
This commit is contained in:
parent
4af626bb4b
commit
ff3657e15a
1 changed files with 81 additions and 12 deletions
|
@ -157,18 +157,87 @@
|
||||||
{{template "component/setting"}}
|
{{template "component/setting"}}
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
delimiters: ['[[', ']]'],
|
delimiters: ['[[', ']]'],
|
||||||
el: '#app',
|
el: '#app',
|
||||||
data: {
|
data: {
|
||||||
siderDrawer,
|
siderDrawer,
|
||||||
spinning: false,
|
spinning: false,
|
||||||
oldAllSetting: new AllSetting(),
|
oldAllSetting: new AllSetting(),
|
||||||
allSetting: new AllSetting(),
|
allSetting: new AllSetting(),
|
||||||
saveBtnDisable: true,
|
saveBtnDisable: true,
|
||||||
user: {},
|
user: {},
|
||||||
lang : getLang()
|
lang: getLang(),
|
||||||
},
|
ipv4Settings: {
|
||||||
|
tag: "IPv4",
|
||||||
|
protocol: "freedom",
|
||||||
|
settings: {
|
||||||
|
domainStrategy: "UseIPv4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
warpSettings: {
|
||||||
|
tag: "WARP",
|
||||||
|
protocol: "socks",
|
||||||
|
settings: {
|
||||||
|
servers: [
|
||||||
|
{
|
||||||
|
address: "127.0.0.1",
|
||||||
|
port: 40000
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
settingsData: {
|
||||||
|
protocols: {
|
||||||
|
bittorrent: ["bittorrent"],
|
||||||
|
},
|
||||||
|
ips: {
|
||||||
|
local: ["geoip:private"],
|
||||||
|
google: ["geoip:google"],
|
||||||
|
cn: ["geoip:cn"],
|
||||||
|
ir: ["geoip:ir"],
|
||||||
|
},
|
||||||
|
domains: {
|
||||||
|
ads: [
|
||||||
|
"geosite:category-ads-all",
|
||||||
|
"geosite:category-ads",
|
||||||
|
"geosite:google-ads",
|
||||||
|
"geosite:spotify-ads"
|
||||||
|
],
|
||||||
|
porn: ["geosite:category-porn"],
|
||||||
|
openai: ["geosite:openai"],
|
||||||
|
google: ["geosite:google"],
|
||||||
|
spotify: ["geosite:spotify"],
|
||||||
|
netflix: ["geosite:netflix"],
|
||||||
|
cn: ["geosite:cn"],
|
||||||
|
ir: [
|
||||||
|
"regexp:.*\\.ir$",
|
||||||
|
"ext:iran.dat:ir",
|
||||||
|
"ext:iran.dat:other",
|
||||||
|
"geosite:category-ir",
|
||||||
|
"bank",
|
||||||
|
"tapsi",
|
||||||
|
"snapp",
|
||||||
|
"blogfa",
|
||||||
|
"digikala",
|
||||||
|
"Torob.com",
|
||||||
|
"sheypoor.com",
|
||||||
|
"Tgju.org",
|
||||||
|
"sb24.com",
|
||||||
|
"tebyan.net",
|
||||||
|
"beytoote.com",
|
||||||
|
"telewebion.com",
|
||||||
|
"Film2movie.ws",
|
||||||
|
"Setare.com",
|
||||||
|
"Filimo.com",
|
||||||
|
"downloadha.com",
|
||||||
|
"P30download.com",
|
||||||
|
"Sarzamindownload.com",
|
||||||
|
"Sanjesh.org"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loading(spinning = true) {
|
loading(spinning = true) {
|
||||||
this.spinning = spinning;
|
this.spinning = spinning;
|
||||||
|
|
Loading…
Reference in a new issue