diff --git a/package/lean/luci-app-netdata/Makefile b/package/lean/luci-app-netdata/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..8794d5a4da782926166638c68c7762a1a07536c8 --- /dev/null +++ b/package/lean/luci-app-netdata/Makefile @@ -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 diff --git a/package/lean/luci-app-netdata/luasrc/controller/netdata.lua b/package/lean/luci-app-netdata/luasrc/controller/netdata.lua new file mode 100644 index 0000000000000000000000000000000000000000..b9c8a4448012c0316d3335db22ceab8b55cb0e24 --- /dev/null +++ b/package/lean/luci-app-netdata/luasrc/controller/netdata.lua @@ -0,0 +1,6 @@ +module("luci.controller.netdata", package.seeall) + +function index() + + entry({"admin","status","netdata"},template("netdata"),_("NetData"),10).leaf=true +end \ No newline at end of file diff --git a/package/lean/luci-app-netdata/luasrc/view/netdata.htm b/package/lean/luci-app-netdata/luasrc/view/netdata.htm new file mode 100644 index 0000000000000000000000000000000000000000..a6620e64d72aafdff400f28a47f12c4f38783bcd --- /dev/null +++ b/package/lean/luci-app-netdata/luasrc/view/netdata.htm @@ -0,0 +1,9 @@ +<%+header%> +
+

<%=translate("NetData")%>

+ +
+ +<%+footer%> diff --git a/package/lean/luci-app-netdata/po/zh-cn/netdata.po b/package/lean/luci-app-netdata/po/zh-cn/netdata.po new file mode 100644 index 0000000000000000000000000000000000000000..e8966b815d9f474843271ba739ec7282fefb87a1 --- /dev/null +++ b/package/lean/luci-app-netdata/po/zh-cn/netdata.po @@ -0,0 +1,5 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "NetData" +msgstr "实时监控"