Skip to content

Commit ea1dc79

Browse files
committed
feat: implement skeleton settings view
1 parent 5ef94b5 commit ea1dc79

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/router/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { boardsApi } from '@/api'
33
import Boards from '@/views/Boards.vue'
44
import Threads from '@/views/Threads.vue'
55
import About from '@/views/About.vue'
6+
import Settings from '@/views/Settings.vue'
67
import NotFound from '@/views/NotFound.vue'
78
import NProgress from 'nprogress'
89

@@ -23,6 +24,12 @@ const routes = [
2324
}),
2425
meta: { requiresAuth: false, bodyClass: 'threads' }
2526
},
27+
{
28+
path: '/settings',
29+
name: 'Settings',
30+
component: Settings,
31+
meta: { requiresAuth: true, bodyClass: 'settings' }
32+
},
2633
{
2734
path: '/about',
2835
name: 'About',

src/views/Settings.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<h1>{{title}}</h1>
3+
</template>
4+
5+
<script>
6+
import { reactive, toRefs } from 'vue'
7+
8+
export default {
9+
name: 'Settings',
10+
setup() {
11+
const v = reactive({
12+
title: 'Settings Page'
13+
})
14+
return { ...toRefs(v) }
15+
}
16+
}
17+
</script>
18+
19+
<style lang="scss">
20+
</style>

0 commit comments

Comments
 (0)