rewrote the Anime.svelte to move out helper functions and clean up code

This commit is contained in:
2024-09-05 15:29:42 -04:00
parent aeec8f79b2
commit 77e361b5b2
20 changed files with 616 additions and 473 deletions

View File

@ -93,7 +93,7 @@ body:graphql {
body:graphql:vars {
{
"userId": 413504,
"mediaId": 110,
"mediaId": 1,
"listType": "ANIME"
}
}

View File

@ -19,12 +19,33 @@ headers {
body:graphql {
mutation($mediaId:Int, $progress:Int, $status:MediaListStatus){
SaveMediaListEntry(mediaId:$mediaId, progress:$progress, status:$status){
id
mediaId
progress
userId
media {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
season
seasonYear
status
episodes
nextAiringEpisode {
airingAt
timeUntilAiring
episode
}
isAdult
}
status
score
repeat
notes
startedAt{
year
month
@ -35,14 +56,35 @@ body:graphql {
month
day
}
notes
progress
score
repeat
user {
id
name
avatar{
large
medium
}
statistics{
anime{
count
statuses{
status
count
}
}
}
}
}
}
}
body:graphql:vars {
{
"mediaId": 1,
"progress": 26,
"mediaId": 169417,
"progress": 12,
"status":"COMPLETED"
}
}