Add Chain 138 wallet network metadata and stats coin-price enrichment; sync frontend explorer SPA, command center, and address/token pages with backend config. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
711 B
Markdown
22 lines
711 B
Markdown
# Third-party bundles (optional)
|
|
|
|
## Mermaid (Visual Command Center)
|
|
|
|
`chain138-command-center.html` loads Mermaid from **`/thirdparty/mermaid.min.js` first**. If the local bundle is missing, the page runtime loads jsDelivr as a fallback.
|
|
|
|
To vendor Mermaid for offline / CSP-locked hosts:
|
|
|
|
1. From repo root:
|
|
```bash
|
|
bash explorer-monorepo/scripts/vendor-mermaid-for-command-center.sh
|
|
```
|
|
2. Deploy with `deploy-next-frontend-to-vmid5000.sh` — it copies `thirdparty/mermaid.min.js` when the file exists.
|
|
|
|
Before deploy, refresh bundle metadata:
|
|
|
|
```bash
|
|
bash explorer-monorepo/scripts/refresh-chain138-command-center-meta.sh
|
|
```
|
|
|
|
The minified Mermaid file is gitignored (~3.3 MB); do not commit it.
|