~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
25 lines · 698 B Raw History
<script lang="ts">
	import More from '#lib/atoms/More.svelte';
	import RefList from '#lib/organisms/RefList.svelte';
	import RepoPage from '#lib/templates/RepoPage.svelte';
	import { Pages } from '#lib/pages.svelte.ts';
	let { data } = $props();
	const r = $derived(data.repo);
	const branches = new Pages(
		() => data,
		(d) => ({ items: d.branches.branches, cursor: d.branches.cursor }),
		(b) => b.name
	);
</script>

<RepoPage repo={r} tab="code" title="Branches · {r.name}">
	<RefList
		authority={data.authority}
		name={r.name}
		heading="Branches"
		refs={branches.items}
		head={r.defaultBranch}
		empty="No branches yet"
	/>
	<More pages={branches} label="More branches" />
</RepoPage>