mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 11:35:13 +08:00
🎁 Sync 2026-09-15 11:06:14
This commit is contained in:
1 parent
74521c44f6
commit
417da5cfba
62 files changed
+6708
-2800
No files matched your search
@@ -117,7 +117,6 @@ return baseclass.extend({
|
||||
sub.push(E('code', {}, [ v4.addrsv4.value[0].split('/')[0] ]));
|
||||
|
||||
return charts.kpi({
|
||||
className: 'internet-status-self',
|
||||
icon: connected ? 'internet' : 'not-internet',
|
||||
title: _('Internet'),
|
||||
value: [ connected ? _('Connected') : _('Not connected') ],
|
||||
@@ -129,7 +128,6 @@ return baseclass.extend({
|
||||
const router = this.params.router;
|
||||
|
||||
return charts.kpi({
|
||||
className: 'router-status-self',
|
||||
icon: 'router',
|
||||
title: router.uptime.title,
|
||||
value: [ router.uptime.value || '-' ],
|
||||
|
||||
@@ -25,7 +25,6 @@ return baseclass.extend({
|
||||
const count = this.params.lan.devices.length;
|
||||
|
||||
return charts.kpi({
|
||||
className: 'router-status-lan',
|
||||
icon: 'devices',
|
||||
title: this.title,
|
||||
value: [ String(count) ],
|
||||
@@ -35,7 +34,6 @@ return baseclass.extend({
|
||||
|
||||
renderTable() {
|
||||
return charts.table({
|
||||
className: 'assoclist devices-info',
|
||||
head: [ _('Hostname'), _('IP Address'), _('MAC') ],
|
||||
rows: this.params.lan.devices.map(device => [
|
||||
device.hostname,
|
||||
|
||||
@@ -52,7 +52,6 @@ return baseclass.extend({
|
||||
const active = radios.filter(radio => radio.isactive.value === true).length;
|
||||
|
||||
return charts.kpi({
|
||||
className: 'router-status-wifi',
|
||||
icon: 'wireless',
|
||||
title: _('Wireless clients'),
|
||||
value: [ String(this.params.wifi.devices.length) ],
|
||||
@@ -68,7 +67,6 @@ return baseclass.extend({
|
||||
}));
|
||||
|
||||
return charts.card({
|
||||
className: 'router-status-wifi',
|
||||
title: _('Client distribution'),
|
||||
desc: _('by SSID'),
|
||||
body: devices.length
|
||||
@@ -81,7 +79,6 @@ return baseclass.extend({
|
||||
const devices = this.params.wifi.devices.slice().sort((a, b) => rssiOf(b) - rssiOf(a));
|
||||
|
||||
return charts.card({
|
||||
className: 'router-status-wifi',
|
||||
title: _('Signal Strength'),
|
||||
desc: devices.length ? '%s · %s'.format(_('%d clients').format(devices.length), _('dBm')) : '',
|
||||
body: devices.length ? [ charts.barChart({
|
||||
@@ -145,7 +142,6 @@ return baseclass.extend({
|
||||
const scale = this.byteScale(peak);
|
||||
|
||||
return charts.card({
|
||||
className: 'router-status-wifi',
|
||||
title: _('Client traffic'),
|
||||
desc: devices.length ? _('Transferred') : '',
|
||||
body: devices.length ? [
|
||||
@@ -199,7 +195,6 @@ return baseclass.extend({
|
||||
|
||||
renderClientTable() {
|
||||
return charts.table({
|
||||
className: 'assoclist devices-info',
|
||||
head: [
|
||||
_('Hostname'),
|
||||
_('SSID'),
|
||||
@@ -210,7 +205,7 @@ return baseclass.extend({
|
||||
rows: this.params.wifi.devices.map(device => [
|
||||
device.hostname.value,
|
||||
device.ssid.value,
|
||||
E('span', { 'class': 'nowrap' }, [
|
||||
E('span', {}, [
|
||||
charts.badge((device.signal.value.rssi != null) ? '%d %s'.format(device.signal.value.rssi, _('dBm')) : _('No RX signal'), signalGrade(device.signal.value.rssi).kind),
|
||||
' ',
|
||||
(device.signal.value.noise != null)
|
||||
|
||||
Reference in new issue
Block a user