mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
32 lines
704 B
Vue
32 lines
704 B
Vue
<script setup lang="ts">
|
|
const { data: onboarding } = useAuthFetch<{ exists: boolean }>('/api/user/onboarding/exists', { key: 'onboarding' });
|
|
const colorMode = useColorMode()
|
|
|
|
await callOnce('user', async () => {
|
|
const { loadData } = useAppStart();
|
|
await loadData();
|
|
});
|
|
|
|
import { Toaster } from '@/components/ui/sonner'
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<ClientOnly>
|
|
<Toaster :rich-colors="colorMode.value === 'light' ? true : false" />
|
|
<GlobalDialog></GlobalDialog>
|
|
</ClientOnly>
|
|
|
|
<ClientOnly>
|
|
<div v-if="onboarding && onboarding.exists === false && !isSelfhosted()">
|
|
<Onboarding></Onboarding>
|
|
</div>
|
|
</ClientOnly>
|
|
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
|
|
</template>
|