treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
1099aebdee
commit
3c4bc228a1
153 changed files with 426 additions and 236 deletions
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require ui';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.blacklist'), '');
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require ui';
|
||||
|
||||
|
@ -186,7 +187,7 @@ function handleAction(ev) {
|
|||
}
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'false', 'json']),'');
|
||||
},
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require poll';
|
||||
'require fs';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.stat('/sbin/logread'), null),
|
||||
|
@ -10,7 +12,7 @@ return L.view.extend({
|
|||
},
|
||||
render: function(stat) {
|
||||
var logger = stat[0] ? stat[0].path : stat[1] ? stat[1].path : null;
|
||||
L.Poll.add(function() {
|
||||
poll.add(function() {
|
||||
return L.resolveDefault(fs.exec_direct(logger, ['-e', 'adblock-'])).then(function(res) {
|
||||
var log = document.getElementById("logfile");
|
||||
if (res) {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require poll';
|
||||
'require fs';
|
||||
'require ui';
|
||||
'require uci';
|
||||
|
@ -98,7 +100,7 @@ async function handleAction(ev) {
|
|||
}
|
||||
}
|
||||
|
||||
L.Poll.start();
|
||||
poll.start();
|
||||
fs.exec_direct('/etc/init.d/adblock', [ev])
|
||||
var running = 1;
|
||||
while (running === 1) {
|
||||
|
@ -109,10 +111,10 @@ async function handleAction(ev) {
|
|||
}
|
||||
})
|
||||
}
|
||||
L.Poll.stop();
|
||||
poll.stop();
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['list']), {}),
|
||||
|
@ -129,7 +131,7 @@ return L.view.extend({
|
|||
/*
|
||||
poll runtime information
|
||||
*/
|
||||
pollData: L.Poll.add(function() {
|
||||
pollData: poll.add(function() {
|
||||
return L.resolveDefault(fs.read_direct('/tmp/adb_runtime.json'), 'null').then(function(res) {
|
||||
var info = JSON.parse(res);
|
||||
var status = document.getElementById('status');
|
||||
|
@ -142,7 +144,7 @@ return L.view.extend({
|
|||
} else {
|
||||
if (status.classList.contains("spinning")) {
|
||||
status.classList.remove("spinning");
|
||||
L.Poll.stop();
|
||||
poll.stop();
|
||||
}
|
||||
}
|
||||
if (status.textContent.substr(0,6) === 'paused' && document.getElementById('btn_suspend')) {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require ui';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.whitelist'), '');
|
||||
},
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require dom';
|
||||
'require poll';
|
||||
'require uci';
|
||||
'require rpc';
|
||||
'require fs';
|
||||
|
@ -41,7 +44,7 @@ callDDnsGetStatus = rpc.declare({
|
|||
expect: { }
|
||||
});
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
|
||||
callDDnsGetEnv: rpc.declare({
|
||||
object: 'luci.ddns',
|
||||
|
@ -64,7 +67,7 @@ return L.view.extend({
|
|||
|
||||
ddns_toggle.innerHTML = status['_enabled'] ? _('Stop DDNS') : _('Start DDNS')
|
||||
|
||||
L.dom.content(ddns_enabled, function() {
|
||||
dom.content(ddns_enabled, function() {
|
||||
return E([], [
|
||||
E('div', {}, status['_enabled'] ? _('DDNS Autostart enabled') : [
|
||||
_('DDNS Autostart disabled'),
|
||||
|
@ -374,7 +377,7 @@ return L.view.extend({
|
|||
(resolved[section_id].pid && cfg_enabled == '1'))
|
||||
stop_opt['disabled'] = 'disabled';
|
||||
|
||||
L.dom.content(tdEl.lastChild, [
|
||||
dom.content(tdEl.lastChild, [
|
||||
E('button', stop_opt, _('Stop')),
|
||||
E('button', reload_opt, _('Reload')),
|
||||
tdEl.lastChild.childNodes[0],
|
||||
|
@ -982,7 +985,7 @@ return L.view.extend({
|
|||
}
|
||||
|
||||
return m.render().then(L.bind(function(m, nodes) {
|
||||
L.Poll.add(L.bind(function() {
|
||||
poll.add(L.bind(function() {
|
||||
return Promise.all([
|
||||
this.callDDnsGetServicesStatus(),
|
||||
callDDnsGetStatus()
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Dynamic DNS'),
|
||||
|
||||
callDDnsGetServicesStatus: rpc.declare({
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require dom';
|
||||
'require ui';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
@ -81,7 +83,7 @@ function lookupProto(x) {
|
|||
return [ -1, x, x ];
|
||||
}
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
fmt: function(fmtstr, args, values) {
|
||||
var repl = [],
|
||||
wrap = false,
|
||||
|
@ -112,7 +114,7 @@ return L.Class.extend({
|
|||
};
|
||||
|
||||
var isset = function(val) {
|
||||
if (L.isObject(val) && !L.dom.elem(val)) {
|
||||
if (L.isObject(val) && !dom.elem(val)) {
|
||||
for (var k in val)
|
||||
if (val.hasOwnProperty(k))
|
||||
return true;
|
||||
|
@ -128,7 +130,7 @@ return L.Class.extend({
|
|||
};
|
||||
|
||||
var parse = function(tokens, text) {
|
||||
if (L.dom.elem(text)) {
|
||||
if (dom.elem(text)) {
|
||||
tokens.push('<span data-fmt-placeholder="%d"></span>'.format(values.length));
|
||||
values.push(text);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require ui';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return L.resolveDefault(fs.read('/etc/firewall.user'), '');
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require ui';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
|
@ -84,7 +85,7 @@ function rule_target_txt(s) {
|
|||
});
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
callHostHints: rpc.declare({
|
||||
object: 'luci-rpc',
|
||||
method: 'getHostHints',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require ui';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
|
@ -136,7 +137,7 @@ function rule_target_txt(s, ctHelpers) {
|
|||
}
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
callHostHints: rpc.declare({
|
||||
object: 'luci-rpc',
|
||||
method: 'getHostHints',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require ui';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
|
@ -90,7 +91,7 @@ function rule_target_txt(s) {
|
|||
}
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
callHostHints: rpc.declare({
|
||||
object: 'luci-rpc',
|
||||
method: 'getHostHints',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
@ -7,7 +8,7 @@
|
|||
'require tools.firewall as fwtool';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
callConntrackHelpers: rpc.declare({
|
||||
object: 'luci',
|
||||
method: 'getConntrackHelpers',
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require ui';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
@ -113,7 +114,7 @@ function defOpts(s, opts, params) {
|
|||
}
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
|
@ -88,7 +89,7 @@ function defOpts(s, opts, params) {
|
|||
}
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.stat('/sbin/block'), null),
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
trigger: _('rssi (service)'),
|
||||
kernel: false,
|
||||
addFormOptions(s){
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
trigger: _('switch0 (kernel)'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
trigger: _('switch1 (kernel)'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require rpc';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
@ -9,7 +10,7 @@ var callUSB = rpc.declare({
|
|||
expect: { 'ports': [] }
|
||||
});
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
trigger: _('usbport (kernel)'),
|
||||
kernel: true,
|
||||
addFormOptions(s){
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
@ -28,7 +29,7 @@ var CBIMiniDLNAStatus = form.DummyValue.extend({
|
|||
}
|
||||
});
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require uci';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('miniDLNA Status'),
|
||||
|
||||
load: function() {
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require poll';
|
||||
'require fs';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
L.Poll.add(function() {
|
||||
poll.add(function() {
|
||||
return L.resolveDefault(fs.exec('/sbin/logread', ['-e', 'nextdns']), { code: 1 })
|
||||
.then(function(res) {
|
||||
var content;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ Chart.defaults.global.tooltipTemplate = function(tip) {
|
|||
|
||||
function kpi(id, val1, val2, val3)
|
||||
{
|
||||
var e = L.dom.elem(id) ? id : document.getElementById(id);
|
||||
var e = dom.elem(id) ? id : document.getElementById(id);
|
||||
|
||||
if (val1 && val2 && val3)
|
||||
e.innerHTML = _('%s, %s and %s').format(val1, val2, val3);
|
||||
|
@ -96,8 +96,8 @@ function pie(id, data)
|
|||
}
|
||||
}
|
||||
|
||||
var node = L.dom.elem(id) ? id : document.getElementById(id),
|
||||
key = L.dom.elem(id) ? id.id : id,
|
||||
var node = dom.elem(id) ? id : document.getElementById(id),
|
||||
key = dom.elem(id) ? id.id : id,
|
||||
ctx = node.getContext('2d');
|
||||
|
||||
if (chartRegistry.hasOwnProperty(key))
|
||||
|
@ -279,7 +279,7 @@ function renderHostDetail(tooltip)
|
|||
|
||||
var rxData = [], txData = [];
|
||||
|
||||
L.dom.content(tooltip, [
|
||||
dom.content(tooltip, [
|
||||
E('div', { 'class': 'head' }, [
|
||||
E('div', { 'class': 'pie' }, [
|
||||
E('label', _('Download')),
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// This is free software, licensed under the Apache License, Version 2.0
|
||||
|
||||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function () {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require ui';
|
||||
'require rpc';
|
||||
|
@ -995,7 +996,7 @@ function handleKeyUp(ev) {
|
|||
}, 250);
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return downloadLists();
|
||||
},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
|
||||
var desc = _(""
|
||||
|
@ -9,7 +10,7 @@ var desc = _(""
|
|||
+ "some very very basic uses of pagekite.</em>"
|
||||
);
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require fs';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.stat('/sbin/block'), null),
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require uci';
|
||||
'require form';
|
||||
'require network';
|
||||
|
@ -67,7 +68,7 @@ function ucival_to_bool(val) {
|
|||
return val === 'true' || val === '1' || val === 'yes' || val === 'on';
|
||||
}
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
values_actions: function(o) {
|
||||
o.value('bypass');
|
||||
o.value('forward');
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require poll';
|
||||
'require form';
|
||||
'require uci';
|
||||
'require fs';
|
||||
|
@ -16,7 +18,7 @@ var callServiceList = rpc.declare({
|
|||
expect: { '': {} }
|
||||
});
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function(stats) {
|
||||
var m, s, o;
|
||||
|
||||
|
@ -137,7 +139,7 @@ return L.view.extend({
|
|||
}
|
||||
|
||||
return m.render().finally(function() {
|
||||
L.Poll.add(function() {
|
||||
poll.add(function() {
|
||||
return L.resolveDefault(callServiceList(conf), {})
|
||||
.then(function(res) {
|
||||
var instances = null;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require uci';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
@ -12,7 +13,7 @@ function src_dst_option(s /*, ... */) {
|
|||
o.datatype = 'or(ipaddr,cidr)';
|
||||
}
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(fs.stat('/usr/lib/iptables/libxt_recent.so'), {}),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require form';
|
||||
'require uci';
|
||||
'require ui';
|
||||
|
@ -6,7 +7,7 @@
|
|||
|
||||
var conf = 'shadowsocks-libev';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
render: function() {
|
||||
var m, s, o;
|
||||
|
||||
|
|
|
@ -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 = {};
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require dom';
|
||||
'require fs';
|
||||
'require ui';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
fs.list('/usr/lib/collectd'),
|
||||
|
@ -172,7 +174,7 @@ return L.view.extend({
|
|||
var trEl = this.super('renderRowActions', [ section_id, _('Configure…') ]);
|
||||
|
||||
if (!plugin || !plugin.form.addFormOptions)
|
||||
L.dom.content(trEl, null);
|
||||
dom.content(trEl, null);
|
||||
|
||||
return trEl;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
'use strict';
|
||||
'require view';
|
||||
'require dom';
|
||||
'require poll';
|
||||
'require ui';
|
||||
'require uci';
|
||||
'require statistics.rrdtool as rrdtool';
|
||||
|
@ -7,7 +10,7 @@ var pollFn = null,
|
|||
activePlugin = null,
|
||||
activeInstance = null;
|
||||
|
||||
return L.view.extend({
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return rrdtool.load();
|
||||
},
|
||||
|
@ -22,7 +25,7 @@ return L.view.extend({
|
|||
|
||||
activePlugin = plugin;
|
||||
|
||||
L.dom.content(container, [
|
||||
dom.content(container, [
|
||||
E('p', {}, [
|
||||
E('em', { 'class': 'spinning' }, [ _('Loading data…') ])
|
||||
])
|
||||
|
@ -52,7 +55,7 @@ return L.view.extend({
|
|||
})).then(function(blobs) {
|
||||
var multiple = blobs.length > 1;
|
||||
|
||||
L.dom.content(container, E('div', {}, blobs.map(function(blobs, i) {
|
||||
dom.content(container, E('div', {}, blobs.map(function(blobs, i) {
|
||||
var plugin_instance = i ? plugin_instances[i-1] : plugin_instances.join('|'),
|
||||
title = '%s: %s'.format(rrdtool.pluginTitle(plugin), i ? plugin_instance : _('Overview'));
|
||||
|
||||
|
@ -85,7 +88,7 @@ return L.view.extend({
|
|||
URL.revokeObjectURL(img.src);
|
||||
});
|
||||
|
||||
L.dom.content(container, null);
|
||||
dom.content(container, null);
|
||||
|
||||
if (container.hasAttribute('data-initialized')) {
|
||||
container.removeAttribute('data-initialized');
|
||||
|
@ -147,13 +150,13 @@ return L.view.extend({
|
|||
var btn = ev.currentTarget;
|
||||
|
||||
if (pollFn) {
|
||||
L.Poll.remove(pollFn);
|
||||
poll.remove(pollFn);
|
||||
pollFn = null;
|
||||
}
|
||||
|
||||
if (time.value != '0') {
|
||||
pollFn = L.bind(this.refreshGraphs, this, host, span, time, container);
|
||||
L.Poll.add(pollFn, +time.value);
|
||||
poll.add(pollFn, +time.value);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('APCUPS Plugin Configuration'),
|
||||
description: _('The APCUPS plugin collects statistics about the APC UPS.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Conntrack Plugin Configuration'),
|
||||
description: _('The conntrack plugin collects statistics about the number of tracked connections.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('CPU Context Switches Plugin Configuration'),
|
||||
description: _('This plugin collects statistics about the processor context switches.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('CPU Plugin Configuration'),
|
||||
description: _('The cpu plugin collects basic statistics about the processor usage.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('CPU Frequency Plugin Configuration'),
|
||||
description: _('This plugin collects statistics about the processor frequency scaling.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('CSV Plugin Configuration'),
|
||||
description: _('The csv plugin stores collected data in csv file format for further processing by external programs.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('cUrl Plugin Configuration'),
|
||||
|
||||
addFormOptions: function(s) {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('DF Plugin Configuration'),
|
||||
description: _('The df plugin collects statistics about the disk space usage on different devices, mount points or filesystem types.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Disk Plugin Configuration'),
|
||||
description: _('The disk plugin collects detailed usage statistics for selected partitions or whole disks.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('DNS Plugin Configuration'),
|
||||
description: _('The dns plugin collects detailed statistics about dns related traffic on selected interfaces.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('E-Mail Plugin Configuration'),
|
||||
description: _('The email plugin creates a unix socket which can be used to transmit email-statistics to a running collectd daemon. This plugin is primarily intended to be used in conjunction with Mail::SpamAssasin::Plugin::Collectd but can be used in other ways as well.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Entropy Plugin Configuration'),
|
||||
description: _('The entropy plugin collects statistics about the available entropy.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Exec Plugin Configuration'),
|
||||
description: _('The exec plugin starts external commands to read values from or to notify external processes when certain threshold values have been reached.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Interface Plugin Configuration'),
|
||||
description: _('The interface plugin collects traffic statistics on selected interfaces.'),
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require uci';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Iptables Plugin Configuration'),
|
||||
description: _('The iptables plugin will monitor selected firewall rules and collect information about processed bytes and packets per rule.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('IRQ Plugin Configuration'),
|
||||
description: _('The irq plugin will monitor the rate of issues per second for each selected interrupt. If no interrupt is selected then all interrupts are monitored.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Wireless iwinfo Plugin Configuration'),
|
||||
description: _('The iwinfo plugin collects statistics about wireless signal strength, noise and quality.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Load Plugin Configuration'),
|
||||
description: _('The load plugin collects statistics about the general system load.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Memory Plugin Configuration'),
|
||||
description: _('The memory plugin collects statistics about the memory usage.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Netlink Plugin Configuration'),
|
||||
description: _('The netlink plugin collects extended information like qdisc-, class- and filter-statistics for selected interfaces.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Network Plugin Configuration'),
|
||||
description: _('The network plugin provides network based communication between different collectd instances. Collectd can operate both in client and server mode. In client mode locally collected data is transferred to a collectd server instance, in server mode the local instance receives data from other hosts.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('UPS Plugin Configuration'),
|
||||
description: _('The NUT plugin reads information about Uninterruptible Power Supplies.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('OLSRd Plugin Configuration'),
|
||||
description: _('The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('OpenVPN Plugin Configuration'),
|
||||
description: _('The OpenVPN plugin gathers information about the current vpn connection status.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Ping Plugin Configuration'),
|
||||
description: _('The ping plugin will send icmp echo replies to selected hosts and measure the roundtrip time for each host.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Processes Plugin Configuration'),
|
||||
description: _('The processes plugin collects information like cpu time, page faults and memory usage of selected processes.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('RRDTool Plugin Configuration'),
|
||||
description: _('The rrdtool plugin stores the collected data in rrd database files, the foundation of the diagrams.<br /><br /><strong>Warning: Setting the wrong values will result in a very high memory consumption in the temporary directory. This can render the device unusable!</strong>'),
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
|
@ -10,7 +11,7 @@ var sensorTypes = [
|
|||
/^(?:power)[0-9]*$/, 'power'
|
||||
];
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Sensors Plugin Configuration'),
|
||||
description: _('The sensors plugin uses the Linux Sensors framework to gather environmental statistics.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Splash Leases Plugin Configuration'),
|
||||
description: _('The splash leases plugin uses libuci to collect statistics about splash leases.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('TCPConns Plugin Configuration'),
|
||||
description: _('The tcpconns plugin collects information about open tcp connections on selected ports.'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Thermal Plugin Configuration'),
|
||||
description: _('The thermal plugin will monitor temperature of the system. Data is typically read from /sys/class/thermal/*/temp ( \'*\' denotes the thermal device to be read, e.g. thermal_zone1 )'),
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
'require tools.widgets as widgets';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Unixsock Plugin Configuration'),
|
||||
description: _('The unixsock plugin creates a unix socket which can be used to read collected data from a running collectd instance.'),
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
'use strict';
|
||||
'require baseclass';
|
||||
'require form';
|
||||
|
||||
return L.Class.extend({
|
||||
return baseclass.extend({
|
||||
title: _('Uptime Plugin Configuration'),
|
||||
description: _('The uptime plugin collects statistics about the uptime of the system.'),
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue