treewide: import utility classes explicitly
[project/luci.git] / applications / luci-app-nextdns / htdocs / luci-static / resources / view / nextdns / overview.js
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function() {
7 var m, s, o;
8
9 m = new form.Map('nextdns', _('NextDNS'),
10 _('NextDNS Configuration.')
11 + '<br>'
12 + _('For further information, go to \
13 <a href="https://nextdns.io" target="_blank">nextdns.io</a>.'));
14
15 s = m.section(form.TypedSection, 'nextdns', _('General'));
16 s.anonymous = true;
17
18 o = s.option(form.Flag, 'enabled', _('Enabled'),
19 _('Enable NextDNS.'));
20 o.default = '1';
21 o.rmempty = false;
22
23 s.option(form.Value, 'config', _('Configuration ID'),
24 _('The ID of your NextDNS configuration.')
25 + '<br>'
26 + _('Go to nextdns.io to create a configuration.'));
27
28 o = s.option(form.Flag, 'report_client_info', _('Report Client Info'),
29 _('Expose LAN clients information in NextDNS analytics.'));
30 o.default = '1';
31 o.rmempty = false;
32
33 o = s.option(form.Flag, 'hardened_privacy', _('Hardened Privacy'),
34 _('When enabled, use DNS servers located in jurisdictions with strong privacy laws.')
35 + '<br>'
36 + _('Available locations are: Switzerland, Iceland, Finland, Panama and Hong Kong.'));
37 o.rmempty = false;
38
39 o = s.option(form.Flag, 'log_queries', _('Log Queries'),
40 _('Log individual queries to system log.'));
41 o.rmempty = false;
42
43 return m.render();
44 },
45 });