summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorGiovanni Giacobbi <giovanni@giacobbi.net>2021-01-16 15:30:03 +0100
committerHannu Nyman <hannu.nyman@iki.fi>2021-01-20 17:48:16 +0200
commitaf422b192462813150863752f9c300af55df4996 (patch)
treeef07c2f73da55ba53792d792e287674f01ddd535 /modules/luci-mod-status/htdocs/luci-static/resources
parentd3280e6f5df17b799230e229c9472cf8854015ae (diff)
treewide: removed trailing whitespaces and extra newlines in 'modules'
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js2
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js18
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js1
3 files changed, 10 insertions, 11 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js
index 0ad84b72c1..5f838108ef 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js
@@ -388,7 +388,7 @@ return view.extend({
tab: tab,
};
- this.radios[ifname+freq] = {
+ this.radios[ifname+freq] = {
dev: wifiDevs[ifname].dev,
graph: graph_data,
table: table,
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
index 9a956a72fe..18172aae94 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
@@ -29,14 +29,14 @@ return baseclass.extend({
ht = rt.ht, vht = rt.vht,
mhz = rt.mhz, nss = rt.nss,
mcs = rt.mcs, sgi = rt.short_gi;
-
+
if (ht || vht) {
if (vht) s += ', VHT-MCS\xa0%d'.format(mcs);
if (nss) s += ', VHT-NSS\xa0%d'.format(nss);
if (ht) s += ', MCS\xa0%s'.format(mcs);
if (sgi) s += ', ' + _('Short GI').replace(/ /g, '\xa0');
}
-
+
return s;
},
@@ -99,12 +99,12 @@ return baseclass.extend({
freq = null,
rate = null,
badges = [];
-
+
for (var i = 0; i < networks.length; i++) {
var net = networks[i],
is_assoc = (net.getBSSID() != '00:00:00:00:00:00' && net.getChannel() && !net.isDisabled()),
quality = net.getSignalPercent();
-
+
var icon;
if (net.isDisabled())
icon = L.resource('icons/signal-none.png');
@@ -134,7 +134,7 @@ return baseclass.extend({
}, [ _('Start WPS') ])
}
}
-
+
var badge = renderBadge(
icon,
'%s: %d dBm / %s: %d%%'.format(_('Signal'), net.getSignal(), _('Quality'), quality),
@@ -147,14 +147,14 @@ return baseclass.extend({
_('WPS status'), this.WPSTranslateTbl[net.wps_status],
'', WPS_button
);
-
+
badges.push(badge);
-
+
chan = (chan != null) ? chan : net.getChannel();
freq = (freq != null) ? freq : net.getFrequency();
rate = (rate != null) ? rate : net.getBitRate();
}
-
+
return E('div', { class: 'ifacebox' }, [
E('div', { class: 'ifacebox-head center ' + (radio.isUp() ? 'active' : '') },
E('strong', radio.getName())),
@@ -340,7 +340,7 @@ return baseclass.extend({
}).render()
)
}
- else {
+ else {
row.push(E('button', {
'class': 'cbi-button cbi-button-remove',
'click': L.bind(this.handleDelClient, this, networks[i], bss.mac)
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js
index 9d959f34a5..ac512bb849 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js
@@ -215,4 +215,3 @@ return view.extend({
handleSave: null,
handleReset: null
});
-