feat(connection): 添加入站用户列 (#437)

This commit is contained in:
TossPig 2023-10-31 01:50:22 +08:00 committed by GitHub
parent 56b2b81548
commit 1ba7700a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export enum CONNECTIONS_TABLE_ACCESSOR_KEY {
SourceIP = 'sourceIP',
SourcePort = 'sourcePort',
Destination = 'destination',
InboundUser = 'inboundUser',
}
export const CONNECTIONS_TABLE_MAX_CLOSED_ROWS = 200

View File

@ -38,6 +38,7 @@ export default {
sourceIP: 'Source IP',
sourcePort: 'Source Port',
destination: 'Destination',
inboundUser: 'Inbound User',
close: 'Close',
reset: 'Reset',
dnsQuery: 'DNS Query',

View File

@ -40,6 +40,7 @@ export default {
sourceIP: '源地址',
sourcePort: '源端口',
destination: '目标地址',
inboundUser: '入站用户',
close: '关闭',
reset: '重置',
dnsQuery: 'DNS 查询',

View File

@ -242,6 +242,14 @@ export default () => {
original.metadata.destinationIP ||
original.metadata.host,
},
{
header: () => t('inboundUser'),
accessorKey: CONNECTIONS_TABLE_ACCESSOR_KEY.InboundUser,
accessorFn: (original) =>
original.metadata.inboundUser ||
original.metadata.inboundName ||
original.metadata.inboundPort,
},
]
const [grouping, setGrouping] = createSignal<GroupingState>([])