{#if seededNotReplicated.length > 0}
(fetchingExpanded.value = !fetchingExpanded.value)} role="button" tabindex="0" onkeydown={e => { if (e.key === "Enter" || e.key === " ") { fetchingExpanded.value = !fetchingExpanded.value; } }}>
Fetching {seededNotReplicated.length > 1 ? ` (${seededNotReplicated.length})` : ""}
{#if fetchingExpanded.value}
{#each seededNotReplicated as rid (rid)}
{formatRepositoryId(rid)}
unseed(rid)}>
{/each}
{/if} {/if}
{#each pinnedRepos as repo (repo.rid)}
{@render repoRowInner(repo, true)}
{/each}
{ if (!filterOpen) { reposExpanded.value = !reposExpanded.value; } }} role="button" tabindex="0" onkeydown={e => { if (e.key === "Enter" || e.key === " ") { if (!filterOpen) { reposExpanded.value = !reposExpanded.value; } } }}> {#if filterOpen}
e.stopPropagation()} role="none">
{ filterOpen = false; filterQuery = ""; }}>
{ if (e.key === "Escape") { filterOpen = false; filterQuery = ""; } else if (e.key === "Enter" && unpinnedFilteredRepos.length > 0) { void router.push({ resource: "repo.home", rid: unpinnedFilteredRepos[0].rid, }); filterQuery = ""; } }} />
{:else}
e.stopPropagation()} role="none">
{ filterOpen = true; reposExpanded.value = true; }}>
All Repos {#if unpinnedReposCount > 1}
{unpinnedReposCount}
{/if}
{/if}
e.stopPropagation()} role="none">
{#snippet repoRowInner(repo: RepoSummary, pinned: boolean = false)} {@const pinState = pinnedRepoIds.value.includes(repo.rid)}
drag.onMouseDown(e, repo.rid) : undefined} onclick={pinned ? drag.onClick : undefined} oncontextmenu={e => openContextMenu(e, repo)} href={router.routeToPath({ resource: "repo.home", rid: repo.rid })}>
{repo.name}
{ e.preventDefault(); e.stopPropagation(); }}>
togglePin(repo.rid)}>
{#if pinned}
{/if}
{#if activeRid() === repo.rid} {@const activeProject = activeRepo?.payloads["xyz.radicle.project"]} {@render subItem( router.routeToPath({ resource: "repo.issues", rid: repo.rid, status: "open", }), "issue", "Issues", isIssues(repo.rid), activeProject?.meta.issues.open || undefined, )} {@render subItem( router.routeToPath({ resource: "repo.patches", rid: repo.rid, status: "open", }), "patch", "Patches", isPatches(repo.rid), activeProject?.meta.patches.open || undefined, )} {/if} {/snippet} {#snippet subItem( href: string, icon: "branch" | "issue" | "patch", label: string, active: boolean, count: number | undefined, )}
{label} {#if count !== undefined}
{count}
{/if}
{/snippet} {#if reposExpanded.value}
{#each unpinnedFilteredRepos as repo (repo.rid)}
{@render repoRowInner(repo, false)}
{/each}
{/if} {#if drag.draggedRepo}
{drag.draggedRepo.name}
{/if} {#if contextMenu} {@const repo = contextMenu.repo} {@const url = explorerUrl(repo.rid, config)}
writeToClipboard(repo.rid)}>
Copy RID
writeToClipboard(`rad checkout ${repo.rid}`)}>
Copy checkout command
writeToClipboard(url)}>
Copy link to {explorerHost(config)}
Open in {explorerHost(config)}
{/if}