{#if seededNotReplicated.length > 0 && !sidebarCollapsed.value}
(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)} {/each}
{/if} {/if}
{#each pinnedRepos as repo (repo.rid)}
clearUnseeding(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"> { 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} {repoListScope.value === "all" ? "All Repos" : "Seeded Repos"} {#if !sidebarCollapsed.value && unpinnedReposCount > 1} {unpinnedReposCount} {/if} {/if} e.stopPropagation()} role="none"> e.stopPropagation()} role="none">
{#snippet repoRowInner(repo: RepoSummary, pinned: boolean = false)} {@const pinState = pinnedRepoIds.value.includes(repo.rid)} {@const shortcutNumber = shortcutNumbers.get(repo.rid)} drag.onMouseDown(e, repo.rid) : undefined} onclick={pinned && !sidebarCollapsed.value ? drag.onClick : undefined} oncontextmenu={e => openContextMenu(e, repo)} href={router.routeToPath({ resource: "repo.home", rid: repo.rid })}> {#if modifierHeld.value && shortcutNumber !== undefined} {shortcutNumber} {:else if repo.private} {/if} {repo.name} {#if repo.private} {/if} { e.preventDefault(); e.stopPropagation(); }}> {#if pinned} {/if} {#if activeRid() === repo.rid} {@const activeProject = activeRepo?.payloads["xyz.radicle.project"]}
{@render subItem( repo.name, router.routeToPath({ resource: "repo.issues", rid: repo.rid, status: "open", }), "issue", "Issues", isIssues(repo.rid), activeProject?.meta.issues.open || undefined, )} {@render subItem( repo.name, router.routeToPath({ resource: "repo.patches", rid: repo.rid, status: "open", }), "patch", "Patches", isPatches(repo.rid), activeProject?.meta.patches.open || undefined, )}
{/if} {/snippet} {#snippet subItem( repoName: string, href: string, icon: "branch" | "issue" | "patch", label: string, active: boolean, count: number | undefined, )} {label} {#if !sidebarCollapsed.value && count !== undefined} {count} {/if} {/snippet} {#if !sidebarCollapsed.value} {#if reposExpanded.value}
{#each unpinnedFilteredRepos as repo (repo.rid)}
clearUnseeding(repo.rid)}> {@render repoRowInner(repo, false)}
{/each}
{/if} {/if} {#if drag.draggedRepo}
{drag.draggedRepo.name}
{/if} {#if contextMenu} {@const repo = contextMenu.repo} {@const url = entityUrl({ type: "repo", rid: repo.rid }, config) ?? ""} Open in {explorerHost(config)} {#if repo.seeding} {:else} {/if} {/if}