Files
explorer-monorepo/scripts/vendor-mermaid-for-command-center.sh
defiQUG 6eef6b07f6 feat: explorer API, wallet, CCIP scripts, and config refresh
- Backend REST/gateway/track routes, analytics, Blockscout proxy paths.
- Frontend wallet and liquidity surfaces; MetaMask token list alignment.
- Deployment docs, verification scripts, address inventory updates.

Check: go build ./... under backend/ (pass).
Made-with: Cursor
2026-04-07 23:22:12 -07:00

13 lines
646 B
Bash
Executable File

#!/usr/bin/env bash
# Download Mermaid 10 bundle for offline / CSP-strict explorer hosts.
# Output: explorer-monorepo/frontend/public/thirdparty/mermaid.min.js (gitignored)
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
OUT_DIR="$(cd "$SCRIPT_DIR/../frontend/public/thirdparty" && pwd)"
mkdir -p "$OUT_DIR"
URL="${MERMAID_CDN_URL:-https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js}"
echo "Fetching Mermaid → $OUT_DIR/mermaid.min.js"
curl -fsSL -o "$OUT_DIR/mermaid.min.js" "$URL"
wc -c "$OUT_DIR/mermaid.min.js"
echo "Done. Point chain138-command-center.html at /thirdparty/mermaid.min.js and redeploy."