added mangaupdates integration
cleanup db related code cleanup ui ui eye candy
This commit is contained in:
8
src/data/models/anilist/AniListMangaList.ts
Normal file
8
src/data/models/anilist/AniListMangaList.ts
Normal 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[]
|
||||
}
|
||||
6
src/data/models/anilist/AniListMangaListCollection.ts
Normal file
6
src/data/models/anilist/AniListMangaListCollection.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type {AniListMangaList} from '@/data/models/anilist/AniListMangaList';
|
||||
|
||||
export type AniListMangaListCollection = {
|
||||
lists: AniListMangaList[]
|
||||
}
|
||||
|
||||
21
src/data/models/anilist/AniListMangaListEntry.ts
Normal file
21
src/data/models/anilist/AniListMangaListEntry.ts
Normal 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,
|
||||
}
|
||||
26
src/data/models/anilist/AniListMedia.ts
Normal file
26
src/data/models/anilist/AniListMedia.ts
Normal 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,
|
||||
}
|
||||
5
src/data/models/anilist/AniListUser.ts
Normal file
5
src/data/models/anilist/AniListUser.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type AniListUser = {
|
||||
id: number,
|
||||
name: string,
|
||||
//...
|
||||
}
|
||||
Reference in New Issue
Block a user