mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
* feat: new dropdown-based editor switching * feat: tab based switching * feat: add icon * fix: lint * chore: i18n translations oh boy was this a 'chore'
30 lines
644 B
Vue
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>
|