mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
06a4f10a4d
commit
1020d095bc
44 changed files with 3520 additions and 31 deletions
6
luci-app-netdata/luasrc/controller/netdata.lua
Normal file
6
luci-app-netdata/luasrc/controller/netdata.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
module("luci.controller.netdata", package.seeall)
|
||||
|
||||
function index()
|
||||
|
||||
entry({"admin", "status", "netdata"}, template("netdata/netdata"), _("NetData"), 10).leaf = true
|
||||
end
|
9
luci-app-netdata/luasrc/view/netdata/netdata.htm
Normal file
9
luci-app-netdata/luasrc/view/netdata/netdata.htm
Normal file
|
@ -0,0 +1,9 @@
|
|||
<%+header%>
|
||||
<div class="cbi-map">
|
||||
<h2 name="content"><%=translate("NetData")%></h2>
|
||||
<iframe id="netdata" style="width: 100%; min-height: 1200px; border: none; border-radius: 3px;"></iframe>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
document.getElementById("netdata").src = "http://" + window.location.hostname + ":19999";
|
||||
</script>
|
||||
<%+footer%>
|
Loading…
Add table
Add a link
Reference in a new issue