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()
|
|
|
|
|
|
|
|
useHeadFixed({
|
|
|
|
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">
|
|
|
|
<span>{{ $t('settings.profile.label') }}</span>
|
|
|
|
</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"
|
|
|
|
:text="$t('settings.profile.appearance.label')"
|
2022-12-29 23:01:31 +03:00
|
|
|
:description="$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"
|
|
|
|
:text="$t('settings.profile.featured_tags.label')"
|
2022-12-29 23:01:31 +03:00
|
|
|
:description="$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>
|