mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Compare commits
No commits in common. "3a6fe133da16c04efa0fa00f77c84c57c69acec6" and "aef06c67378fb29b1bc70ce50fa27c88d6793968" have entirely different histories.
3a6fe133da
...
aef06c6737
1 changed files with 3 additions and 21 deletions
|
|
@ -35,7 +35,7 @@ const album = await prismaClient.albums.findUnique({
|
|||
categories: { select: { categoryName: true } },
|
||||
classifications: { select: { classificationName: true } },
|
||||
platforms: { select: { platform: { select: { id: true, name: true } } } },
|
||||
games: { select: { game: { select: { slug: true, name: true,series: {select: {series: {select: {slug: true, name: true}}}} } } } },
|
||||
games: { select: { game: { select: { slug: true, name: true } } } },
|
||||
animations: { select: { animation: { select: { id: true, title: true } } } },
|
||||
stores: { select: { url: true, provider: true }, where: { NOT: { provider: 'SOON' } } },
|
||||
discs: { select: { number: true, body: true } },
|
||||
|
|
@ -51,7 +51,6 @@ const album = await prismaClient.albums.findUnique({
|
|||
|
||||
if (!album) return Astro.redirect("/404");
|
||||
|
||||
const series = album.games.map(g => g.game.series).flat().map(s => s.series)
|
||||
const { currentLocale } = Astro
|
||||
const coverImage = await getImage({
|
||||
src: `https://cdn.sittingonclouds.net/album/${album?.id}.png`,
|
||||
|
|
@ -187,7 +186,7 @@ const coverImage = await getImage({
|
|||
{platform.name}
|
||||
</span>
|
||||
) : (
|
||||
<a class='btn btn-link p-0' href={`/platform/${platform.id}`}>
|
||||
<a class='btn btn-link p-0' href={`/platform/${id}`}>
|
||||
{platform.name}
|
||||
</a>
|
||||
)}
|
||||
|
|
@ -198,23 +197,6 @@ const coverImage = await getImage({
|
|||
</tr>
|
||||
)
|
||||
}
|
||||
{
|
||||
series.length > 0 && (
|
||||
<tr>
|
||||
<th class='mr-2'>{m.series()}</th>
|
||||
<td>
|
||||
{series.map((s, i) => (
|
||||
<Fragment key={s.slug}>
|
||||
<a class='btn btn-link p-0' href={`/series/${s.slug}`}>
|
||||
{s.name}
|
||||
</a>
|
||||
{i !== series.length - 1 && ', '}
|
||||
</Fragment>
|
||||
))}
|
||||
</td>
|
||||
</tr>
|
||||
)
|
||||
}
|
||||
{
|
||||
(album?.games.length ?? 0) > 0 && (
|
||||
<tr>
|
||||
|
|
@ -239,7 +221,7 @@ const coverImage = await getImage({
|
|||
<td>
|
||||
{album?.animations.map(({ animation }, i) => (
|
||||
<Fragment key={id}>
|
||||
<a class='btn btn-link p-0' href={`/anim/${animation.id}`}>
|
||||
<a class='btn btn-link p-0' href={`/anim/${id}`}>
|
||||
{animation.title}
|
||||
</a>
|
||||
{i !== album?.animations.length - 1 && ', '}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue