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