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';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.blacklist'), '');
|
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.blacklist'), '');
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
|
|
||||||
|
@ -186,7 +187,7 @@ function handleAction(ev) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'false', 'json']),'');
|
return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'false', 'json']),'');
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require poll';
|
||||||
'require fs';
|
'require fs';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.stat('/sbin/logread'), null),
|
L.resolveDefault(fs.stat('/sbin/logread'), null),
|
||||||
|
@ -10,7 +12,7 @@ return L.view.extend({
|
||||||
},
|
},
|
||||||
render: function(stat) {
|
render: function(stat) {
|
||||||
var logger = stat[0] ? stat[0].path : stat[1] ? stat[1].path : null;
|
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) {
|
return L.resolveDefault(fs.exec_direct(logger, ['-e', 'adblock-'])).then(function(res) {
|
||||||
var log = document.getElementById("logfile");
|
var log = document.getElementById("logfile");
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require poll';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
@ -98,7 +100,7 @@ async function handleAction(ev) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
L.Poll.start();
|
poll.start();
|
||||||
fs.exec_direct('/etc/init.d/adblock', [ev])
|
fs.exec_direct('/etc/init.d/adblock', [ev])
|
||||||
var running = 1;
|
var running = 1;
|
||||||
while (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() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['list']), {}),
|
L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['list']), {}),
|
||||||
|
@ -129,7 +131,7 @@ return L.view.extend({
|
||||||
/*
|
/*
|
||||||
poll runtime information
|
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) {
|
return L.resolveDefault(fs.read_direct('/tmp/adb_runtime.json'), 'null').then(function(res) {
|
||||||
var info = JSON.parse(res);
|
var info = JSON.parse(res);
|
||||||
var status = document.getElementById('status');
|
var status = document.getElementById('status');
|
||||||
|
@ -142,7 +144,7 @@ return L.view.extend({
|
||||||
} else {
|
} else {
|
||||||
if (status.classList.contains("spinning")) {
|
if (status.classList.contains("spinning")) {
|
||||||
status.classList.remove("spinning");
|
status.classList.remove("spinning");
|
||||||
L.Poll.stop();
|
poll.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status.textContent.substr(0,6) === 'paused' && document.getElementById('btn_suspend')) {
|
if (status.textContent.substr(0,6) === 'paused' && document.getElementById('btn_suspend')) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.whitelist'), '');
|
return L.resolveDefault(fs.read_direct('/etc/adblock/adblock.whitelist'), '');
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require dom';
|
||||||
|
'require poll';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require fs';
|
'require fs';
|
||||||
|
@ -41,7 +44,7 @@ callDDnsGetStatus = rpc.declare({
|
||||||
expect: { }
|
expect: { }
|
||||||
});
|
});
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
|
|
||||||
callDDnsGetEnv: rpc.declare({
|
callDDnsGetEnv: rpc.declare({
|
||||||
object: 'luci.ddns',
|
object: 'luci.ddns',
|
||||||
|
@ -64,7 +67,7 @@ return L.view.extend({
|
||||||
|
|
||||||
ddns_toggle.innerHTML = status['_enabled'] ? _('Stop DDNS') : _('Start DDNS')
|
ddns_toggle.innerHTML = status['_enabled'] ? _('Stop DDNS') : _('Start DDNS')
|
||||||
|
|
||||||
L.dom.content(ddns_enabled, function() {
|
dom.content(ddns_enabled, function() {
|
||||||
return E([], [
|
return E([], [
|
||||||
E('div', {}, status['_enabled'] ? _('DDNS Autostart enabled') : [
|
E('div', {}, status['_enabled'] ? _('DDNS Autostart enabled') : [
|
||||||
_('DDNS Autostart disabled'),
|
_('DDNS Autostart disabled'),
|
||||||
|
@ -374,7 +377,7 @@ return L.view.extend({
|
||||||
(resolved[section_id].pid && cfg_enabled == '1'))
|
(resolved[section_id].pid && cfg_enabled == '1'))
|
||||||
stop_opt['disabled'] = 'disabled';
|
stop_opt['disabled'] = 'disabled';
|
||||||
|
|
||||||
L.dom.content(tdEl.lastChild, [
|
dom.content(tdEl.lastChild, [
|
||||||
E('button', stop_opt, _('Stop')),
|
E('button', stop_opt, _('Stop')),
|
||||||
E('button', reload_opt, _('Reload')),
|
E('button', reload_opt, _('Reload')),
|
||||||
tdEl.lastChild.childNodes[0],
|
tdEl.lastChild.childNodes[0],
|
||||||
|
@ -982,7 +985,7 @@ return L.view.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return m.render().then(L.bind(function(m, nodes) {
|
return m.render().then(L.bind(function(m, nodes) {
|
||||||
L.Poll.add(L.bind(function() {
|
poll.add(L.bind(function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
this.callDDnsGetServicesStatus(),
|
this.callDDnsGetServicesStatus(),
|
||||||
callDDnsGetStatus()
|
callDDnsGetStatus()
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Dynamic DNS'),
|
title: _('Dynamic DNS'),
|
||||||
|
|
||||||
callDDnsGetServicesStatus: rpc.declare({
|
callDDnsGetServicesStatus: rpc.declare({
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
'require dom';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
@ -81,7 +83,7 @@ function lookupProto(x) {
|
||||||
return [ -1, x, x ];
|
return [ -1, x, x ];
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
fmt: function(fmtstr, args, values) {
|
fmt: function(fmtstr, args, values) {
|
||||||
var repl = [],
|
var repl = [],
|
||||||
wrap = false,
|
wrap = false,
|
||||||
|
@ -112,7 +114,7 @@ return L.Class.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
var isset = function(val) {
|
var isset = function(val) {
|
||||||
if (L.isObject(val) && !L.dom.elem(val)) {
|
if (L.isObject(val) && !dom.elem(val)) {
|
||||||
for (var k in val)
|
for (var k in val)
|
||||||
if (val.hasOwnProperty(k))
|
if (val.hasOwnProperty(k))
|
||||||
return true;
|
return true;
|
||||||
|
@ -128,7 +130,7 @@ return L.Class.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
var parse = function(tokens, text) {
|
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));
|
tokens.push('<span data-fmt-placeholder="%d"></span>'.format(values.length));
|
||||||
values.push(text);
|
values.push(text);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return L.resolveDefault(fs.read('/etc/firewall.user'), '');
|
return L.resolveDefault(fs.read('/etc/firewall.user'), '');
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
@ -84,7 +85,7 @@ function rule_target_txt(s) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
callHostHints: rpc.declare({
|
callHostHints: rpc.declare({
|
||||||
object: 'luci-rpc',
|
object: 'luci-rpc',
|
||||||
method: 'getHostHints',
|
method: 'getHostHints',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
@ -136,7 +137,7 @@ function rule_target_txt(s, ctHelpers) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
callHostHints: rpc.declare({
|
callHostHints: rpc.declare({
|
||||||
object: 'luci-rpc',
|
object: 'luci-rpc',
|
||||||
method: 'getHostHints',
|
method: 'getHostHints',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
@ -90,7 +91,7 @@ function rule_target_txt(s) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
callHostHints: rpc.declare({
|
callHostHints: rpc.declare({
|
||||||
object: 'luci-rpc',
|
object: 'luci-rpc',
|
||||||
method: 'getHostHints',
|
method: 'getHostHints',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
'require tools.firewall as fwtool';
|
'require tools.firewall as fwtool';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
callConntrackHelpers: rpc.declare({
|
callConntrackHelpers: rpc.declare({
|
||||||
object: 'luci',
|
object: 'luci',
|
||||||
method: 'getConntrackHelpers',
|
method: 'getConntrackHelpers',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
@ -113,7 +114,7 @@ function defOpts(s, opts, params) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
|
@ -88,7 +89,7 @@ function defOpts(s, opts, params) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.stat('/sbin/block'), null),
|
L.resolveDefault(fs.stat('/sbin/block'), null),
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
trigger: _('rssi (service)'),
|
trigger: _('rssi (service)'),
|
||||||
kernel: false,
|
kernel: false,
|
||||||
addFormOptions(s){
|
addFormOptions(s){
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
trigger: _('switch0 (kernel)'),
|
trigger: _('switch0 (kernel)'),
|
||||||
kernel: true,
|
kernel: true,
|
||||||
addFormOptions(s){
|
addFormOptions(s){
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
trigger: _('switch1 (kernel)'),
|
trigger: _('switch1 (kernel)'),
|
||||||
kernel: true,
|
kernel: true,
|
||||||
addFormOptions(s){
|
addFormOptions(s){
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
@ -9,7 +10,7 @@ var callUSB = rpc.declare({
|
||||||
expect: { 'ports': [] }
|
expect: { 'ports': [] }
|
||||||
});
|
});
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
trigger: _('usbport (kernel)'),
|
trigger: _('usbport (kernel)'),
|
||||||
kernel: true,
|
kernel: true,
|
||||||
addFormOptions(s){
|
addFormOptions(s){
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
@ -28,7 +29,7 @@ var CBIMiniDLNAStatus = form.DummyValue.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('miniDLNA Status'),
|
title: _('miniDLNA Status'),
|
||||||
|
|
||||||
load: function() {
|
load: function() {
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require poll';
|
||||||
'require fs';
|
'require fs';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
L.Poll.add(function() {
|
poll.add(function() {
|
||||||
return L.resolveDefault(fs.exec('/sbin/logread', ['-e', 'nextdns']), { code: 1 })
|
return L.resolveDefault(fs.exec('/sbin/logread', ['-e', 'nextdns']), { code: 1 })
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
var content;
|
var content;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ Chart.defaults.global.tooltipTemplate = function(tip) {
|
||||||
|
|
||||||
function kpi(id, val1, val2, val3)
|
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)
|
if (val1 && val2 && val3)
|
||||||
e.innerHTML = _('%s, %s and %s').format(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),
|
var node = dom.elem(id) ? id : document.getElementById(id),
|
||||||
key = L.dom.elem(id) ? id.id : id,
|
key = dom.elem(id) ? id.id : id,
|
||||||
ctx = node.getContext('2d');
|
ctx = node.getContext('2d');
|
||||||
|
|
||||||
if (chartRegistry.hasOwnProperty(key))
|
if (chartRegistry.hasOwnProperty(key))
|
||||||
|
@ -279,7 +279,7 @@ function renderHostDetail(tooltip)
|
||||||
|
|
||||||
var rxData = [], txData = [];
|
var rxData = [], txData = [];
|
||||||
|
|
||||||
L.dom.content(tooltip, [
|
dom.content(tooltip, [
|
||||||
E('div', { 'class': 'head' }, [
|
E('div', { 'class': 'head' }, [
|
||||||
E('div', { 'class': 'pie' }, [
|
E('div', { 'class': 'pie' }, [
|
||||||
E('label', _('Download')),
|
E('label', _('Download')),
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
// This is free software, licensed under the Apache License, Version 2.0
|
// This is free software, licensed under the Apache License, Version 2.0
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function () {
|
render: function () {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require rpc';
|
'require rpc';
|
||||||
|
@ -995,7 +996,7 @@ function handleKeyUp(ev) {
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return downloadLists();
|
return downloadLists();
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
var desc = _(""
|
var desc = _(""
|
||||||
|
@ -9,7 +10,7 @@ var desc = _(""
|
||||||
+ "some very very basic uses of pagekite.</em>"
|
+ "some very very basic uses of pagekite.</em>"
|
||||||
);
|
);
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.stat('/sbin/block'), null),
|
L.resolveDefault(fs.stat('/sbin/block'), null),
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
'require network';
|
'require network';
|
||||||
|
@ -67,7 +68,7 @@ function ucival_to_bool(val) {
|
||||||
return val === 'true' || val === '1' || val === 'yes' || val === 'on';
|
return val === 'true' || val === '1' || val === 'yes' || val === 'on';
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
values_actions: function(o) {
|
values_actions: function(o) {
|
||||||
o.value('bypass');
|
o.value('bypass');
|
||||||
o.value('forward');
|
o.value('forward');
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require poll';
|
||||||
'require form';
|
'require form';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require fs';
|
'require fs';
|
||||||
|
@ -16,7 +18,7 @@ var callServiceList = rpc.declare({
|
||||||
expect: { '': {} }
|
expect: { '': {} }
|
||||||
});
|
});
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function(stats) {
|
render: function(stats) {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
@ -137,7 +139,7 @@ return L.view.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return m.render().finally(function() {
|
return m.render().finally(function() {
|
||||||
L.Poll.add(function() {
|
poll.add(function() {
|
||||||
return L.resolveDefault(callServiceList(conf), {})
|
return L.resolveDefault(callServiceList(conf), {})
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
var instances = null;
|
var instances = null;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
@ -12,7 +13,7 @@ function src_dst_option(s /*, ... */) {
|
||||||
o.datatype = 'or(ipaddr,cidr)';
|
o.datatype = 'or(ipaddr,cidr)';
|
||||||
}
|
}
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.stat('/usr/lib/iptables/libxt_recent.so'), {}),
|
L.resolveDefault(fs.stat('/usr/lib/iptables/libxt_recent.so'), {}),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
'require form';
|
'require form';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require ui';
|
'require ui';
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
|
|
||||||
var conf = 'shadowsocks-libev';
|
var conf = 'shadowsocks-libev';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
render: function() {
|
render: function() {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require tools.prng as random';
|
'require tools.prng as random';
|
||||||
|
@ -133,7 +134,7 @@ var colors = L.Class.singleton({
|
||||||
var rrdtree = {},
|
var rrdtree = {},
|
||||||
graphdefs = {};
|
graphdefs = {};
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
__init__: function() {
|
__init__: function() {
|
||||||
this.opts = {};
|
this.opts = {};
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('APC UPS'),
|
title: _('APC UPS'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Conntrack'),
|
title: _('Conntrack'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Context Switches'),
|
title: _('Context Switches'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Processor'),
|
title: _('Processor'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require uci';
|
'require uci';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('CPU Frequency'),
|
title: _('CPU Frequency'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('cUrl'),
|
title: _('cUrl'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Disk Space Usage'),
|
title: _('Disk Space Usage'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Disk Usage'),
|
title: _('Disk Usage'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('DNS'),
|
title: _('DNS'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Entropy'),
|
title: _('Entropy'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Interfaces'),
|
title: _('Interfaces'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Firewall (IPv6)'),
|
title: _('Firewall (IPv6)'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Firewall'),
|
title: _('Firewall'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Interrupts'),
|
title: _('Interrupts'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Wireless'),
|
title: _('Wireless'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('System Load'),
|
title: _('System Load'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Memory'),
|
title: _('Memory'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Netlink'),
|
title: _('Netlink'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('UPS'),
|
title: _('UPS'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('OLSRd'),
|
title: _('OLSRd'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('OpenVPN'),
|
title: _('OpenVPN'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Ping'),
|
title: _('Ping'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Processes'),
|
title: _('Processes'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Sensors'),
|
title: _('Sensors'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Splash Leases'),
|
title: _('Splash Leases'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('TCP Connections'),
|
title: _('TCP Connections'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/* Licensed to the public under the Apache License 2.0. */
|
/* Licensed to the public under the Apache License 2.0. */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Thermal'),
|
title: _('Thermal'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -9,8 +9,9 @@ You may obtain a copy of the License at
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Uptime'),
|
title: _('Uptime'),
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require dom';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
fs.list('/usr/lib/collectd'),
|
fs.list('/usr/lib/collectd'),
|
||||||
|
@ -172,7 +174,7 @@ return L.view.extend({
|
||||||
var trEl = this.super('renderRowActions', [ section_id, _('Configure…') ]);
|
var trEl = this.super('renderRowActions', [ section_id, _('Configure…') ]);
|
||||||
|
|
||||||
if (!plugin || !plugin.form.addFormOptions)
|
if (!plugin || !plugin.form.addFormOptions)
|
||||||
L.dom.content(trEl, null);
|
dom.content(trEl, null);
|
||||||
|
|
||||||
return trEl;
|
return trEl;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require view';
|
||||||
|
'require dom';
|
||||||
|
'require poll';
|
||||||
'require ui';
|
'require ui';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require statistics.rrdtool as rrdtool';
|
'require statistics.rrdtool as rrdtool';
|
||||||
|
@ -7,7 +10,7 @@ var pollFn = null,
|
||||||
activePlugin = null,
|
activePlugin = null,
|
||||||
activeInstance = null;
|
activeInstance = null;
|
||||||
|
|
||||||
return L.view.extend({
|
return view.extend({
|
||||||
load: function() {
|
load: function() {
|
||||||
return rrdtool.load();
|
return rrdtool.load();
|
||||||
},
|
},
|
||||||
|
@ -22,7 +25,7 @@ return L.view.extend({
|
||||||
|
|
||||||
activePlugin = plugin;
|
activePlugin = plugin;
|
||||||
|
|
||||||
L.dom.content(container, [
|
dom.content(container, [
|
||||||
E('p', {}, [
|
E('p', {}, [
|
||||||
E('em', { 'class': 'spinning' }, [ _('Loading data…') ])
|
E('em', { 'class': 'spinning' }, [ _('Loading data…') ])
|
||||||
])
|
])
|
||||||
|
@ -52,7 +55,7 @@ return L.view.extend({
|
||||||
})).then(function(blobs) {
|
})).then(function(blobs) {
|
||||||
var multiple = blobs.length > 1;
|
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('|'),
|
var plugin_instance = i ? plugin_instances[i-1] : plugin_instances.join('|'),
|
||||||
title = '%s: %s'.format(rrdtool.pluginTitle(plugin), i ? plugin_instance : _('Overview'));
|
title = '%s: %s'.format(rrdtool.pluginTitle(plugin), i ? plugin_instance : _('Overview'));
|
||||||
|
|
||||||
|
@ -85,7 +88,7 @@ return L.view.extend({
|
||||||
URL.revokeObjectURL(img.src);
|
URL.revokeObjectURL(img.src);
|
||||||
});
|
});
|
||||||
|
|
||||||
L.dom.content(container, null);
|
dom.content(container, null);
|
||||||
|
|
||||||
if (container.hasAttribute('data-initialized')) {
|
if (container.hasAttribute('data-initialized')) {
|
||||||
container.removeAttribute('data-initialized');
|
container.removeAttribute('data-initialized');
|
||||||
|
@ -147,13 +150,13 @@ return L.view.extend({
|
||||||
var btn = ev.currentTarget;
|
var btn = ev.currentTarget;
|
||||||
|
|
||||||
if (pollFn) {
|
if (pollFn) {
|
||||||
L.Poll.remove(pollFn);
|
poll.remove(pollFn);
|
||||||
pollFn = null;
|
pollFn = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (time.value != '0') {
|
if (time.value != '0') {
|
||||||
pollFn = L.bind(this.refreshGraphs, this, host, span, time, container);
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('APCUPS Plugin Configuration'),
|
title: _('APCUPS Plugin Configuration'),
|
||||||
description: _('The APCUPS plugin collects statistics about the APC UPS.'),
|
description: _('The APCUPS plugin collects statistics about the APC UPS.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Conntrack Plugin Configuration'),
|
title: _('Conntrack Plugin Configuration'),
|
||||||
description: _('The conntrack plugin collects statistics about the number of tracked connections.'),
|
description: _('The conntrack plugin collects statistics about the number of tracked connections.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('CPU Context Switches Plugin Configuration'),
|
title: _('CPU Context Switches Plugin Configuration'),
|
||||||
description: _('This plugin collects statistics about the processor context switches.'),
|
description: _('This plugin collects statistics about the processor context switches.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('CPU Plugin Configuration'),
|
title: _('CPU Plugin Configuration'),
|
||||||
description: _('The cpu plugin collects basic statistics about the processor usage.'),
|
description: _('The cpu plugin collects basic statistics about the processor usage.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('CPU Frequency Plugin Configuration'),
|
title: _('CPU Frequency Plugin Configuration'),
|
||||||
description: _('This plugin collects statistics about the processor frequency scaling.'),
|
description: _('This plugin collects statistics about the processor frequency scaling.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('CSV Plugin Configuration'),
|
title: _('CSV Plugin Configuration'),
|
||||||
description: _('The csv plugin stores collected data in csv file format for further processing by external programs.'),
|
description: _('The csv plugin stores collected data in csv file format for further processing by external programs.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('cUrl Plugin Configuration'),
|
title: _('cUrl Plugin Configuration'),
|
||||||
|
|
||||||
addFormOptions: function(s) {
|
addFormOptions: function(s) {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('DF Plugin Configuration'),
|
title: _('DF Plugin Configuration'),
|
||||||
description: _('The df plugin collects statistics about the disk space usage on different devices, mount points or filesystem types.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Disk Plugin Configuration'),
|
title: _('Disk Plugin Configuration'),
|
||||||
description: _('The disk plugin collects detailed usage statistics for selected partitions or whole disks.'),
|
description: _('The disk plugin collects detailed usage statistics for selected partitions or whole disks.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('DNS Plugin Configuration'),
|
title: _('DNS Plugin Configuration'),
|
||||||
description: _('The dns plugin collects detailed statistics about dns related traffic on selected interfaces.'),
|
description: _('The dns plugin collects detailed statistics about dns related traffic on selected interfaces.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('E-Mail Plugin Configuration'),
|
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.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Entropy Plugin Configuration'),
|
title: _('Entropy Plugin Configuration'),
|
||||||
description: _('The entropy plugin collects statistics about the available entropy.'),
|
description: _('The entropy plugin collects statistics about the available entropy.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Exec Plugin Configuration'),
|
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.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Interface Plugin Configuration'),
|
title: _('Interface Plugin Configuration'),
|
||||||
description: _('The interface plugin collects traffic statistics on selected interfaces.'),
|
description: _('The interface plugin collects traffic statistics on selected interfaces.'),
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require uci';
|
'require uci';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Iptables Plugin Configuration'),
|
title: _('Iptables Plugin Configuration'),
|
||||||
description: _('The iptables plugin will monitor selected firewall rules and collect information about processed bytes and packets per rule.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('IRQ Plugin Configuration'),
|
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.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Wireless iwinfo Plugin Configuration'),
|
title: _('Wireless iwinfo Plugin Configuration'),
|
||||||
description: _('The iwinfo plugin collects statistics about wireless signal strength, noise and quality.'),
|
description: _('The iwinfo plugin collects statistics about wireless signal strength, noise and quality.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Load Plugin Configuration'),
|
title: _('Load Plugin Configuration'),
|
||||||
description: _('The load plugin collects statistics about the general system load.'),
|
description: _('The load plugin collects statistics about the general system load.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Memory Plugin Configuration'),
|
title: _('Memory Plugin Configuration'),
|
||||||
description: _('The memory plugin collects statistics about the memory usage.'),
|
description: _('The memory plugin collects statistics about the memory usage.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Netlink Plugin Configuration'),
|
title: _('Netlink Plugin Configuration'),
|
||||||
description: _('The netlink plugin collects extended information like qdisc-, class- and filter-statistics for selected interfaces.'),
|
description: _('The netlink plugin collects extended information like qdisc-, class- and filter-statistics for selected interfaces.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Network Plugin Configuration'),
|
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.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('UPS Plugin Configuration'),
|
title: _('UPS Plugin Configuration'),
|
||||||
description: _('The NUT plugin reads information about Uninterruptible Power Supplies.'),
|
description: _('The NUT plugin reads information about Uninterruptible Power Supplies.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('OLSRd Plugin Configuration'),
|
title: _('OLSRd Plugin Configuration'),
|
||||||
description: _('The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.'),
|
description: _('The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('OpenVPN Plugin Configuration'),
|
title: _('OpenVPN Plugin Configuration'),
|
||||||
description: _('The OpenVPN plugin gathers information about the current vpn connection status.'),
|
description: _('The OpenVPN plugin gathers information about the current vpn connection status.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Ping Plugin Configuration'),
|
title: _('Ping Plugin Configuration'),
|
||||||
description: _('The ping plugin will send icmp echo replies to selected hosts and measure the roundtrip time for each host.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Processes Plugin Configuration'),
|
title: _('Processes Plugin Configuration'),
|
||||||
description: _('The processes plugin collects information like cpu time, page faults and memory usage of selected processes.'),
|
description: _('The processes plugin collects information like cpu time, page faults and memory usage of selected processes.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('RRDTool Plugin Configuration'),
|
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>'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
|
@ -10,7 +11,7 @@ var sensorTypes = [
|
||||||
/^(?:power)[0-9]*$/, 'power'
|
/^(?:power)[0-9]*$/, 'power'
|
||||||
];
|
];
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Sensors Plugin Configuration'),
|
title: _('Sensors Plugin Configuration'),
|
||||||
description: _('The sensors plugin uses the Linux Sensors framework to gather environmental statistics.'),
|
description: _('The sensors plugin uses the Linux Sensors framework to gather environmental statistics.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Splash Leases Plugin Configuration'),
|
title: _('Splash Leases Plugin Configuration'),
|
||||||
description: _('The splash leases plugin uses libuci to collect statistics about splash leases.'),
|
description: _('The splash leases plugin uses libuci to collect statistics about splash leases.'),
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('TCPConns Plugin Configuration'),
|
title: _('TCPConns Plugin Configuration'),
|
||||||
description: _('The tcpconns plugin collects information about open tcp connections on selected ports.'),
|
description: _('The tcpconns plugin collects information about open tcp connections on selected ports.'),
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require fs';
|
'require fs';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Thermal Plugin Configuration'),
|
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 )'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
'require tools.widgets as widgets';
|
'require tools.widgets as widgets';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Unixsock Plugin Configuration'),
|
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.'),
|
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';
|
'use strict';
|
||||||
|
'require baseclass';
|
||||||
'require form';
|
'require form';
|
||||||
|
|
||||||
return L.Class.extend({
|
return baseclass.extend({
|
||||||
title: _('Uptime Plugin Configuration'),
|
title: _('Uptime Plugin Configuration'),
|
||||||
description: _('The uptime plugin collects statistics about the uptime of the system.'),
|
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