removed created_at and preloaded api endpoint
This commit is contained in:
parent
1c8621b6f9
commit
09557ee3ac
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { fade } from 'svelte/transition';
|
|
||||||
import { cubicInOut } from 'svelte/easing';
|
import { cubicInOut } from 'svelte/easing';
|
||||||
|
import { fade } from 'svelte/transition';
|
||||||
import { fetchEntries, formatter } from '../util';
|
import { fetchEntries, formatter } from '../util';
|
||||||
|
|
||||||
let entriesPromise = $state(fetchEntries());
|
let entriesPromise = $state(fetchEntries());
|
||||||
|
@ -36,6 +36,10 @@
|
||||||
|
|
||||||
<svelte:window bind:scrollY={y} />
|
<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">
|
<div class="relative col-[content] pr-0.5">
|
||||||
{#await entriesPromise}
|
{#await entriesPromise}
|
||||||
<p class="text-center">Loading entries...</p>
|
<p class="text-center">Loading entries...</p>
|
||||||
|
@ -62,7 +66,6 @@
|
||||||
<div>id</div>
|
<div>id</div>
|
||||||
<div class="px-1">name</div>
|
<div class="px-1">name</div>
|
||||||
<div class="hidden px-1 @3xl:block">done</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>
|
<div class="hidden px-1 @xl:block">updated</div>
|
||||||
|
|
||||||
{#if scrolled}
|
{#if scrolled}
|
||||||
|
@ -83,9 +86,6 @@
|
||||||
referrerpolicy="no-referrer">{entry.name}</a
|
referrerpolicy="no-referrer">{entry.name}</a
|
||||||
>
|
>
|
||||||
{@render done(entry.finished)}
|
{@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">
|
<div class="hidden max-w-24 px-1 py-1 text-xs text-gray-200 @xl:block">
|
||||||
{formatter.format(entry.updated_at)}
|
{formatter.format(entry.updated_at)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue