Files
luci/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/curl.js
Paul Donald 2bebe21493 luci-app-statistics: js linting fixes / ES6 treatment
Fix errors

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-16 01:42:57 +01:00

34 lines
691 B
JavaScript

'use strict';
'require baseclass';
'require form';
return baseclass.extend({
title: _('cUrl Plugin Configuration'),
addFormOptions(s) {
let o, ss;
o = s.option(form.Flag, 'enable', _('Enable this plugin'));
o = s.option(form.SectionValue, '__pages', form.TableSection, 'collectd_curl_page');
o.title = _('Fetch pages');
o.depends('enable', '1');
ss = o.subsection;
ss.anonymous = true;
ss.addremove = true;
o = ss.option(form.Flag, 'enable', _('Enable'));
o.default = '1';
o.rmempty = false;
o = ss.option(form.Value, 'name', _('Name'));
o = ss.option(form.Value, 'url', _('URL'));
},
configSummary(section) {
return _('cURL plugin enabled');
}
});