Files
drop/layouts/default.vue
DecDuck 9e929ddf98 Better metadata editing division #79 (#82)
* feat: new dropdown-based editor switching

* feat: tab based switching

* feat: add icon

* fix: lint

* chore: i18n translations

oh boy was this a 'chore'
2025-06-05 14:53:19 +10:00

30 lines
644 B
Vue

<template>
<div v-if="!noWrapper" class="flex flex-col w-full min-h-screen bg-zinc-900">
<UserHeader class="z-50" hydrate-on-idle />
<div class="grow flex">
<NuxtPage />
</div>
<UserFooter class="z-50" hydrate-on-interaction />
</div>
<div v-else class="flex w-full min-h-screen bg-zinc-900">
<NuxtPage />
</div>
</template>
<script setup lang="ts">
const route = useRoute();
const noWrapper = !!route.query.noWrapper;
const { t } = useI18n();
useHead({
htmlAttrs: {
lang: "en",
},
link: [],
titleTemplate(title) {
return title ? t("titleTemplate", [title]) : t("title");
},
});
</script>