refactor: 🛂 Refactor account switching to ask for instance
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 54s
Deploy to GitHub Pages / build (push) Failing after 1m45s
Deploy to GitHub Pages / deploy (push) Has been skipped
Docker / build (push) Failing after 17s
Mirror to Codeberg / Mirror (push) Failing after 1s

This commit is contained in:
Jesse Wierzbinski 2025-02-09 20:14:27 +01:00
parent 7e9ccbc932
commit 2e67e7858f
No known key found for this signature in database
9 changed files with 71 additions and 104 deletions

View file

@ -1,7 +1,7 @@
<template>
<Sidebar>
<slot v-if="!route.meta.requiresAuth || identity" />
<Card v-else class="shadow-none bg-transparent border-none p-4 max-w-md mx-auto">
<Card v-else class="shadow-none border-none p-4 max-w-md mx-auto">
<CardHeader class="text-center gap-y-4">
<CardTitle>{{ m.sunny_quick_lionfish_flip() }}</CardTitle>
<CardDescription>
@ -35,7 +35,7 @@ import * as m from "~/paraglide/messages.js";
import { SettingIds } from "~/settings";
const appData = useAppData();
const signInAction = () => signIn(appData, new URL(useBaseUrl().value));
const signInAction = async () => signIn(appData, await askForInstance());
const colorMode = useColorMode();
const themeSetting = useSetting(SettingIds.Theme);
const { n, d } = useMagicKeys();