Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
run: node build.mjs --check
- name: Test motori frontend
run: node --test test/engines.test.mjs
- name: Test dei testi dell'interfaccia in più lingue
run: node --test test/i18n.test.mjs
- name: Test pagine della biglietteria
run: node --test test/biglietteria.test.mjs test/bgl-*.test.mjs
- name: Test del programma di sala
Expand Down Expand Up @@ -84,12 +86,13 @@ jobs:
run: |
mkdir -p _site
rsync -a --exclude='.DS_Store' --exclude='README.md' --exclude='orchestre/test/' --exclude='orchestre/demo/' \
--exclude='i18n/it.json' --exclude='i18n/lingue.json' --exclude='i18n/cricchetto.json' \
.nojekyll 404.html CNAME LICENSE \
index.html app app.js icons.js icons-piedi.js icons-pro.js sw.js manifest.webmanifest \
robots.txt sitemap.xml llms.txt 4d1fdc8b5b357ff5353a9e928c187bff.txt \
favicon.ico favicon.svg favicon-48.png favicon-96.png \
apple-touch-icon.png icon-192.png icon-512.png logo-512.png preview.png \
accedi alternative biglietteria consulenza guida i img inventario orchestre privacy produzione programma richiesta rider-tecnico-completo stage-plot termini vendor voce workshop \
accedi alternative biglietteria consulenza guida i i18n img inventario orchestre privacy produzione programma richiesta rider-tecnico-completo stage-plot termini vendor voce workshop \
./_site/
- name: Timbra il build ID (SHA del commit) negli asset pubblicati (audit L-03)
# il placeholder sta nella shell dell'editor (app/index.html), non nella landing
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-controlli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: node build.mjs --check
- name: Test motori frontend
run: node --test test/engines.test.mjs
- name: Test dei testi dell'interfaccia in più lingue
run: node --test test/i18n.test.mjs
- name: Test pagine della biglietteria
run: node --test test/biglietteria.test.mjs test/bgl-*.test.mjs
- name: Test del programma di sala
Expand Down
162 changes: 147 additions & 15 deletions app.js

Large diffs are not rendered by default.

310 changes: 155 additions & 155 deletions app/index.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";
import { applicaMarcatori, chiaviJs, sottoinsiemeJs, jsonSicuro, scriptApp } from "./scripts/i18n-build.mjs";

const root = dirname(fileURLToPath(import.meta.url));
const r = (p) => join(root, p);
Expand All @@ -39,6 +40,8 @@ const INJECTIONS = [
{ marker: "/*__DOCUMENTO_ESTERO_EN__*/", file: "src/documento-estero-en.js" },
/* icone «in piedi» (19/11/2026): secondo file pigro icons-piedi.js, attesa e stop dell'export (lotto L1 dello split di icons.js) */
{ marker: "/*__ICONE_PIEDI__*/", file: "src/icone-piedi.js" },
/* testi dell'interfaccia in più lingue (30/11/2026, lotto I18N L2): t(), td(), applicazione ai testi dell'HTML, pseudo-lingua */
{ marker: "/*__I18N__*/", file: "src/i18n.js" },
];
const PIANTA_PUBBLICA = "biglietteria/pianta-posti.js";
function piantaPubblica() {
Expand All @@ -58,6 +61,17 @@ function build() {
if (!out.includes("/*__APP_VERSION__*/")) throw new Error("Marcatore mancante: /*__APP_VERSION__*/");
out = out.replaceAll("/*__APP_VERSION__*/", version);

/* I18N (30/11/2026): i18n/it.json è la fonte dei testi. Nell'HTML ogni ⟦chiave⟧ diventa il testo italiano (e l'elemento
si segna per le altre lingue); dentro app.js finiscono SOLO le chiavi usate da JS con t()/td(). L'inglese è un file a parte. */
const it = JSON.parse(readFileSync(r("i18n/it.json"), "utf8"));
const lingue = JSON.parse(readFileSync(r("i18n/lingue.json"), "utf8"));
const usateJs = chiaviJs(scriptApp(out));
const mark = applicaMarcatori(out, it);
out = mark.html;
const buildI18n = { it: sottoinsiemeJs(it, usateJs), lingue: Object.keys(lingue).filter((l) => l !== "it") };
if (!out.includes("/*__I18N_BUILD__*/{}")) throw new Error("Marcatore mancante: /*__I18N_BUILD__*/{} (src/i18n.js)");
out = out.replace("/*__I18N_BUILD__*/{}", () => jsonSicuro(buildI18n));

/* Estrai i blocchi <script data-app> nel bundle app.js (defer). Sono NON contigui nel template
(in mezzo c'e' HTML: pannello SEO, feedback box) → il PRIMO diventa <script defer src="/app.js">,
gli altri spariscono, l'HTML in mezzo resta. Ordine di concatenazione = ordine nel documento. */
Expand Down
6 changes: 6 additions & 0 deletions i18n/cricchetto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"html": 1271,
"js": 5510,
"blocca": false,
"nota": "Stringhe italiane ancora scritte a mano nel codice (conteggio euristico, scripts/i18n-build.mjs). Possono solo scendere: con blocca=true un aumento fa fallire test/i18n.test.mjs. Aggiornare con: node scripts/i18n-build.mjs --scrivi-cricchetto"
}
230 changes: 230 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
{
"barra.vaiAllaHome": "stageplot.it, go to home",
"barra.sottotitolo": "— free stage plots to scale, technical lists and PDF riders · optional professional review",
"barra.file": "File",
"barra.daiUnNomeAl": "Name your stage",
"barra.nomeDelProgettoE": "Project name (and subject line of the shared email)",
"barra.dataOrarioELuogo": "Event date, time and venue",
"barra.data": "Date",
"barra.orario": "Time",
"barra.tipo": "Type",
"barra.concertoOSpettacolo": "Concert or show",
"barra.conferenzaOConvegno": "Conference or convention",
"barra.sonorizzazione": "Sound reinforcement",
"barra.suono": "Sound",
"barra.sonorizzazioneAcusticoRiderDi": "Sound reinforcement: acoustic = one-page rider, without the audio lists",
"barra.amplificato": "Amplified",
"barra.acustico": "Acoustic",
"barra.misto": "Mixed",
"barra.luogo": "Venue",
"barra.esempioLuogo": "E.g. Civic Theatre, Vicenza",
"barra.facoltativiSeLiScrivi": "Optional — if you fill them in, they appear in the PDF header and on every list.",
"barra.versioniDelProgetto": "Project versions",
"barra.rinomina": "Rename…",
"barra.nuovaVersioneDaQuesta": "New version from this one",
"barra.cosaCambiaRispettoA": "What changed compared to…",
"barra.importaComeNuovaVersione": "Import as a new version…",
"barra.duplicaComeNuovoProgetto": "Duplicate as a new project…",
"barra.segnaComeBozza": "Mark as Draft",
"barra.segnaComeInviata": "Mark as Sent",
"barra.segnaComeApprovata": "Mark as Approved",
"barra.numera123": "Number 1, 2, 3…",
"barra.eliminaVersione": "Delete version",
"barra.tutteLeVersioni": "All versions",
"barra.statoDiQuestaVersione": "Status of this version (Draft → Sent → Approved)",
"barra.statoDellaVersione": "Version status",
"barra.firmatoDa": "signed by…",
"barra.chiHaApprovatoIl": "Who approved the project",
"barra.palco": "▦ Stage",
"barra.guidaEFeedback": "Help and feedback",
"barra.temaChiaroScuro": "Light / dark theme",
"barra.temaChiaroScuro2": "Light/dark theme",
"barra.annullaZ": "Undo (⌘Z)",
"barra.annulla": "Undo",
"barra.ripetiZ": "Redo (⇧⌘Z)",
"barra.ripeti": "Redo",
"barra.adattaLoZoomAl": "Fit the zoom to the stage",
"barra.adatta": "Fit",
"barra.unitaDelleMisureMetri": "Units of measure: metres, feet and inches, or both (saved with the project)",
"barra.unitaDelleMisure": "Units of measure",
"barra.aggancioGrigliaPiuOggetti": "Snapping: grid plus objects — items and cable segments snap to the chosen grid and, when close, to the edges and centres of the stage, risers and items. “Objects only” turns the grid off, “Free” turns off all snapping. Hold ⌘/Ctrl while dragging to suspend it.",
"barra.aggancioGrigliaPiuOggetti2": "Snapping: grid plus objects",
"barra.libero": "Free",
"barra.soloOggetti": "Objects only",
"barra.channelListInputPatch": "Channel list: input patch and monitors, with CSV and PDF export. Free, like the whole editor",
"barra.channelList": "Channel list",
"barra.descriviLEventoE": "Describe the event and tell us which positions you can't cover: we'll reply with names and a quote",
"barra.richiediMusicisti": "Request musicians",
"barra.musicisti": "Musicians",
"barra.esportaIlPdfP": "Export the PDF (⌘P)",
"barra.esporta": "Export",
"barra.condividi": "Share",
"barra.condividiConUnLink": "Share with a link: whoever opens it sees the stage and the lists",
"barra.accediPerSalvareOnline": "Sign in to save online and find your projects on computer and phone",
"barra.accedi": "Sign in",
"barra.guida": "Guide",
"barra.cloud": "Cloud",
"barra.apri": "Open",
"barra.planimetria": "Floor plan",
"barra.esportaPdf": "Export PDF",
"barra.descriviIlPalcoA": "Describe the stage to ChatGPT and get the ready-made link",
"barra.creaConAi": "🤖 Create with AI",
"barra.nuovo": "New",
"menuFile.nuovo": "New…",
"menuFile.iMieiProgetti": "My projects…",
"menuFile.produzione": "Production…",
"menuFile.laMiaRubrica": "My contacts…",
"menuFile.salva": "Save",
"menuFile.nuovaVersione": "New version",
"menuFile.disegnoDiTuttoIl": "Drawing of the whole project",
"menuFile.seduto": "Seated",
"menuFile.inPiedi": "Standing",
"menuFile.strumento": "Instrument",
"menuFile.funzioniAvanzate": "Advanced features…",
"aiuto.guidaStagePlot": "What is a stage plot — guide",
"aiuto.scrivici": "Write to us: bugs, ideas",
"aiuto.guidePerQuestoPunto": "Guides for this point",
"aiuto.progettatoERealizzatoDa": "Designed and built by",
"esporta.esportaPdfInScala": "Export PDF to scale",
"esporta.stampaA100Dimensioni": "Print at 100% / actual size",
"esporta.cosaEsportare": "What to export",
"esporta.contenutoDelPdf": "PDF content",
"esporta.soloPalco": "Stage only",
"esporta.ilDisegnoUnaPagina": "the drawing, one page",
"esporta.palcoESchedaTecnica": "Stage and tech sheet",
"esporta.conLePagineChe": "with the pages the sound company needs",
"esporta.formato": "Format",
"esporta.formatoA4": "A4 (29.7×21 cm)",
"esporta.formatoA3": "A3 (42×29.7 cm)",
"esporta.formatoA2": "A2 (59.4×42 cm)",
"esporta.scala": "Scale",
"esporta.automatica": "Automatic",
"esporta.personalizzata": "Custom…",
"esporta.scalaPersonalizzata": "Custom scale",
"esporta.nome": "Name",
"esporta.nelCartiglioENel": "in the title block and file name",
"esporta.versione": "Version",
"esporta.nelPie": "in the footer",
"esporta.esempioVersione": "e.g. 1",
"esporta.aggiungiAlNome": "Add to the name",
"esporta.motivoFacoltativoSoloNel": "Reason (optional, only in the copied text)",
"esporta.esempioMotivo": "e.g. +20 cm of height, plexiglass added",
"esporta.copiaTesto": "Copy text",
"esporta.altreOpzioni": "More options",
"esporta.documento": "Document",
"esporta.statoDelDocumento": "Document status",
"esporta.nelPieENel": "in the footer and file name",
"esporta.nessuno": "None",
"esporta.provvisorio": "Preliminary",
"esporta.definitivo": "Final",
"esporta.versioneIlNumeroV1": "Version = the number (v1, v2…) printed on the PDF. For a different layout of the same night use “+ Version”; for another project, “Duplicate as a new project”.",
"esporta.formatoDellaChannelList": "Channel list format",
"esporta.semplice": "Simple",
"esporta.service": "Sound company",
"esporta.canaliPerPagina": "Channels per page",
"esporta.foglioDeiCambiDi": "Stage changeover sheet",
"esporta.tuttiICambiSu": "All changeovers on one page",
"esporta.unaPaginaPerCambio": "One page per changeover, large print",
"esporta.ordineDellOrganico": "Lineup order",
"esporta.fiatiPrimaComeSempre": "Winds first (as usual)",
"esporta.vociEArchiPrima": "Vocals and strings first",
"esporta.perPartituraOrchestra": "By score order (orchestra)",
"esporta.formatoDellOutputList": "Output list format",
"esporta.disegno": "Drawing",
"esporta.orientamento": "Orientation",
"esporta.sulFoglio": "on the sheet",
"esporta.automatico": "Automatic",
"esporta.orizzontale": "Landscape",
"esporta.verticale": "Portrait",
"esporta.auto": "Auto",
"esporta.orizz": "Land.",
"esporta.vert": "Port.",
"esporta.areaStampata": "Printed area",
"esporta.tuttoIlPalco": "whole stage",
"esporta.cambia": "Change…",
"esporta.stileDelleMisure": "Measurement style",
"esporta.pedaneQuoteEPalco": "— risers, dimensions and stage, on all pages",
"esporta.stileMisuraEsteso": "12 × 2 m · h40 (as usual)",
"esporta.stileMisuraCompatto": "12mX2mX40cm",
"esporta.stileMisuraTesto": "m 12 x 2 x h 0.40",
"esporta.sottoFariSpieE": "A coloured halo appears under lights, wedges and stage boxes (yellow lights, blue wedges, green stage boxes), with a different stroke for each family: it also reads in black and white.",
"esporta.colorePerFamiglia": "Colour by family",
"esporta.fariSpieStageBox": "— lights, wedges, stage boxes; in the PDFs too",
"esporta.misuraAccantoAllePedane": "Dimension next to risers",
"esporta.soloNelDisegnoElenchi": "— in the drawing only; lists and legend stay complete",
"esporta.misuraInteraComeSempre": "Full dimension (as usual)",
"esporta.soloAltezza": "Height only",
"esporta.nessuna": "None",
"esporta.linguaDelDocumento": "Document language",
"esporta.tuttoCioCheEsce": "— everything that comes out in the PDFs, including the stage sheet for outside parties",
"esporta.quoteGrigliaPedanePalco": "— dimensions, grid, risers, stage, cables",
"esporta.metriM": "metres (m)",
"esporta.piediEPolliciFt": "feet and inches (ft-in)",
"esporta.entrambeMFtIn": "both: m (ft-in)",
"esporta.perUnaSquadraAmericana": "For an American crew you usually need feet and inches.",
"esporta.usaFtIn": "Use ft-in",
"esporta.organicoNelCartiglio": "Lineup in the title block",
"esporta.organico419Strumentisti": "— “Lineup: 41 + 9” (players + vocals), like the Lineup sheet",
"esporta.riferimentoNelCartiglio": "Reference in the title block",
"esporta.stampatoInBassoSu": "— printed at the bottom of every page",
"esporta.contattoStampatoInTestata": "Contact printed in the header",
"esporta.esempioContatto": "e.g. Sound engineer: Name · +39 …",
"esporta.rubrica": "Contacts ▾",
"esporta.pesiKg": "Weights (kg)",
"esporta.pesoStimatoDellAllestimento": "— estimated weight of the setup, in the header and in the rider",
"esporta.pagineEAllegati": "Pages and attachments",
"esporta.scaletta": "Setlist",
"esporta.aggiungiUnQrAlla": "Add a QR code to the up-to-date online version",
"esporta.chiHaIlPdf": "Whoever has the PDF can scan it and open the project online, up to date with the latest change, as long as the share link stays active.",
"esporta.pagineDelPdfUna": "PDF pages, one by one",
"esporta.allegatiRichiesti": "Requested attachments",
"esporta.facoltativoSeQualcunoResta": "— optional: if one is still “to be requested” I'll remind you before exporting",
"esporta.esempioAllegato": "e.g. Venue floor plan",
"esporta.nomeDellAllegato": "Attachment name",
"esporta.aggiungi": "Add",
"esporta.paginaPrecedente": "Previous page",
"esporta.paginaSuccessiva": "Next page",
"esporta.altriFile": "Other files",
"esporta.altriFileDaScaricare": "Other files to download",
"esporta.palcoPerEsterni": "Stage sheet for outside parties",
"esporta.suffissoPdf": "· PDF",
"esporta.soloIlDisegnoCon": "Only the drawing with title, venue and version, for the theatre and the sound company. Downloads right away.",
"esporta.foglioPerIlTeatro": "Venue sheet",
"esporta.suffissoPdfA4": "· PDF A4",
"esporta.sediePedaneScaletteE": "Chairs, risers, steps and power outlets, with the same version. Downloads right away.",
"esporta.foglioDeiCambi": "Changeover sheet",
"esporta.unCambioPerFascia": "One changeover per slot, with what goes out, comes in and moves, and the stage after the changeover. Downloads right away.",
"esporta.unFileZipCon": "A .zip file with one PDF per document (stage plot, channel list, rider…), with the same version and date in the name",
"esporta.pacchettoZip": "Package (.zip)",
"esporta.unPdfPerDocumento": "One PDF per document, same version and date in the name. Choose the documents first.",
"esporta.immagineDelPalcoPer": "Image of the stage, for email and messages",
"esporta.immaginePng": "PNG image",
"esporta.ilPalcoComeImmagine": "The stage as an image, for email and messages.",
"esporta.channelListInCsv": "Channel list as CSV: the sound company imports it without retyping",
"esporta.channelListCsv": "Channel list CSV",
"esporta.laChannelListDa": "The channel list to import without retyping.",
"esporta.scaricaPdf": "Download PDF",
"esporta.vuoiRitrovarloLaProssima": "Want to find it again next time?",
"esporta.oraIlProgettoE": "For now the project is only in this browser. Save it to your free account and reopen it whenever you need, even from your phone.",
"esporta.salvaConGoogle": "Save with Google",
"esporta.noGrazie": "No, thanks",
"esporta.ilProgettoRestaNel": "The project stays in your account: you'll find it in",
"esporta.fileIMieiProgetti": "File → My projects",
"esporta.chiudi": "Close",
"esporta.generoFoglioCambi": "Generating the changeover sheet…",
"esporta.foglioCambiScaricato_one": "✓ Changeover sheet downloaded ({n} page).",
"esporta.foglioCambiScaricato_other": "✓ Changeover sheet downloaded ({n} pages).",
"esporta.generoFoglioTeatro": "Generating the venue sheet…",
"esporta.foglioTeatroScaricato_one": "✓ Venue sheet downloaded ({n} page, A4).",
"esporta.foglioTeatroScaricato_other": "✓ Venue sheet downloaded ({n} pages, A4).",
"esporta.generoPalcoEsterni": "Generating the stage sheet for outside parties…",
"esporta.palcoEsterniScaricato": "Stage sheet for outside parties downloaded ({foglio} {orient}, scale 1:{scala}).",
"esporta.palcoEsterniScaricatoParziale": "Stage sheet for outside parties downloaded ({foglio} {orient}, scale 1:{scala}) — only the central part that fits the sheet was printed.",
"esporta.orientVerticale": "portrait",
"esporta.orientOrizzontale": "landscape",
"esporta.errore": "Error: {msg}",
"esporta.generoPdf": "Generating the PDF…",
"esporta.generoBreve": "Generating…",
"esporta.pacchettoProgresso": "Generating {i} of {n}: {nome}…",
"esporta.annulla": "Cancel"
}
Loading
Loading