feat: authentication improvements
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { make } from 'vuex-pathify'
|
||||
|
||||
/* global siteConfig */
|
||||
|
||||
const state = {
|
||||
theme: {
|
||||
dark: false
|
||||
dark: siteConfig.darkMode
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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
15
client/store/site.js
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user