From 841b28a408df43b5380fa00388075a07129f7146 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 3 Dec 2023 15:43:05 -0800 Subject: feat(birthdays): add second birthday source --- src/lib/Tools/CharacterBirthdays.svelte | 86 ++++++++++++++++++++++++--------- 1 file changed, 62 insertions(+), 24 deletions(-) (limited to 'src/lib/Tools/CharacterBirthdays.svelte') diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte index d1d03ed0..c012d65e 100644 --- a/src/lib/Tools/CharacterBirthdays.svelte +++ b/src/lib/Tools/CharacterBirthdays.svelte @@ -1,33 +1,71 @@ - -{#await ACDBBirthdays(date.getMonth() + 1, date.getDate())} -

Loading ...

-{:then birthdays} -

- This tool does not use AniList's API, so it will have more characters than AniList, but also - some unexpected characters which may not be present in AniList. -

+{#await ACDBBirthdays(month, day)} +

Loading set one ...

+{:then acdbBirthdays} + {#await anisearchBirthdays} +

Loading set two ...

+ {:then anisearch} + {@const birthdays = combineBirthdaySources(acdbBirthdays, anisearch)} -
- {#each birthdays as birthday} -
- - {birthday.name} - Character (Large) - -
- {/each} -
+
+ {#each birthdays as birthday} +
+ + {birthday.name} + Character (Large) + +
+ {/each} +
+ {:catch} + + {/await} {:catch} {/await} -- cgit v1.2.3