From 31f0df5e6041b3fd761fef9239056a7b9e6ed48c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 28 Aug 2023 15:28:00 -0700
Subject: feat(list): upcoming episodes

---
 src/routes/+page.svelte | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'src/routes/+page.svelte')

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 5b21ac3e..3d226606 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -6,6 +6,7 @@
 	import displayUnresolved from '../stores/displayUnresolved';
 	import closeAnimeByDefault from '../stores/closeAnimeByDefault';
 	import closeMangaByDefault from '../stores/closeMangaByDefault';
+	import UpcomingAnimeList from '$lib/List/UpcomingAnimeList.svelte';
 
 	export let data;
 
@@ -32,6 +33,21 @@
 {:else}
 	<p />
 
+	<details open={false}>
+		{#if currentUserIdentity.id != -1}
+			<UpcomingAnimeList
+				user={data.user}
+				identity={currentUserIdentity}
+				displayUnresolved={displayingUnresolved}
+			/>
+		{:else}
+			<summary>Upcoming Episodes [...] <small style="opacity: 50%">...s</small></summary>
+			<ul><li>Loading ...</li></ul>
+		{/if}
+	</details>
+
+	<p />
+
 	<details open={animeClosed}>
 		{#if currentUserIdentity.id != -1}
 			<AnimeList
-- 
cgit v1.2.3

