From 631bd8b885261383176473f07f710976186799cb Mon Sep 17 00:00:00 2001 From: john-okeefe Date: Wed, 26 Mar 2025 19:35:08 -0400 Subject: [PATCH] made increment and decrement buttons automate status and datecompleted --- frontend/src/helperComponents/Anime.svelte | 1471 ++++++++++---------- 1 file changed, 764 insertions(+), 707 deletions(-) diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 3156a6e..a530946 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -1,270 +1,129 @@
-

- {title} -

-
-
- {title} Cover Image - -
- -
-
-
- -
- - + {title} + +
+
+ {title} Cover Image - -
-
- / {currentAniListAnime.data.MediaList.media.nextAiringEpisode - .episode !== 0 - ? currentAniListAnime.data.MediaList.media.nextAiringEpisode - .episode - 1 - : currentAniListAnime.data.MediaList.media.episodes} -
- {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} -
- of {currentAniListAnime.data.MediaList.media.episodes} -
- {/if} +
-
- - + +
+
+ / {currentAniListAnime.data.MediaList.media + .nextAiringEpisode.episode !== 0 + ? currentAniListAnime.data.MediaList.media + .nextAiringEpisode.episode - 1 + : currentAniListAnime.data.MediaList.media.episodes} +
+ {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} +
+ of {currentAniListAnime.data.MediaList.media + .episodes} +
+ {/if} +
+
+ + + bind:value={startingAnilistStatusOption} + > + {#each statusOptions as option} + + {/each} + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
-
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- -
-
- - + + on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home + +
- - + -
-
- -
-
- +
+
- - - - Sync Changes - - + + on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home + +
- -
-

Summary

-

{@html currentAniListAnime.data.MediaList.media.description}

-
+
+

Summary

+

{@html currentAniListAnime.data.MediaList.media.description}

+