diff options
author | Dirk Brenken <dev@brenken.org> | 2024-08-11 09:37:22 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2024-08-11 09:37:22 +0200 |
commit | 06037ad777ab0500008c49bcb2c06af309bc4e51 (patch) | |
tree | 6e1317f7c81747f80c2800918a3b3f5051d3439b /applications/luci-app-adblock | |
parent | 76f6c1de8bc38f7b4acee9fef027d60962ca20a5 (diff) |
luci-app-adblock: sync with adblock-4.2.1
* added full 1Hosts support
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock')
-rw-r--r-- | applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js | 16 | ||||
-rw-r--r-- | applications/luci-app-adblock/po/templates/adblock.pot | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index da93bc38a0..042e7dcb11 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -609,6 +609,22 @@ return view.extend({ o.optional = true; o.rmempty = true; + o = s.taboption('sources', form.DummyValue, '_sub'); + o.rawhtml = true; + o.default = '<em><b>1Hosts List Selection</b></em>'; + + o = s.taboption('sources', form.DynamicList, 'adb_hst_sources', _('Variants')); + for (var i = 0; i < categories.length; i++) { + code = categories[i].match(/^(\w+);/)[1].trim(); + if (code === 'hst') { + list = categories[i].match(/^\w+;(.*);/)[1].trim(); + path = categories[i].match(/^.*;(.*$)/)[1].trim(); + o.value(path, list); + } + } + o.optional = true; + o.rmempty = true; + return m.render(); }, handleReset: null diff --git a/applications/luci-app-adblock/po/templates/adblock.pot b/applications/luci-app-adblock/po/templates/adblock.pot index ee3d7317f0..21403b1542 100644 --- a/applications/luci-app-adblock/po/templates/adblock.pot +++ b/applications/luci-app-adblock/po/templates/adblock.pot @@ -727,6 +727,7 @@ msgstr "" #: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:584 #: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:600 +#: applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js:616 msgid "Variants" msgstr "" |