train routes

This commit is contained in:
2023-07-08 00:05:26 +02:00
parent 8ea6ed2657
commit dbd02e9dec
4 changed files with 25 additions and 8 deletions

View File

@@ -34,11 +34,10 @@
</svelte:head>
{#if searchIndex}
<input on:input={search} type="search" placeholder="Search chords" />
<input on:input={search} type="search" placeholder="Search {$chords.length} chords" />
{/if}
<section>
<p>You have {$chords.length} chords</p>
<table>
{#each items.slice(0, 50) as [{ phrase, actions }, i]}
<tr style="view-transition-name: chord-{i}">

View File

@@ -0,0 +1,6 @@
import {redirect} from "@sveltejs/kit"
import type {PageLoad} from "./$types"
export const load = (() => {
throw redirect(302, "/train/cpm/")
}) satisfies PageLoad

View File