mirror of
https://github.com/openwrt/luci.git
synced 2026-10-12 05:07:26 +04:00
luci-app-banip: release 1.8.9-1
* fix minor code issues Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
3 files changed
+4
-7
No files matched your search
@@ -6,8 +6,8 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=LuCI support for banIP
|
||||
LUCI_DEPENDS:=+luci-base +banip
|
||||
|
||||
PKG_VERSION:=1.8.8
|
||||
PKG_RELEASE:=5
|
||||
PKG_VERSION:=1.8.9
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
||||
|
||||
@@ -73,11 +73,11 @@ observer.observe(targetNode, observerConfig);
|
||||
function handleEdit(ev) {
|
||||
if (ev === 'upload') {
|
||||
return ui.uploadFile('/etc/banip/banip.custom.feeds').then(function () {
|
||||
L.resolveDefault(fs.read_direct('/etc/banip/banip.custom.feeds', 'json'), "").then(function (data) {
|
||||
return L.resolveDefault(fs.read_direct('/etc/banip/banip.custom.feeds', 'json'), "").then(function (data) {
|
||||
if (data && Object.keys(data).length > 0) {
|
||||
for (let i = 0; i < Object.keys(data).length; i++) {
|
||||
let feed = Object.keys(data)[i];
|
||||
let descr = data[feed].descr;
|
||||
let descr = data[feed]?.descr;
|
||||
if (feed && descr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -65,9 +65,6 @@
|
||||
],
|
||||
"/etc/init.d/banip content *": [
|
||||
"exec"
|
||||
],
|
||||
"/etc/init.d/banip status": [
|
||||
"exec"
|
||||
]
|
||||
},
|
||||
"uci": [
|
||||
|
||||
Reference in new issue
Block a user