From 6ae138c2fe3dc13005b3ccdb9e19037f7350aab6 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Fri, 29 Jan 2021 11:03:19 +0100 Subject: luci-app-statistics: add ipstatistics plugin Signed-off-by: Nick Hainke --- .../resources/view/statistics/plugins/ipstatistics.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics') diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js new file mode 100644 index 0000000000..37f98100f1 --- /dev/null +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js @@ -0,0 +1,16 @@ +'use strict'; +'require baseclass'; +'require form'; +'require tools.widgets as widgets'; + +return baseclass.extend({ + title: _('IP-Statistics Plugin Configuration'), + description: _('The ipstatistics plugin collects IPv4 and IPv6 statistics to compare them.'), + + addFormOptions: function(s) { + var o; + + o = s.option(form.Flag, 'enable', _('Enable this plugin')); + o.default = '0'; + } +}); -- cgit v1.2.3