diff options
| author | Fuwn <[email protected]> | 2023-09-22 23:48:39 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-22 23:48:39 -0700 |
| commit | 2caef2c1723801e6145331003e7b430e9772b65a (patch) | |
| tree | dfaa9a361c503bbb5a6de8a18ecb3d083d3d8d37 /src/routes/tools | |
| parent | feat(layout): tools in navbar (diff) | |
| download | due.moe-2caef2c1723801e6145331003e7b430e9772b65a.tar.xz due.moe-2caef2c1723801e6145331003e7b430e9772b65a.zip | |
feat(tools): move activity history
Diffstat (limited to 'src/routes/tools')
| -rw-r--r-- | src/routes/tools/+page.svelte | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte index 53ace72b..1bf7a4a3 100644 --- a/src/routes/tools/+page.svelte +++ b/src/routes/tools/+page.svelte @@ -1,6 +1,9 @@ <script lang="ts"> + import ActivityHistory from '$lib/ActivityHistory.svelte'; import { todaysCharacterBirthdays } from '$lib/AniList/character'; + export let data; + let tool: number; </script> @@ -8,11 +11,14 @@ <select bind:value={tool}> <option value={0}>Tools</option> <option value={1}>Today's Character Birthdays</option> + <option value={2}>Activity History Hole Risks</option> </select> </p> {#if tool === 0} Select a tool to continue. +{:else if tool === 2} + <ActivityHistory user={data.user} /> {:else if tool === 1} <ul> {#await todaysCharacterBirthdays()} |