johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import type { OwnerView } from '#lib/lexicons/dev/knotless/searchOwners.ts';
import { plural, urlPath } from '#lib/format.ts';
import Avatar from '#lib/atoms/Avatar.svelte';
/** Accounts, each with its picture, its handle and how many repositories it owns, linked to its profile. */
let { owners }: { owners: OwnerView[] } = $props();
</script>
<ul class="owners">
{#each owners as o (o.owner.did)}
<li>
<a href="/{urlPath(o.owner.handle)}"
><Avatar name={o.owner.handle} size="lg" did={o.owner.did} src={o.owner.avatar} /><span
class="clip"
><b>{o.owner.handle}</b><span class="mute"
>{plural(o.repoCount, 'repository', 'repositories')}</span
></span
></a
>
</li>
{/each}
</ul>