|
|
@ -41,7 +41,7 @@
|
|
|
|
import { AddAnimeServiceToTable } from "../helperModules/AddAnimeServiceToTable.svelte";
|
|
|
|
import { AddAnimeServiceToTable } from "../helperModules/AddAnimeServiceToTable.svelte";
|
|
|
|
import { CheckIfAniListLoggedInAndLoadWatchList } from "../helperModules/CheckIfAniListLoggedInAndLoadWatchList.svelte";
|
|
|
|
import { CheckIfAniListLoggedInAndLoadWatchList } from "../helperModules/CheckIfAniListLoggedInAndLoadWatchList.svelte";
|
|
|
|
import Datepicker from "./Datepicker.svelte";
|
|
|
|
import Datepicker from "./Datepicker.svelte";
|
|
|
|
import { Badge } from "flowbite-svelte";
|
|
|
|
import {Badge, Tooltip} from "flowbite-svelte";
|
|
|
|
const re = /^([0-9]{4})-([0-9]{2})-([0-9]{2})/;
|
|
|
|
const re = /^([0-9]{4})-([0-9]{2})-([0-9]{2})/;
|
|
|
|
|
|
|
|
|
|
|
|
let isAniListLoggedIn: boolean;
|
|
|
|
let isAniListLoggedIn: boolean;
|
|
|
@ -213,9 +213,8 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
await AniListUpdateEntry(body).then(
|
|
|
|
await AniListUpdateEntry(body).then(
|
|
|
|
(value: AniListGetSingleAnime) => {
|
|
|
|
(value: AniListGetSingleAnime) => {
|
|
|
|
/* TODO in future when you inevitably add tags to typescript, until Anilist fixes the api bug
|
|
|
|
value.data.MediaList.media.tags =
|
|
|
|
where tags break the SaveMediaListEntry return, you'll want to use this delete line
|
|
|
|
currentAniListAnime.data.MediaList.media.tags;
|
|
|
|
delete value.data.MediaList.media.tags */
|
|
|
|
|
|
|
|
aniListAnime.update((newValue) => {
|
|
|
|
aniListAnime.update((newValue) => {
|
|
|
|
newValue = value;
|
|
|
|
newValue = value;
|
|
|
|
return newValue;
|
|
|
|
return newValue;
|
|
|
@ -445,7 +444,6 @@
|
|
|
|
currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode -
|
|
|
|
currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode -
|
|
|
|
1;
|
|
|
|
1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(currentAniListAnime.data.MediaList.media);
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<form on:submit|preventDefault={handleSubmit} class="container pt-3 pb-10">
|
|
|
|
<form on:submit|preventDefault={handleSubmit} class="container pt-3 pb-10">
|
|
|
@ -833,9 +831,13 @@
|
|
|
|
<div class="mt-2">
|
|
|
|
<div class="mt-2">
|
|
|
|
{#each currentAniListAnime.data.MediaList.media.tags as tag}
|
|
|
|
{#each currentAniListAnime.data.MediaList.media.tags as tag}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Badge large border color="blue" class="m-1 w-40"
|
|
|
|
<Badge large border color="blue" class="m-1 w-52">
|
|
|
|
>{tag.name}</Badge
|
|
|
|
<div>
|
|
|
|
>
|
|
|
|
{tag.name} -
|
|
|
|
|
|
|
|
<span class="text-xs">{tag.rank}%</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</Badge>
|
|
|
|
|
|
|
|
<Tooltip>{tag.description}</Tooltip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/each}
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|