Add NoteCreation route and view
This commit is contained in:
parent
39e31fbdb1
commit
64c3693f73
@ -3,6 +3,7 @@ import VueRouter from 'vue-router'
|
|||||||
import Home from '../views/Home.vue'
|
import Home from '../views/Home.vue'
|
||||||
import Signup from '../views/Signup.vue'
|
import Signup from '../views/Signup.vue'
|
||||||
import Signin from '../views/Signin.vue'
|
import Signin from '../views/Signin.vue'
|
||||||
|
import NoteCreation from '../views/NoteCreation.vue'
|
||||||
|
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
@ -21,6 +22,11 @@ const routes = [
|
|||||||
path: '/signin',
|
path: '/signin',
|
||||||
name: 'Signin',
|
name: 'Signin',
|
||||||
component: Signin
|
component: Signin
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/note/new',
|
||||||
|
name: 'NoteCreation',
|
||||||
|
component: NoteCreation
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
19
web/src/views/NoteCreation.vue
Normal file
19
web/src/views/NoteCreation.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<Navbar/>
|
||||||
|
<b-container class="mt-5">
|
||||||
|
<SigninForm/>
|
||||||
|
</b-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Navbar from "@/components/Navbar";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Home',
|
||||||
|
components: {
|
||||||
|
Navbar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Loading…
x
Reference in New Issue
Block a user