OpenMind v1 : cartes mentales libres, local-first et dockerisees
Premiere version fonctionnelle, demarrable avec `docker compose up -d --build` sur http://localhost:8080. Architecture - Frontend React 18 / TypeScript strict / Vite / Tailwind, canvas @xyflow/react, etat Zustand, persistance IndexedDB via Dexie, auto-layout dagre. - Backend FastAPI / SQLAlchemy 2 / Pydantic v2 / SQLite, qui sert aussi les fichiers statiques du frontend compile. - Image Docker multi-stage, un seul service, bind mount ./data pour SQLite. Local-first Les cartes restent dans le navigateur. Le serveur ne recoit une carte que sur demande explicite de partage. Partage Deux secrets distincts : share_token public en lecture seule dans l'URL, et management_token conserve uniquement cote client, transmis en en-tete pour les modifications et stocke hashe en base. Fonctionnalites Tableau de bord, editeur complet (undo/redo, copier/coller, raccourcis, branches repliables, recherche), 9 themes, 4 dispositions automatiques, panneau de proprietes, import/export .mmap, export PNG/SVG/PDF, impression, page publique en lecture seule, PWA. Qualite 25 tests pytest et 43 tests vitest au vert, ruff et ESLint sans erreur, TypeScript strict sans erreur. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
46
frontend/src/styles/print.css
Normal file
46
frontend/src/styles/print.css
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Mode impression : seule la carte reste visible. */
|
||||
@media print {
|
||||
.no-print,
|
||||
.no-print * {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: auto !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
.print-surface {
|
||||
position: static !important;
|
||||
width: 100% !important;
|
||||
height: 100vh !important;
|
||||
border: 0 !important;
|
||||
box-shadow: none !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.react-flow__minimap,
|
||||
.react-flow__controls,
|
||||
.react-flow__background,
|
||||
.react-flow__attribution {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.print-title {
|
||||
display: block !important;
|
||||
margin-bottom: 6mm;
|
||||
font-size: 14pt;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.print-title {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user