feat: authentication improvements

This commit is contained in:
NGPixel
2018-08-04 17:27:55 -04:00
committed by Nicolas Giard
parent 2817c72ec3
commit bcd6ceb271
39 changed files with 1727 additions and 1828 deletions

View File

@@ -1,8 +1,10 @@
import { make } from 'vuex-pathify'
/* global siteConfig */
const state = {
theme: {
dark: false
dark: siteConfig.darkMode
}
}

View File

@@ -4,6 +4,8 @@ import Vuex from 'vuex'
import pathify from 'vuex-pathify' // eslint-disable-line import/no-duplicates
import { make } from 'vuex-pathify' // eslint-disable-line import/no-duplicates
import site from './site'
Vue.use(Vuex)
const state = {
@@ -46,5 +48,7 @@ export default new Vuex.Store({
}
},
actions: { },
modules: { }
modules: {
site
}
})

15
client/store/site.js Normal file
View File

@@ -0,0 +1,15 @@
import { make } from 'vuex-pathify'
/* global siteConfig */
const state = {
company: '',
mascot: true,
title: siteConfig.title
}
export default {
namespaced: true,
state,
mutations: make.mutations(state)
}