luci-app-adblock: small fixes
[project/luci.git] / applications / luci-app-adblock / htdocs / luci-static / resources / view / adblock / overview.js
index 7351f3ba55d9b63f3140bd17d81717c3ab628375..2b58961f0b0d6c8e1ac56f61c84857c73c4dbe04 100644 (file)
@@ -13,7 +13,7 @@
 function handleAction(ev) {
        if (ev === 'timer') {
                L.ui.showModal(_('Refresh Timer'), [
-                       E('p', _('To keep your adblock lists up-to-date, you should setup an automatic update job for these lists.')),
+                       E('p', _('To keep your adblock lists up-to-date, you should set up an automatic update job for these lists.')),
                        E('div', { 'class': 'left', 'style': 'display:flex; flex-direction:column' }, [
                                E('h5', _('Existing job(s)')),
                                E('textarea', {
@@ -343,6 +343,7 @@ return view.extend({
                o.depends('adb_safesearch', '1');
                o.value('google');
                o.value('bing');
+               o.value('duckduckgo');
                o.value('yandex');
                o.value('youtube');
                o.value('pixabay');
@@ -353,7 +354,7 @@ return view.extend({
                o.rmempty = true;
 
                o = s.taboption('general', form.Flag, 'adb_report', _('DNS Report'), _('Gather DNS related network traffic via tcpdump and provide a DNS Report on demand. \
-                       Please note: this needs additional \'tcpdump-mini\' package installation and a full adblock service restart to take effect.'));
+                       Please note: this needs additional \'tcpdump\' or \'tcpdump-mini\' package installation and a full adblock service restart to take effect.'));
                o.rmempty = false;
 
                o = s.taboption('general', form.Flag, 'adb_mail', _('E-Mail Notification'), _('Send adblock related notification e-mails. \
@@ -437,6 +438,16 @@ return view.extend({
                o.placeholder = '/tmp';
                o.rmempty = true;
 
+               o = s.taboption('adv_dns', form.ListValue, 'adb_dnsinstance', _('DNS Instance'), _('Set the dns backend instance used by adblock.'));
+               o.value('0', _('First instance (default)'));
+               o.value('1', _('Second instance'));
+               o.value('2', _('Third instance'));
+               o.value('3', _('Fourth instance'));
+               o.value('4', _('Fifth instance'));
+               o.depends('adb_dns', 'dnsmasq');
+               o.optional = true;
+               o.rmempty = true;
+
                o = s.taboption('adv_dns', form.Value, 'adb_dnstimeout', _('DNS Restart Timeout'), _('Timeout to wait for a successful DNS backend restart.'));
                o.placeholder = '20';
                o.datatype = 'range(1,60)';
@@ -447,7 +458,7 @@ return view.extend({
                o.placeholder = 'example.com';
                o.rmempty = true;
 
-               o = s.taboption('adv_dns', form.Flag, 'adb_dnsflush', _('Flush DNS Cache'), _('Flush the DNS Cache before adblock processing as well.'));
+               o = s.taboption('adv_dns', form.Flag, 'adb_dnsflush', _('Flush DNS Cache'), _('Empty the DNS cache before adblock processing starts to reduce the memory consumption.'));
                o.rmempty = true;
 
                o = s.taboption('adv_dns', form.Flag, 'adb_dnsallow', _('Disable DNS Allow'), _('Disable selective DNS whitelisting (RPZ-PASSTHRU).'));