Export PDF : fiche Publication et options d'export (module à partager ou vendre)
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 44s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 57s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 1m41s
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 44s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 57s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 1m41s
- Correctifs du livret : le résumé des scènes est enfin exporté, libellés
accentués (Thèmes, Récompenses, Résolution, Choix et conséquences), stats
Foundry en français (PV, CA, FOR, FP…), encadrés et longues pages de lore
coupables entre deux pages (fini les grands blancs), plus de date d'export
en couverture, titre/auteur/sujet/langue dans les propriétés du PDF.
- Fiche Publication de la campagne (écran /campaigns/:id/publication) :
sous-titre, auteur, version, illustration de couverture, page technique
(système, niveaux, joueurs, durée), argument, avertissements de contenu,
contexte caché et accroches pour le MJ, crédits et licence. Stockée en JSON
(migration V26), API GET/PUT /api/campaigns/{id}/publication, conservée à
l'export/import de campagne (couverture remappée).
- Dans le PDF : couverture illustrée, page de crédits, introduction (page
technique, l'aventure en bref, contexte MJ, accroches, structure). Fiche
vide : livret de campagne inchangé.
- Options d'export (modale au clic sur « Exporter en PDF ») : version MJ ou
joueurs (aucun secret : notes MJ, conséquences, sorties, combats, contexte),
format A4 / A5 / US Letter, mode impression sans aplats, choix des parties,
lore complet ou seulement les pages liées à la campagne.
- Cinq nouvelles fiches du coach d'écriture sur l'écran Publication
(argument, avertissements, contexte caché, accroches, crédits).
Vérifié : core clean verify (1247 tests, dont contenu du PDF par option,
version joueurs sans secret, propriétés du fichier, format Letter, remap de
la couverture à l'import), web build + 357 vitest, lint sans erreur, essai
dans le navigateur (migration V26 sur une base existante, enregistrement de
la fiche, export joueurs A5).
À redéployer : core + web (migration V26).
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
-- Fiche « Publication » d'une campagne (module à vendre ou à partager) : sous-titre,
|
||||
-- auteur, page technique, argument, contexte MJ, accroches, crédits, licence,
|
||||
-- image de couverture… Stockée en JSON (texte libre, évolutif) ; NULL = jamais renseignée.
|
||||
ALTER TABLE campaigns ADD COLUMN publication TEXT;
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Format A5 : surcharges ajoutees apres export.css (page etroite, couverture sur une seule page).
|
||||
ATTENTION : ce CSS est injecte tel quel dans le document XML — ni esperluette ni chevron ici. */
|
||||
.cover { padding-top: 3.2cm; }
|
||||
.cover.has-art { padding-top: .3cm; }
|
||||
.cover-kicker { font-size: 8.5pt; letter-spacing: .25em; }
|
||||
.cover-title { font-size: 21pt; margin-top: .3cm; }
|
||||
.cover-subtitle { font-size: 11pt; margin-top: .2cm; }
|
||||
.cover-rule { margin: .35cm auto; }
|
||||
.cover-art { margin: .1cm 0 .35cm; }
|
||||
.cover-edition { margin-top: .25cm; }
|
||||
.cover-author { margin-top: .5cm; font-size: 11pt; }
|
||||
.cover-version { margin-top: .15cm; }
|
||||
h1.part, h1.toc-title { font-size: 16pt; }
|
||||
.arc-head { font-size: 12.5pt; }
|
||||
.chapter-head { font-size: 11.5pt; }
|
||||
.scene { margin-left: .15cm; }
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Mode impression : surcharges ajoutees apres export.css. Aucun aplat de couleur (economie
|
||||
d'encre, rendu net en noir et blanc) ; les filets et bordures portent la hierarchie.
|
||||
ATTENTION : ce CSS est injecte tel quel dans le document XML — ni esperluette ni chevron ici. */
|
||||
.arc-head { background: none; color: #1f1c33; border-top: 2pt solid #2e2a4a; border-bottom: 2pt solid #2e2a4a;
|
||||
border-radius: 0; }
|
||||
.arc-head .eyebrow-light { color: #6d6787; }
|
||||
.chapter-head { background: none; border-left: 4pt solid #555; }
|
||||
.scene, .room, .card { background: none; }
|
||||
.readaloud { background: none; }
|
||||
.secret { background: none; border: 1pt dashed #777; }
|
||||
.combat { background: none; border-left: 3pt solid #555; }
|
||||
.warning { background: none; border-left: 3pt solid #555; }
|
||||
.stats-table thead th, .stats-table tbody th, .stat-array th { background: none; }
|
||||
.stats-table tr.alt td { background: none; }
|
||||
@@ -1,20 +1,41 @@
|
||||
@page { size: A4; margin: 2.2cm 1.7cm 2cm;
|
||||
@page { size: __PAGE_SIZE__; margin: __PAGE_MARGIN__;
|
||||
@top-center { content: '__HEADER__'; font-family: 'DejaVu Sans', sans-serif; font-size: 7.5pt;
|
||||
letter-spacing: .22em; text-transform: uppercase; color: #b3a9d6; }
|
||||
@bottom-center { content: counter(page); font-family: 'DejaVu Sans', sans-serif; font-size: 9pt; color: #999; } }
|
||||
@page:first { @top-center { content: none; } } /* NOSONAR css:S4662 — pseudo-page CSS paged media, supportee par openhtmltopdf */
|
||||
body { font-family: 'DejaVu Serif', serif; font-size: 10pt; color: #26243a; line-height: 1.5; }
|
||||
body { font-family: 'DejaVu Serif', serif; font-size: __BODY_PT__; color: #26243a; line-height: 1.5; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
/* --- Couverture --- */
|
||||
.cover { text-align: center; padding-top: 5.5cm; page-break-after: always; }
|
||||
.cover .subtitle { font-family: 'DejaVu Sans', sans-serif; font-size: 11pt; letter-spacing: .35em;
|
||||
.cover.has-art { padding-top: 1.2cm; }
|
||||
.cover-kicker { font-family: 'DejaVu Sans', sans-serif; font-size: 11pt; letter-spacing: .35em;
|
||||
text-transform: uppercase; color: #8a7bc8; }
|
||||
.cover-subtitle { font-family: 'DejaVu Sans', sans-serif; font-size: 13pt; color: #5b5180; margin-top: .3cm; }
|
||||
.cover-art { margin: .2cm 0 .6cm; }
|
||||
.cover-art img { border: 1pt solid #cfc9e0; }
|
||||
.cover-edition { margin-top: .4cm; font-family: 'DejaVu Sans', sans-serif; font-size: 9pt; letter-spacing: .2em;
|
||||
text-transform: uppercase; color: #a08b4f; }
|
||||
.cover-author { margin-top: 1cm; font-family: 'DejaVu Sans', sans-serif; font-size: 12pt; color: #2e2a4a; }
|
||||
.cover-version { margin-top: .3cm; font-family: 'DejaVu Sans', sans-serif; font-size: 8.5pt; color: #b0aac4; }
|
||||
.cover-title { font-family: 'DejaVu Sans', sans-serif; font-size: 30pt; text-transform: uppercase;
|
||||
letter-spacing: .04em; color: #2e2a4a; margin: .45cm 0 0; }
|
||||
.cover-rule { width: 3.6cm; border-bottom: 2.5pt solid #8a7bc8; margin: .5cm auto; }
|
||||
.cover-meta { font-family: 'DejaVu Sans', sans-serif; font-size: 9.5pt; color: #8076a3; letter-spacing: .06em; }
|
||||
.cover-desc { margin: 1.1cm auto 0; max-width: 12.5cm; color: #444; }
|
||||
.cover-date { margin-top: 1.4cm; font-family: 'DejaVu Sans', sans-serif; font-size: 8.5pt; color: #b0aac4; }
|
||||
/* --- Page de credits (verso de couverture) --- */
|
||||
.credits-page { page-break-after: always; padding-top: 1cm; font-size: 9pt; }
|
||||
.credits-title { font-family: 'DejaVu Sans', sans-serif; font-size: 14pt; font-weight: bold; color: #2e2a4a; }
|
||||
.credits-subtitle { font-family: 'DejaVu Sans', sans-serif; color: #5b5180; margin-bottom: .5cm; }
|
||||
.legal { margin-top: .8cm; padding-top: .3cm; border-top: 1pt solid #d8d2e8; font-size: 8pt; color: #555; }
|
||||
/* --- Introduction (module publie) --- */
|
||||
h2.section-head { page-break-after: avoid; font-family: 'DejaVu Sans', sans-serif; font-size: 12.5pt;
|
||||
color: #463b78; border-bottom: 1pt solid #d8d2e8; padding-bottom: 2pt; margin: .55cm 0 .2cm; }
|
||||
p.prose { margin: 0 0 .2cm; text-align: justify; }
|
||||
ul.prose-list { margin: .05cm 0 .25cm; padding-left: .55cm; }
|
||||
ul.prose-list li { margin: 0 0 .08cm; }
|
||||
.tech-table { width: auto; min-width: 60%; }
|
||||
.warning { background: #fff6e8; border-left: 3pt solid #d39a3a; }
|
||||
.warning .box-label { color: #a8701f; }
|
||||
/* --- Sommaire --- */
|
||||
.toc-page { page-break-after: always; }
|
||||
h1.toc-title { font-family: 'DejaVu Sans', sans-serif; font-size: 20pt; text-transform: uppercase;
|
||||
@@ -55,9 +76,11 @@ h3.folder { page-break-after: avoid; font-family: 'DejaVu Sans', sans-serif; col
|
||||
.eyebrow-light { color: #c9c0e8; }
|
||||
.scene-meta { font-style: italic; color: #6d6787; margin: -.05cm 0 .16cm; }
|
||||
/* --- Encadres speciaux (codes visuels des livres de JdR) --- */
|
||||
.box { border-radius: 3pt; padding: .2cm .35cm; margin: .2cm 0; page-break-inside: avoid; }
|
||||
/* Encadres coupables entre deux pages (un long secret MJ ne laisse plus une demi-page blanche) ;
|
||||
le libelle reste solidaire de sa premiere ligne. */
|
||||
.box { border-radius: 3pt; padding: .2cm .35cm; margin: .2cm 0; page-break-inside: auto; }
|
||||
.box-label { font-family: 'DejaVu Sans', sans-serif; font-size: 7.5pt; text-transform: uppercase;
|
||||
letter-spacing: .1em; font-weight: bold; font-style: normal; margin-bottom: .06cm; }
|
||||
letter-spacing: .1em; font-weight: bold; font-style: normal; margin-bottom: .06cm; page-break-after: avoid; }
|
||||
.readaloud { background: #faf6ea; border-top: 2pt solid #cbbd93; border-bottom: 2pt solid #cbbd93;
|
||||
border-radius: 0; font-style: italic; }
|
||||
.readaloud .box-label { color: #a08b4f; }
|
||||
@@ -78,6 +101,7 @@ div.field-label { margin: .12cm 0 .06cm; padding-right: 0; }
|
||||
/* --- Cartes (fiches PNJ/ennemis, pages de lore) --- */
|
||||
.card { page-break-inside: avoid; border: 1pt solid #e3e0ee; border-radius: 4pt;
|
||||
padding: .32cm .4cm; margin: .32cm 0; background: #fcfcfe; }
|
||||
.card.flow { page-break-inside: auto; }
|
||||
.card-body { display: block; }
|
||||
.persona { width: 100%; border-collapse: collapse; }
|
||||
.persona-portrait { width: 3cm; vertical-align: top; padding: 0 .45cm 0 0; }
|
||||
@@ -99,6 +123,7 @@ div.field-label { margin: .12cm 0 .06cm; padding-right: 0; }
|
||||
.stats-table thead th { background: #f1eef9; color: #4a3f7a; border-bottom: 1pt solid #d8d1ec; }
|
||||
.stats-table tbody th { width: 32%; color: #555; font-weight: bold; background: #f8f7fc; }
|
||||
.stats-table tr.alt td { background: #f6f5fa; }
|
||||
.stats-table tr { page-break-inside: avoid; }
|
||||
.stats-table .roll-col { width: 1.8cm; text-align: center; font-weight: bold; color: #4a3f7a; }
|
||||
.stats-table .entry-detail { color: #555; font-size: 8.5pt; }
|
||||
.stat-array { border-collapse: collapse; font-family: 'DejaVu Sans', sans-serif; font-size: 9pt;
|
||||
|
||||
Reference in New Issue
Block a user