Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default {
css: [],

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [{ src: '~/plugins/gtag.js', mode: 'client' }],
plugins: [
{ src: '~/plugins/gtag.client.js' },
{ src: '~/plugins/vuex-persistedstate.client.js' },
],

// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
Expand Down
3 changes: 2 additions & 1 deletion nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"ellipsize": "^0.5.1",
"nuxt": "2.15.8",
"vue-gravatar": "^1.4.1",
"vue-gtag": "^1"
"vue-gtag": "^1",
"vuex-persistedstate": "^4.1.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.2",
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions nuxt/plugins/vuex-persistedstate.client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
createPersistedState({ key: 'druxtCache' })(store)
}
13 changes: 13 additions & 0 deletions nuxt/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18223,6 +18223,11 @@ shell-quote@^1.4.2, shell-quote@^1.6.1:
resolved "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz"
integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==

shvl@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/shvl/-/shvl-2.0.3.tgz#eb4bd37644f5684bba1fc52c3010c96fb5e6afd1"
integrity sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==

side-channel@^1.0.4:
version "1.0.4"
resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz"
Expand Down Expand Up @@ -20474,6 +20479,14 @@ vue@^2.6.12, vue@^2.6.14:
resolved "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz"
integrity sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==

vuex-persistedstate@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz#127165f85f5b4534fb3170a5d3a8be9811bd2a53"
integrity sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==
dependencies:
deepmerge "^4.2.2"
shvl "^2.0.3"

vuex@^3.6.2:
version "3.6.2"
resolved "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz"
Expand Down