fix(media): carte D3 + chatbot restaurés + refonte toolbar + nav

- fix: server route /data/auteurs-pensees.json (contournement bug manifest Nitro)
- fix: contentView indépendant du layoutMode — boutons CARTE PRINCIPALE / bonpote / RAG backend ne modifient pas l'état carte-full/chatbot-full
- feat: bouton CARTE PRINCIPALE → restaure la vue D3 + chatbot split
- fix: /rag redirige vers /media (301)
- feat: nav "RAG en construction" → "recherche-média" lien /media

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jules Neny
2026-05-22 15:24:29 +02:00
parent d584d04e3d
commit 538c490e76
4 changed files with 234 additions and 228 deletions

View File

@@ -0,0 +1,10 @@
import { readFileSync } from 'node:fs'
import { join } from 'node:path'
export default defineEventHandler(() => {
const path = join(process.cwd(), 'public', 'data', 'auteurs-pensees.json')
const raw = readFileSync(path, 'utf-8')
setResponseHeader(useEvent(), 'content-type', 'application/json; charset=utf-8')
setResponseHeader(useEvent(), 'cache-control', 'public, max-age=300')
return raw
})