2022-11-13 05:34:43 +00:00
|
|
|
<script setup>
|
2022-11-23 13:06:27 +00:00
|
|
|
import { APP_NAME } from './constants'
|
|
|
|
|
2022-11-27 23:09:18 +00:00
|
|
|
const isDev = process.dev
|
|
|
|
const isPreview = window.location.hostname.includes('deploy-preview')
|
|
|
|
|
2022-11-13 05:34:43 +00:00
|
|
|
useHead({
|
2022-11-27 23:09:18 +00:00
|
|
|
titleTemplate: title => `${title ? `${title} | ` : ''}${APP_NAME}${isDev ? ' (dev)' : isPreview ? ' (preview)' : ''}`,
|
2022-11-13 05:34:43 +00:00
|
|
|
link: [
|
2022-11-27 23:09:18 +00:00
|
|
|
{ rel: 'icon', type: 'image/svg+png', href: isDev || isPreview ? '/favicon-dev.png' : '/favicon.png' },
|
2022-11-13 05:34:43 +00:00
|
|
|
],
|
|
|
|
})
|
2022-11-23 02:16:31 +00:00
|
|
|
|
2022-11-27 15:13:04 +00:00
|
|
|
// We want to trigger rerendering the page when account changes
|
|
|
|
const key = computed(() => useMasto().instances.config.url || 'default')
|
|
|
|
|
2022-11-23 02:16:31 +00:00
|
|
|
// eslint-disable-next-line no-unused-expressions
|
|
|
|
isDark.value
|
2022-11-13 05:34:43 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-24 09:59:07 +00:00
|
|
|
<NuxtLoadingIndicator color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
|
2022-11-27 15:13:04 +00:00
|
|
|
<NuxtLayout :key="key">
|
2022-11-13 05:34:43 +00:00
|
|
|
<NuxtPage />
|
|
|
|
</NuxtLayout>
|
2022-11-27 12:29:10 +00:00
|
|
|
<TeleportTarget
|
|
|
|
id="teleport-end"
|
|
|
|
/>
|
2022-11-13 05:34:43 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
html, body , #__nuxt{
|
|
|
|
height: 100vh;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.dark {
|
2022-11-23 02:16:31 +00:00
|
|
|
color-scheme: dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
--at-apply: bg-base text-base;
|
2022-11-13 05:34:43 +00:00
|
|
|
}
|
|
|
|
</style>
|