fix: FileBrowser default dirs, login option on onboarding intro
Some checks failed
Build Archipelago ISO (dev) / build-iso (push) Has been cancelled

- Pre-create Documents/Photos/Music/Downloads/Builds dirs for FileBrowser
- Add "Already set up? Log in" link on onboarding intro page
- Prevents users from getting stuck in onboarding loop

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-04-02 18:33:28 +01:00
parent 7fdb85713a
commit 09474789fd
2 changed files with 17 additions and 0 deletions

View File

@@ -34,6 +34,15 @@
>
Restore from seed phrase
</a>
<a
tabindex="0"
role="button"
class="text-white/50 hover:text-white/80 underline text-sm cursor-pointer mt-2 block text-center onb-cta"
@click="goToLogin"
@keydown.enter="goToLogin"
>
Already set up? Log in
</a>
</div>
</div>
</div>
@@ -64,6 +73,12 @@ function goToRestore() {
playNavSound('action')
router.push('/onboarding/seed-restore').catch(() => {})
}
function goToLogin() {
playNavSound('action')
localStorage.setItem('neode_onboarding_complete', '1')
router.push('/login').catch(() => {})
}
</script>
<style scoped>

View File

@@ -949,6 +949,8 @@ track_container "searxng"
if ! $DOCKER ps --format '{{.Names}}' 2>/dev/null | grep -q filebrowser; then
log "Creating File Browser..."
mkdir -p /var/lib/archipelago/filebrowser /var/lib/archipelago/filebrowser-data
# Pre-create default directories so FileBrowser doesn't 404 on first load
mkdir -p /var/lib/archipelago/filebrowser/{Documents,Photos,Music,Downloads,Builds}
$DOCKER run -d --name filebrowser --restart unless-stopped \
--health-cmd="curl -sf http://localhost:80/ || exit 1" --health-interval=120s --health-timeout=5s --health-retries=3 \
--memory=$(mem_limit filebrowser) \