treewide: vectorise iconography
follow-up to ae5d91da90
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 13 KiB |
@@ -2966,6 +2966,8 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
|
||||
return 'wifi';
|
||||
else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
|
||||
return 'bridge';
|
||||
else if (this.dev.devtype == 'wireguard')
|
||||
return 'wireguard';
|
||||
else if (_state.isTunnel[this.device])
|
||||
return 'tunnel';
|
||||
else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1)
|
||||
@@ -3037,6 +3039,9 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
|
||||
case 'vlan':
|
||||
return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
|
||||
|
||||
case 'wireguard':
|
||||
return _('WireGuard Interface');
|
||||
|
||||
case 'tunnel':
|
||||
return _('Tunnel Interface');
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ return view.extend({
|
||||
'click': ui.createHandlerFn(this, handleInterfaceDetails, ifaces[instanceName])
|
||||
}, [
|
||||
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',
|
||||
instanceName
|
||||
]),
|
||||
|
||||