LeagueStats/client/src/store/index.js

44 lines
907 B
JavaScript
Raw Normal View History

import Vue from 'vue'
import Vuex from 'vuex'
2020-12-17 21:48:02 +00:00
import * as cdragon from '@/store/modules/cdragon'
import * as detailedMatch from '@/store/modules/detailedMatch'
import * as notification from '@/store/modules/notification'
import * as settings from '@/store/modules/settings'
2019-09-08 20:08:49 +00:00
import * as summoner from '@/store/modules/summoner'
Vue.use(Vuex)
2023-09-20 20:01:43 +00:00
const debug = import.meta.env.DEV
export default new Vuex.Store({
modules: {
2020-12-17 21:48:02 +00:00
cdragon,
detailedMatch,
notification,
settings,
2023-09-20 20:01:43 +00:00
summoner,
2019-09-08 20:08:49 +00:00
},
state: {
regionsList: {
2023-09-20 20:01:43 +00:00
br: 'br1',
eune: 'eun1',
euw: 'euw1',
jp: 'jp1',
kr: 'kr',
lan: 'la1',
las: 'la2',
na: 'na1',
oce: 'oc1',
tr: 'tr1',
ru: 'ru',
ph: 'ph2',
sg: 'sg2',
th: 'th2',
tw: 'tw2',
vn: 'vn2',
},
2023-09-20 20:01:43 +00:00
roles: ['TOP', 'JUNGLE', 'MIDDLE', 'BOTTOM', 'UTILITY'],
},
2023-09-20 20:01:43 +00:00
strict: debug,
})