diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index d53593c5..66f3efab 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -96,6 +96,10 @@ "no_servers_specified": "No servers specified", "no_settings": "No settings", "general_settings": "General settings", + "dns_settings": "DNS settings", + "encryption_settings": "Encryption settings", + "dhcp_settings": "DHCP settings", + "clients_settings": "Clients settings", "upstream_dns": "Upstream DNS servers", "upstream_dns_hint": "If you keep this field empty, AdGuard Home will use Cloudflare DNS<\/a> as an upstream.", "test_upstream_btn": "Test upstreams", diff --git a/client/src/components/App/index.js b/client/src/components/App/index.js index 6e5ed768..f77097a0 100644 --- a/client/src/components/App/index.js +++ b/client/src/components/App/index.js @@ -13,6 +13,12 @@ import Header from '../../containers/Header'; import Dashboard from '../../containers/Dashboard'; import Settings from '../../containers/Settings'; import Filters from '../../containers/Filters'; + +import Dns from '../../containers/Dns'; +import Encryption from '../../containers/Encryption'; +import Dhcp from '../../containers/Dhcp'; +import Clients from '../../containers/Clients'; + import Logs from '../../containers/Logs'; import SetupGuide from '../../containers/SetupGuide'; import Toasts from '../Toasts'; @@ -41,7 +47,7 @@ class App extends Component { handleUpdate = () => { this.props.getUpdate(); - } + }; setLanguage = () => { const { processing, language } = this.props.dashboard; @@ -55,19 +61,17 @@ class App extends Component { i18n.on('languageChanged', (lang) => { this.props.changeLanguage(lang); }); - } + }; render() { const { dashboard, encryption } = this.props; const updateAvailable = - !dashboard.processingVersions && - dashboard.isCoreRunning && - dashboard.isUpdateAvailable; + !dashboard.processingVersions && dashboard.isCoreRunning && dashboard.isUpdateAvailable; return ( - + - {updateAvailable && + {updateAvailable && ( - } - {!encryption.processing && + )} + {!encryption.processing && ( - } + )}
- {!dashboard.processing && !dashboard.isCoreRunning && + {!dashboard.processing && !dashboard.isCoreRunning && (
- } - {!dashboard.processing && dashboard.isCoreRunning && + )} + {!dashboard.processing && dashboard.isCoreRunning && ( + + + + - } + )}