Standalone parser for user entries.

This commit is contained in:
gSpot
2025-12-31 03:15:47 +03:00
parent 75724ed7c0
commit 48fdb95abf
9 changed files with 273 additions and 142 deletions
+3 -2
View File
@@ -5,8 +5,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ruantiblock
PKG_VERSION:=2.1.10
PKG_RELEASE:=2
PKG_VERSION:=2.1.11
PKG_RELEASE:=1
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
LUCI_TITLE:=LuCI support for ruantiblock
LUCI_DEPENDS:=+ruantiblock
LUCI_PKGARCH:=all
@@ -49,7 +49,6 @@ return view.extend({
if(!i.rule) {
continue;
};
let set, bytes;
i.rule.expr.forEach(e => {
if(e.match && e.match.left && e.match.left.payload) {
@@ -309,9 +308,8 @@ return view.extend({
user_entries.append(
E('tr', { 'class': 'tr' }, [
E('td', { 'class': 'td left', 'style': 'word-wrap:break-word' },
i.id),
E('td', { 'class': 'td left',
'id' : 'user_entries_' + i },
i.id.slice(0, 114) + (i.id.length > 115 ? '...' : '')),
E('td', { 'class': 'td left' },
`CIDR: ${i.cidr}, IP: ${i.ip}, FQDN: ${i.fqdn}`),
])
);