From 280c6068c018ff006187c03bd0dd3c436e00530e Mon Sep 17 00:00:00 2001 From: paidge <paidge_cs@hotmail.com> Date: Tue, 1 Nov 2022 21:18:29 +0100 Subject: [PATCH] bug version in firefox module --- components/navigation/menu/Sidebar.vue | 6 ++++-- nuxt.config.js | 6 +----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/navigation/menu/Sidebar.vue b/components/navigation/menu/Sidebar.vue index df54c05..9d7af85 100644 --- a/components/navigation/menu/Sidebar.vue +++ b/components/navigation/menu/Sidebar.vue @@ -50,7 +50,7 @@ "> <solid-terminal-icon style="width: 0.9rem" - aria-hidden="true" /> v{{ $config.clientVersion }} | + aria-hidden="true" /> v{{ version_ww }} | {{ $t("apropos.title") }} </button> </div> @@ -58,13 +58,15 @@ </template> <script> +import pkg from "~/package.json" import { LAST_BLOCK } from "@/graphql/queries.js" import { VERSION } from "@/graphql/queries.js" export default { data() { return { - screenwidth: 0 + screenwidth: 0, + version_ww: pkg.version } }, props: { diff --git a/nuxt.config.js b/nuxt.config.js index 114d7b8..00ceac7 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,5 +1,4 @@ import i18n from "./i18n" -import pkg from "./package.json" import APOLLO_CONFIG from "./graphql/config" export default { @@ -10,10 +9,7 @@ export default { target: "static", // Variables that can be accessed by $config - publicRuntimeConfig: { - // Application version from package.json - clientVersion: pkg.version - }, + publicRuntimeConfig: {}, // Global page headers: https://go.nuxtjs.dev/config-head head: { -- GitLab