1
1
import { writeClipboard } from '@solid-primitives/clipboard'
2
2
import { makePersisted } from '@solid-primitives/storage'
3
3
import {
4
+ IconChevronRight ,
4
5
IconInfoSmall ,
5
6
IconPlayerPause ,
6
7
IconPlayerPlay ,
@@ -37,7 +38,7 @@ import {
37
38
DocumentTitle ,
38
39
} from '~/components'
39
40
import { CONNECTIONS_TABLE_ACCESSOR_KEY } from '~/constants'
40
- import { formatTimeFromNow } from '~/helpers'
41
+ import { formatIPv6 , formatTimeFromNow } from '~/helpers'
41
42
import { useI18n } from '~/i18n'
42
43
import {
43
44
allConnections ,
@@ -167,7 +168,7 @@ export default () => {
167
168
`${
168
169
original . metadata . host
169
170
? original . metadata . host
170
- : original . metadata . destinationIP
171
+ : formatIPv6 ( original . metadata . destinationIP )
171
172
} :${ original . metadata . destinationPort } `,
172
173
} ,
173
174
{
@@ -181,12 +182,23 @@ export default () => {
181
182
accessorFn : ( original ) =>
182
183
! original . rulePayload
183
184
? original . rule
184
- : `${ original . rule } :: ${ original . rulePayload } ` ,
185
+ : `${ original . rule } : ${ original . rulePayload } ` ,
185
186
} ,
186
187
{
187
188
header : ( ) => t ( 'chains' ) ,
188
189
accessorKey : CONNECTIONS_TABLE_ACCESSOR_KEY . Chains ,
189
- accessorFn : ( original ) => original . chains . slice ( ) . reverse ( ) . join ( ' :: ' ) ,
190
+ cell : ( { row } ) => (
191
+ < For each = { row . original . chains . slice ( ) . reverse ( ) } >
192
+ { ( name , index ) => (
193
+ < >
194
+ < Show when = { index ( ) } >
195
+ < IconChevronRight class = "inline-block" size = { 18 } />
196
+ </ Show >
197
+ < span class = "align-middle" > { name } </ span >
198
+ </ >
199
+ ) }
200
+ </ For >
201
+ ) ,
190
202
} ,
191
203
{
192
204
header : ( ) => t ( 'connectTime' ) ,
0 commit comments