2022-12-26 08:50:11 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
definePageMeta({
|
|
|
|
wideLayout: true,
|
|
|
|
})
|
|
|
|
|
2023-01-04 13:57:12 +00:00
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-04-16 19:33:51 +00:00
|
|
|
useHydratedHead({
|
2023-01-04 13:57:12 +00:00
|
|
|
title: () => t('nav.settings'),
|
|
|
|
})
|
|
|
|
|
2022-12-26 08:50:11 +00:00
|
|
|
const route = useRoute()
|
|
|
|
|
2024-02-24 12:24:21 +00:00
|
|
|
const isRootPath = computed(() => route.name === 'settings')
|
2022-12-26 08:50:11 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-30 15:29:34 +00:00
|
|
|
<div>
|
|
|
|
<div min-h-screen flex>
|
2023-01-01 14:29:11 +00:00
|
|
|
<div border="e base" :class="isRootPath ? 'block lg:flex-none flex-1' : 'hidden lg:block'">
|
2022-12-30 15:29:34 +00:00
|
|
|
<MainContent>
|
|
|
|
<template #title>
|
2023-01-04 23:17:30 +00:00
|
|
|
<div timeline-title-style flex items-center gap-2 @click="$scrollToTop">
|
2023-01-03 17:16:04 +00:00
|
|
|
<div i-ri:settings-3-line />
|
2024-02-24 12:24:21 +00:00
|
|
|
<span>{{ $t('nav.settings') }}</span>
|
2022-12-30 15:29:34 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<div xl:w-97 lg:w-78 w-full>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2024-02-24 12:24:21 +00:00
|
|
|
v-if="currentUser"
|
2023-01-01 20:43:09 +00:00
|
|
|
command
|
2022-12-30 15:29:34 +00:00
|
|
|
icon="i-ri:user-line"
|
|
|
|
:text="$t('settings.profile.label')"
|
|
|
|
to="/settings/profile"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/profile/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2022-12-30 15:29:34 +00:00
|
|
|
command
|
|
|
|
icon="i-ri-compasses-2-line"
|
2024-02-24 12:24:21 +00:00
|
|
|
:text="$t('settings.interface.label')"
|
2022-12-30 15:29:34 +00:00
|
|
|
to="/settings/interface"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/interface/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2023-01-05 08:47:58 +00:00
|
|
|
<SettingsItem
|
2024-02-24 12:24:21 +00:00
|
|
|
v-if="currentUser"
|
2023-01-05 08:47:58 +00:00
|
|
|
command
|
|
|
|
icon="i-ri:notification-badge-line"
|
|
|
|
:text="$t('settings.notifications_settings')"
|
|
|
|
to="/settings/notifications"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/notifications/')"
|
2023-01-05 08:47:58 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2022-12-30 15:29:34 +00:00
|
|
|
command
|
|
|
|
icon="i-ri-globe-line"
|
2024-02-24 12:24:21 +00:00
|
|
|
:text="$t('settings.language.label')"
|
2022-12-30 15:29:34 +00:00
|
|
|
to="/settings/language"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/language/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2022-12-30 15:29:34 +00:00
|
|
|
command
|
2023-01-03 17:16:04 +00:00
|
|
|
icon="i-ri-equalizer-line"
|
2024-02-24 12:24:21 +00:00
|
|
|
:text="$t('settings.preferences.label')"
|
2022-12-30 15:29:34 +00:00
|
|
|
to="/settings/preferences"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/preferences/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2022-12-30 15:29:34 +00:00
|
|
|
command
|
|
|
|
icon="i-ri-group-line"
|
2024-02-24 12:24:21 +00:00
|
|
|
:text="$t('settings.users.label')"
|
2022-12-30 15:29:34 +00:00
|
|
|
to="/settings/users"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/users/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2022-12-30 15:29:34 +00:00
|
|
|
command
|
|
|
|
icon="i-ri:information-line"
|
2024-02-24 12:24:21 +00:00
|
|
|
:text="$t('settings.about.label')"
|
2022-12-30 15:29:34 +00:00
|
|
|
to="/settings/about"
|
2023-01-22 19:53:04 +00:00
|
|
|
:match="$route.path.startsWith('/settings/about/')"
|
2022-12-30 15:29:34 +00:00
|
|
|
/>
|
2022-12-26 08:50:11 +00:00
|
|
|
</div>
|
2022-12-30 15:29:34 +00:00
|
|
|
</MainContent>
|
|
|
|
</div>
|
|
|
|
<div flex-1 :class="isRootPath ? 'hidden lg:block' : 'block'">
|
2023-01-14 09:34:53 +00:00
|
|
|
<ClientOnly>
|
|
|
|
<NuxtPage />
|
|
|
|
</ClientOnly>
|
2022-12-30 15:29:34 +00:00
|
|
|
</div>
|
2022-12-26 08:50:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|