add localstorage state persistence
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
"strong-error-handler": "^1.0.1",
|
||||
"vue": "^2.1.10",
|
||||
"vue-router": "^2.2.0",
|
||||
"vuex": "^2.1.2"
|
||||
"vuex": "^2.1.2",
|
||||
"vuex-persistedstate": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.22.1",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import Vuex from 'vuex';
|
||||
import createPersistedState from 'vuex-persistedstate';
|
||||
|
||||
import authentication from './authentication';
|
||||
|
||||
@@ -11,6 +12,9 @@ const store = new Vuex.Store({
|
||||
modules: {
|
||||
authentication,
|
||||
},
|
||||
plugins: [
|
||||
createPersistedState(),
|
||||
],
|
||||
});
|
||||
|
||||
export default store;
|
||||
|
||||
15
yarn.lock
15
yarn.lock
@@ -3415,6 +3415,10 @@ lodash.memoize@^4.1.0:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
|
||||
|
||||
lodash.merge@^4.6.0:
|
||||
version "4.6.0"
|
||||
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5"
|
||||
|
||||
lodash.mergewith@^4.6.0:
|
||||
version "4.6.0"
|
||||
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz#150cf0a16791f5903b8891eab154609274bdea55"
|
||||
@@ -4143,6 +4147,10 @@ object-keys@^1.0.8:
|
||||
version "1.0.11"
|
||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
|
||||
|
||||
object-path@^0.11.2:
|
||||
version "0.11.3"
|
||||
resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.3.tgz#3e21a42ad07234d815429ae9e15c1c5f38050554"
|
||||
|
||||
object.omit@^2.0.0:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
|
||||
@@ -5984,6 +5992,13 @@ vue@^2.1.10:
|
||||
version "2.1.10"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.1.10.tgz#c9235ca48c7925137be5807832ac4e3ac180427b"
|
||||
|
||||
vuex-persistedstate@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/vuex-persistedstate/-/vuex-persistedstate-1.2.0.tgz#7725c9e926fd7231348ea39b30c772acb5e4a1a9"
|
||||
dependencies:
|
||||
lodash.merge "^4.6.0"
|
||||
object-path "^0.11.2"
|
||||
|
||||
vuex@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/vuex/-/vuex-2.1.2.tgz#15d2da62dd6ff59c071f0a91cd4f434eacf6ca6c"
|
||||
|
||||
Reference in New Issue
Block a user