diff --git a/package-lock.json b/package-lock.json index c38ec7f..beeab25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqliteviz", - "version": "0.18.1", + "version": "0.22.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sqliteviz", - "version": "0.18.1", + "version": "0.22.0", "license": "Apache-2.0", "dependencies": { "codemirror": "^5.57.0", @@ -5248,9 +5248,9 @@ "dev": true }, "node_modules/caniuse-lite": { - "version": "1.0.30001352", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001352.tgz", - "integrity": "sha512-GUgH8w6YergqPQDGWhJGt8GDRnY0L/iJVQcU3eJ46GYf52R8tk0Wxp0PymuFVZboJYXGiCqwozAYZNRjVj6IcA==", + "version": "1.0.30001488", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz", + "integrity": "sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ==", "dev": true, "funding": [ { @@ -5260,6 +5260,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, @@ -27489,7 +27493,6 @@ "integrity": "sha512-iFv9J3F5VKUPcbx+TqW5qhGmAVyXQxPRpKpPOuTLFIVTzg+iwJnrqVbL4kJU5ECGDxPESW2oCVgxv9bTlDPu7w==", "dev": true, "requires": { - "@babel/core": "^7.11.0", "@babel/helper-compilation-targets": "^7.9.6", "@babel/helper-module-imports": "^7.8.3", "@babel/plugin-proposal-class-properties": "^7.8.3", @@ -27502,7 +27505,6 @@ "@vue/babel-plugin-jsx": "^1.0.3", "@vue/babel-preset-jsx": "^1.2.4", "babel-plugin-dynamic-import-node": "^2.3.3", - "core-js": "^3.6.5", "core-js-compat": "^3.6.5", "semver": "^6.1.0" } @@ -29627,9 +29629,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001352", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001352.tgz", - "integrity": "sha512-GUgH8w6YergqPQDGWhJGt8GDRnY0L/iJVQcU3eJ46GYf52R8tk0Wxp0PymuFVZboJYXGiCqwozAYZNRjVj6IcA==", + "version": "1.0.30001488", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz", + "integrity": "sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ==", "dev": true }, "canvas-fit": { diff --git a/package.json b/package.json index c9e76c3..a473704 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sqliteviz", - "version": "0.21.1", + "version": "0.22.0", "license": "Apache-2.0", "private": true, "scripts": { diff --git a/src/store/mutations.js b/src/store/mutations.js index def7451..4ac4e0f 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -53,5 +53,11 @@ export default { }, updatePredefinedInquiries (state, inquiries) { state.predefinedInquiries = Array.isArray(inquiries) ? inquiries : [inquiries] + }, + setLoadingPredefinedInquiries (state, value) { + state.loadingPredefinedInquiries = value + }, + setPredefinedInquiriesLoaded (state, value) { + state.predefinedInquiriesLoaded = value } } diff --git a/src/store/state.js b/src/store/state.js index bf0db86..aeb7b0d 100644 --- a/src/store/state.js +++ b/src/store/state.js @@ -4,5 +4,7 @@ export default { currentTabId: null, untitledLastIndex: 0, predefinedInquiries: [], + loadingPredefinedInquiries: false, + predefinedInquiriesLoaded: false, db: null } diff --git a/src/views/Main/Inquiries/index.vue b/src/views/Main/Inquiries/index.vue index 97efa4d..9612c19 100644 --- a/src/views/Main/Inquiries/index.vue +++ b/src/views/Main/Inquiries/index.vue @@ -1,11 +1,18 @@