diff options
author | Olivier Poitrey <rs@nextdns.io> | 2019-11-05 12:57:29 -0800 |
---|---|---|
committer | Olivier Poitrey <rs@nextdns.io> | 2019-11-12 18:19:27 -0800 |
commit | 4d702a1cf2277288e87ca02ca976a9a437585501 (patch) | |
tree | d7de0378bbc6da0c77851294c3b2e47a3a4b4685 /applications/luci-app-nextdns/luasrc/view | |
parent | 2ff7d246d669ecdf3536a9b3512b0b30030b3988 (diff) |
luci-app-nextdns: add luci integration for nextdns package
Signed-off-by: Olivier Poitrey <rs@nextdns.io>
Diffstat (limited to 'applications/luci-app-nextdns/luasrc/view')
-rw-r--r-- | applications/luci-app-nextdns/luasrc/view/nextdns/logread.htm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/applications/luci-app-nextdns/luasrc/view/nextdns/logread.htm b/applications/luci-app-nextdns/luasrc/view/nextdns/logread.htm new file mode 100644 index 0000000000..0a98b2704f --- /dev/null +++ b/applications/luci-app-nextdns/luasrc/view/nextdns/logread.htm @@ -0,0 +1,46 @@ +<%+header%> + +<style type="text/css"> + select[readonly], + textarea[readonly] + { + width: 100% !important; + height: 450px !important; + border: 1px solid #cccccc; + padding: 5px; + font-size: 12px; + font-family: monospace; + resize: none; + pointer-events: auto; + cursor: auto; + } +</style> + +<script type="text/javascript"> +//<![CDATA[ + function log_update() + { + XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "nextdns", "logread")%>', null, + function(x) + { + if (!x) + { + return; + } + var view = document.getElementById("view_id"); + view.value = x.responseText; + view.scrollTop = view.scrollHeight; + }); + } + window.onload = log_update(); +//]]> +</script> + +<div class="cbi-map"> + <div class="cbi-section"> + <div class="cbi-section-descr"><%:The syslog output, pre-filtered for nextdns related messages only.%></div> + <textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea> + </div> +</div> + +<%+footer%> |