mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-28 17:02:21 +00:00
[WIFI-13803] Added fingerprint column to wifi analysis
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.2(9)",
|
||||
"version": "3.1.0(2)",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.2(9)",
|
||||
"version": "3.1.0(2)",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@chakra-ui/anatomy": "^2.1.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.2(9)",
|
||||
"version": "3.1.0(2)",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"main": "index.tsx",
|
||||
|
||||
@@ -59,6 +59,7 @@ export type DeviceInterfaceStatistics = {
|
||||
dynamic_vlan?: number;
|
||||
inactive: number;
|
||||
ipaddr_v4: string;
|
||||
fingerprint?: object;
|
||||
rssi: number;
|
||||
rx_bytes: number;
|
||||
rx_duration: number;
|
||||
|
||||
@@ -28,6 +28,7 @@ export type ParsedAssociation = {
|
||||
txNss: number | string;
|
||||
recorded: number;
|
||||
dynamicVlan?: number;
|
||||
fingerprint?: object;
|
||||
};
|
||||
|
||||
type Props = {
|
||||
@@ -77,6 +78,14 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => {
|
||||
isMonospace: true,
|
||||
alwaysShow: true,
|
||||
},
|
||||
{
|
||||
id: 'ssid',
|
||||
Header: 'SSID',
|
||||
Footer: '',
|
||||
accessor: 'ssid',
|
||||
customWidth: '35px',
|
||||
alwaysShow: true,
|
||||
},
|
||||
{
|
||||
id: 'ips',
|
||||
Header: 'IPs',
|
||||
@@ -84,6 +93,13 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => {
|
||||
Cell: (v) => ipCell(v.cell.row.original),
|
||||
disableSortBy: true,
|
||||
},
|
||||
{
|
||||
id: 'fingerprint',
|
||||
Header: 'Fingerprint',
|
||||
Footer: '',
|
||||
Cell: (v) => Object.values(v.cell.row.original.fingerprint ?? {}).join(', '),
|
||||
disableSortBy: true,
|
||||
},
|
||||
{
|
||||
id: 'vendor',
|
||||
Header: t('controller.wifi.vendor'),
|
||||
|
||||
@@ -105,6 +105,7 @@ const parseAssociations = (data: { data: DeviceStatistics; recorded: number }, r
|
||||
txNss: association.tx_rate.nss ?? '-',
|
||||
recorded: data.recorded,
|
||||
dynamicVlan: association.dynamic_vlan,
|
||||
fingerprint: association.fingerprint,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user