treewide: replace "var m, s, o" with "let m, s, o"

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
Sergey Ponomarev 2024-12-01 13:36:19 +02:00 committed by Paul Donald
parent e1d8f0e6f9
commit 22d48305af
No known key found for this signature in database
GPG Key ID: 3FC4A933962871D2
86 changed files with 87 additions and 87 deletions

View File

@ -200,7 +200,7 @@ return view.extend({
}
}
var m, s, o;
let m, s, o;
m = new form.Map('rpcd', _('LuCI Logins'));

View File

@ -20,7 +20,7 @@ return view.extend({
render: function (certs) {
let wikiUrl = 'https://github.com/acmesh-official/acme.sh/wiki/';
var wikiInstructionUrl = wikiUrl + 'dnsapi';
var m, s, o;
let m, s, o;
m = new form.Map("acme", _("ACME certificates"),
_("This configures ACME (Letsencrypt) automatic certificate installation. " +

View File

@ -131,7 +131,7 @@ return view.extend({
},
render: function(result) {
var m, s, o;
let m, s, o;
m = new form.Map('adblock', 'Adblock', _('Configuration of the adblock package to block ad/abuse domains by using DNS. \
For further information <a href="https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md" target="_blank" rel="noreferrer noopener" >check the online documentation</a>'));

View File

@ -60,7 +60,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
var webport = uci.get(data[0], 'config', 'listen_http_port') || '5244';
m = new form.Map('alist', _('AList'),

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('apinger', _('Apinger - Delay Alarms'),
('This alarm will be fired when target responses are delayed more than "Delay High"') + '<br />' +

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('apinger', _('Apinger - Down Alarm'),
_('This alarm will be fired when target does not respond for "Time"'));

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('apinger', _('Apinger - Loss Alarms'),
_('This alarm will be fired when packet loss goes over "Loss High"') + '<br />' +

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('apinger', _('Apinger - Interfaces'),
_('Names must match the interface name found in /etc/config/network.'));

View File

@ -11,7 +11,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
var a_ifaces, a_down, a_delay, a_loss;
a_ifaces = uci.sections('apinger', 'interface');

View File

@ -183,7 +183,7 @@ return view.extend({
},
render: function(aria2) {
var m, s, o;
let m, s, o;
m = new form.Map('aria2', '%s - %s'.format(_('Aria2'), _('Settings')), '<p>%s</p><p>%s</p>'.format(
_('Aria2 is a lightweight multi-protocol &amp; multi-source, cross platform download utility.'),

View File

@ -5,7 +5,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('bcp38', _('BCP38'),
_('This function blocks packets with private address destinations ' +

View File

@ -10,7 +10,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('clamav-milter', _('ClamAV Milter'), _('Configuration'));

View File

@ -11,7 +11,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('clamav', _('ClamAV'), _('Configuration'));

View File

@ -10,7 +10,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('freshclam', _('Freshclam'), _('Configuration'));

View File

@ -34,7 +34,7 @@ return view.extend({
render: function (data) {
let isRunning = data[0];
var m, s, o;
let m, s, o;
m = new form.Map('cloudflared', _('Cloudflare Zero Trust Tunnel'),
_('Cloudflare Zero Trust Security services help you get maximum security both from outside and within the network.') + '<br />' +

View File

@ -5,7 +5,7 @@
return view.extend({
render: function(data) {
var m, s, o;
let m, s, o;
m = new form.Map('luci', _('Custom Commands'),
_('This page allows you to configure custom shell commands which can be easily invoked from the web interface.'));

View File

@ -5,7 +5,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('crowdsec', _('CrowdSec'),
_('Gain <a href="http://www.crowdsec.net">crowd-sourced</a> protection against malicious IPs. ' +

View File

@ -255,7 +255,7 @@ return view.extend({
var _this = this;
var m, s, o;
let m, s, o;
m = new form.Map('ddns', _('Dynamic DNS'));

View File

@ -3,7 +3,7 @@
return L.view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('dump1090', _('dump1090'),
_('dump1090 is a Mode S decoder specifically designed for RTLSDR devices. Here you can configure the settings.'));

View File

@ -5,7 +5,7 @@
return view.extend({
render: function () {
var docsRefAttrs = 'target="_blank" rel="noreferrer" href="https://emailrelay.sourceforge.net/';
var m, s, o;
let m, s, o;
m = new form.Map('emailrelay', _('Email Server Configuration'),
_('E-MailRelay Server Configuration.') + '<br />' +

View File

@ -5,7 +5,7 @@
// Project code format is tabs, not spaces
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
/*
The first argument to form.Map() maps to the configuration file available

View File

@ -45,7 +45,7 @@ return view.extend({
}
// Variables you'll usually see declared in LuCI JS apps; forM, Section, Option
var m, s, o;
let m, s, o;
/*
LuCI has the concept of a JSONMap. This will map a structured object to

View File

@ -45,7 +45,7 @@ return view.extend({
}
// Variables you'll usually see declared in LuCI JS apps; forM, Section, Option
var m, s, o;
let m, s, o;
/*
LuCI has the concept of a JSONMap. This will map a structured object to

View File

@ -11,7 +11,7 @@ var formData = {
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.JSONMap(formData, _('File Browser'), '');

View File

@ -15,7 +15,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
m = new form.Map('firewall', _('Firewall - IP sets'),
_('firewall4 supports referencing and creating IP sets to simplify matching of large address lists without the need to create one rule per item to match. Port ranges in ipsets are unsupported by firewall4.<br />'));

View File

@ -170,7 +170,7 @@ function renderStatus(isRunning) {
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('frpc', _('frp Client'));

View File

@ -123,7 +123,7 @@ function renderStatus(isRunning) {
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('frps', _('frp Server'));

View File

@ -406,7 +406,7 @@ var ParseButton = form.Button.extend({
var config = {};
config.access = stanzas;
var m, s, o;
let m, s, o;
m = new form.JSONMap(config, null, _('Custom configuration read from /etc/fwknop/access.conf.'));
m.readonly = true;
@ -469,7 +469,7 @@ return view.extend({
render: function(results) {
var has_access_conf = results[0];
var m, s, o;
let m, s, o;
m = new form.Map('fwknopd', _('Firewall Knock Operator Daemon'));

View File

@ -33,7 +33,7 @@ return view.extend({
},
render: function(devs) {
var m, s, o;
let m, s, o;
m = new form.Map('hd-idle', _('HDD Idle'), _('HDD Idle is a utility program for spinning-down disks after a period of idle time.'));
s = m.section(form.GridSection, 'hd-idle', _('Settings'));

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('keepalived');

View File

@ -18,7 +18,7 @@ return view.extend({
render: function(data) {
var hosts = data[0];
var m, s, o;
let m, s, o;
m = new form.Map('keepalived');

View File

@ -6,7 +6,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('keepalived');

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('keepalived');

View File

@ -283,7 +283,7 @@ return view.extend({
render: function(data) {
var netDevs = data[0];
var m, s, o;
let m, s, o;
m = new form.Map('keepalived');

View File

@ -12,7 +12,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
var instances;
instances = uci.sections('keepalived', 'vrrp_instance');

View File

@ -13,7 +13,7 @@ return view.extend({
render: function(data) {
var netDevs = data[0];
var m, s, o;
let m, s, o;
m = new form.Map('libreswan', _('IPSec Global Settings'));

View File

@ -6,7 +6,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('libreswan', _('IPSec Proposals'));

View File

@ -31,7 +31,7 @@ return view.extend({
render: function(data) {
var netDevs = data[0];
var m, s, o;
let m, s, o;
var proposals;
proposals = uci.sections('libreswan', 'crypto_proposal');

View File

@ -14,7 +14,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
/* General Settings */
m = new form.Map('basicstation', _('General Settings'));

View File

@ -31,7 +31,7 @@ var CBIMiniDLNAStatus = form.DummyValue.extend({
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('minidlna', _('miniDLNA'), _('MiniDLNA is server software with the aim of being fully compliant with DLNA/UPnP-AV clients.'));

View File

@ -26,7 +26,7 @@ return view.extend({
return Promise.all([uci.load('mjpg-streamer')]);
},
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('mjpg-streamer', 'MJPG-streamer', _('mjpg streamer is a streaming application for Linux-UVC compatible webcams'));

View File

@ -5,7 +5,7 @@
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('mwan3', _('MultiWAN Manager - Globals'));

View File

@ -16,7 +16,7 @@ return view.extend({
},
render: function (stats) {
var m, s, o;
let m, s, o;
m = new form.Map('mwan3', _('MultiWAN Manager - Interfaces'),
_('Mwan3 requires that all interfaces have a unique metric configured in /etc/config/network.') + '<br />' +

View File

@ -12,7 +12,7 @@ return view.extend({
},
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('mwan3', _('MultiWAN Manager - Members'),
_('Members are profiles attaching a metric and weight to an MWAN interface.') + '<br />' +

View File

@ -12,7 +12,7 @@ return view.extend({
},
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('mwan3', _('MultiWAN Manager - Policies'),
_('Policies are profiles grouping one or more members controlling how Mwan3 distributes traffic.') + '<br />' +

View File

@ -14,7 +14,7 @@ return view.extend({
},
render: function (data) {
var m, s, o;
let m, s, o;
m = new form.Map('mwan3', _('MultiWAN Manager - Rules'),
_('Rules specify which traffic will use a particular MWAN policy.') + '<br />' +

View File

@ -45,7 +45,7 @@ return view.extend({
return getStatus();
},
render: function(status) {
var m, s, o;
let m, s, o;
m = new form.Map('natmap', _('NATMap'));
s = m.section(form.GridSection, 'natmap');

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('nextdns', _('NextDNS'),
_('NextDNS Configuration.')

View File

@ -47,7 +47,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('nlbwmon', _('Netlink Bandwidth Monitor - Configuration'),
_('The Netlink Bandwidth Monitor (nlbwmon) is a lightweight, efficient traffic accounting program keeping track of bandwidth usage per host and protocol.'));

View File

@ -8,7 +8,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('nut_cgi', _('NUT CGI'),
_('Network UPS Tools CGI Configuration') + '<br />' +

View File

@ -31,7 +31,7 @@ return view.extend({
},
render: function(loaded_promises) {
var m, s, o;
let m, s, o;
const have_ssl_support = loaded_promises[0];
m = new form.Map('nut_monitor', _('NUT Monitor'),

View File

@ -27,7 +27,7 @@ return view.extend({
},
render: function(loaded_promises) {
var m, s, o;
let m, s, o;
const have_ssl_support = loaded_promises[0];
const driver_list = loaded_promises[1];

View File

@ -26,7 +26,7 @@ return view.extend({
})]);
},
render: function () {
var m, s, o;
let m, s, o;
var has_ipip;

View File

@ -26,7 +26,7 @@ return view.extend({
})]);
},
render: function () {
var m, s, o;
let m, s, o;
var has_ipip;

View File

@ -9,7 +9,7 @@ return view.extend({
return Promise.all([uci.load('luci_olsr')]);
},
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('luci_olsr', _('OLSR - Display Options'));

View File

@ -8,7 +8,7 @@
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('omcproxy', _('omcproxy'), _('Embedded IGMPv3 and MLDv2 proxy'));

View File

@ -5,7 +5,7 @@
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('openwisp',
_('OpenWISP'),

View File

@ -12,7 +12,7 @@ var desc = _(""
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('pagekitec', _('PageKite'), desc);

View File

@ -20,7 +20,7 @@ return view.extend({
},
render: function (loaded_promises) {
var m, s, o;
let m, s, o;
const networks = loaded_promises[0];
const hosts = loaded_promises[1];

View File

@ -12,7 +12,7 @@ return view.extend({
},
render: function (loaded_promises) {
var m, s, o;
let m, s, o;
const networks = loaded_promises[0];
m = new form.Map('pppoe', _('Roaring Penguin PPPoE Relay'),

View File

@ -12,7 +12,7 @@ return view.extend({
},
render: function (loaded_promises) {
var m, s, o;
let m, s, o;
const networks = loaded_promises[0];
m = new form.Map('pppoe', _('Roaring Penguin PPPoE Server'),

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('ser2net', 'ser2net');

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('ser2net', 'ser2net');

View File

@ -4,7 +4,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('ser2net', 'ser2net');

View File

@ -88,7 +88,7 @@ return view.extend({
]);
},
render: function (stats) {
var m, s, o;
let m, s, o;
var ss, so;
var servers, download_files;

View File

@ -15,7 +15,7 @@ var desc = _(""
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map("snmpd", _("net-snmp's SNMPD"), desc);

View File

@ -59,7 +59,7 @@ return view.extend({
]));
}
var m, s, o;
let m, s, o;
m = new form.Map('sqm', _('Smart Queue Management'));
m.description = _("With <abbr title=\"Smart Queue Management\">SQM</abbr> you " +

View File

@ -38,7 +38,7 @@ return view.extend({
var { config_file, mime_table } = data[0];
var options = data[1];
var m, s, o;
let m, s, o;
m = new form.Map('squid', _('Squid'));

View File

@ -19,7 +19,7 @@ return view.extend({
render: function (data) {
var knownHosts = data[0];
var m, s, o;
let m, s, o;
m = new form.Map('sshtunnel', _('SSH Tunnels'),
_('This configures <a %s>SSH Tunnels</a>.')

View File

@ -34,7 +34,7 @@ return view.extend({
hasSshKeygen = data[0].type === 'file';
var sshKeys = _splitSshKeys(data.splice(1));
var m, s, o;
let m, s, o;
m = new form.Map('sshtunnel', _('SSH Tunnels'),
_('This configures <a %s>SSH Tunnels</a>.')

View File

@ -19,7 +19,7 @@ return view.extend({
ui.addNotification(null, E('p', _('No SSH keys found, <a %s>generate a new one</a>').format('href="./ssh_keys"')), 'warning');
}
var m, s, o;
let m, s, o;
m = new form.Map('sshtunnel', _('SSH Tunnels'),
_('This configures <a %s>SSH Tunnels</a>.')

View File

@ -13,7 +13,7 @@ return view.extend({
},
render: function (data) {
var m, s, o;
let m, s, o;
m = new form.Map('sshtunnel', _('SSH Tunnels'),
_('This configures <a %s>SSH Tunnels</a>.')

View File

@ -29,7 +29,7 @@ return view.extend({
},
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('ipsec', _('strongSwan Configuration'),
_('Configure strongSwan for secure VPN connections.'));

View File

@ -27,7 +27,7 @@ return view.extend({
hsMap.set(hs.name, hs.hostname);
});
var m, s, o;
let m, s, o;
m = new form.Map('tor-hs', _('Tor Onion Services'),
_('Tor Onion (Hidden) Services are proxy tunnels to your local website, SSH and other services.') + '<br />' +

View File

@ -6,7 +6,7 @@
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('tor', _('Tor onion router'),
_('For further information <a %s>check the documentation</a>')

View File

@ -37,7 +37,7 @@ return view.extend({
if (running && webinstalled)
button = '&#160;<a class="btn" href="http://' + window.location.hostname + ':' + port + '" target="_blank" rel="noreferrer noopener">' + _('Open Web Interface') + '</a>';
var m, s, o;
let m, s, o;
m = new form.Map('transmission', 'Transmission', _('Transmission daemon is a simple bittorrent client, here you can configure the settings.') + button);

View File

@ -143,7 +143,7 @@ return view.extend({
},
render: function (result) {
var m, s, o;
let m, s, o;
m = new form.Map('travelmate', 'Travelmate', _('Configuration of the travelmate package to enable travel router functionality. \
For further information <a href="https://github.com/openwrt/packages/blob/master/net/travelmate/files/README.md" target="_blank" rel="noreferrer noopener" >check the online documentation</a>. <br /> \

View File

@ -5,7 +5,7 @@
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('ttyd');

View File

@ -151,7 +151,7 @@ var CBIBindSelect = form.ListValue.extend({
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('udpxy', _('udpxy'),
_('udpxy is an IPTV stream relay, a UDP-to-HTTP multicast traffic relay daemon which forwards multicast UDP streams to HTTP clients.'));

View File

@ -70,7 +70,7 @@ return view.extend({
render: function(data) {
var m, s, o;
let m, s, o;
var protocols = '%s & %s/%s'.format(
'<a href="https://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol" target="_blank" rel="noreferrer"><abbr title="UPnP Internet Gateway Device (Control Protocol)">UPnP IGD</abbr></a>',

View File

@ -364,7 +364,7 @@ return view.extend({
},
render: function (data) {
var m, s, o;
let m, s, o;
if (!('usteer' in data[0])) {
m = new form.Map('usteer', _('Usteer'),

View File

@ -44,7 +44,7 @@ return view.extend({
},
render: function(data) {
var m, s, o;
let m, s, o;
var webport = (uci.get(data[0], 'config', 'address') || '0.0.0.0:2017').split(':').slice(-1)[0];
m = new form.Map('v2raya', _('v2rayA'),

View File

@ -38,7 +38,7 @@ return view.extend({
},
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('vnstat', _('vnStat'), _('vnStat is a network traffic monitor for Linux that keeps a log of network traffic for the selected interface(s).'));

View File

@ -5,7 +5,7 @@
return view.extend({
render: function () {
var m, s, o;
let m, s, o;
m = new form.Map('watchcat',
_('Watchcat'),

View File

@ -37,7 +37,7 @@ function renderStatus(isRunning) {
return view.extend({
render: function() {
var m, s, o;
let m, s, o;
m = new form.Map('xfrpc', _('xfrpc'));
m.description = _("xfrpc is a c language frp client for frps.");

View File

@ -24,7 +24,7 @@ return view.extend({
},
render: function(promises) {
var m, s, o;
let m, s, o;
var networks = promises[0];
m = new form.Map('xinetd', _('Xinetd Settings'), _('Here you can configure Xinetd services'));