diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 7f4e654..b6fe0c2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -133,6 +133,7 @@ model Image { creationYear Int? fileSize Int? creationDate DateTime? + isDone Boolean? @default(false) albumId String? artistId String? diff --git a/src/app/(normal)/about/page.tsx b/src/app/(normal)/about/page.tsx index 789c5d0..c0a4f29 100644 --- a/src/app/(normal)/about/page.tsx +++ b/src/app/(normal)/about/page.tsx @@ -24,7 +24,7 @@ export default function AboutPage() { } href="mailto:core@fellies.email" label="Email" /> } href="https://signal.me/#eu/ax5Sf75Na5g6c_Cir3Q9c0zv6TnoaQCKAo3dcUo15990aLTlbIBO1qbKqoB7WPuQ" label="Signal" /> } href="https://matrix.to/#/@citali:steffo.dev" label="Matrix" /> - } href="https://fellies.social/@Citali" label="Fediverse" /> + } href="https://fellies.social/@Citali" label="Fediverse" rel="me" /> @@ -43,13 +43,13 @@ export default function AboutPage() { ); } -function SocialLink({ icon, href, label }: { icon: React.ReactNode, href: string, label: string }) { +function SocialLink({ icon, href, label, rel }: { icon: React.ReactNode, href: string, label: string, rel?: string }) { return ( {icon} {label} diff --git a/src/app/(normal)/artists/[artistSlug]/page.tsx b/src/app/(normal)/artists/[artistSlug]/page.tsx index 59e9674..8c515df 100644 --- a/src/app/(normal)/artists/[artistSlug]/page.tsx +++ b/src/app/(normal)/artists/[artistSlug]/page.tsx @@ -27,14 +27,19 @@ export default async function ArtistPage({ params }: { params: { artistSlug: str } return ( -
+
-

Artist: {artist.nickname ? artist.nickname : artist.displayName}

+

+ Artist: {artist.nickname ? artist.nickname : artist.displayName} +

- {artist.description ? artist.description : ""} + {artist.description ?? ""}

- + +
+ +
); diff --git a/src/app/(normal)/categories/[id]/page.tsx b/src/app/(normal)/categories/[id]/page.tsx index b4d2789..8156a07 100644 --- a/src/app/(normal)/categories/[id]/page.tsx +++ b/src/app/(normal)/categories/[id]/page.tsx @@ -25,7 +25,7 @@ export default async function CategoriesSinglePage({ params }: { params: { id: s } return ( -
+

Category: {category.name}

diff --git a/src/app/(normal)/galleries/[gallerySlug]/[albumSlug]/page.tsx b/src/app/(normal)/galleries/[gallerySlug]/[albumSlug]/page.tsx index 7921263..e82e9c8 100644 --- a/src/app/(normal)/galleries/[gallerySlug]/[albumSlug]/page.tsx +++ b/src/app/(normal)/galleries/[gallerySlug]/[albumSlug]/page.tsx @@ -23,7 +23,7 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s include: { images: { include: { colors: { include: { color: true } } }, - orderBy: [{ sortIndex: 'asc' }, { imageName: 'asc' }] + orderBy: [{ sortIndex: 'asc' }, { creationDate: 'desc' }, { imageName: 'asc' }] }, } }) diff --git a/src/app/(normal)/tags/[id]/page.tsx b/src/app/(normal)/tags/[id]/page.tsx index 5382ade..d71c9da 100644 --- a/src/app/(normal)/tags/[id]/page.tsx +++ b/src/app/(normal)/tags/[id]/page.tsx @@ -25,7 +25,7 @@ export default async function TagsSinglePage({ params }: { params: { id: string } return ( -

+

Tag: {tag.name}