-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsView.vue
More file actions
50 lines (48 loc) · 1.35 KB
/
SettingsView.vue
File metadata and controls
50 lines (48 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<script lang="ts" setup>
import HeaderModule from "@/components/HeaderComponent.vue";
import SearchBarModule from "@/components/SearchComponent.vue";
import Setting from "@/components/settings/Setting.vue";
const settings = {
general: {
name: "General",
children: ["Your profile", "Online status", "Language", "Theme"],
},
privacy: {
name: "Privacy",
children: ["Blocked users", "Profile visibility"],
},
security: {
name: "Security",
children: [
"Multi-factor authentication",
"Your devices",
"Account recovery",
"Profile visibility",
],
},
notifications: {
name: "Notifications",
children: ["Do not disturb Mode", "Notifications sound", "Vibrations"],
},
about: {
name: "About",
children: ["Terms of Service", "Privacy Policy", "App version"],
},
advanced: {
name: "Advanced",
children: ["Developer Mode", "Diagnostics data"],
},
};
</script>
<template>
<HeaderModule title="Settings" class="py-2" />
<SearchBarModule class="my-4" />
<h1 class="w-full text-2xl text-center font-semibold">
⚠️ Feature disabled ⚠️
</h1>
<Setting
v-for="{ name, children } in settings"
:children="children"
:name="name"
/>
</template>