changes for build for sxsw

This commit is contained in:
Dorian
2026-03-10 23:29:05 +00:00
parent dbd4cf59d2
commit d69c0d6724
13 changed files with 1173 additions and 555 deletions
+5 -3
View File
@@ -15,7 +15,8 @@
<!-- Content Area -->
<div class="flex flex-col items-center gap-4 sm:gap-6 mb-4 sm:mb-6 px-3 sm:px-4">
<div class="w-full max-w-[600px] space-y-4 sm:space-y-6">
<p v-if="errorMessage" class="text-red-400 text-sm">{{ errorMessage }}</p>
<p v-if="serverStarting" class="text-orange-400/80 text-sm">Server is still starting up. You can try again shortly or skip this step.</p>
<p v-else-if="errorMessage" class="text-red-400 text-sm">{{ errorMessage }}</p>
<!-- Passphrase Input -->
<div class="path-option-card cursor-default px-4 py-4 sm:px-6 sm:py-6">
<div class="text-left w-full">
@@ -102,6 +103,7 @@ const passphrase = ref('')
const isDownloading = ref(false)
const downloaded = ref(false)
const errorMessage = ref('')
const serverStarting = ref(false)
async function downloadBackup() {
if (!passphrase.value) return
@@ -133,8 +135,8 @@ async function downloadBackup() {
localStorage.setItem('neode_backup_created', '1')
} catch (err) {
const msg = err instanceof Error ? err.message : String(err)
if (/502|503|timeout|fetch|network/i.test(msg)) {
errorMessage.value = 'Server is not reachable. Please ensure your node is running and try again.'
if (/502|503|504|timeout|fetch|network|Failed to fetch/i.test(msg)) {
serverStarting.value = true
} else {
errorMessage.value = msg || 'Failed to create backup. Please try again.'
}