From d13aec01ae41531da68d8e77a0d44d94b1925691 Mon Sep 17 00:00:00 2001 From: Fiore Basile <fiore.basile@gmail.com> Date: Thu, 10 Oct 2019 16:27:55 +0200 Subject: [PATCH] add vuexfire mutations --- package.json | 3 ++- src/store/index.js | 4 ++++ yarn.lock | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a1865f2..ea8c086 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "@quasar/extras": "^1.3.2", "axios": "^0.19.0", "firebase": "^6.2.0", - "quasar": "^1.1.7" + "quasar": "^1.1.7", + "vuexfire": "^3.2.0" }, "devDependencies": { "@quasar/app": "^1.1.4", diff --git a/src/store/index.js b/src/store/index.js index abcec94..7dc7083 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,6 +2,7 @@ import Vue from "vue"; import Vuex from "vuex"; // import example from './module-example' +import { vuexfireMutations } from "vuexfire"; Vue.use(Vuex); @@ -26,6 +27,9 @@ export default function(/* { ssrContext } */) { collections, ui }, + mutations: { + ...vuexfireMutations + }, // enable strict mode (adds overhead!) // for dev mode only diff --git a/yarn.lock b/yarn.lock index cd55082..4219207 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1248,6 +1248,11 @@ resolved "https://registry.yarnpkg.com/@positron/stack-trace/-/stack-trace-1.0.0.tgz#14fcc712a530038ef9be1ce6952315a839f466a8" integrity sha1-FPzHEqUwA475vhzmlSMVqDn0Zqg= +"@posva/vuefire-core@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@posva/vuefire-core/-/vuefire-core-2.2.0.tgz#0b934e9f85822529d44b8dfd5061ef53c4b2d80f" + integrity sha512-A5fPZCL8P+0DcS5qEY3liaLzOCdDPpdGoW050VzxNueJZDHi1eLfzAEFi5ctxH5wx7r4erwX4MGekX3K5t2b9A== + "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" @@ -10965,6 +10970,13 @@ vuex@3.1.1: resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.1.1.tgz#0c264bfe30cdbccf96ab9db3177d211828a5910e" integrity sha512-ER5moSbLZuNSMBFnEBVGhQ1uCBNJslH9W/Dw2W7GZN23UQA69uapP5GTT9Vm8Trc0PzBSVt6LzF3hGjmv41xcg== +vuexfire@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/vuexfire/-/vuexfire-3.2.0.tgz#a168cf4c132e15ab5db9abcdf577011f1408a66e" + integrity sha512-eLrQFazM5nGtaFla37dTJrHNbdrr35dwImepM+uquh5YVJuYpRYkcoJO1mDi+adqYh0RJUReNVlb5SOX/VDB4w== + dependencies: + "@posva/vuefire-core" "^2.2.0" + w3c-hr-time@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" -- GitLab