diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json
index f3d893f2..a8164e1e 100644
--- a/client/src/__locales/en.json
+++ b/client/src/__locales/en.json
@@ -66,19 +66,21 @@
"disabled_protection": "Disabled protection",
"refresh_statics": "Refresh statistics",
"dns_query": "DNS Queries",
- "blocked_by": "Blocked by Filters",
+ "blocked_by": "<0>Blocked by Filters0>",
"stats_malware_phishing": "Blocked malware/phishing",
"stats_adult": "Blocked adult websites",
"stats_query_domain": "Top queried domains",
"for_last_24_hours": "for the last 24 hours",
- "for_last_days": "for the last {{value}} days",
+ "for_last_days": "for the last {{count}} day",
+ "for_last_days_plural": "for the last {{count}} days",
"no_domains_found": "No domains found",
"requests_count": "Requests count",
"top_blocked_domains": "Top blocked domains",
"top_clients": "Top clients",
"no_clients_found": "No clients found",
"general_statistics": "General statistics",
- "number_of_dns_query_days": "A number of DNS queries processed for the last {{value}} days",
+ "number_of_dns_query_days": "A number of DNS queries processed for the last {{count}} day",
+ "number_of_dns_query_days_plural": "A number of DNS queries processed for the last {{count}} days",
"number_of_dns_query_24_hours": "A number of DNS queries processed for the last 24 hours",
"number_of_dns_query_blocked_24_hours": "A number of DNS requests blocked by adblock filters and hosts blocklists",
"number_of_dns_query_blocked_24_hours_by_sec": "A number of DNS requests blocked by the AdGuard browsing security module",
@@ -365,7 +367,8 @@
"stats_params": "Statistics configuration",
"config_successfully_saved": "Configuration successfully saved",
"interval_24_hour": "24 hours",
- "interval_days": "{{value}} days",
+ "interval_days": "{{count}} day",
+ "interval_days_plural": "{{count}} days",
"time_period": "Time period",
"domain": "Domain",
"answer": "Answer",
diff --git a/client/src/api/Api.js b/client/src/api/Api.js
index afd75ea5..de068563 100644
--- a/client/src/api/Api.js
+++ b/client/src/api/Api.js
@@ -22,7 +22,6 @@ export default class Api {
}
// Global methods
- GLOBAL_RESTART = { path: 'restart', method: 'POST' };
GLOBAL_START = { path: 'start', method: 'POST' };
GLOBAL_STATUS = { path: 'status', method: 'GET' };
GLOBAL_STOP = { path: 'stop', method: 'POST' };
@@ -36,11 +35,6 @@ export default class Api {
GLOBAL_DISABLE_PROTECTION = { path: 'disable_protection', method: 'POST' };
GLOBAL_UPDATE = { path: 'update', method: 'POST' };
- restartGlobalFiltering() {
- const { path, method } = this.GLOBAL_RESTART;
- return this.makeRequest(path, method);
- }
-
startGlobalFiltering() {
const { path, method } = this.GLOBAL_START;
return this.makeRequest(path, method);
diff --git a/client/src/components/Dashboard/BlockedDomains.js b/client/src/components/Dashboard/BlockedDomains.js
index f88ca325..00c9b64e 100644
--- a/client/src/components/Dashboard/BlockedDomains.js
+++ b/client/src/components/Dashboard/BlockedDomains.js
@@ -1,76 +1,67 @@
-import React, { Component } from 'react';
+import React from 'react';
import ReactTable from 'react-table';
import PropTypes from 'prop-types';
import { withNamespaces, Trans } from 'react-i18next';
import Card from '../ui/Card';
import Cell from '../ui/Cell';
-import Popover from '../ui/Popover';
+import DomainCell from './DomainCell';
-import { getTrackerData } from '../../helpers/trackers/trackers';
import { getPercent } from '../../helpers/helpers';
import { STATUS_COLORS } from '../../helpers/constants';
-class BlockedDomains extends Component {
- columns = [
- {
- Header: