LUCI_TITLE:=LuCI support for Adblock
LUCI_DEPENDS:=+luci-base +adblock
+PKG_VERSION:=4.4.3
+PKG_RELEASE:=1
PKG_LICENSE:=Apache-2.0
include ../../luci.mk
'class': 'btn cbi-button cbi-button-positive',
'style': 'word-break: inherit',
'name': 'allowlist',
+ 'title': 'Add to Allowlist',
'value': content[0].requests[i].domain,
'click': handleAction
}, [_('Allowlist...')]);
'class': 'btn cbi-button cbi-button-negative',
'style': 'word-break: inherit',
'name': 'blocklist',
+ 'title': 'Add to Blocklist',
'value': content[0].requests[i].domain,
'click': handleAction
}, [_('Blocklist...')]);
])
]),
E('div', { 'class': 'cbi-page-actions' }, [
+ E('button', {
+ 'class': 'btn cbi-button cbi-button-apply',
+ 'style': 'float:none;margin-right:.4em;',
+ 'id': 'btnTest',
+ 'title': 'Adblock Test',
+ 'click': function() {
+ window.open('https://adblock.turtlecute.org/', '_blank', 'noopener,noreferrer');
+ }
+ }, [_('Adblock Test')]),
E('button', {
'class': 'btn cbi-button cbi-button-apply',
'style': 'float:none;margin-right:.4em;',
'id': 'btnMap',
+ 'title': 'Map',
'disabled': 'disabled',
'click': ui.createHandlerFn(this, function () {
if (content[1] && content[1].length > 1) {
}
}
})
- }, [_('Map...')]),
+ }, [_('Map')]),
E('button', {
'class': 'btn cbi-button cbi-button-apply',
'style': 'float:none;margin-right:.4em;',
+ 'title': 'Blocklist Query',
'click': ui.createHandlerFn(this, function () {
return handleAction('query');
})
E('button', {
'class': 'btn cbi-button cbi-button-positive important',
'style': 'float:none;margin-right:.4em;',
+ 'title': 'Refresh',
'click': ui.createHandlerFn(this, function () {
return handleAction('refresh');
})
'style': 'float:none;margin-right:.4em;',
'id': 'btnDownload',
'disabled': 'disabled',
+ 'title': 'Download',
'click': ui.createHandlerFn(this, function () {
return handleEdit('download');
})
'style': 'float:none;margin-right:.4em;',
'id': 'btnUpload',
'disabled': 'disabled',
+ 'title': 'Upload',
'click': ui.createHandlerFn(this, function () {
return handleEdit('upload');
})
'style': 'float:none;margin-right:.4em;',
'id': 'btnCreate',
'disabled': 'disabled',
+ 'title': 'Fill',
'click': ui.createHandlerFn(this, function () {
return handleEdit('create');
})
'style': 'float:none;margin-right:.4em;',
'id': 'btnClear',
'disabled': 'disabled',
+ 'title': 'Clear',
'click': ui.createHandlerFn(this, function () {
return handleEdit('clear');
})
'style': 'float:none',
'id': 'btnSave',
'disabled': 'disabled',
+ 'title': 'Save',
'click': ui.createHandlerFn(this, function () {
return handleEdit('save');
})
o.datatype = 'range(1,300)';
o.rmempty = true;
- o = s.taboption('general', form.Flag, 'adb_dnsforce', _('Force Local DNS'), _('Redirect all DNS queries from specified zones to the local DNS resolver, applies to UDP and TCP protocol.'));
+ o = s.taboption('general', form.Flag, 'adb_dnsforce', _('Force Local DNS'), _('Redirect all local DNS queries from specified LAN zones to the local DNS resolver, applies to UDP and TCP protocol.'));
o.rmempty = false;
- o = s.taboption('general', widgets.ZoneSelect, 'adb_zonelist', _('Forced Zones'), _('Firewall source zones that should be forced locally.'));
+ o = s.taboption('general', widgets.ZoneSelect, 'adb_zonelist', _('Forced Zones'), _('Firewall LAN source zones that should be forced locally.'));
o.depends('adb_dnsforce', '1');
o.multiple = true;
o.nocreate = true;
o.default = '<em style="color:#37c;font-weight:bold;">' + _('Changes on this tab needs an adblock service restart to take effect.') + '</em>'
+ '<hr style="width: 200px; height: 1px;" />';
- o = s.taboption('adv_report', form.DummyValue, '_sub');
- o.rawhtml = true;
- o.default = '<em><b>Changes on this tab needs a full adblock service restart to take effect.</b></em>';
-
o = s.taboption('adv_report', widgets.DeviceSelect, 'adb_repiface', _('Report Interface'), _('List of available network devices used by tcpdump.'));
o.nocreate = false;
o.rmempty = true;
E('button', {
'class': 'btn cbi-button cbi-button-negative important',
'style': 'float:none;margin-right:.4em;',
+ 'title': 'Stop',
'click': function () {
return handleAction('stop');
}
'class': 'btn cbi-button cbi-button-apply important',
'style': 'float:none;margin-right:.4em;',
'id': 'btn_suspend',
+ 'title': 'Suspend/Resume',
'click': function () {
return handleAction('suspend');
}
E('button', {
'class': 'btn cbi-button cbi-button-positive important',
'style': 'float:none;margin-right:.4em;',
+ 'title': 'Save & Reload',
'click': function () {
return handleAction('reload');
}
E('button', {
'class': 'btn cbi-button cbi-button-positive important',
'style': 'float:none',
+ 'title': 'Save & Restart',
'click': function () {
handleAction('restart');
}