Skip to content

Commit

Permalink
Merge pull request #6748 from stangri/master-luci-app-adblock-fast
Browse files Browse the repository at this point in the history
luci-app-adblock-fast: sync with principal package
  • Loading branch information
stangri authored Dec 6, 2023
2 parents a65af78 + 4c3cdcb commit eb6ded7
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 100 deletions.
2 changes: 1 addition & 1 deletion applications/luci-app-adblock-fast/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk

PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
PKG_VERSION:=1.1.0-1
PKG_VERSION:=1.1.0-3

LUCI_TITLE:=AdBlock-Fast Web UI
LUCI_DESCRIPTION:=Provides Web UI for adblock-fast service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ return view.extend({
ipset_installed: false,
nft_installed: false,
dnsmasq_installed: false,
unbound_installed: false,
dnsmasq_ipset_support: false,
dnsmasq_nftset_support: false,
smartdns_installed: false,
smartdns_ipset_support: false,
smartdns_nftset_support: false,
unbound_installed: false,
leds: [],
},
};
Expand Down Expand Up @@ -102,6 +105,21 @@ return view.extend({
_("Please note that %s is not supported on this system.").format(
"<i>smartdns.domainset</i>"
);
} else {
if (!reply.platform.smartdns_ipset_support) {
text +=
"<br />" +
_("Please note that %s is not supported on this system.").format(
"<i>smartdns.ipset</i>"
);
}
if (!reply.platform.smartdns_nftset_support) {
text +=
"<br />" +
_("Please note that %s is not supported on this system.").format(
"<i>smartdns.nftset</i>"
);
}
}
if (!reply.platform.unbound_installed) {
text =
Expand Down Expand Up @@ -132,6 +150,12 @@ return view.extend({
}
if (reply.platform.smartdns_installed) {
o.value("smartdns.domainset", _("smartdns domain set"));
if (reply.platform.smartdns_ipset_support) {
o.value("smartdns.ipset", _("smartdns ipset"));
}
if (reply.platform.smartdns_nftset_support) {
o.value("smartdns.nftset", _("smartdns nft set"));
}
}
if (reply.platform.unbound_installed) {
o.value("unbound.adb_list", _("unbound adblock list"));
Expand Down
Loading

0 comments on commit eb6ded7

Please sign in to comment.