Ports UI update (#16115)

* WIP Device Ports porting to Laravel

* WIP port links

* Port Links WIP

* Port Links

* in_array -> isset

* Add request to DeviceTab data

* Add initial Pagination

* Missing select component

* Collapsed and expandable port neighbors
New expandable component

* Port sorting

* Fix port transfer

* Use menu entries to filter ports

* Add translatable strings

* style fixes and cleanup

* update css

* graph views and tidy controller
basic port link view

* cleanup

* port row blade to reuse in legacy port view

* Legacy tab url handling
work properly in subdirectory
remove includes from sub tab directory to prevent oddity

* fallback to detail list when the view doesn't exist

* Use named variable to simplify

* Fix issue from file that was a symlink

* Submenu handle sub items and query string urls

* extract pageLinks to improve readability

* fix typo

* Apply fixes from StyleCI

* phpstan was not happy using the relationship HasMany query

* Don't allow *bps etc to be on a second line

* Improve table on small screens

* Fix sort

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
This commit is contained in:
Tony Murray
2024-06-16 11:29:06 -05:00
committed by GitHub
parent a717e084f0
commit 075ba4c932
86 changed files with 1135 additions and 990 deletions
+33
View File
@@ -5,4 +5,37 @@ return [
'updated' => ':port: groups updated',
'none' => ':port no update requested',
],
'filters' => [
'status_up' => 'Only Show Up',
'admin_down' => 'Show Admin Down',
'disabled' => 'Show Disabled',
'ignored' => 'Show Ignored',
],
'graphs' => [
'bits' => 'Bits',
'upkts' => 'Unicast Packets',
'nupkts' => 'Non-Unicast Packets',
'errors' => 'Errors',
'etherlike' => 'Etherlike',
],
'mtu_label' => 'MTU :mtu',
'tabs' => [
'arp' => 'ARP Table',
'fdb' => 'FDB Table',
'links' => 'Neighbors',
'xdsl' => 'xDSL',
],
'vlan_count' => 'VLANs: :count',
'vlan_label' => 'VLAN: :label',
'xdsl' => [
'sync_stat' => 'Sync: :down/:up',
'attainable_stat' => 'Max: :down/:up',
'attenuation_stat' => 'Atten: :down/:up',
'snr_stat' => 'SNR: :down/:up',
'sync' => 'Sync Speed',
'attainable' => 'Attainable Speed',
'attenuation' => 'Attenuation',
'snr' => 'SNR Margin',
'power' => 'Output Powers',
],
];