2019-08-22 22:50:00 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import Vuex from 'vuex'
|
2019-11-03 17:49:58 +00:00
|
|
|
import * as detailedMatch from '@/store/modules/detailedMatch'
|
2019-08-22 22:50:00 +00:00
|
|
|
import * as notification from '@/store/modules/notification'
|
2019-11-23 12:38:35 +00:00
|
|
|
import * as settings from '@/store/modules/settings'
|
2019-09-08 20:08:49 +00:00
|
|
|
import * as summoner from '@/store/modules/summoner'
|
2019-08-22 22:50:00 +00:00
|
|
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
|
|
|
|
|
|
const debug = process.env.NODE_ENV !== 'production'
|
|
|
|
|
|
|
|
|
|
export default new Vuex.Store({
|
|
|
|
|
modules: {
|
2019-11-03 17:49:58 +00:00
|
|
|
detailedMatch,
|
2019-08-22 22:50:00 +00:00
|
|
|
notification,
|
2019-11-23 12:38:35 +00:00
|
|
|
settings,
|
2019-09-08 20:08:49 +00:00
|
|
|
summoner
|
|
|
|
|
},
|
|
|
|
|
state: {
|
|
|
|
|
regionsList: {
|
|
|
|
|
'br': 'br1',
|
|
|
|
|
'eune': 'eun1',
|
|
|
|
|
'euw': 'euw1',
|
|
|
|
|
'jp': 'jp1',
|
|
|
|
|
'kr': 'kr',
|
|
|
|
|
'lan': 'la1',
|
|
|
|
|
'las': 'la2',
|
|
|
|
|
'na': 'na1',
|
|
|
|
|
'oce': 'oc1',
|
|
|
|
|
'tr': 'tr1',
|
|
|
|
|
'ru': 'ru'
|
2019-09-20 21:32:28 +00:00
|
|
|
},
|
|
|
|
|
roles: ['TOP', 'JUNGLE', 'MIDDLE', 'BOTTOM', 'SUPPORT']
|
2019-08-22 22:50:00 +00:00
|
|
|
},
|
|
|
|
|
strict: debug
|
|
|
|
|
})
|