diff --git a/neode-ui/mock-backend.js b/neode-ui/mock-backend.js index 63f13aed..122b6a2e 100755 --- a/neode-ui/mock-backend.js +++ b/neode-ui/mock-backend.js @@ -1249,7 +1249,8 @@ const DOCKER_UI = path.join(__dirname, '..', 'docker') for (const [prefixes, dir] of [ [['/app/bitcoin-core', '/app/bitcoin-knots', '/app/bitcoin-ui'], 'bitcoin-ui'], [['/app/electrumx', '/app/electrs', '/app/archy-electrs-ui'], 'electrs-ui'], - [['/app/lnd', '/app/lnd-ui', '/app/archy-lnd-ui', '/app/thunderhub'], 'lnd-ui'], + // lnd deliberately NOT here: the real lnd-ui shell reads poorly in the demo + // iframe, so /app/lnd/ gets a DEMO_APP_PAGES placeholder dashboard instead. [['/app/fedimint', '/app/fedimintd'], 'fedimint-ui'], ]) { for (const p of prefixes) app.use(p, express.static(path.join(DOCKER_UI, dir))) @@ -4741,6 +4742,34 @@ app.get('/app/thunderhub/api/forwards', (req, res) => res.json(MOCK_LND_DATA.for // something plausible in the in-app iframe. Registered before the generic // /app/:id notice handler so these win. const DEMO_APP_PAGES = { + // Placeholder LND dashboard — the real lnd-ui shell reads poorly inside the + // demo iframe. Numbers stay consistent with the /proxy/lnd/v1/* mocks. + lnd: () => demoAppShell('Lightning Network Daemon', 'archipelago-lnd · v0.18.3-beta · signet', '/assets/img/app-icons/lnd.png', ` +
| Peer | Capacity | Local / Remote | Balance |
|---|---|---|---|
| ACINQ | 5,000,000 | 2,450,000 / 2,550,000 | |
| Voltage | 10,000,000 | 4,500,000 / 5,500,000 | |
| Kraken | 3,000,000 | 1,800,000 / 1,200,000 | |
| Wallet of Satoshi | 2,000,000 | 1,200,000 / 800,000 |