2022-12-29 20:14:05 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
definePageMeta({
|
|
|
|
middleware: 'auth',
|
|
|
|
})
|
2023-01-04 13:57:12 +00:00
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-04-01 12:14:12 +01:00
|
|
|
useHead({
|
2023-01-04 13:57:12 +00:00
|
|
|
title: () => `${t('settings.profile.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
2022-12-29 20:14:05 +00:00
|
|
|
</script>
|
|
|
|
|
2022-12-26 08:50:11 +00:00
|
|
|
<template>
|
2022-12-28 01:12:56 +00:00
|
|
|
<MainContent back-on-small-screen>
|
2022-12-26 08:50:11 +00:00
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<span>{{ $t('settings.profile.label') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2023-01-05 08:59:49 +00:00
|
|
|
command large
|
2022-12-26 08:50:11 +00:00
|
|
|
icon="i-ri:user-settings-line"
|
|
|
|
:text="$t('settings.profile.appearance.label')"
|
2022-12-29 20:01:31 +00:00
|
|
|
:description="$t('settings.profile.appearance.description')"
|
2022-12-26 08:50:11 +00:00
|
|
|
to="/settings/profile/appearance"
|
2022-12-29 20:01:31 +00:00
|
|
|
/>
|
2023-01-02 20:19:36 +00:00
|
|
|
<SettingsItem
|
2023-01-05 08:59:49 +00:00
|
|
|
command large
|
2022-12-26 08:50:11 +00:00
|
|
|
icon="i-ri:hashtag"
|
|
|
|
:text="$t('settings.profile.featured_tags.label')"
|
2022-12-29 20:01:31 +00:00
|
|
|
:description="$t('settings.profile.featured_tags.description')"
|
2022-12-26 08:50:11 +00:00
|
|
|
to="/settings/profile/featured-tags"
|
2022-12-29 20:01:31 +00:00
|
|
|
/>
|
2023-01-05 08:59:49 +00:00
|
|
|
<SettingsItem
|
|
|
|
v-if="isHydrated && currentUser"
|
|
|
|
command large
|
|
|
|
icon="i-ri:settings-line"
|
|
|
|
:text="$t('settings.account_settings.label')"
|
|
|
|
:description="$t('settings.account_settings.description')"
|
|
|
|
:to="`https://${currentUser!.server}/auth/edit`"
|
|
|
|
external target="_blank"
|
|
|
|
/>
|
2022-12-26 08:50:11 +00:00
|
|
|
</MainContent>
|
|
|
|
</template>
|