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

+51
View File
@@ -1,4 +1,55 @@
{
"News feed unavailable": "ニュースフィードを利用できません",
"Disputed: {name}": "係争地: {name}",
"Administered by {holder} · claimed by {claimant}": "{holder}が施政 · {claimant}が領有を主張",
"Self-administered · claimed by {claimant}": "自治 · {claimant}が領有を主張",
"UN-patrolled zone": "国連が巡回する地域",
"Claimed by neither neighbour": "どちらの隣国も領有を主張していない",
"Video": "動画",
"Photos": "写真",
"Claimed by {who}": "{who}の主張",
"Claimed": "主張",
"Not yet confirmed by others": "他からの確認はまだない",
"Reported by {side} sources": "{side}側の情報源が報道",
"Reported by {sides}": "報道: {sides}",
"{side} sources": "{side}側の情報源",
"Official": "公式",
"Reported by both sides": "双方が報道",
"Independently reported": "独立した報道あり",
"Single source": "単一の情報源",
"International": "国際",
"Independent": "独立系",
"Unattributed": "出所不明",
"Outside party": "第三者",
"Ukraine–Russia": "ウクライナ–ロシア",
"Israel–Gaza–Lebanon": "イスラエル–ガザ–レバノン",
"Iran–Hormuz": "イラン–ホルムズ",
"Yemen–Red Sea": "イエメン–紅海",
"Sudan": "スーダン",
"Sahel": "サヘル",
"Elsewhere": "その他の地域",
"Strike": "攻撃",
"Alert": "警報",
"Air defence": "防空",
"Ground fighting": "地上戦",
"Casualties": "死傷者",
"Humanitarian": "人道",
"Disaster": "災害",
"Protest": "抗議",
"Political": "政治",
"No physical event": "物理的な事象なし",
"Minor incident": "小規模な事案",
"Significant": "重大",
"Major": "深刻",
"age|now": "今",
"{minutes} min": "{minutes}分",
"{hours} h": "{hours}時間",
"{count} sources": {
"other": "情報源 {count}件"
},
"News feed not configured on this server": "このサーバーではニュースフィードが設定されていません",
"Malformed news hotspots response": "ニュースのホットスポット応答の形式が不正です",
"Malformed news feed response": "ニュースフィードの応答の形式が不正です",
"Pick a shape, then click the map.": "図形を選んでから、地図をクリックしてください。",
"Enter to place the pin, Esc to cancel.": "Enterでピンを配置、Escでキャンセル。",
"Click where the pin goes.": "ピンを置く場所をクリックしてください。",