diff options
| author | Fuwn <[email protected]> | 2023-12-14 16:28:15 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-14 16:31:12 -0800 |
| commit | 29e82820e76d3723b83870f4f119b9b2b8c1aa13 (patch) | |
| tree | 0f8b9ecd95a749931515a573973307dd5422a9c2 /src/lib/Tools | |
| parent | ci(earthly): add most used directories last (diff) | |
| download | due.moe-29e82820e76d3723b83870f4f119b9b2b8c1aa13.tar.xz due.moe-29e82820e76d3723b83870f4f119b9b2b8c1aa13.zip | |
feat(sequelspy): display upcoming date
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/SequelSpy.svelte | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte index 441585a4..5386066c 100644 --- a/src/lib/Tools/SequelSpy.svelte +++ b/src/lib/Tools/SequelSpy.svelte @@ -4,6 +4,8 @@ import MediaTitle from '$lib/List/MediaTitleDisplay.svelte'; import { onMount } from 'svelte'; import { clearAllParameters } from './tool'; + import { airingTime } from '$lib/Media/anime'; + import type { Media } from '$lib/AniList/media'; export let user: AniListAuthorisation; @@ -24,6 +26,8 @@ $: currentPrequels = prequels(user, year, season); onMount(clearAllParameters); + + const prequelAiringTime = (prequel: MediaPrequel) => airingTime(prequel as unknown as Media); </script> <p> @@ -47,6 +51,7 @@ </a> <span style="opacity: 50%;">|</span> {prequel.seen}<span style="opacity: 50%;">/{prequel.episodes}</span> + {@html prequelAiringTime(prequel)} </li> {/each} </ul> |