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