rewrote the Anime.svelte to move out helper functions and clean up code
This commit is contained in:
8
frontend/src/helperTypes/StatusTypes.ts
Normal file
8
frontend/src/helperTypes/StatusTypes.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export type StatusOptions = StatusOption[]
|
||||
|
||||
export type StatusOption = {
|
||||
id: number,
|
||||
aniList: string,
|
||||
mal: string,
|
||||
simkl: string,
|
||||
}
|
13
frontend/src/helperTypes/TableTypes.ts
Normal file
13
frontend/src/helperTypes/TableTypes.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export type TableItems = TableItem[]
|
||||
|
||||
export type TableItem = {
|
||||
id: number
|
||||
service: string
|
||||
progress: number
|
||||
status: string
|
||||
startedAt: string
|
||||
completedAt: string
|
||||
score: number
|
||||
repeat: number
|
||||
notes: string
|
||||
}
|
Reference in New Issue
Block a user