From 4b459c9974af9a08e23777e3ae9718959d95569e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 2 Aug 2019 23:58:10 +0200 Subject: [PATCH 1/2] Fix depreciation warnings I couldn't see any difference in using `transition`, `pageTransition` or neither of those, so I decided to disable the configuration completely. --- webapp/nuxt.config.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index e9f34d1be..92ecfdb98 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -21,10 +21,10 @@ module.exports = { modern: !dev ? 'server' : false, - transition: { - name: 'slide-up', - mode: 'out-in', - }, + // transition: { + // name: 'slide-up', + // mode: 'out-in', + // }, env: { // pages which do NOT require a login @@ -162,7 +162,9 @@ module.exports = { // Give apollo module options apollo: { tokenName: 'human-connection-token', // optional, default: apollo-token - tokenExpires: 3, // optional, default: 7 (days) + cookieAttributes: { + expires: 3, // optional, default: 7 (days) + }, // includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder) // Watch loading state for all queries From f7152703bccc7e8d7c6c80695331c649dcada8e6 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Tue, 6 Aug 2019 08:23:32 +0200 Subject: [PATCH 2/2] Upgrade node-fetch, use pageTransition --- webapp/nuxt.config.js | 8 ++++---- webapp/package.json | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index 92ecfdb98..72aa9d545 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -21,10 +21,10 @@ module.exports = { modern: !dev ? 'server' : false, - // transition: { - // name: 'slide-up', - // mode: 'out-in', - // }, + pageTransition: { + name: 'slide-up', + mode: 'out-in', + }, env: { // pages which do NOT require a login diff --git a/webapp/package.json b/webapp/package.json index a8fda5905..018be2ca6 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -65,6 +65,7 @@ "isemail": "^3.2.0", "jsonwebtoken": "~8.5.1", "linkify-it": "~2.2.0", + "node-fetch": "^2.6.0", "nuxt": "~2.8.1", "nuxt-dropzone": "^1.0.2", "nuxt-env": "~0.1.0",