From f1767b68b0c4bc3d8e2d5e890bf742c910582551 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 29 Sep 2023 17:11:41 -0700 Subject: feat(completed) add manga, move anime --- src/routes/+layout.svelte | 4 +- src/routes/+page.svelte | 13 ---- src/routes/completed/+page.svelte | 121 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 14 deletions(-) create mode 100644 src/routes/completed/+page.svelte (limited to 'src/routes') diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8b802755..4080d5be 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -50,7 +50,9 @@

- 「 HomeManga & LN Updates • + 「 HomeCompleted • + Manga & LN Updates + • ToolsSettings

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2d4fed88..9204eb1f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -6,7 +6,6 @@ import UpcomingAnimeList from '$lib/List/UpcomingAnimeList.svelte'; import userIdentity from '../stores/userIdentity'; import settings from '../stores/settings'; - import WatchingAnimeList from '$lib/List/WatchingAnimeList.svelte'; import { lastActivityDate } from '$lib/AniList/activity'; import ListTitle from '$lib/List/ListTitle.svelte'; @@ -116,18 +115,6 @@ {/if} - - {#if $settings.showCompletedAnime} -
- {#if currentUserIdentity.id != -1} - - {:else} - - -
  • Loading ...
- {/if} -
- {/if} {/if} diff --git a/src/routes/completed/+page.svelte b/src/routes/completed/+page.svelte new file mode 100644 index 00000000..4c2537a8 --- /dev/null +++ b/src/routes/completed/+page.svelte @@ -0,0 +1,121 @@ + + +{#if !lastActivityWasToday} +

+ You don't have any new activity statuses from the past day! Create one within {timeLeftToday()} + to keep your streak! +

+{/if} + +
+ {#if data.user === undefined} + Please log in to view due media. + {:else} +
+ {#if currentUserIdentity.id != -1} + + {:else} + + +
  • Loading ...
+ {/if} +
+ +
+ {#if currentUserIdentity.id != -1} + + {:else} + + +
  • Loading ...
+ {/if} +
+ {/if} +
+ + -- cgit v1.2.3