From 914623a2fc0804fd74b72cbddbe0d44d07a9e4ce Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 5 Nov 2023 17:53:07 -0800 Subject: feat(manga): display out-of-date volumes --- src/lib/AniList/media.ts | 16 +++++++------- src/lib/List/CleanMangaList.svelte | 9 ++++++++ src/lib/Media/chapters.ts | 3 ++- src/lib/Media/manga.ts | 44 +++++++++++++++++++++++++++++++++----- 4 files changed, 58 insertions(+), 14 deletions(-) (limited to 'src/lib') diff --git a/src/lib/AniList/media.ts b/src/lib/AniList/media.ts index e5deb272..55e3e453 100644 --- a/src/lib/AniList/media.ts +++ b/src/lib/AniList/media.ts @@ -16,6 +16,7 @@ export interface Media { type: string; episodes: number; chapters: number; + volumes: number; format: string; title: { romaji: string; @@ -28,6 +29,7 @@ export interface Media { }; mediaListEntry?: { progress: number; + progressVolumes: number; status: string; score: number; startedAt: { @@ -123,15 +125,13 @@ export const mediaListCollection = async ( type === Type.Anime ? 'ANIME' : 'MANGA' }${includeCompleted ? '' : ', status_not_in: [ COMPLETED ]'}) { lists { entries { media { - id - status - type - episodes - chapters - format - title { romaji english native } + id status type episodes chapters format + title { romaji english native } nextAiringEpisode { episode timeUntilAiring } - mediaListEntry { progress status score(format: POINT_100) startedAt { year } } + mediaListEntry { + progress progressVolumes status + score(format: POINT_100) startedAt { year } + } startDate { year } coverImage { extraLarge } } } } diff --git a/src/lib/List/CleanMangaList.svelte b/src/lib/List/CleanMangaList.svelte index f85cc47b..a046ecc0 100644 --- a/src/lib/List/CleanMangaList.svelte +++ b/src/lib/List/CleanMangaList.svelte @@ -1,5 +1,6 @@