treewide: vectorise iconography

follow-up to ae5d91da90

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2025-06-14 00:11:38 +02:00
parent fd0038d183
commit fa6ca8a618
6 changed files with 10 additions and 5 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 34 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -2966,6 +2966,8 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
return 'wifi'; return 'wifi';
else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device]) else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
return 'bridge'; return 'bridge';
else if (this.dev.devtype == 'wireguard')
return 'wireguard';
else if (_state.isTunnel[this.device]) else if (_state.isTunnel[this.device])
return 'tunnel'; return 'tunnel';
else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1) else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1)
@@ -3037,6 +3039,9 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
case 'vlan': case 'vlan':
return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN')); return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
case 'wireguard':
return _('WireGuard Interface');
case 'tunnel': case 'tunnel':
return _('Tunnel Interface'); return _('Tunnel Interface');

View File

@@ -128,7 +128,7 @@ return view.extend({
'click': ui.createHandlerFn(this, handleInterfaceDetails, ifaces[instanceName]) 'click': ui.createHandlerFn(this, handleInterfaceDetails, ifaces[instanceName])
}, [ }, [
E('span', { 'class': 'ifacebadge' }, [ E('span', { 'class': 'ifacebadge' }, [
E('img', { 'src': L.resource('icons', 'tunnel.svg'), 'style': 'width:32px;height:32px' }), E('img', { 'src': L.resource('icons', 'wireguard.svg'), 'style': 'width:32px;height:32px' }),
'\xa0', '\xa0',
instanceName instanceName
]), ]),