From 3c85251b260d7abbb1b3f48f2621be9b4e45124c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 7 Jul 2024 21:55:32 -0700 Subject: feat(tools): sequel catcher --- src/lib/Tools/SequelCatcher.svelte | 112 +++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 src/lib/Tools/SequelCatcher.svelte (limited to 'src/lib/Tools/SequelCatcher.svelte') diff --git a/src/lib/Tools/SequelCatcher.svelte b/src/lib/Tools/SequelCatcher.svelte new file mode 100644 index 00000000..df6c0d3a --- /dev/null +++ b/src/lib/Tools/SequelCatcher.svelte @@ -0,0 +1,112 @@ + + +{#if user === undefined || $identity.id === -2} + +{:else} +
+ {#await mediaList} + + + + {:then mediaListUnchecked} + {#if mediaListUnchecked} + {@const mediaList = mediaListUnchecked.filter( + (media) => media.mediaListEntry?.status === 'COMPLETED' + )} + +
    + {#each filterRelations(mediaList) as { media, unwatchedRelations }} + + + + +
      + {#each unwatchedRelations as relation} +
    • + + + +
    • + {/each} +
    + {/each} +
+ {:else} + + + + {/if} + {:catch} + Error fetching media. + {/await} + +

+ +

+ Thanks to @sevengirl and + @esthereae for the idea! +
+
+{/if} + + -- cgit v1.2.3