From 90bef945006207760045b69c5d055f9320b0ee2a Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Wed, 10 Oct 2018 17:24:12 +0300 Subject: [PATCH] Fix strings --- client/src/components/Dashboard/BlockedDomains.js | 2 +- client/src/components/Dashboard/Clients.js | 2 +- client/src/components/Dashboard/Counters.js | 10 +++++----- client/src/components/Dashboard/QueriedDomains.js | 2 +- client/src/components/Dashboard/Statistics.js | 2 +- client/src/components/Filters/index.js | 4 ++-- client/src/components/Settings/Upstream.js | 2 +- client/src/components/Settings/index.js | 4 ++-- coredns_plugin/querylog_top.go | 6 ------ 9 files changed, 14 insertions(+), 20 deletions(-) diff --git a/client/src/components/Dashboard/BlockedDomains.js b/client/src/components/Dashboard/BlockedDomains.js index 4ede73c2..382a23b8 100644 --- a/client/src/components/Dashboard/BlockedDomains.js +++ b/client/src/components/Dashboard/BlockedDomains.js @@ -6,7 +6,7 @@ import map from 'lodash/map'; import Card from '../ui/Card'; const Clients = props => ( - + ( { ip: prop, domain: value } diff --git a/client/src/components/Dashboard/Clients.js b/client/src/components/Dashboard/Clients.js index 220a0f67..ab36fa90 100644 --- a/client/src/components/Dashboard/Clients.js +++ b/client/src/components/Dashboard/Clients.js @@ -6,7 +6,7 @@ import map from 'lodash/map'; import Card from '../ui/Card'; const Clients = props => ( - + ( { ip: prop, count: value } diff --git a/client/src/components/Dashboard/Counters.js b/client/src/components/Dashboard/Counters.js index 6292e11f..1b7ec92f 100644 --- a/client/src/components/Dashboard/Counters.js +++ b/client/src/components/Dashboard/Counters.js @@ -7,13 +7,13 @@ import Tooltip from '../ui/Tooltip'; const tooltipType = 'tooltip-custom--narrow'; const Counters = props => ( - +
DNS Queries - + @@ -23,8 +23,8 @@ const Counters = props => (
- Blocked by filters - + Blocked by Filters + @@ -35,7 +35,7 @@ const Counters = props => (
Blocked malware/phishing - + diff --git a/client/src/components/Dashboard/QueriedDomains.js b/client/src/components/Dashboard/QueriedDomains.js index f927e11a..e8d2fcff 100644 --- a/client/src/components/Dashboard/QueriedDomains.js +++ b/client/src/components/Dashboard/QueriedDomains.js @@ -6,7 +6,7 @@ import map from 'lodash/map'; import Card from '../ui/Card'; const QueriedDomains = props => ( - + ( { ip: prop, count: value } diff --git a/client/src/components/Dashboard/Statistics.js b/client/src/components/Dashboard/Statistics.js index de98e19c..e36c5c5a 100644 --- a/client/src/components/Dashboard/Statistics.js +++ b/client/src/components/Dashboard/Statistics.js @@ -5,7 +5,7 @@ import PropTypes from 'prop-types'; import Card from '../ui/Card'; const Statistics = props => ( - + {props.history ?
); diff --git a/client/src/components/Settings/Upstream.js b/client/src/components/Settings/Upstream.js index 2b13d0b9..80d32311 100644 --- a/client/src/components/Settings/Upstream.js +++ b/client/src/components/Settings/Upstream.js @@ -27,7 +27,7 @@ export default class Upstream extends Component { return (
diff --git a/client/src/components/Settings/index.js b/client/src/components/Settings/index.js index c68f5668..799a7834 100644 --- a/client/src/components/Settings/index.js +++ b/client/src/components/Settings/index.js @@ -17,7 +17,7 @@ export default class Settings extends Component { safebrowsing: { enabled: false, title: 'Use AdGuard browsing security web service', - subtitle: 'AdGuard DNS will check if domain is blacklisted by the browsing security web service (sb.adtidy.org). It will use privacy-safe lookup API to do the check.', + subtitle: 'AdGuard DNS will check if domain is blacklisted by the browsing security web service. It will use privacy-friendly lookup API to perform the check: only a short prefix of the domain name SHA256 hash is sent to the server.', }, parental: { enabled: false, @@ -27,7 +27,7 @@ export default class Settings extends Component { safesearch: { enabled: false, title: 'Enforce safe search', - subtitle: 'AdGuard DNS can enforce safe search in the major search engines: Google, Bing, Yandex.', + subtitle: 'AdGuard DNS can enforce safe search in the following search engines: Google, Bing, Yandex.', }, }; diff --git a/coredns_plugin/querylog_top.go b/coredns_plugin/querylog_top.go index 6ff531f2..d6bb7a6b 100644 --- a/coredns_plugin/querylog_top.go +++ b/coredns_plugin/querylog_top.go @@ -19,12 +19,6 @@ import ( "github.com/miekg/dns" ) -// top domains/clients/blocked stats in the last 24 hours - -// on start we read the saved stats from the last 24 hours and add them to the stats - -// stats are counted using hourly LRU, rotating hourly and keeping last 24 hours - type hourTop struct { domains gcache.Cache blocked gcache.Cache