traefik/webui/src/store/index.js

32 lines
549 B
JavaScript
Raw Normal View History

2019-08-26 18:15:41 +02:00
import Vue from 'vue'
import Vuex from 'vuex'
import core from './core'
import entrypoints from './entrypoints'
2019-09-10 14:40:05 +02:00
import http from './http'
import tcp from './tcp'
2019-08-26 18:15:41 +02:00
Vue.use(Vuex)
/*
* If not building with SSR mode, you can
* directly export the Store instantiation
*/
export default function (/* { ssrContext } */) {
const Store = new Vuex.Store({
modules: {
core,
2019-09-10 14:40:05 +02:00
entrypoints,
http,
tcp
2019-08-26 18:15:41 +02:00
},
// enable strict mode (adds overhead!)
// for dev mode only
strict: process.env.DEV
})
return Store
}