From 787c20d8fa32b90b8b48d796c560767efe0048c5 Mon Sep 17 00:00:00 2001 From: paidge <paidge_cs@hotmail.com> Date: Tue, 4 Jan 2022 02:15:06 +0100 Subject: [PATCH] remove purgecss and improve keyfields for graphQL types --- graphql/index.js | 4 ++-- nuxt.config.js | 4 ++-- package.json | 1 - pages/index.vue | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/graphql/index.js b/graphql/index.js index ea6b4f4..8f401a2 100644 --- a/graphql/index.js +++ b/graphql/index.js @@ -19,7 +19,7 @@ export default ctx => { const cache = new InMemoryCache({ typePolicies: { Event: { - keyFields: ['block',['bct']] + keyFields: ['block',['number ']] }, EventId: { keyFields: ['member',['hash'],'inOut'] @@ -28,7 +28,7 @@ export default ctx => { keyFields: ['hash'] }, Forecast: { - keyFields: ['member',['hash'],'date'] + keyFields: ['member',['hash'],'date','after','proba'] } } }) diff --git a/nuxt.config.js b/nuxt.config.js index d99a638..a0324ee 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -35,8 +35,7 @@ export default { // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules buildModules: [ // https://go.nuxtjs.dev/pwa - '@nuxtjs/pwa', - 'nuxt-purgecss' + '@nuxtjs/pwa' ], // Modules: https://go.nuxtjs.dev/config-modules @@ -60,6 +59,7 @@ export default { }, bootstrapVue: { + // For using custom Bootstrap SCSS, disable automatic inclusion of Bootstrap and BootstrapVue pre-compiled CSS files css: false, bvCSS: false }, diff --git a/package.json b/package.json index 4660095..a00be6b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "dayjs": "^1.10.7", "graphql-tag": "^2.12.6", "nuxt": "^2.15.8", - "nuxt-purgecss": "^1.0.0", "vue": "^2.6.14" }, "devDependencies": { diff --git a/pages/index.vue b/pages/index.vue index 5b568a8..bd6d156 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -58,7 +58,7 @@ export default { inOut }, block { - bct + number } } } `, -- GitLab