Whalebird-desktop-client-ma.../src/renderer/store/index.js

32 lines
691 B
JavaScript
Raw Normal View History

2018-03-07 14:28:48 +01:00
import Vue from 'vue'
import Vuex from 'vuex'
2018-03-08 09:41:39 +01:00
import createLogger from 'vuex/dist/logger'
2018-03-07 14:28:48 +01:00
import App from './App'
2018-03-08 11:53:14 +01:00
import GlobalHeader from './GlobalHeader'
2018-03-08 09:41:39 +01:00
import Login from './Login'
import Authorize from './Authorize'
import TimelineSpace from './TimelineSpace'
import Preferences from './Preferences'
import Settings from './Settings'
import molecules from './molecules'
2018-03-07 14:28:48 +01:00
Vue.use(Vuex)
export default new Vuex.Store({
2018-03-08 09:41:39 +01:00
strict: process.env.NODE_ENV !== 'production',
plugins: process.env.NODE_ENV !== 'production'
? [createLogger()]
: [],
modules: {
App,
2018-03-08 11:53:14 +01:00
GlobalHeader,
2018-03-08 09:41:39 +01:00
Login,
Authorize,
TimelineSpace,
Preferences,
Settings,
molecules
2018-03-08 09:41:39 +01:00
}
2018-03-07 14:28:48 +01:00
})