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-16 19:33:51 +00:00
|
|
|
useHydratedHead({
|
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">
|
2023-04-16 19:33:51 +00:00
|
|
|
<span>{{ isHydrated ? $t('settings.profile.label') : '' }}</span>
|
2022-12-26 08:50:11 +00:00
|
|
|
</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"
|
2023-04-16 19:33:51 +00:00
|
|
|
:text="isHydrated ? $t('settings.profile.appearance.label') : ''"
|
|
|
|
:description="isHydrated ? $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"
|
2023-04-16 19:33:51 +00:00
|
|
|
:text="isHydrated ? $t('settings.profile.featured_tags.label') : ''"
|
|
|
|
:description="isHydrated ? $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>
|