diff options
author | Nick Hainke <vincent@systemli.org> | 2021-01-29 11:03:19 +0100 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2021-02-04 16:35:13 +0200 |
commit | 6ae138c2fe3dc13005b3ccdb9e19037f7350aab6 (patch) | |
tree | 4a07cd6a802d9c6ee34421a2eb9d4d0132c5e18c /applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics | |
parent | a567b3d47ba575053034406a4834c697cc9f7540 (diff) |
luci-app-statistics: add ipstatistics plugin
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ipstatistics.js | 16 |
1 files changed, 16 insertions, 0 deletions
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'; + } +}); |