Foro (lectura): índice, temas y mensajes en Next.js

- lib/forum.ts: getForumIndex (categorías + foros visibles con contadores y último
  tema, port de forum/db.py), getForum/getTopics, getTopic/getPosts (acore_web).
- Páginas app/[locale]/forum (índice), /forum/[forumId] (temas), /forum/topic/[topicId]
  (mensajes; render del HTML ya saneado por Django). Enlace "Foros" en la cabecera.
- Catálogo Forum + Nav.forum.

Verificado: /forum 200, foros/temas inexistentes 404, enlace en la cabecera.
Solo lectura; pendiente escribir (crear tema/responder + saneado nh3->TS) y moderación.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 23:45:39 +00:00
parent cceab26999
commit e743d98777
7 changed files with 336 additions and 2 deletions
+3
View File
@@ -19,6 +19,9 @@ export async function Header() {
<Link href="/" className="text-amber-200 hover:text-amber-400">
{t('home')}
</Link>
<Link href="/forum" className="text-amber-200 hover:text-amber-400">
{t('forum')}
</Link>
{loggedIn ? (
<>
<Link href="/account" className="text-amber-200 hover:text-amber-400">