From 0a1391674f75d1d04753e24ca50d497afdbf7eed Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Wed, 14 Jan 2026 22:18:10 +0100 Subject: [PATCH] feat(meme): add `ViewCounter` component to meme detail pages Integrate the `ViewCounter` component into meme standard and modal detail pages to track and display content views. --- frontend/src/app/(dashboard)/@modal/(.)meme/[slug]/page.tsx | 2 ++ frontend/src/app/(dashboard)/meme/[slug]/page.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frontend/src/app/(dashboard)/@modal/(.)meme/[slug]/page.tsx b/frontend/src/app/(dashboard)/@modal/(.)meme/[slug]/page.tsx index 6645116..2f3d59f 100644 --- a/frontend/src/app/(dashboard)/@modal/(.)meme/[slug]/page.tsx +++ b/frontend/src/app/(dashboard)/@modal/(.)meme/[slug]/page.tsx @@ -10,6 +10,7 @@ import { DialogTitle, } from "@/components/ui/dialog"; import { Spinner } from "@/components/ui/spinner"; +import { ViewCounter } from "@/components/view-counter"; import { ContentService } from "@/services/content.service"; import type { Content } from "@/types/content"; @@ -45,6 +46,7 @@ export default function MemeModal({ ) : content ? (
+
) : ( diff --git a/frontend/src/app/(dashboard)/meme/[slug]/page.tsx b/frontend/src/app/(dashboard)/meme/[slug]/page.tsx index 1c978f6..62df4ba 100644 --- a/frontend/src/app/(dashboard)/meme/[slug]/page.tsx +++ b/frontend/src/app/(dashboard)/meme/[slug]/page.tsx @@ -4,6 +4,7 @@ import Link from "next/link"; import { notFound } from "next/navigation"; import { ContentCard } from "@/components/content-card"; import { Button } from "@/components/ui/button"; +import { ViewCounter } from "@/components/view-counter"; import { ContentService } from "@/services/content.service"; export const revalidate = 3600; // ISR: Revalider toutes les heures @@ -40,6 +41,7 @@ export default async function MemePage({ return (
+