Refactor Bitcoin Core UI and enhance connection handling

- Updated the Bitcoin Core app view to route to a custom UI instead of displaying connection info in an alert.
- Redesigned the UI layout for better user experience, including a new header and stats grid.
- Added connection details and action buttons for settings and logs, improving accessibility.
- Implemented a modal for settings and logs, enhancing the overall functionality and user interaction.
This commit is contained in:
Dorian
2026-01-27 23:36:30 +00:00
parent 36233377d9
commit 7667cfc721
3 changed files with 446 additions and 324 deletions
+2 -4
View File
@@ -185,11 +185,9 @@ function launchApp(id: string) {
const isDev = import.meta.env.DEV
const pkg = packages.value[id]
// Special handling for Bitcoin Core - it's a headless node with no web UI
// Just show connection info instead
// Special handling for Bitcoin Core - route to custom UI
if (id === 'bitcoin') {
const rpcPort = pkg?.installed?.lanAddress?.match(/:(\d+)/)?.[1] || '18443'
alert(`✅ Bitcoin Core is running!\n\n🔗 RPC Endpoint: http://localhost:${rpcPort}\n👤 User: bitcoin\n🔑 Password: bitcoinpass\n\n💡 Use bitcoin-cli or an RPC client to interact.\n📊 View blockchain data in Mempool: http://localhost:4080`)
router.push('/dashboard/apps/bitcoin-core')
return
}