2018-10-12 16:42:54 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
|
|
|
|
|
|
import example from './module-example/index'
|
|
|
|
|
import glob from './modules/glob';
|
2018-10-14 22:10:00 +02:00
|
|
|
import user from './modules/user';
|
2018-10-13 19:14:58 +02:00
|
|
|
import types from './mutation-types'
|
2018-10-12 16:42:54 +02:00
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
|
2018-10-15 02:50:06 +02:00
|
|
|
|
2018-10-12 16:42:54 +02:00
|
|
|
const debug = process.env.NODE_ENV !== 'production';
|
|
|
|
|
|
|
|
|
|
Vue.filter('time', timestamp => {
|
|
|
|
|
return new Date(timestamp).toLocaleTimeString()
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default new Vuex.Store({
|
|
|
|
|
modules: {
|
|
|
|
|
glob,
|
2018-10-14 22:10:00 +02:00
|
|
|
user,
|
2018-10-12 16:42:54 +02:00
|
|
|
example
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//strict: debug,
|
|
|
|
|
//plugins: debug ? [createLogger()] : []
|
|
|
|
|
});
|