diff options
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/statistics')
29 files changed, 58 insertions, 29 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index 00b65d5b6d..092dd45522 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -1,4 +1,5 @@ 'use strict'; +'require baseclass'; 'require fs'; 'require uci'; 'require tools.prng as random'; @@ -133,7 +134,7 @@ var colors = L.Class.singleton({ var rrdtree = {}, graphdefs = {}; -return L.Class.extend({ +return baseclass.extend({ __init__: function() { this.opts = {}; }, diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/apcups.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/apcups.js index 50de3a6b03..c03e38cf57 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/apcups.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/apcups.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('APC UPS'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/conntrack.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/conntrack.js index c61d4f2912..9c54f5c914 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/conntrack.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/conntrack.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Conntrack'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/contextswitch.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/contextswitch.js index fc4c80a93b..8dc3cc75fb 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/contextswitch.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/contextswitch.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Context Switches'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js index 4e130704aa..464b28e8ef 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js @@ -1,9 +1,10 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; 'require uci'; -return L.Class.extend({ +return baseclass.extend({ title: _('Processor'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpufreq.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpufreq.js index 6f4d52deb2..308d58dacf 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpufreq.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpufreq.js @@ -1,9 +1,10 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; 'require uci'; -return L.Class.extend({ +return baseclass.extend({ title: _('CPU Frequency'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js index af78dd0b91..718aa7bbb6 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/curl.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('cUrl'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/df.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/df.js index 240d1da617..34fbb9b5c4 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/df.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/df.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Disk Space Usage'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/disk.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/disk.js index 52542a1f84..12ed9568f6 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/disk.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/disk.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Disk Usage'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dns.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dns.js index 9e71bb42c5..029471f801 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dns.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dns.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('DNS'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/entropy.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/entropy.js index 574724c421..b4f6f05948 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/entropy.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/entropy.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Entropy'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/interface.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/interface.js index 04b1b8d1ea..ccf1849243 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/interface.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/interface.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Interfaces'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ip6tables.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ip6tables.js index 1b9755cce3..c956c19881 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ip6tables.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ip6tables.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Firewall (IPv6)'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iptables.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iptables.js index a115c044b3..69a3a87eb7 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iptables.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iptables.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Firewall'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/irq.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/irq.js index 158fbce9e3..29675f77c3 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/irq.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/irq.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Interrupts'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iwinfo.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iwinfo.js index 9eeb1d0016..638242f102 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iwinfo.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/iwinfo.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Wireless'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js index 8b1e6c2844..a104691100 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('System Load'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/memory.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/memory.js index 4c52fc7811..9b0d179b0a 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/memory.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/memory.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Memory'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/netlink.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/netlink.js index f7d55a89db..3bf3756b04 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/netlink.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/netlink.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Netlink'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js index a9cb770c7d..5d7a92f7fb 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('UPS'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js index 4ccc417da7..b311efba36 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('OLSRd'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/openvpn.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/openvpn.js index 08951018f4..f78e2a491c 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/openvpn.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/openvpn.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('OpenVPN'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ping.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ping.js index 063db21895..27624828c2 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ping.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/ping.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Ping'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/processes.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/processes.js index c117709701..9087b8e33c 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/processes.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/processes.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Processes'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sensors.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sensors.js index 72806df880..b3361e1bf4 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sensors.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sensors.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Sensors'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/splash_leases.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/splash_leases.js index 64741f16e3..33df893f86 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/splash_leases.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/splash_leases.js @@ -4,8 +4,9 @@ */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Splash Leases'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/tcpconns.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/tcpconns.js index 4ecd532fa0..626e2c64bc 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/tcpconns.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/tcpconns.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('TCP Connections'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/thermal.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/thermal.js index 6ff303de98..a94c83bdf5 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/thermal.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/thermal.js @@ -1,8 +1,9 @@ /* Licensed to the public under the Apache License 2.0. */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Thermal'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/uptime.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/uptime.js index c764897b54..2b6ea226a8 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/uptime.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/uptime.js @@ -9,8 +9,9 @@ You may obtain a copy of the License at */ 'use strict'; +'require baseclass'; -return L.Class.extend({ +return baseclass.extend({ title: _('Uptime'), rrdargs: function(graph, host, plugin, plugin_instance, dtype) { |