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

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
13 lines · 500 B Raw History
import type * as getTree from '#lib/lexicons/dev/knotless/getTree.ts';
import type { PageLoad } from './$types';
import { branches, lastCommits, repoPage, tags } from '#lib/data.ts';

export const load: PageLoad = async (event) => {
	const [{ repo, answer }, names, tagged, [last]] = await Promise.all([
		repoPage<typeof getTree.main>(event, 'dev.knotless.getTree'),
		branches(event),
		tags(event),
		lastCommits(event)
	]);
	return { repo, tree: answer, branches: names, tags: tagged, last };
};