Install ReUI (MCP, skill, @reui registry, Tailwind v4, shadcn base-nova) and move the shared UI onto it: Button, Tag, Check, Input/Textarea, Segmented, Alert, Panel, Dialog, Tooltip, Menu and Select (Popover), Toast (sonner), the Table frame (DataGrid), the Dashboard KPI strip, the shnt Ops palette, Geist and the type scale. Design only: behaviour, texts and roles are unchanged. Tests that asserted the old DOM were updated; the tests now format numbers in English wherever they run. docs/reui-migration-plan.md records the plan and its decisions. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
23 lines
772 B
Bash
23 lines
772 B
Bash
#!/usr/bin/env bash
|
|
# The server honours X-Forwarded-Prefix and mounts a PathBase
|
|
# (DnsWebService.cs:1943-1945). This check simulates that proxy and verifies the
|
|
# bundle is requested relatively, not absolutely.
|
|
set -euo pipefail
|
|
|
|
PREFIX="/dns"
|
|
BASE="http://127.0.0.1:5380"
|
|
|
|
html=$(curl -s -H "X-Forwarded-Prefix: ${PREFIX}" -H "X-Forwarded-Proto: https" "${BASE}/")
|
|
|
|
paths=$(echo "$html" | grep -oE '(src|href)="[^"]+"' | sed -E 's/^(src|href)="//; s/"$//')
|
|
|
|
echo "Emitted paths:"
|
|
echo "$paths" | sed 's/^/ /'
|
|
|
|
if echo "$paths" | grep -q '^/'; then
|
|
echo "FAILED: there are absolute paths. Behind a proxy at ${PREFIX} the browser would request them outside the prefix and they would 404."
|
|
exit 1
|
|
fi
|
|
|
|
echo "OK: every path is relative; they survive a prefixed proxy."
|