docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
<mask> github.com/gobuffalo/packd v0.0.0-20181031195726-c82734870264 h1:roWyi0eEdiFreSqW9V1wT9pNOVzrpo2NWsxja53slX0= <mask> github.com/gobuffalo/packd v0.0.0-20181031195726-c82734870264/go.mod h1:Yf2toFaISlyQrr5TfO3h6DB9pl9mZRmyvBGQb/aQ/pI= <mask> github.com/gobuffalo/packr v1.19.0 h1:3UDmBDxesCOPF8iZdMDBBWKfkBoYujI...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/68d5d595b657ebd1f93e1bd012bc8fc0d5d9f7b0
go.sum
<mask> github.com/shirou/gopsutil v2.18.12+incompatible h1:1eaJvGomDnH74/5cF4CTmTbLHAriGFsTZppLXDX93OM= <mask> github.com/shirou/gopsutil v2.18.12+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= <mask> github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 h1:udFKJ0aHUL60LboW/A+DfgoHVedieIzIXE8...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/68d5d595b657ebd1f93e1bd012bc8fc0d5d9f7b0
go.sum
"blocking_mode_default": "Default: Respond with zero IP address (0.0.0.0 for A; :: for AAAA) when blocked by Adblock-style rule; respond with the IP address specified in the rule when blocked by /etc/hosts-style rule",
<mask> "edns_cs_desc": "If enabled, AdGuard Home will be sending clients' subnets to the DNS servers.", <mask> "rate_limit_desc": "The number of requests per second that a single client is allowed to make (setting it to 0 means unlimited)", <mask> "blocking_ipv4_desc": "IP address to be returned for a bl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
client/src/__locales/en.json
// Default blocking - NULL IP
<mask> } <mask> addr := s.dnsProxy.Addr(proxy.ProtoUDP) <mask> <mask> // <mask> // Default blocking - REFUSED <mask> // <mask> req := dns.Msg{} <mask> req.Id = dns.Id() <mask> req.RecursionDesired = true <mask> req.Question = []dns.Question{ </s> * DNS: set default blocking mode to Null IP for A/AA...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/dnsforward_test.go
assert.Equal(t, dns.RcodeSuccess, reply.Rcode) assert.True(t, reply.Answer[0].(*dns.A).A.Equal(net.ParseIP("0.0.0.0")))
<mask> reply, err := dns.Exchange(&req, addr.String()) <mask> if err != nil { <mask> t.Fatalf("Couldn't talk to server %s: %s", addr, err) <mask> } <mask> assert.Equal(t, dns.RcodeRefused, reply.Rcode) <mask> <mask> err = s.Stop() <mask> if err != nil { <mask> t.Fatalf("DNS server failed to stop: %s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/dnsforward_test.go
assert.Equal(t, dns.RcodeSuccess, reply.Rcode) assert.True(t, reply.Answer[0].(*dns.A).A.Equal(net.ParseIP("0.0.0.0")))
<mask> // response is blocked <mask> req := createTestMessage("badhost.") <mask> reply, err := dns.Exchange(req, addr.String()) <mask> assert.Nil(t, err, nil) <mask> assert.Equal(t, dns.RcodeRefused, reply.Rcode) <mask> <mask> // 'whitelist.example.org' has a canonical name 'null.example.org' which is blo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/dnsforward_test.go
assert.Equal(t, dns.RcodeSuccess, reply.Rcode) assert.True(t, reply.Answer[0].(*dns.A).A.Equal(net.ParseIP("0.0.0.0")))
<mask> // response is blocked <mask> req = createTestMessage("example.org.") <mask> reply, err = dns.Exchange(req, addr.String()) <mask> assert.Nil(t, err) <mask> assert.Equal(t, dns.RcodeRefused, reply.Rcode) <mask> <mask> _ = s.Stop() <mask> } <mask> <mask> func TestClientRulesForCNAMEMatching(t *te...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/dnsforward_test.go
// https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet
<mask> } <mask> <mask> // disable Mozilla DoH <mask> if (d.Req.Question[0].Qtype == dns.TypeA || d.Req.Question[0].Qtype == dns.TypeAAAA) && <mask> d.Req.Question[0].Name == "use-application-dns.net." { <mask> d.Res = s.genNXDomain(d.Req) <mask> return resultFinish <mask> } </s> * DNS: set default b...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/handle_dns.go
d.Res = s.genNXDomain(d.Req)
<mask> <mask> // disable Mozilla DoH <mask> if (d.Req.Question[0].Qtype == dns.TypeA || d.Req.Question[0].Qtype == dns.TypeAAAA) && <mask> d.Req.Question[0].Name == "use-application-dns.net." { <mask> d.Res = s.makeResponseREFUSED(d.Req) <mask> return resultFinish <mask> } <mask> <mask> return resu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/handle_dns.go
if s.conf.BlockingMode == "null_ip" { return s.makeResponse(m) } return s.genNXDomain(m)
<mask> func (s *Server) genDNSFilterMessage(d *proxy.DNSContext, result *dnsfilter.Result) *dns.Msg { <mask> m := d.Req <mask> <mask> if m.Question[0].Qtype != dns.TypeA && m.Question[0].Qtype != dns.TypeAAAA { <mask> return s.makeResponseREFUSED(m) <mask> } <mask> <mask> switch result.Reason { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/msg.go
return s.makeResponseNullIP(m)
<mask> } <mask> <mask> if s.conf.BlockingMode == "null_ip" { <mask> // it means that we should return 0.0.0.0 or :: for any blocked request <mask> <mask> switch m.Question[0].Qtype { <mask> case dns.TypeA: <mask> return s.genARecord(m, []byte{0, 0, 0, 0}) <mask> case dns.TypeAAAA: <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/msg.go
// For host-type rules, return null IP
<mask> } <mask> <mask> // Default blocking mode <mask> // If there's an IP specified in the rule, return it <mask> // If there is no IP, return REFUSED <mask> if result.IP != nil { <mask> return s.genResponseWithIP(m, result.IP) <mask> } <mask> return s.makeResponseREFUSED(m) <mask> } </s>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/msg.go
return s.makeResponseNullIP(m)
<mask> // If there is no IP, return REFUSED <mask> if result.IP != nil { <mask> return s.genResponseWithIP(m, result.IP) <mask> } <mask> return s.makeResponseREFUSED(m) <mask> } <mask> } <mask> <mask> func (s *Server) genServerFailure(request *dns.Msg) *dns.Msg { <mask> resp := dns.Msg{} </s> *...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/msg.go
// Respond with 0.0.0.0 for A, :: for AAAA, empty response for other types func (s *Server) makeResponseNullIP(req *dns.Msg) *dns.Msg { if req.Question[0].Qtype == dns.TypeA { return s.genARecord(req, []byte{0, 0, 0, 0}) } else if req.Question[0].Qtype == dns.TypeAAAA { return s.genAAAARecord(req, net.IPv6zero) ...
<mask> return resp <mask> } <mask> <mask> func (s *Server) genBlockedHost(request *dns.Msg, newAddr string, d *proxy.DNSContext) *dns.Msg { <mask> <mask> ip := net.ParseIP(newAddr) <mask> if ip != nil { <mask> return s.genResponseWithIP(request, ip) <mask> } </s> * DNS: set default blocking mode to Nu...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69a740714fb7e049a92f7d49449b91a334479472
dnsforward/msg.go
"upstream_dns_hint": "If you keep this field empty, AdGuard Home will use <a href='https:\/\/1.1.1.1\/' target='_blank'>Cloudflare DNS<\/a> as an upstream. Use tls:\/\/ prefix for DNS over TLS servers.",
<mask> "no_servers_specified": "No servers specified", <mask> "no_settings": "No settings", <mask> "general_settings": "General settings", <mask> "upstream_dns": "Upstream DNS servers", <mask> "upstream_dns_hint": "If you keep this field empty, AdGuard Home will use <a href='https:\/\/1.1.1.1\/...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69cc597b87a23443d57cf35551f03a3846b64797
client/src/__locales/en.json
"enforced_save_search": "\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a",
<mask> "number_of_dns_query_24_hours": "\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e DNS-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430 24 \u0447\u0430\u0441\u0430", <mask> "number_of_dns_query_blocked_24_hours": "\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e DNS-...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69cc597b87a23443d57cf35551f03a3846b64797
client/src/__locales/ru.json
<code>tls://1dot1dot1dot1.cloudflare-dns.com</code> - <span dangerouslySetInnerHTML={{ __html: t('example_upstream_dot') }} />
<mask> <li> <mask> <code>1.1.1.1</code> - { t('example_upstream_regular') } <mask> </li> <mask> <li> <mask> <code>tls://1dot1dot1dot1.cloudflare-dn...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69cc597b87a23443d57cf35551f03a3846b64797
client/src/components/Settings/Upstream.js
<code>https://cloudflare-dns.com/dns-query</code> - <span dangerouslySetInnerHTML={{ __html: t('example_upstream_doh') }} />
<mask> <li> <mask> <code>tls://1dot1dot1dot1.cloudflare-dns.com</code> - { t('example_upstream_dot') } <mask> </li> <mask> <li> <mask> <code>https:...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69cc597b87a23443d57cf35551f03a3846b64797
client/src/components/Settings/Upstream.js
clients.etcHosts = etcHosts
<mask> clients.allTags[t] = false <mask> } <mask> <mask> clients.dhcpServer = dhcpServer <mask> if etcHosts != nil { <mask> clients.etcHosts = etcHosts <mask> } <mask> clients.addFromConfig(objects) <mask> <mask> if !clients.testing { <mask> clients.addFromDHCP() <mask> if clients.dhcpServer...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69f526b13d1f553dfcd3e3bad363c2ac148bef54
internal/home/clients.go
<mask> <mask> if !args.noEtcHosts { <mask> Context.etcHosts = &aghnet.EtcHostsContainer{} <mask> Context.etcHosts.Init("") <mask> Context.clients.Init(config.Clients, Context.dhcpServer, Context.etcHosts) <mask> } <mask> config.Clients = nil <mask> <mask> if (runtime.GOOS == "linux" || runtime.GOOS...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69f526b13d1f553dfcd3e3bad363c2ac148bef54
internal/home/home.go
Context.clients.Init(config.Clients, Context.dhcpServer, Context.etcHosts)
<mask> Context.etcHosts = &aghnet.EtcHostsContainer{} <mask> Context.etcHosts.Init("") <mask> } <mask> config.Clients = nil <mask> <mask> if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") && <mask> config.RlimitNoFile != 0 { </s> Pull request: 2956 fix clients disabling Merge in DNS/adguard-ho...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/69f526b13d1f553dfcd3e3bad363c2ac148bef54
internal/home/home.go
"github.com/AdguardTeam/golibs/mathutil"
<mask> "github.com/AdguardTeam/golibs/cache" <mask> "github.com/AdguardTeam/golibs/errors" <mask> "github.com/AdguardTeam/golibs/log" <mask> "github.com/AdguardTeam/golibs/stringutil" <mask> "github.com/AdguardTeam/urlfilter" <mask> "github.com/AdguardTeam/urlfilter/filterlist" <mask> "github.com/AdguardT...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/filtering.go
atomic.StoreUint32(&d.enabled, mathutil.BoolToNumber[uint32](enabled))
<mask> func (r Reason) In(reasons ...Reason) (ok bool) { return slices.Contains(reasons, r) } <mask> <mask> // SetEnabled sets the status of the *DNSFilter. <mask> func (d *DNSFilter) SetEnabled(enabled bool) { <mask> var i int32 <mask> if enabled { <mask> i = 1 <mask> } <mask> <mask> atomic.StoreUint...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/filtering.go
"sync"
<mask> "net/http" <mask> "sort" <mask> "strings" <mask> "time" <mask> <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" <mask> "github.com/AdguardTeam/dnsproxy/upstream" </s> Pull request: safebrowsing races Merge in DNS/adguard-home from safebrowsing-races to master Squashed commit of the f...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
setProtectedBool(&d.confLock, &d.Config.SafeBrowsingEnabled, true)
<mask> return check(sctx, res, d.parentalUpstream) <mask> } <mask> <mask> func (d *DNSFilter) handleSafeBrowsingEnable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.SafeBrowsingEnabled = true <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleSafeBrowsingDisable(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
setProtectedBool(&d.confLock, &d.Config.SafeBrowsingEnabled, false)
<mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleSafeBrowsingDisable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.SafeBrowsingEnabled = false <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleSafeBrowsingStatus(w http.ResponseWr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
Enabled: protectedBool(&d.confLock, &d.Config.SafeBrowsingEnabled),
<mask> func (d *DNSFilter) handleSafeBrowsingStatus(w http.ResponseWriter, r *http.Request) { <mask> resp := &struct { <mask> Enabled bool `json:"enabled"` <mask> }{ <mask> Enabled: d.Config.SafeBrowsingEnabled, <mask> } <mask> <mask> _ = aghhttp.WriteJSONResponse(w, r, resp) <mask> } <mask> </s> P...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
setProtectedBool(&d.confLock, &d.Config.ParentalEnabled, true)
<mask> _ = aghhttp.WriteJSONResponse(w, r, resp) <mask> } <mask> <mask> func (d *DNSFilter) handleParentalEnable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.ParentalEnabled = true <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleParentalDisable(w http.Respons...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
setProtectedBool(&d.confLock, &d.Config.ParentalEnabled, false)
<mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleParentalDisable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.ParentalEnabled = false <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleParentalStatus(w http.ResponseWriter, r *htt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
Enabled: protectedBool(&d.confLock, &d.Config.ParentalEnabled),
<mask> func (d *DNSFilter) handleParentalStatus(w http.ResponseWriter, r *http.Request) { <mask> resp := &struct { <mask> Enabled bool `json:"enabled"` <mask> }{ <mask> Enabled: d.Config.ParentalEnabled, <mask> } <mask> <mask> _ = aghhttp.WriteJSONResponse(w, r, resp) <mask> } </s> Pull request: safe...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safebrowsing.go
setProtectedBool(&d.confLock, &d.Config.SafeSearchEnabled, true)
<mask> return Result{}, fmt.Errorf("no ipv4 addresses in safe search response for %s", safeHost) <mask> } <mask> <mask> func (d *DNSFilter) handleSafeSearchEnable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.SafeSearchEnabled = true <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safesearch.go
setProtectedBool(&d.confLock, &d.Config.SafeSearchEnabled, false)
<mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleSafeSearchDisable(w http.ResponseWriter, r *http.Request) { <mask> d.Config.SafeSearchEnabled = false <mask> d.Config.ConfigModified() <mask> } <mask> <mask> func (d *DNSFilter) handleSafeSearchStatus(w http.ResponseWriter, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safesearch.go
Enabled: protectedBool(&d.confLock, &d.Config.SafeSearchEnabled),
<mask> func (d *DNSFilter) handleSafeSearchStatus(w http.ResponseWriter, r *http.Request) { <mask> resp := &struct { <mask> Enabled bool `json:"enabled"` <mask> }{ <mask> Enabled: d.Config.SafeSearchEnabled, <mask> } <mask> <mask> _ = aghhttp.WriteJSONResponse(w, r, resp) <mask> } <mask> </s> Pull ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6aa93f4ae7e92aa2db0b27d55cc7a91c4093385b
internal/filtering/safesearch.go
"lint": "eslint client/"
<mask> "scripts": { <mask> "build-dev": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js", <mask> "watch": "NODE_ENV=development ./node_modules/.bin/webpack --config webpack.dev.js --watch", <mask> "build-prod": "NODE_ENV=production ./node_modules/.bin/webpack --config webpack...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/package.json
"for_last_days": "for the last {{value}} days",
<mask> "stats_malware_phishing": "Blocked malware/phishing", <mask> "stats_adult": "Blocked adult websites", <mask> "stats_query_domain": "Top queried domains", <mask> "for_last_24_hours": "for the last 24 hours", <mask> "no_domains_found": "No domains found", <mask> "requests_count": "Req...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/__locales/en.json
"number_of_dns_query_days": "A number of DNS quieries processed for the last {{value}} days",
<mask> "top_clients": "Top clients", <mask> "no_clients_found": "No clients found", <mask> "general_statistics": "General statistics", <mask> "number_of_dns_query_24_hours": "A number of DNS quieries processed for the last 24 hours", <mask> "number_of_dns_query_blocked_24_hours": "A number of D...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/__locales/en.json
<mask> "client_global_settings": "Use global settings", <mask> "client_deleted": "Client \"{{key}}\" successfully deleted", <mask> "client_added": "Client \"{{key}}\" successfully added", <mask> "client_updated": "Client \"{{key}}\" successfully updated", <mask> "table_statistics": "Requests co...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/__locales/en.json
"time_period": "Time period", "domain": "Domain"
<mask> "stats_params": "Statistics configuration", <mask> "config_successfully_saved": "Configuration successfully saved", <mask> "interval_24_hour": "24 hours", <mask> "interval_days": "{{value}} days", <mask> "time_period": "Time period" <mask> } </s> + client: handle the new statistics for...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/__locales/en.json
<mask> import { createAction } from 'redux-actions'; <mask> import round from 'lodash/round'; <mask> import { t } from 'i18next'; <mask> import { showLoading, hideLoading } from 'react-redux-loading-bar'; <mask> import axios from 'axios'; <mask> <mask> import versionCompare from '../helpers/versionCompare'; </...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/index.js
import { normalizeFilteringStatus, normalizeLogs, normalizeTextarea, sortClients } from '../helpers/helpers';
<mask> import { showLoading, hideLoading } from 'react-redux-loading-bar'; <mask> import axios from 'axios'; <mask> <mask> import versionCompare from '../helpers/versionCompare'; <mask> import { normalizeHistory, normalizeFilteringStatus, normalizeLogs, normalizeTextarea, sortClients } from '../helpers/helpers'; ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/index.js
<mask> dispatch(getClientsFailure()); <mask> } <mask> }; <mask> <mask> export const getTopStatsRequest = createAction('GET_TOP_STATS_REQUEST'); <mask> export const getTopStatsFailure = createAction('GET_TOP_STATS_FAILURE'); <mask> export const getTopStatsSuccess = createAction('GET_TOP_STATS_SUCCESS...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "ke...
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/index.js
<mask> dispatch(addErrorToast({ error })); <mask> } <mask> }; <mask> <mask> export const getStatsRequest = createAction('GET_STATS_REQUEST'); <mask> export const getStatsFailure = createAction('GET_STATS_FAILURE'); <mask> export const getStatsSuccess = createAction('GET_STATS_SUCCESS'); <mask> <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "ke...
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/index.js
<mask> }; <mask> <mask> export const handleRulesChange = createAction('HANDLE_RULES_CHANGE'); <mask> <mask> export const getStatsHistoryRequest = createAction('GET_STATS_HISTORY_REQUEST'); <mask> export const getStatsHistoryFailure = createAction('GET_STATS_HISTORY_FAILURE'); <mask> export const getStatsHistor...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/index.js
import { normalizeTopStats } from '../helpers/helpers';
<mask> import Api from '../api/Api'; <mask> import { addErrorToast, addSuccessToast } from './index'; <mask> <mask> const apiClient = new Api(); <mask> <mask> export const getStatsConfigRequest = createAction('GET_LOGS_CONFIG_REQUEST'); <mask> export const getStatsConfigFailure = createAction('GET_LOGS_CONFIG_...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/actions/stats.js
<mask> import axios from 'axios'; <mask> import subHours from 'date-fns/sub_hours'; <mask> import dateFormat from 'date-fns/format'; <mask> <mask> export default class Api { <mask> baseUrl = 'control'; <mask> <mask> async makeRequest(path, method = 'POST', config) { </s> + client: handle the new stat...
[ "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
<mask> <mask> // Global methods <mask> GLOBAL_RESTART = { path: 'restart', method: 'POST' }; <mask> GLOBAL_START = { path: 'start', method: 'POST' }; <mask> GLOBAL_STATS = { path: 'stats', method: 'GET' }; <mask> GLOBAL_STATS_HISTORY = { path: 'stats_history', method: 'GET' }; <mask> GLO...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
<mask> GLOBAL_STATS = { path: 'stats', method: 'GET' }; <mask> GLOBAL_STATS_HISTORY = { path: 'stats_history', method: 'GET' }; <mask> GLOBAL_STATUS = { path: 'status', method: 'GET' }; <mask> GLOBAL_STOP = { path: 'stop', method: 'POST' }; <mask> GLOBAL_STATS_TOP = { path: 'stats_top', method:...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
<mask> const { path, method } = this.GLOBAL_STOP; <mask> return this.makeRequest(path, method); <mask> } <mask> <mask> getGlobalStats() { <mask> const { path, method } = this.GLOBAL_STATS; <mask> return this.makeRequest(path, method); <mask> } <mask> <mask> ge...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep"...
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
<mask> const { path, method } = this.GLOBAL_STATUS; <mask> return this.makeRequest(path, method); <mask> } <mask> <mask> getGlobalStatsTop() { <mask> const { path, method } = this.GLOBAL_STATS_TOP; <mask> return this.makeRequest(path, method); <mask> } <mask> <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
GET_STATS = { path: 'stats', method: 'GET' };
<mask> return this.makeRequest(path, method, parameters); <mask> } <mask> <mask> // Settings for statistics <mask> STATS_INFO = { path: 'stats_info', method: 'GET' }; <mask> STATS_CONFIG = { path: 'stats_config', method: 'POST' }; <mask> <mask> getStats() { <mask> const { ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
getStats() { const { path, method } = this.GET_STATS; return this.makeRequest(path, method); }
<mask> STATS_CONFIG = { path: 'stats_config', method: 'POST' }; <mask> <mask> getStatsInfo() { <mask> const { path, method } = this.STATS_INFO; <mask> return this.makeRequest(path, method); <mask> } <mask> <mask> setStatsConfig(data) { </s> + client: handle the new statistics ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/api/Api.js
<mask> import React, { Component } from 'react'; <mask> import ReactTable from 'react-table'; <mask> import PropTypes from 'prop-types'; <mask> import map from 'lodash/map'; <mask> import { withNamespaces, Trans } from 'react-i18next'; <mask> <mask> import Card from '../ui/Card'; <mask> import Cell from '../ui...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
columns = [ { Header: <Trans>domain</Trans>, accessor: 'domain', Cell: (row) => { const { value } = row; const trackerData = getTrackerData(value);
<mask> import { getPercent } from '../../helpers/helpers'; <mask> import { STATUS_COLORS } from '../../helpers/constants'; <mask> <mask> class BlockedDomains extends Component { <mask> columns = [{ <mask> Header: 'IP', <mask> accessor: 'ip', <mask> Cell: (row) => { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
return ( <div className="logs__row"> <div className="logs__text" title={value}> {value} </div> {trackerData && <Popover data={trackerData} />}
<mask> Cell: (row) => { <mask> const { value } = row; <mask> const trackerData = getTrackerData(value); <mask> <mask> return ( <mask> <div className="logs__row"> <mask> <div className="logs__text" title={value}> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
); },
<mask> <div className="logs__row"> <mask> <div className="logs__text" title={value}> <mask> {value} <mask> </div> <mask> {trackerData && <Popover data={trackerData} />} <mask> </div> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
{ Header: <Trans>requests_count</Trans>, accessor: 'count', maxWidth: 190, Cell: ({ value }) => { const { blockedFiltering, replacedSafebrowsing, replacedParental } = this.props; const blocked = blockedFiltering + replacedSafebrowsi...
<mask> {trackerData && <Popover data={trackerData} />} <mask> </div> <mask> ); <mask> }, <mask> }, { <mask> Header: <Trans>requests_count</Trans>, <mask> accessor: 'domain', <mask> maxWidth: 190, <mask> Cell: ({ value }...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
return <Cell value={value} percent={percent} color={STATUS_COLORS.red} />; },
<mask> } = this.props; <mask> const blocked = blockedFiltering + replacedSafebrowsing + replacedParental; <mask> const percent = getPercent(blocked, value); <mask> <mask> return ( <mask> <Cell value={value} percent={percent} color={STATUS_COLORS.red...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
];
<mask> return ( <mask> <Cell value={value} percent={percent} color={STATUS_COLORS.red} /> <mask> ); <mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_bl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
const { t, refreshButton, topBlockedDomains, subtitle, } = this.props;
<mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_blocked_domains') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactT...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
<Card title={t('top_blocked_domains')} subtitle={subtitle} bodyType="card-table" refresh={refreshButton} >
<mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_blocked_domains') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> da...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
data={topBlockedDomains.map(item => ({ domain: item.name, count: item.count, }))}
<mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_blocked_domains') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> data={map(this.props.topBlockedDom...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
noDataText={t('no_domains_found')}
<mask> { ip: prop, domain: value } <mask> ))} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('no_domains_found') } <mask> minRows={6} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
topBlockedDomains: PropTypes.array.isRequired,
<mask> } <mask> } <mask> <mask> BlockedDomains.propTypes = { <mask> topBlockedDomains: PropTypes.object.isRequired, <mask> blockedFiltering: PropTypes.number.isRequired, <mask> replacedSafebrowsing: PropTypes.number.isRequired, <mask> replacedParental: PropTypes.number.isRequired, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
subtitle: PropTypes.string.isRequired, t: PropTypes.func.isRequired,
<mask> blockedFiltering: PropTypes.number.isRequired, <mask> replacedSafebrowsing: PropTypes.number.isRequired, <mask> replacedParental: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> t: PropTypes.func, <mask> }; <mask> <mask> export default withNamespa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/BlockedDomains.js
<mask> import React, { Component } from 'react'; <mask> import ReactTable from 'react-table'; <mask> import PropTypes from 'prop-types'; <mask> import map from 'lodash/map'; <mask> import { Trans, withNamespaces } from 'react-i18next'; <mask> <mask> import Card from '../ui/Card'; <mask> import Cell from '../ui...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
};
<mask> } else if (percent > 10) { <mask> return STATUS_COLORS.yellow; <mask> } <mask> return STATUS_COLORS.red; <mask> } <mask> <mask> columns = [{ <mask> Header: 'IP', <mask> accessor: 'ip', <mask> Cell: ({ value }) => { </s> + client: han...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
columns = [ { Header: 'IP', accessor: 'ip', Cell: ({ value }) => { const clientName = getClientName(this.props.clients, value) || getClientName(this.props.autoClients, value); let client;
<mask> } <mask> return STATUS_COLORS.red; <mask> } <mask> <mask> columns = [{ <mask> Header: 'IP', <mask> accessor: 'ip', <mask> Cell: ({ value }) => { <mask> const clientName = getClientName(this.props.clients, value) <mask> || getC...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
if (clientName) { client = ( <span> {clientName} <small>({value})</small> </span> ); } else { client = value; }
<mask> const clientName = getClientName(this.props.clients, value) <mask> || getClientName(this.props.autoClients, value); <mask> let client; <mask> <mask> if (clientName) { <mask> client = <span>{clientName} <small>({value})</small></span>; <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
return ( <div className="logs__row logs__row--overflow"> <span className="logs__text" title={value}> {client} </span> </div> ); }, sortMethod: (a, b...
<mask> } else { <mask> client = value; <mask> } <mask> <mask> return ( <mask> <div className="logs__row logs__row--overflow"> <mask> <span className="logs__text" title={value}> <mask> {client} <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
{ Header: <Trans>requests_count</Trans>, accessor: 'count', Cell: ({ value }) => { const percent = getPercent(this.props.dnsQueries, value); const percentColor = this.getPercentColor(percent);
<mask> </span> <mask> </div> <mask> ); <mask> }, <mask> sortMethod: (a, b) => parseInt(a.replace(/\./g, ''), 10) - parseInt(b.replace(/\./g, ''), 10), <mask> }, { <mask> Header: <Trans>requests_count</Trans>, <mask> accessor: 'c...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
return <Cell value={value} percent={percent} color={percentColor} />; },
<mask> Cell: ({ value }) => { <mask> const percent = getPercent(this.props.dnsQueries, value); <mask> const percentColor = this.getPercentColor(percent); <mask> <mask> return ( <mask> <Cell value={value} percent={percent} color={percentColor} /> <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
];
<mask> return ( <mask> <Cell value={value} percent={percent} color={percentColor} /> <mask> ); <mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_clients...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
const { t, refreshButton, topClients, subtitle, } = this.props;
<mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_clients') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
<Card title={t('top_clients')} subtitle={subtitle} bodyType="card-table" refresh={refreshButton} >
<mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_clients') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> data={map(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
data={topClients.map(item => ({ ip: item.name, count: item.count, }))}
<mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('top_clients') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> data={map(this.props.topClients, (value, p...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
noDataText={t('no_clients_found')}
<mask> { ip: prop, count: value } <mask> ))} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('no_clients_found') } <mask> minRows={6} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
topClients: PropTypes.array.isRequired,
<mask> } <mask> } <mask> <mask> Clients.propTypes = { <mask> topClients: PropTypes.object.isRequired, <mask> dnsQueries: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> clients: PropTypes.array.isRequired, <mask> autoClients: PropTypes.array.isRequi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
subtitle: PropTypes.string.isRequired, t: PropTypes.func.isRequired,
<mask> dnsQueries: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> clients: PropTypes.array.isRequired, <mask> autoClients: PropTypes.array.isRequired, <mask> t: PropTypes.func, <mask> }; <mask> <mask> export default withNamespaces()(Clients); </s> + cl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Clients.js
import round from 'lodash/round';
<mask> import React from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { Trans, withNamespaces } from 'react-i18next'; <mask> <mask> import Card from '../ui/Card'; <mask> import Tooltip from '../ui/Tooltip'; <mask> <mask> const tooltipType = 'tooltip-custom--narrow'; <mask> </s> + clien...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Counters.js
const Counters = (props) => { const { t, interval, refreshButton, subtitle, dnsQueries, blockedFiltering, replacedSafebrowsing, replacedParental, replacedSafesearch, avgProcessingTime, } = props; const tooltipTitle = in...
<mask> import Tooltip from '../ui/Tooltip'; <mask> <mask> const tooltipType = 'tooltip-custom--narrow'; <mask> <mask> const Counters = props => ( <mask> <Card title={ props.t('general_statistics') } subtitle={ props.t('for_last_24_hours') } bodyType="card-table" refresh={props.refreshButton}> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Counters.js
subtitle: PropTypes.string.isRequired, interval: PropTypes.number.isRequired,
<mask> replacedParental: PropTypes.number.isRequired, <mask> replacedSafesearch: PropTypes.number.isRequired, <mask> avgProcessingTime: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> t: PropTypes.func.isRequired, <mask> }; <mask> <mask> export default w...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Counters.js
.card-chart-bg { left: -20px; width: calc(100% + 20px); }
<mask> top: -11px; <mask> border-top: 6px solid transparent; <mask> border-bottom: 6px solid #585965; <mask> } </s> + client: handle the new statistics format </s> remove const Line = props => ( props.data && </s> add const Line = ({ data, color }) => ( data && </s> remove left...
[ "keep", "keep", "keep", "add" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Dashboard.css
<mask> import React, { Component } from 'react'; <mask> import ReactTable from 'react-table'; <mask> import PropTypes from 'prop-types'; <mask> import map from 'lodash/map'; <mask> import { withNamespaces, Trans } from 'react-i18next'; <mask> <mask> import Card from '../ui/Card'; <mask> import Cell from '../ui...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
};
<mask> } else if (percent > 5) { <mask> return STATUS_COLORS.yellow; <mask> } <mask> return STATUS_COLORS.green; <mask> } <mask> <mask> columns = [{ <mask> Header: 'IP', <mask> accessor: 'ip', <mask> Cell: (row) => { </s> + client: handle t...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
columns = [ { Header: <Trans>domain</Trans>, accessor: 'domain', Cell: (row) => { const { value } = row; const trackerData = getTrackerData(value);
<mask> } <mask> return STATUS_COLORS.green; <mask> } <mask> <mask> columns = [{ <mask> Header: 'IP', <mask> accessor: 'ip', <mask> Cell: (row) => { <mask> const { value } = row; <mask> const trackerData = getTrackerData(value); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
return ( <div className="logs__row"> <div className="logs__text" title={value}> {value} </div> {trackerData && <Popover data={trackerData} />}
<mask> Cell: (row) => { <mask> const { value } = row; <mask> const trackerData = getTrackerData(value); <mask> <mask> return ( <mask> <div className="logs__row"> <mask> <div className="logs__text" title={value}> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
); },
<mask> <div className="logs__row"> <mask> <div className="logs__text" title={value}> <mask> {value} <mask> </div> <mask> {trackerData && <Popover data={trackerData} />} <mask> </div> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
{ Header: <Trans>requests_count</Trans>, accessor: 'count', maxWidth: 190, Cell: ({ value }) => { const percent = getPercent(this.props.dnsQueries, value); const percentColor = this.getPercentColor(percent);
<mask> {trackerData && <Popover data={trackerData} />} <mask> </div> <mask> ); <mask> }, <mask> }, { <mask> Header: <Trans>requests_count</Trans>, <mask> accessor: 'count', <mask> maxWidth: 190, <mask> Cell: ({ value })...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
return <Cell value={value} percent={percent} color={percentColor} />; },
<mask> Cell: ({ value }) => { <mask> const percent = getPercent(this.props.dnsQueries, value); <mask> const percentColor = this.getPercentColor(percent); <mask> <mask> return ( <mask> <Cell value={value} percent={percent} color={percentColor} /> <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
];
<mask> return ( <mask> <Cell value={value} percent={percent} color={percentColor} /> <mask> ); <mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('stats_query...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
const { t, refreshButton, topQueriedDomains, subtitle, } = this.props;
<mask> }, <mask> }]; <mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('stats_query_domain') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
<Card title={t('stats_query_domain')} subtitle={subtitle} bodyType="card-table" refresh={refreshButton} >
<mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('stats_query_domain') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> dat...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
data={topQueriedDomains.map(item => ({ domain: item.name, count: item.count, }))}
<mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('stats_query_domain') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> data={map(this.props.topQueriedDoma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
noDataText={t('no_domains_found')}
<mask> { ip: prop, count: value } <mask> ))} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('no_domains_found') } <mask> minRows={6} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
topQueriedDomains: PropTypes.array.isRequired,
<mask> } <mask> } <mask> <mask> QueriedDomains.propTypes = { <mask> topQueriedDomains: PropTypes.object.isRequired, <mask> dnsQueries: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> t: PropTypes.func, <mask> }; <mask> </s> + client: handle the new s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
subtitle: PropTypes.string.isRequired, t: PropTypes.func.isRequired,
<mask> QueriedDomains.propTypes = { <mask> topQueriedDomains: PropTypes.object.isRequired, <mask> dnsQueries: PropTypes.number.isRequired, <mask> refreshButton: PropTypes.node.isRequired, <mask> t: PropTypes.func, <mask> }; <mask> <mask> export default withNamespaces()(QueriedDomains); </s> + ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/QueriedDomains.js
import { getPercent, normalizeHistory } from '../../helpers/helpers';
<mask> <mask> import Card from '../ui/Card'; <mask> import Line from '../ui/Line'; <mask> <mask> import { getPercent } from '../../helpers/helpers'; <mask> import { STATUS_COLORS } from '../../helpers/constants'; <mask> <mask> class Statistics extends Component { <mask> render() { <mask> const ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Statistics.js
getNormalizedHistory = (data, interval, id) => [{ data: normalizeHistory(data, interval), id }];
<mask> <mask> class Statistics extends Component { <mask> render() { <mask> const { <mask> interval, <mask> dnsQueries, <mask> blockedFiltering, <mask> replacedSafebrowsing, </s> + client: handle the new statistics format </s> remove import { getPerc...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Statistics.js
interval,
<mask> getNormalizedHistory = (data, interval, id) => [{ data: normalizeHistory(data, interval), id }]; <mask> <mask> render() { <mask> const { <mask> dnsQueries, <mask> blockedFiltering, <mask> replacedSafebrowsing, <mask> replacedParental, <mas...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Statistics.js
numDnsQueries, numBlockedFiltering, numReplacedSafebrowsing, numReplacedParental,
<mask> blockedFiltering, <mask> replacedSafebrowsing, <mask> replacedParental, <mask> } = this.props; <mask> <mask> return ( <mask> <div className="row"> <mask> <div className="col-sm-6 col-lg-3"> </s> + client: handle the new sta...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/6b2496d0501d531c764437154374ecbafc8a848f
client/src/components/Dashboard/Statistics.js