1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

Initial commit

This commit is contained in:
lana-k
2020-09-20 22:52:06 +02:00
commit 0a0407cb04
27 changed files with 17617 additions and 0 deletions

24
src/store/index.js Normal file
View File

@@ -0,0 +1,24 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
schema: null,
dbFile: null,
worker: new Worker('/js/worker.sql-wasm.js')
},
mutations: {
saveSchema (state, schema) {
state.schema = schema
},
saveDbFile (state, file) {
state.dbFile = file
}
},
actions: {
},
modules: {
}
})