diff --git a/src/components/albumPage/TrackList.tsx b/src/components/albumPage/TrackList.tsx index 8376ae4..972c484 100644 --- a/src/components/albumPage/TrackList.tsx +++ b/src/components/albumPage/TrackList.tsx @@ -33,13 +33,13 @@ export default function TrackList(props: Props) {
-
+
{discs.length > 0 && discs[current].body?.split('\n').map((track, i) => ( - + ))} @@ -50,4 +50,4 @@ export default function TrackList(props: Props) { ) -} +} \ No newline at end of file diff --git a/src/pages/album/[id].astro b/src/pages/album/[id].astro index 1183bf9..e328567 100644 --- a/src/pages/album/[id].astro +++ b/src/pages/album/[id].astro @@ -73,10 +73,10 @@ const { currentLocale } = Astro @@ -100,21 +100,23 @@ const { currentLocale } = Astro } { - (album?.artists.length ?? 0) > 0 && ( + (album?.artistList.length ?? 0) > 0 && ( - - + + ) } - + - + - + @@ -157,16 +159,16 @@ const { currentLocale } = Astro ) } { - (album?.games.length ?? 0) > 0 && ( + (album?.gameList.length ?? 0) > 0 && ( - + @@ -174,16 +176,16 @@ const { currentLocale } = Astro ) } { - (album?.animations.length ?? 0) > 0 && ( + (album?.animList.length ?? 0) > 0 && ( - + @@ -192,13 +194,23 @@ const { currentLocale } = Astro } - +
{i + 1} {(i + 1).toString().padStart(2, '0')}. {track}
{m.artists()}{album?.artists.map(({ artist }) => artist.name).join(', ')}{m.artists()}{album?.artistList.map(({ artist }) => artist.name).join(', ')}
{m.classification()}{m.classification()} { [ - album?.categories.map(({ categoryName }) => (m as any)[`${categoryName}Osts`]()).join(' & '), - album?.classifications.map(({ classificationName }) => classificationName).join(', ') + album?.categoryList + .map(({ categoryName }) => (m as any)[`${categoryName}Osts`]()) + .join(' & '), + album?.classificationList.map(({ classificationName }) => classificationName).join(', ') ] .filter((f) => f !== '') .join(' - ') @@ -124,7 +126,7 @@ const { currentLocale } = Astro { album?.label && (
{m.publishedBy()}{m.publishedBy()} {album?.label} @@ -134,11 +136,11 @@ const { currentLocale } = Astro ) } { - (album?.platforms.length ?? 0) > 0 && ( + (album?.platformList.length ?? 0) > 0 && (
{m.platforms()}{m.platforms()} - {album?.platforms.map(({ platform }, i) => ( + {album?.platformList.map(({ platform }, i) => ( {id === '29' ? ( @@ -149,7 +151,7 @@ const { currentLocale } = Astro {platform.name} )} - {i !== album?.platforms.length - 1 && ', '} + {i !== album?.platformList.length - 1 && ', '} ))}
{m.games()}{m.games()} - {album?.games.map(({ game }, i) => ( + {album?.gameList.map(({ game }, i) => ( {game.name} - {i !== album?.games.length - 1 && ', '} + {i !== album?.gameList.length - 1 && ', '} ))}
{m.animations()}{m.animations()} - {album?.animations.map(({ animation }, i) => ( + {album?.animList.map(({ animation }, i) => ( {animation.title} - {i !== album?.animations.length - 1 && ', '} + {i !== album?.animList.length - 1 && ', '} ))}
{m.avgRating()}{m.avgRating()}
+ { + album?.vgmdb && ( +
+ {m.checkVGMDB()}: + + {'VGMdb'} + +
+ ) + }
diff --git a/src/pages/index.astro b/src/pages/index.astro index 3e31235..1d4eda7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,7 +27,7 @@ const lastAlbums = await prismaClient.albums.findMany({

{m.recentReleases()}

-
+
{ recentAlbums.map((album) => ( @@ -42,7 +42,7 @@ const lastAlbums = await prismaClient.albums.findMany({

{m.lastAdded()}

-
+
{ lastAlbums.map((album) => ( diff --git a/src/pages/last-added/[...page].astro b/src/pages/last-added/[...page].astro index 7a1ac55..61c02da 100644 --- a/src/pages/last-added/[...page].astro +++ b/src/pages/last-added/[...page].astro @@ -39,7 +39,7 @@ const listProps = { fullPageList, page }

{m.lastAdded()}

-
+
{ lastAlbums.map((album) => (