removed created_at and preloaded api endpoint

This commit is contained in:
Niki Wix Skaarup 2025-04-05 23:20:30 +02:00
parent 1c8621b6f9
commit 09557ee3ac
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C

View file

@ -1,6 +1,6 @@
<script lang="ts">
import { fade } from 'svelte/transition';
import { cubicInOut } from 'svelte/easing';
import { fade } from 'svelte/transition';
import { fetchEntries, formatter } from '../util';
let entriesPromise = $state(fetchEntries());
@ -36,6 +36,10 @@
<svelte:window bind:scrollY={y} />
<svelte:head>
<link rel="preload" type="application/json" as="json" href="/api/entries" />
</svelte:head>
<div class="relative col-[content] pr-0.5">
{#await entriesPromise}
<p class="text-center">Loading entries...</p>
@ -62,7 +66,6 @@
<div>id</div>
<div class="px-1">name</div>
<div class="hidden px-1 @3xl:block">done</div>
<div class="hidden px-1 @5xl:block">created</div>
<div class="hidden px-1 @xl:block">updated</div>
{#if scrolled}
@ -83,9 +86,6 @@
referrerpolicy="no-referrer">{entry.name}</a
>
{@render done(entry.finished)}
<div class="hidden max-w-24 px-1 py-1 text-xs text-gray-200 @5xl:block">
{formatter.format(entry.created_at)}
</div>
<div class="hidden max-w-24 px-1 py-1 text-xs text-gray-200 @xl:block">
{formatter.format(entry.updated_at)}
</div>