Files
arch-repo/src/routes/project/[project]/artefact/[artefact_uuid]/+page.svelte
u80864958 14df3db8d1 fix: pdf
2025-10-21 15:20:48 +02:00

17 lines
424 B
Svelte

<script lang="ts">
import { page } from '$app/stores';
import { getArtefact } from '$lib/artefact.remote';
import Artefact from '$lib/components/Artefact.svelte';
let uuid = $derived($page.params.artefact_uuid);
let artefact: undefined | Artefact = $state(undefined);
$effect(() => {
getArtefact(uuid ?? '').then((a) => (artefact = a));
});
</script>
{#if artefact}
<Artefact {artefact} showAll={true} />
{/if}