Implement auth & register

This commit is contained in:
2020-04-23 00:11:26 +02:00
parent 0096fb0a00
commit 2dc7985334
6 changed files with 36 additions and 57 deletions
+4 -5
View File
@@ -6,10 +6,11 @@
color="primary"
dark
>
<v-toolbar-title>Notes</v-toolbar-title>
<v-btn to="/" text rounded>Simple Notes</v-btn>
<v-spacer/>
<v-btn to="/notes" text rounded>My notes</v-btn>
<v-btn to="/account" text rounded>Account</v-btn>
<v-btn outlined v-if="this.$store.state.auth.loggedIn">Welcome {{this.$store.state.auth.user.username}}</v-btn>
<v-btn v-else to="/account" text rounded>Account</v-btn>
</v-app-bar>
<v-content>
<v-container>
@@ -20,9 +21,7 @@
</template>
<script>
export default {
}
export default {}
</script>
<style>
-33
View File
@@ -1,33 +0,0 @@
<template>
<v-app>
<v-app-bar
fixed
app
color="primary"
dark
prominent
>
<v-toolbar-title>Notes</v-toolbar-title>
<v-spacer/>
<v-btn to="/notes" text rounded>My notes</v-btn>
<v-btn to="/account" text rounded>Account</v-btn>
</v-app-bar>
<v-content>
<v-container>
<nuxt/>
</v-container>
</v-content>
</v-app>
</template>
<script>
export default {
}
</script>
<style>
html {
overflow-y: auto
}
</style>