summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2021-02-04 16:05:54 +0100
committerDirk Brenken <dev@brenken.org>2021-02-04 16:05:54 +0100
commitf89450fd3e5f336397401db2f369ee9bbd587daa (patch)
tree59514678e3c59d3bc6ec18241e7b48a5f9b91622 /applications/luci-app-banip/luasrc/view/banip/ipsetview.htm
parent6ae138c2fe3dc13005b3ccdb9e19037f7350aab6 (diff)
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 <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/luasrc/view/banip/ipsetview.htm')
-rw-r--r--applications/luci-app-banip/luasrc/view/banip/ipsetview.htm67
1 files changed, 0 insertions, 67 deletions
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%>
-
-<script type="text/javascript">
-//<![CDATA[
- function ipset_view()
- {
- var div_ipsets = document.getElementById("div_ipsets");
- var ipset = div_ipsets.querySelector("#s_ipsets").value;
- var filter = document.getElementById("checkbox_filter").checked;
- var view = document.getElementById("view_id");
-
- if (!ipset)
- {
- return;
- }
- view.value = "<%:Loading ...%>";
-
- new XHR().get('<%=luci.dispatcher.build_url("admin", "services", "banip")%>/ipsetview/' + ipset + "/" + filter, null,
- function(x)
- {
- if (!x)
- {
- view.value = "<%:No response!%>";
- return;
- }
- view.value = x.responseText;
- });
- }
-//]]>
-</script>
-
-<div class="cbi-map">
- <div class="cbi-section">
- <div class="cbi-section-descr"><%:Check the current available IPSets.%></div>
- <div class="cbi-section-node">
- <div class="table cbi-section-table">
- <div class="tr cbi-section-table-row">
- <div class="td left">
- <input class="cbi-input-checkbox" data-update="click change" type="checkbox" id="checkbox_filter" name="checkbox_filter" value="1" checked="checked" />
- <label for="checkbox_filter"><%_Show only set member with packet counter &gt; 0%></label>
- </div>
- </div>
- <div class="tr cbi-section-table-row" id="div_ipsets">
- <div class="td left">
- <select id="s_ipsets" class="cbi-input-select cbi-button" style="width:15em">
- <%- for _, z in ipairs(ipsets) do -%><option value="<%=z%>"><%=z%></option><%- end -%>
- </select>
- <input type="button" id="bt_load" value="<%:Load%>" onclick="ipset_view()" class="cbi-button cbi-button-add" />
- </div>
- </div>
- </div>
- </div>
- <textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea>
- </div>
-</div>
-<%+footer%>