feat: Traefik Pilot WebUI
This commit is contained in:
parent
4a31544024
commit
58bf1a2ca5
16 changed files with 564 additions and 50 deletions
|
@ -6,6 +6,7 @@ import entrypoints from './entrypoints'
|
|||
import http from './http'
|
||||
import tcp from './tcp'
|
||||
import udp from './udp'
|
||||
import platform from './platform'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
|
@ -21,7 +22,8 @@ export default function (/* { ssrContext } */) {
|
|||
entrypoints,
|
||||
http,
|
||||
tcp,
|
||||
udp
|
||||
udp,
|
||||
platform
|
||||
},
|
||||
|
||||
// enable strict mode (adds overhead!)
|
||||
|
|
27
webui/src/store/platform/index.js
Normal file
27
webui/src/store/platform/index.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
export default {
|
||||
namespaced: true,
|
||||
getters: {
|
||||
isOpen (state) {
|
||||
return state.isOpen
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
toggle (state, isOpen) {
|
||||
state.isOpen = isOpen || !state.isOpen
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
toggle ({ commit }) {
|
||||
commit('toggle')
|
||||
},
|
||||
open ({ commit }) {
|
||||
commit('toggle', true)
|
||||
},
|
||||
close ({ commit }) {
|
||||
commit('toggle', false)
|
||||
}
|
||||
},
|
||||
state: {
|
||||
isOpen: false
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue