1
0
Fork 0

chore(webui): Migrate to Quasar 2.x and Vue.js 3.x

This commit is contained in:
Andi Sardina Ramos 2024-02-26 16:02:04 +02:00 committed by GitHub
parent 153765f99f
commit f7edb394f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 4374 additions and 7999 deletions

View file

@ -1,5 +1,5 @@
import Vue from 'vue'
import Vuex from 'vuex'
import { createStore } from 'vuex'
import { store } from 'quasar/wrappers'
import core from './core'
import entrypoints from './entrypoints'
@ -8,15 +8,13 @@ import tcp from './tcp'
import udp from './udp'
import platform from './platform'
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({
export default store((/* { ssrContext } */) => {
const Store = createStore({
modules: {
core,
entrypoints,
@ -32,4 +30,4 @@ export default function (/* { ssrContext } */) {
})
return Store
}
})