Add the news report model, markers and source

The pure half of a news layer: validated records for a news server's
`/api/news/hotspots|feed|outline` contract, a presentation model and canvas
markers and picture cards, and a fetch client.

- Colour carries severity only (0 no physical event, 1 minor, 2 significant,
  3 major), never a side; the category is the icon, the rim is attestation
  (confirmed, a claim, one side's own press), size grows with sources and
  markers fade with age.
- Cards say "Reported by {side} sources" and mark official channels; a
  machine-read English headline is labelled as such.
- `createNewsSource` reads same-origin routes with a 15 s timeout, a 4 MiB cap
  and record-by-record validation; `NEWS_API_PATHS` and `newsQueryAllowed`
  let a host proxy exactly what the client sends. A 503 marked unavailable
  means "not configured": no retries.
- Exported as `./layers/news/source`, with its own package boundary.
This commit is contained in:
Denis Groshev committed 2026-11-06 00:45:22 +01:00
1 parent dd83812a21
commit 2d9d518946
21 files changed
+2653

No files matched your search

+53
View File
@@ -1,4 +1,57 @@
{
"News feed unavailable": "Feed delle notizie non disponibile",
"Disputed: {name}": "Conteso: {name}",
"Administered by {holder} · claimed by {claimant}": "Amministrato da {holder} · rivendicato da {claimant}",
"Self-administered · claimed by {claimant}": "Autogovernato · rivendicato da {claimant}",
"UN-patrolled zone": "Zona pattugliata dall’ONU",
"Claimed by neither neighbour": "Non rivendicato da nessun vicino",
"Video": "Video",
"Photos": "Foto",
"Claimed by {who}": "Secondo {who}",
"Claimed": "Affermazione",
"Not yet confirmed by others": "Non ancora confermato da altri",
"Reported by {side} sources": "Riportato da fonti {side}",
"Reported by {sides}": "Riportato da {sides}",
"{side} sources": "fonti {side}",
"Official": "Ufficiale",
"Reported by both sides": "Riportato da entrambe le parti",
"Independently reported": "Riportato in modo indipendente",
"Single source": "Fonte unica",
"International": "Internazionale",
"Independent": "Indipendente",
"Unattributed": "Non attribuito",
"Outside party": "Parte esterna",
"Ukraine–Russia": "Ucraina–Russia",
"Israel–Gaza–Lebanon": "Israele–Gaza–Libano",
"Iran–Hormuz": "Iran–Hormuz",
"Yemen–Red Sea": "Yemen–Mar Rosso",
"Sudan": "Sudan",
"Sahel": "Sahel",
"Elsewhere": "Altrove",
"Strike": "Attacco",
"Alert": "Allerta",
"Air defence": "Difesa aerea",
"Ground fighting": "Combattimenti a terra",
"Casualties": "Vittime",
"Humanitarian": "Umanitario",
"Disaster": "Disastro",
"Protest": "Protesta",
"Political": "Politica",
"No physical event": "Nessun evento fisico",
"Minor incident": "Incidente minore",
"Significant": "Rilevante",
"Major": "Grave",
"age|now": "ora",
"{minutes} min": "{minutes} min",
"{hours} h": "{hours} h",
"{count} sources": {
"one": "{count} fonte",
"many": "{count} fonti",
"other": "{count} fonti"
},
"News feed not configured on this server": "Feed delle notizie non configurato su questo server",
"Malformed news hotspots response": "Risposta dei focolai di notizie non valida",
"Malformed news feed response": "Risposta del feed delle notizie non valida",
"Pick a shape, then click the map.": "Scegli una forma, poi fai clic sulla mappa.",
"Enter to place the pin, Esc to cancel.": "Premi Enter per posizionare il segnaposto, Esc per annullare.",
"Click where the pin goes.": "Fai clic dove va il segnaposto.",