2022-12-29 23:14:05 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
definePageMeta({
|
|
|
|
middleware: 'auth',
|
|
|
|
})
|
2023-01-04 16:57:12 +03:00
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-04-16 22:33:51 +03:00
|
|
|
useHydratedHead({
|
2023-01-04 16:57:12 +03:00
|
|
|
title: () => `${t('settings.profile.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
2022-12-29 23:14:05 +03:00
|
|
|
</script>
|
|
|
|
|
2022-12-26 11:50:11 +03:00
|
|
|
<template>
|
2022-12-28 04:12:56 +03:00
|
|
|
<MainContent back-on-small-screen>
|
2022-12-26 11:50:11 +03:00
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
2023-04-16 22:33:51 +03:00
|
|
|
<span>{{ isHydrated ? $t('settings.profile.label') : '' }}</span>
|
2022-12-26 11:50:11 +03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-01-02 23:19:36 +03:00
|
|
|
<SettingsItem
|
2023-01-05 11:59:49 +03:00
|
|
|
command large
|
2022-12-26 11:50:11 +03:00
|
|
|
icon="i-ri:user-settings-line"
|
2023-04-16 22:33:51 +03:00
|
|
|
:text="isHydrated ? $t('settings.profile.appearance.label') : ''"
|
|
|
|
:description="isHydrated ? $t('settings.profile.appearance.description') : ''"
|
2022-12-26 11:50:11 +03:00
|
|
|
to="/settings/profile/appearance"
|
2022-12-29 23:01:31 +03:00
|
|
|
/>
|
2023-01-02 23:19:36 +03:00
|
|
|
<SettingsItem
|
2023-01-05 11:59:49 +03:00
|
|
|
command large
|
2022-12-26 11:50:11 +03:00
|
|
|
icon="i-ri:hashtag"
|
2023-04-16 22:33:51 +03:00
|
|
|
:text="isHydrated ? $t('settings.profile.featured_tags.label') : ''"
|
|
|
|
:description="isHydrated ? $t('settings.profile.featured_tags.description') : ''"
|
2022-12-26 11:50:11 +03:00
|
|
|
to="/settings/profile/featured-tags"
|
2022-12-29 23:01:31 +03:00
|
|
|
/>
|
2023-01-05 11:59:49 +03: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 11:50:11 +03:00
|
|
|
</MainContent>
|
|
|
|
</template>
|