johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import Listing from '#lib/templates/Listing.svelte';
import RepoPage from '#lib/templates/RepoPage.svelte';
import Empty from '#lib/molecules/Empty.svelte';
let { data } = $props();
const t = $derived(data.tree);
const r = $derived(data.repo);
</script>
{#if t.empty}
<RepoPage repo={r} tab="code" title={r.name}>
<div class="box">
<Empty title="Nothing pushed yet" cmd="git push knotless://{data.authority}/{r.name} main"
>Push a branch to start this repository.</Empty
>
</div>
</RepoPage>
{:else}
<Listing
repo={r}
authority={data.authority}
tree={t}
branches={data.branches}
tags={data.tags}
last={data.last}
/>
{/if}