diff options
| author | Fuwn <[email protected]> | 2024-10-09 00:41:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-09 00:41:43 -0700 |
| commit | 998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch) | |
| tree | 50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/lib/Tools/SequelCatcher/Tool.svelte | |
| parent | feat(graphql): add badgeCount field (diff) | |
| download | due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip | |
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/lib/Tools/SequelCatcher/Tool.svelte')
| -rw-r--r-- | src/lib/Tools/SequelCatcher/Tool.svelte | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/src/lib/Tools/SequelCatcher/Tool.svelte b/src/lib/Tools/SequelCatcher/Tool.svelte index 06d635b3..a954b4d7 100644 --- a/src/lib/Tools/SequelCatcher/Tool.svelte +++ b/src/lib/Tools/SequelCatcher/Tool.svelte @@ -1,80 +1,80 @@ <script lang="ts"> - import List from './List.svelte'; - import type { AniListAuthorisation } from '$lib/Data/AniList/identity'; - import userIdentity from '$stores/identity'; - import { type Media, mediaListCollection, Type } from '$lib/Data/AniList/media'; - import LogInRestricted from '$lib/Error/LogInRestricted.svelte'; - import anime from '$stores/anime'; - import identity from '$stores/identity'; - import { onMount } from 'svelte'; - import lastPruneTimes from '$stores/lastPruneTimes'; - import Message from '$lib/Loading/Message.svelte'; - import Skeleton from '$lib/Loading/Skeleton.svelte'; - import Username from '$lib/Layout/Username.svelte'; + import List from './List.svelte'; + import type { AniListAuthorisation } from '$lib/Data/AniList/identity'; + import userIdentity from '$stores/identity'; + import { type Media, mediaListCollection, Type } from '$lib/Data/AniList/media'; + import LogInRestricted from '$lib/Error/LogInRestricted.svelte'; + import anime from '$stores/anime'; + import identity from '$stores/identity'; + import { onMount } from 'svelte'; + import lastPruneTimes from '$stores/lastPruneTimes'; + import Message from '$lib/Loading/Message.svelte'; + import Skeleton from '$lib/Loading/Skeleton.svelte'; + import Username from '$lib/Layout/Username.svelte'; - export let user: AniListAuthorisation; + export let user: AniListAuthorisation; - let mediaList: Promise<Media[]>; + let mediaList: Promise<Media[]>; - onMount(async () => { - if (user === undefined || $identity.id === -2) return; + onMount(async () => { + if (user === undefined || $identity.id === -2) return; - mediaList = mediaListCollection( - user, - $userIdentity, - Type.Anime, - $anime, - $lastPruneTimes.anime, - { - forcePrune: true, - includeCompleted: true, - all: true, - includeRelations: true - } - ); - }); + mediaList = mediaListCollection( + user, + $userIdentity, + Type.Anime, + $anime, + $lastPruneTimes.anime, + { + forcePrune: true, + includeCompleted: true, + all: true, + includeRelations: true + } + ); + }); </script> {#if user === undefined || $identity.id === -2} - <LogInRestricted /> + <LogInRestricted /> {:else} - <div class="card"> - {#await mediaList} - <Message message="Cross-checking media ..." /> + <div class="card"> + {#await mediaList} + <Message message="Cross-checking media ..." /> - <Skeleton - card={false} - count={8} - pad={false} - height={'0.9rem'} - width={'100%'} - list - grid={false} - /> - {:then mediaListUnchecked} - {#if mediaListUnchecked} - <List {mediaListUnchecked} /> - {:else} - <Message message="Cross-checking media ..." /> + <Skeleton + card={false} + count={8} + pad={false} + height={'0.9rem'} + width={'100%'} + list + grid={false} + /> + {:then mediaListUnchecked} + {#if mediaListUnchecked} + <List {mediaListUnchecked} /> + {:else} + <Message message="Cross-checking media ..." /> - <Skeleton - card={false} - count={8} - pad={false} - height={'0.9rem'} - width={'100%'} - list - grid={false} - /> - {/if} - {:catch} - <Message message="" loader="ripple" slot withReload fullscreen>Error fetching media.</Message> - {/await} + <Skeleton + card={false} + count={8} + pad={false} + height={'0.9rem'} + width={'100%'} + list + grid={false} + /> + {/if} + {:catch} + <Message message="" loader="ripple" slot withReload fullscreen>Error fetching media.</Message> + {/await} - <p /> + <p /> - <blockquote style="margin: 0 0 0 1.5rem;"> - Thanks to <Username username="sevengirl" /> and <Username username="esthereae" /> for the idea! - </blockquote> - </div> + <blockquote style="margin: 0 0 0 1.5rem;"> + Thanks to <Username username="sevengirl" /> and <Username username="esthereae" /> for the idea! + </blockquote> + </div> {/if} |