elk/pages/settings/profile/index.vue

46 lines
1.2 KiB
Vue
Raw Normal View History

<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
2023-01-04 14:57:12 +01:00
2023-01-09 21:20:26 +01:00
const { $t } = useFluent()
2023-01-04 14:57:12 +01:00
useHeadFixed({
2023-01-09 21:20:26 +01:00
title: () => `${$t('settings_profile_label')} | ${$t('nav_settings')}`,
2023-01-04 14:57:12 +01:00
})
</script>
<template>
<MainContent back-on-small-screen>
<template #title>
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
2023-01-09 21:20:26 +01:00
<span>{{ $t('settings_profile_label') }}</span>
</div>
</template>
2023-01-02 21:19:36 +01:00
<SettingsItem
command large
icon="i-ri:user-settings-line"
2023-01-09 21:20:26 +01:00
:text="$t('settings_profile_appearance_label')"
:description="$t('settings_profile_appearance_description')"
to="/settings/profile/appearance"
/>
2023-01-02 21:19:36 +01:00
<SettingsItem
command large
icon="i-ri:hashtag"
2023-01-09 21:20:26 +01:00
:text="$t('settings_profile_featured_tags_label')"
:description="$t('settings_profile_featured_tags_description')"
to="/settings/profile/featured-tags"
/>
<SettingsItem
v-if="isHydrated && currentUser"
command large
icon="i-ri:settings-line"
2023-01-09 21:20:26 +01:00
:text="$t('settings_account_settings_label')"
:description="$t('settings_account_settings_description')"
:to="`https://${currentUser!.server}/auth/edit`"
external target="_blank"
/>
</MainContent>
</template>