added mangaupdates integration

cleanup db related code
cleanup ui
ui eye candy
This commit is contained in:
wea_ondara
2023-09-26 16:47:08 +02:00
parent 641a4425aa
commit 7f28012520
36 changed files with 1435 additions and 168 deletions

View File

@@ -0,0 +1,8 @@
import {AniListMangaListEntry} from '@/data/models/anilist/AniListMangaListEntry';
export type AniListMangaList = {
name: 'Paused' | 'Completed' | 'Planning' | 'Dropped' | 'Reading',
isCustomList: boolean,
isCompletedList: boolean,
entries: AniListMangaListEntry[]
}

View File

@@ -0,0 +1,6 @@
import type {AniListMangaList} from '@/data/models/anilist/AniListMangaList';
export type AniListMangaListCollection = {
lists: AniListMangaList[]
}

View File

@@ -0,0 +1,21 @@
import type {AniListMedia} from '@/data/models/anilist/AniListMedia';
export type AniListMangaListEntry = {
id: number,
mediaId: number,
status: 'PAUSED' | 'COMPLETED' | 'PLANNING' | 'DROPPED' | 'READING',
score: number,
progress: number,
progressVolumes: number,
repeat: number,
priority: number,
private: boolean,
hiddenFromStatusLists: boolean,
customLists: any,
advancedScores: any,
notes: any,
updatedAt: number
startedAt: any,
completedAt: any,
media: AniListMedia,
}

View File

@@ -0,0 +1,26 @@
export type AniListMedia = {
id: number,
title: {
userPreferred: string,
romaji: string,
english: string,
native: string,
}
coverImage: {
extraLarge: string, //url
large: string, //url
}
type: 'MANGA' | string,
format: 'MANGA' | string,
status: 'RELEASING' | string,
episodes: number | null,
volumes: number | null,
chapters: number | null,
averageScore: number,
popularity: number,
isAdult: boolean,
countryOfOrigin: 'JP' | 'KR' | string,
genres: string[],
bannerImage: string, //url
startDate: any,
}

View File

@@ -0,0 +1,5 @@
export type AniListUser = {
id: number,
name: string,
//...
}