From 60f4eb6639aed3de22c4b07f7532a504c4e76ad0 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Tue, 17 Feb 2026 12:11:55 -0500 Subject: [PATCH] feat(machine): add Zeus and Lightning.Pub QR codes to mock UI dev.sh atm auto-injects VITE_LNDCONNECT_URL from lnd-3 credentials. Idle screen shows "Zeus QR" and "Lightning.Pub nprofile" buttons (debug mode) that open fullscreen overlays with scannable 400px QR codes and copy-to-clipboard support. Also makes the debug overlay collapsible. Co-Authored-By: Claude Opus 4.6 --- apps/machine/.env.example | 3 + apps/machine/package.json | 1 + apps/machine/src/App.vue | 19 +- apps/machine/src/views/IdleView.vue | 102 +++++- docker/dev.sh | 10 + pnpm-lock.yaml | 483 +--------------------------- 6 files changed, 122 insertions(+), 496 deletions(-) diff --git a/apps/machine/.env.example b/apps/machine/.env.example index 28f8fc8..ce1a2cb 100644 --- a/apps/machine/.env.example +++ b/apps/machine/.env.example @@ -47,3 +47,6 @@ VITE_ATM_PRIVATE_KEY= # Lightning.Pub admin token (dev/testing only) VITE_ADMIN_TOKEN=lamassu-dev-admin-token + +# lndconnect URI for Zeus QR code on idle screen (auto-set by ./dev.sh atm) +# VITE_LNDCONNECT_URL=lndconnect://192.168.1.190:8081?cert=...&macaroon=... diff --git a/apps/machine/package.json b/apps/machine/package.json index 23cc7fe..0990fc9 100644 --- a/apps/machine/package.json +++ b/apps/machine/package.json @@ -31,6 +31,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-vue-next": "^0.563.0", + "nostr-tools": "^2.10.0", "pinia": "^2.2.0", "qrcode.vue": "^3.6.0", "reka-ui": "^2.7.0", diff --git a/apps/machine/src/App.vue b/apps/machine/src/App.vue index 3d14e8e..4315100 100644 --- a/apps/machine/src/App.vue +++ b/apps/machine/src/App.vue @@ -1,5 +1,5 @@