From f4b2511333edd32dd43940f8cb2c52513f59ad16 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Fri, 3 Apr 2026 14:35:17 +0300 Subject: [PATCH] feat: self-host all JS/CSS (GDPR) + clicksports map tiles - Leaflet, TopJSON, Chart.js, Mermaid served from /js/ - Leaflet CSS from /css/leaflet.min.css - World atlas GeoJSON from /data/countries-110m.json - Zero external CDN requests (GDPR compliant) - Map tiles from maps.clicksports.de (fixed missing Noto Sans font) - Attribution: clicksports maps + OpenMapTiles + OpenStreetMap - window.load for script initialization (load order fix) Co-Authored-By: Claude Opus 4.6 (1M context) --- layouts/shortcodes/law-charts.html | 4 +- layouts/shortcodes/legislation-timeline.html | 2 +- layouts/shortcodes/world-map.html | 14 +- static/css/leaflet.min.css | 8 + static/data/countries-110m.json | 1 + static/js/chart.umd.min.js | 20 + static/js/leaflet.min.js | 12 + static/js/mermaid.min.js | 3298 ++++++++++++++++++ static/js/topojson-client.min.js | 2 + 9 files changed, 3351 insertions(+), 10 deletions(-) create mode 100644 static/css/leaflet.min.css create mode 100644 static/data/countries-110m.json create mode 100644 static/js/chart.umd.min.js create mode 100644 static/js/leaflet.min.js create mode 100644 static/js/mermaid.min.js create mode 100644 static/js/topojson-client.min.js diff --git a/layouts/shortcodes/law-charts.html b/layouts/shortcodes/law-charts.html index 98d19d7..314a116 100644 --- a/layouts/shortcodes/law-charts.html +++ b/layouts/shortcodes/law-charts.html @@ -34,9 +34,9 @@ - + + diff --git a/layouts/shortcodes/world-map.html b/layouts/shortcodes/world-map.html index 872c7ba..6f452a8 100644 --- a/layouts/shortcodes/world-map.html +++ b/layouts/shortcodes/world-map.html @@ -1,7 +1,7 @@ {{ $lang := .Page.Language.Lang }} {{ $countries := hugo.Data.countries }} - +