mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 14:02:48 +00:00
Fixed blocked services list
This commit is contained in:
parent
acc4858ac4
commit
f25705313f
2 changed files with 144 additions and 39 deletions
|
@ -1,37 +1,142 @@
|
||||||
const List<String> services = [
|
const List<Map<String, String>> services = [
|
||||||
"9Gag",
|
{
|
||||||
"Amazon",
|
'id': '9gag',
|
||||||
"Bilibili",
|
'label': "9Gag",
|
||||||
"CloudFlare",
|
},
|
||||||
"Dailymotion",
|
{
|
||||||
"Discord",
|
'id': 'amazon',
|
||||||
"Disney+",
|
'label': "Amazon",
|
||||||
"EBay",
|
},
|
||||||
"Epic Games",
|
{
|
||||||
"Facebook",
|
'id': 'bilibili',
|
||||||
"Hulu",
|
'label': "Bilibili",
|
||||||
"Imgur",
|
},
|
||||||
"Instagram",
|
{
|
||||||
"Mail.ru",
|
'id': 'cloudflare',
|
||||||
"Netflix",
|
'label': "CloudFlare",
|
||||||
"OK.ru",
|
},
|
||||||
"Origin",
|
{
|
||||||
"Pinterest",
|
'id': 'dailymotion',
|
||||||
"QQ",
|
'label': "Dailymotion",
|
||||||
"Reddit",
|
},
|
||||||
"Skype",
|
{
|
||||||
"Snapchat",
|
'id': 'discord',
|
||||||
"Spotify",
|
'label': "Discord",
|
||||||
"Steam",
|
},
|
||||||
"Telegram",
|
{
|
||||||
"TikTok",
|
'id': 'disneyplus',
|
||||||
"Tinder",
|
'label': "Disney+",
|
||||||
"Twitch",
|
},
|
||||||
"Viber",
|
{
|
||||||
"Vimeo",
|
'id': 'ebay',
|
||||||
"VK.com",
|
'label': "EBay+",
|
||||||
"WeChat",
|
},
|
||||||
"Weibo",
|
{
|
||||||
"WhatsApp",
|
'id': 'epic_games',
|
||||||
"YouTube"
|
'label': "Epic Games",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'facebook',
|
||||||
|
'label': "Facebook",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'hulu',
|
||||||
|
'label': "Hulu",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'imgur',
|
||||||
|
'label': "Imgur",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'instagram',
|
||||||
|
'label': "Instagram",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'mail_ru',
|
||||||
|
'label': "Mail.ru",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'netflix',
|
||||||
|
'label': "Netflix",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'ok',
|
||||||
|
'label': "OK.ru",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'origin',
|
||||||
|
'label': "Origin",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'pinterest',
|
||||||
|
'label': "Pinterest",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'qq',
|
||||||
|
'label': "QQ",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'reddit',
|
||||||
|
'label': "Reddit",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'skype',
|
||||||
|
'label': "Skype",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'snapchat',
|
||||||
|
'label': "Snapchat",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'spotify',
|
||||||
|
'label': "Spotify",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'steam',
|
||||||
|
'label': "Steam",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'telegram',
|
||||||
|
'label': "Telegram",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'tiktok',
|
||||||
|
'label': "TikTok",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'tinder',
|
||||||
|
'label': "Tinder",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'twitch',
|
||||||
|
'label': "Twitch",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'viber',
|
||||||
|
'label': "Viber",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'vimeo',
|
||||||
|
'label': "Vimeo",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'vk',
|
||||||
|
'label': "VK.com",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'wechat',
|
||||||
|
'label': "WeChat",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'weibo',
|
||||||
|
'label': "Weibo",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'whatsapp',
|
||||||
|
'label': "WhatsApp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'youtube',
|
||||||
|
'label': "YouTube",
|
||||||
|
},
|
||||||
];
|
];
|
|
@ -64,17 +64,17 @@ class _ServicesModalState extends State<ServicesModal> {
|
||||||
title: Padding(
|
title: Padding(
|
||||||
padding: const EdgeInsets.only(left: 10),
|
padding: const EdgeInsets.only(left: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
services[index],
|
services[index]['label']!,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.normal
|
fontWeight: FontWeight.normal
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
value: blockedServices.contains(services[index]),
|
value: blockedServices.contains(services[index]['id']),
|
||||||
checkboxShape: RoundedRectangleBorder(
|
checkboxShape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(5)
|
borderRadius: BorderRadius.circular(5)
|
||||||
),
|
),
|
||||||
onChanged: (value) => checkUncheckService(value!, services[index])
|
onChanged: (value) => checkUncheckService(value!, services[index]['id']!)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue