Large refactor on the front end

Created pages directory
Added night mode
This commit is contained in:
Max G
2019-07-30 19:10:31 +00:00
parent fcee24a61d
commit 7806a206b2
14 changed files with 98 additions and 79 deletions

View File

@@ -37,6 +37,11 @@ export default {
},
beforeCreate: function(){
//Set color theme based on local storage
if(localStorage.getItem('nightMode') == 'true'){
this.$store.commit('toggleNightMode')
}
//Puts token into state on page load
let token = localStorage.getItem('loginToken')
let username = localStorage.getItem('username')