Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
luci-app-netdata: add package and x64 SSE2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Oct 20, 2019
1 parent 39a642a commit 966951a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package/lean/luci-app-netdata/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2016 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#

include $(TOPDIR)/rules.mk

LUCI_TITLE:=LuCI support for Netdata
LUCI_DEPENDS:=+netdata
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=3

include $(TOPDIR)/feeds/luci/luci.mk

# call BuildPackage - OpenWrt buildroot signature
6 changes: 6 additions & 0 deletions package/lean/luci-app-netdata/luasrc/controller/netdata.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module("luci.controller.netdata", package.seeall)

function index()

entry({"admin","status","netdata"},template("netdata"),_("NetData"),10).leaf=true
end
9 changes: 9 additions & 0 deletions package/lean/luci-app-netdata/luasrc/view/netdata.htm
Original file line number Diff line number Diff line change
@@ -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%>
5 changes: 5 additions & 0 deletions package/lean/luci-app-netdata/po/zh-cn/netdata.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"

msgid "NetData"
msgstr "实时监控"

0 comments on commit 966951a

Please sign in to comment.