traefik/webui/src/store/index.js

34 lines
646 B
JavaScript
Raw Normal View History

import { createStore } from 'vuex'
import { store } from 'quasar/wrappers'
2019-08-26 18:15:41 +02:00
import core from './core'
import entrypoints from './entrypoints'
2019-09-10 14:40:05 +02:00
import http from './http'
import tcp from './tcp'
2020-02-26 11:12:06 +01:00
import udp from './udp'
2020-05-19 09:12:53 +02:00
import platform from './platform'
2019-08-26 18:15:41 +02:00
/*
* If not building with SSR mode, you can
* directly export the Store instantiation
*/
export default store((/* { ssrContext } */) => {
const Store = createStore({
2019-08-26 18:15:41 +02:00
modules: {
core,
2019-09-10 14:40:05 +02:00
entrypoints,
http,
2020-02-26 11:12:06 +01:00
tcp,
2020-05-19 09:12:53 +02:00
udp,
platform
2019-08-26 18:15:41 +02:00
},
// enable strict mode (adds overhead!)
// for dev mode only
strict: process.env.DEV
})
return Store
})