s/anime/TV\/Anime

main
idylls 1 year ago
parent bae0ce97ad
commit 90a565f61d
Signed by: idylls
GPG Key ID: 8A7167CBC2CC9F0F

@ -45,8 +45,8 @@ const byStatusSorted = (items: LogBase[]) => {
return { dropped, wantTo, finished, inProgress };
};
type Anime = LogBase & { season?: number };
const ANIME: Anime[] = [
type Show = LogBase & { season?: number };
const SHOWS: Show[] = [
{
name: "Violet Evergarden",
rating: 10,
@ -101,7 +101,7 @@ const ANIME: Anime[] = [
},
{
name: "The Witcher",
rating: 9,
rating: 8,
},
{
name: "Arcane",
@ -117,7 +117,7 @@ const ANIME: Anime[] = [
},
];
const renderAnime = () => {
const renderSection = (title: string, items: Anime[]) => {
const renderSection = (title: string, items: Show[]) => {
let out = `<section><h3>${title}</h3>`;
for (const a of items) {
out += `<div class="log anime"><h4>${a.name}`;
@ -147,7 +147,7 @@ const renderAnime = () => {
return out;
};
const { wantTo, dropped, finished, inProgress } = byStatusSorted(ANIME);
const { wantTo, dropped, finished, inProgress } = byStatusSorted(SHOWS);
return `
<section>

Loading…
Cancel
Save