2022-12-26 09:50:11 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
definePageMeta({
|
|
|
|
wideLayout: true,
|
|
|
|
})
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
const isRootPath = computedEager(() => route.name === 'settings')
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-30 16:29:34 +01:00
|
|
|
<div>
|
|
|
|
<div min-h-screen flex>
|
2023-01-01 15:29:11 +01:00
|
|
|
<div border="e base" :class="isRootPath ? 'block lg:flex-none flex-1' : 'hidden lg:block'">
|
2022-12-30 16:29:34 +01:00
|
|
|
<MainContent>
|
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<div i-ri:settings-4-line />
|
|
|
|
<span>{{ $t('nav.settings') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<div xl:w-97 lg:w-78 w-full>
|
|
|
|
<SettingsNavItem
|
2023-01-01 21:43:09 +01:00
|
|
|
v-if="isHydrated && currentUser "
|
|
|
|
command
|
2022-12-30 16:29:34 +01:00
|
|
|
icon="i-ri:user-line"
|
|
|
|
:text="$t('settings.profile.label')"
|
|
|
|
to="/settings/profile"
|
|
|
|
/>
|
|
|
|
<SettingsNavItem
|
|
|
|
command
|
|
|
|
icon="i-ri-compasses-2-line"
|
|
|
|
:text="$t('settings.interface.label')"
|
|
|
|
to="/settings/interface"
|
|
|
|
/>
|
|
|
|
<SettingsNavItem
|
|
|
|
command
|
|
|
|
icon="i-ri-globe-line"
|
|
|
|
:text="$t('settings.language.label')"
|
|
|
|
to="/settings/language"
|
|
|
|
/>
|
|
|
|
<SettingsNavItem
|
|
|
|
command
|
|
|
|
icon="i-ri:settings-2-line"
|
|
|
|
:text="$t('settings.preferences.label')"
|
|
|
|
to="/settings/preferences"
|
|
|
|
/>
|
|
|
|
<SettingsNavItem
|
|
|
|
command
|
|
|
|
icon="i-ri-group-line"
|
|
|
|
:text="$t('settings.users.label')"
|
|
|
|
to="/settings/users"
|
|
|
|
/>
|
|
|
|
<SettingsNavItem
|
|
|
|
command
|
|
|
|
icon="i-ri:information-line"
|
|
|
|
:text="$t('settings.about.label')"
|
|
|
|
to="/settings/about"
|
|
|
|
/>
|
2022-12-26 09:50:11 +01:00
|
|
|
</div>
|
2022-12-30 16:29:34 +01:00
|
|
|
</MainContent>
|
|
|
|
</div>
|
|
|
|
<div flex-1 :class="isRootPath ? 'hidden lg:block' : 'block'">
|
|
|
|
<NuxtPage />
|
|
|
|
</div>
|
2022-12-26 09:50:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|