onpress(e, card)}
onkeydown={e => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onselect();
}
}}
onpointerenter={() => onhover(true)}
onpointerleave={() => onhover(false)}
>
{node.name}
{node.subtitle || TYPE_LABELS[node.type] || ''}
{#if isSource(node)}
{node.missing ? 'Deleted' : String(linkCount)}
{:else}
{/if}
{#if node.urls?.length}
{node.urls[0].replace(/^https?:\/\//, '')}
{/if}
{#if extra || volumes.length}
{#if extra}+{extra} {extra === 1 ? 'server' : 'servers'}{/if}
{#each volumes.slice(0, MAX_VOLUMES) as v, i (i)}{v}{/each}
{#if volumes.length > MAX_VOLUMES}+{volumes.length - MAX_VOLUMES}{/if}
{/if}
{#if children.length}
{#each children.slice(0, MAX_CHILDREN) as child, i (i)}
-
{child.name}
{/each}
{#if children.length > MAX_CHILDREN}
- +{children.length - MAX_CHILDREN} more
{/if}
{/if}
{#if port}
onconnect(e, portDot)}
>
{/if}