From f89450fd3e5f336397401db2f369ee9bbd587daa Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Thu, 4 Feb 2021 16:05:54 +0100 Subject: luci-app-banip: sync with banIP 0.7.0 * sync with current banIP release * move app to client side JS * tested with all standard themes Signed-off-by: Dirk Brenken --- .../luci-app-banip/luasrc/view/banip/banip_css.htm | 95 ------------ .../luci-app-banip/luasrc/view/banip/ipsetview.htm | 67 --------- .../luci-app-banip/luasrc/view/banip/logview.htm | 36 ----- .../luci-app-banip/luasrc/view/banip/ripeview.htm | 107 -------------- .../luci-app-banip/luasrc/view/banip/runtime.htm | 164 --------------------- .../luasrc/view/banip/sourcelist.htm | 47 ------ 6 files changed, 516 deletions(-) delete mode 100644 applications/luci-app-banip/luasrc/view/banip/banip_css.htm delete mode 100644 applications/luci-app-banip/luasrc/view/banip/ipsetview.htm delete mode 100644 applications/luci-app-banip/luasrc/view/banip/logview.htm delete mode 100644 applications/luci-app-banip/luasrc/view/banip/ripeview.htm delete mode 100644 applications/luci-app-banip/luasrc/view/banip/runtime.htm delete mode 100644 applications/luci-app-banip/luasrc/view/banip/sourcelist.htm (limited to 'applications/luci-app-banip/luasrc/view') diff --git a/applications/luci-app-banip/luasrc/view/banip/banip_css.htm b/applications/luci-app-banip/luasrc/view/banip/banip_css.htm deleted file mode 100644 index 2fd4109e90..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/banip_css.htm +++ /dev/null @@ -1,95 +0,0 @@ - diff --git a/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm b/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm deleted file mode 100644 index 22c1312a8f..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm +++ /dev/null @@ -1,67 +0,0 @@ -<%# -Copyright 2018 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%- - local util = require("luci.util") - local ipsets = util.split(util.trim(util.exec("ipset -n -L 2>/dev/null | sort")), "\n", nil, true) or {} --%> - -<%+header%> -<%+banip/banip_css%> - - - -
-
-
<%:Check the current available IPSets.%>
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-<%+footer%> diff --git a/applications/luci-app-banip/luasrc/view/banip/logview.htm b/applications/luci-app-banip/luasrc/view/banip/logview.htm deleted file mode 100644 index 86f1ea64fa..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/logview.htm +++ /dev/null @@ -1,36 +0,0 @@ -<%# -Copyright 2018 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%+header%> -<%+banip/banip_css%> - - - -
-
-
<%:The syslog output, pre-filtered for banIP related messages only.%>
- -
-
- -<%+footer%> diff --git a/applications/luci-app-banip/luasrc/view/banip/ripeview.htm b/applications/luci-app-banip/luasrc/view/banip/ripeview.htm deleted file mode 100644 index 5d26ce95f1..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/ripeview.htm +++ /dev/null @@ -1,107 +0,0 @@ -<%# -Copyright 2018 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%+header%> -<%+banip/banip_css%> - - - -
-
-
<%_The RIPEstat Data API is the public data interface provided by RIPE NCC, for details look here.%>
-
-
-
-
- -
-
-
-
- -

- -
-
-
-
- -
-
- -<%+footer%> \ No newline at end of file diff --git a/applications/luci-app-banip/luasrc/view/banip/runtime.htm b/applications/luci-app-banip/luasrc/view/banip/runtime.htm deleted file mode 100644 index f96b23dc80..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/runtime.htm +++ /dev/null @@ -1,164 +0,0 @@ -<%# -Copyright 2018-2019 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%+banip/banip_css%> - - -

<%:Runtime Information%>

-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
-
-
- -
- - -
-
-
- -
- - -
-
- diff --git a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm b/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm deleted file mode 100644 index 12240e5ae4..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm +++ /dev/null @@ -1,47 +0,0 @@ -<%# -Copyright 2018 Dirk Brenken (dev@brenken.org) -This is free software, licensed under the Apache License, Version 2.0 --%> - -<%- -local anonclass = (not self.anonymous or self.sectiontitle) and "named" or "anonymous" --%> - -<%+banip/banip_css%> - -
- <% if self.title then -%> -

<%=self.title%>

- <%- end %> -
<%=self.description%>
-
-
-
- <%- for i, k in pairs(self.children) do -%> -
- <%-=k.title-%> -
- <%- end -%> -
- <%- local section, scope, isempty = true - for i, k in ipairs(self:cfgsections()) do - section = k - local sectionname = striptags((type(self.sectiontitle) == "function") and self:sectiontitle(section) or k) - local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname, true) - isempty = false - scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } - -%> -
> - <%- - for k, node in ipairs(self.children) do - node:render(section, scope or {}) - end - if not scope.cbid:match("ban_src_cat") then - -%> -
 
- <%- end -%> -
- <%- end -%> -
-
-
-- cgit v1.2.3