feat: added a profile settings and settings nav (#432)

This commit is contained in:
Ayaka Rizumu 2022-12-26 16:50:11 +08:00 committed by GitHub
parent c8a7e6e7e7
commit 613c5315b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 698 additions and 7 deletions

View file

@ -0,0 +1,34 @@
<script lang="ts" setup>
const { lg } = breakpoints
</script>
<template>
<MainContent :back="!lg">
<template #title>
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<span>{{ $t('settings.profile.label') }}</span>
</div>
</template>
<SettingsNavItem
command
icon="i-ri:user-settings-line"
:text="$t('settings.profile.appearance.label')"
to="/settings/profile/appearance"
>
<template #description>
{{ $t('settings.profile.appearance.description') }}
</template>
</SettingsNavItem>
<SettingsNavItem
command
icon="i-ri:hashtag"
:text="$t('settings.profile.featured_tags.label')"
to="/settings/profile/featured-tags"
>
<template #description>
{{ $t('settings.profile.featured_tags.description') }}
</template>
</SettingsNavItem>
</MainContent>
</template>