From eb524e27a6036eeaa092f0d9f603bbfc79cd390f Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 29 Aug 2019 11:39:04 +0300 Subject: [PATCH 1/3] + blocked_services: add tiktok --- home/blocked_services.go | 1 + 1 file changed, 1 insertion(+) diff --git a/home/blocked_services.go b/home/blocked_services.go index 5f9e58b9..5612aacb 100644 --- a/home/blocked_services.go +++ b/home/blocked_services.go @@ -35,6 +35,7 @@ var serviceRulesArray = []svc{ {"vk", []string{"||vk.com^"}}, {"steam", []string{"||steam.com^"}}, {"mail_ru", []string{"||mail.ru^"}}, + {"tiktok", []string{"||snssdk.com^", "||amemv.com^", "||toutiao.com^", "||ixigua.com^", "||pstatp.com^", "||ixiguavideo.com^", "||toutiaocloud.com^", "||toutiaocloud.net^", "||bdurl.com^", "||bytecdn.cn^", "||byteimg.com^", "||ixigua.com^"}}, } // convert array to map From 44a3a8857f1eb7c2cfccb5cb9883b35c9793fbe4 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 29 Aug 2019 11:40:17 +0300 Subject: [PATCH 2/3] + client: add tiktok icon --- client/src/components/ui/Icons.js | 4 ++++ client/src/helpers/constants.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/client/src/components/ui/Icons.js b/client/src/components/ui/Icons.js index 14405ef8..ef2fbf85 100644 --- a/client/src/components/ui/Icons.js +++ b/client/src/components/ui/Icons.js @@ -124,6 +124,10 @@ const Icons = () => ( + + + + diff --git a/client/src/helpers/constants.js b/client/src/helpers/constants.js index a5c8e922..0d607c3d 100644 --- a/client/src/helpers/constants.js +++ b/client/src/helpers/constants.js @@ -243,4 +243,8 @@ export const SERVICES = [ id: 'mail_ru', name: 'mail.ru', }, + { + id: 'tiktok', + name: 'TikTok', + }, ]; From bdd86adac5a3fdc7013200e1448a7acb6a04993e Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 29 Aug 2019 11:45:39 +0300 Subject: [PATCH 3/3] + blocked_services: add tiktok main domain --- home/blocked_services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/blocked_services.go b/home/blocked_services.go index 5612aacb..c3a6dc26 100644 --- a/home/blocked_services.go +++ b/home/blocked_services.go @@ -35,7 +35,7 @@ var serviceRulesArray = []svc{ {"vk", []string{"||vk.com^"}}, {"steam", []string{"||steam.com^"}}, {"mail_ru", []string{"||mail.ru^"}}, - {"tiktok", []string{"||snssdk.com^", "||amemv.com^", "||toutiao.com^", "||ixigua.com^", "||pstatp.com^", "||ixiguavideo.com^", "||toutiaocloud.com^", "||toutiaocloud.net^", "||bdurl.com^", "||bytecdn.cn^", "||byteimg.com^", "||ixigua.com^"}}, + {"tiktok", []string{"||tiktok.com^", "||snssdk.com^", "||amemv.com^", "||toutiao.com^", "||ixigua.com^", "||pstatp.com^", "||ixiguavideo.com^", "||toutiaocloud.com^", "||toutiaocloud.net^", "||bdurl.com^", "||bytecdn.cn^", "||byteimg.com^", "||ixigua.com^"}}, } // convert array to map