mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
feat: ✨ Add settings page to configure account and preferences
This commit is contained in:
parent
633ff184e3
commit
1691daa000
21 changed files with 687 additions and 183 deletions
35
pages/settings/index.vue
Normal file
35
pages/settings/index.vue
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<template>
|
||||
<SidebarsSettings>
|
||||
<template #behaviour>
|
||||
<SettingsRenderer :setting="setting" v-for="setting of getSettingsForPath(
|
||||
settings,
|
||||
SettingPages.Behaviour,
|
||||
)" :key="setting.id" />
|
||||
</template>
|
||||
<template #appearance>
|
||||
<SettingsRenderer :setting="setting" v-for="setting of getSettingsForPath(
|
||||
settings,
|
||||
SettingPages.Appearance,
|
||||
)" :key="setting.id" />
|
||||
</template>
|
||||
<template #advanced>
|
||||
<SettingsRenderer :setting="setting" v-for="setting of getSettingsForPath(
|
||||
settings,
|
||||
SettingPages.Advanced,
|
||||
)" :key="setting.id" />
|
||||
</template>
|
||||
<template #account>
|
||||
<SettingsProfileEditor />
|
||||
</template>
|
||||
</SidebarsSettings>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { SettingPages, getSettingsForPath } from "~/settings";
|
||||
|
||||
definePageMeta({
|
||||
layout: "app",
|
||||
});
|
||||
|
||||
const settings = useSettings();
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue