diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 19b7cfe..7e770fd 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -225,7 +225,8 @@ Security is a first-class concern; we run a strict CSP and gate CI on vuln scans a ` - - - +{{template "map-styles"}} +{{template "map-scripts"}} diff --git a/internal/core/templates/config_region_area.html b/internal/core/templates/config_region_area.html index c1efe50..5c1de21 100644 --- a/internal/core/templates/config_region_area.html +++ b/internal/core/templates/config_region_area.html @@ -30,8 +30,7 @@ {{end}} - - +{{template "map-styles"}}
- - - +{{template "map-scripts"}} +{{template "map-draw-scripts"}} {{/* Values are interpolated in a JS context, so html/template JSON-encodes and escapes them — the region names and shapes are user data. */}} diff --git a/internal/core/templates/console.html b/internal/core/templates/console.html index 1077310..11c0d18 100644 --- a/internal/core/templates/console.html +++ b/internal/core/templates/console.html @@ -148,9 +148,8 @@ swap needs no new markup. The flex row is nested so the [hidden] attribute wins {{if .ShowConfig}} - - - +{{template "map-styles"}} +{{template "map-scripts"}} {{end}} diff --git a/internal/core/templates/dashboard.html b/internal/core/templates/dashboard.html index d801eae..e12d566 100644 --- a/internal/core/templates/dashboard.html +++ b/internal/core/templates/dashboard.html @@ -126,10 +126,9 @@