Update Development Workflow documentation, modify app configuration for Archipelago, and enhance deployment scripts

- Updated the Development-Workflow.mdc to clarify testing procedures for apps launching in iframes or new tabs.
- Changed Archipelago app configuration to use new credentials for RPC and database connections.
- Enhanced deployment scripts to improve handling of mempool-electrs and added support for NBXplorer in the BTCPay Server setup.
This commit is contained in:
Dorian
2026-02-25 17:23:38 +00:00
parent 129d7fe6f4
commit f0ef84e4a5
8 changed files with 98 additions and 39 deletions

View File

@@ -1,13 +1,27 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
/** BTCPay and Home Assistant set X-Frame-Options and don't support subpath proxy - open in new tab */
function mustOpenInNewTab(url: string): boolean {
try {
const u = new URL(url)
return u.port === '23000' || u.port === '8123'
} catch {
return false
}
}
export const useAppLauncherStore = defineStore('appLauncher', () => {
const isOpen = ref(false)
const url = ref('')
const title = ref('')
let previousActiveElement: HTMLElement | null = null
function open(payload: { url: string; title: string }) {
function open(payload: { url: string; title: string; openInNewTab?: boolean }) {
if (payload.openInNewTab || mustOpenInNewTab(payload.url)) {
window.open(payload.url, '_blank', 'noopener,noreferrer')
return
}
previousActiveElement = (document.activeElement as HTMLElement) || null
url.value = payload.url
title.value = payload.title

View File

@@ -635,8 +635,8 @@ function launchApp() {
prod: 'http://localhost:8332'
},
'btcpay-server': {
dev: 'http://localhost:14142',
prod: 'http://localhost:14142'
dev: 'http://localhost:23000',
prod: 'http://localhost:23000'
},
'homeassistant': {
dev: 'http://localhost:8123',