import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import shell from './modules/shell'
import cart from './modules/cart'
import stats from './modules/stats'
import statistics from './modules/statistics'
import release from './modules/release'
import im from './modules/im'
import chat from './modules/chat'
import { clearSession } from './actions/session'

Vue.use(Vuex)

export default new Vuex.Store({
	modules: {
		user,
		shell,
		cart,
		stats,
		statistics,
		release,
		im,
		chat
	},
	actions: {
		clearSession
	}
})
