From 1f575b2bc072515409ef0f6a85bde7f544fbfddf Mon Sep 17 00:00:00 2001 From: DecDuck Date: Thu, 17 Oct 2024 21:04:32 +1100 Subject: [PATCH] small fixes & SSR disabled SSR was causing weird issues where error pages would flash because the user wasn't logged in. I'm disabling it for now, but I will eventually look into ways to fix the issue and re-enable it. --- layouts/default.vue | 4 ++-- nuxt.config.ts | 2 ++ pages/client/[id]/callback.vue | 6 +++++- pages/index.vue | 7 +++---- pages/store/[id]/index.vue | 20 ++++++++++++-------- 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index c46ec2a..85dd60c 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,11 +1,11 @@ diff --git a/pages/store/[id]/index.vue b/pages/store/[id]/index.vue index b12b5b6..29dd86f 100644 --- a/pages/store/[id]/index.vue +++ b/pages/store/[id]/index.vue @@ -10,7 +10,9 @@ /> -
+

@@ -18,8 +20,10 @@

-
- +
+
-

{{ game.mShortDescription }} @@ -61,7 +64,6 @@ class="mt-12 prose prose-invert prose-blue max-w-none" />

-
@@ -77,8 +79,10 @@ import WindowsLogo from "~/components/WindowsLogo.vue"; const route = useRoute(); const gameId = route.params.id.toString(); +const headers = useRequestHeaders(["cookie"]); const game = await $fetch( - `/api/v1/games/${gameId}` + `/api/v1/games/${gameId}`, + { headers } ); const md = MarkdownIt(); const descriptionHTML = md.render(game.mDescription); @@ -92,6 +96,6 @@ const icons = { }; useHead({ - title: game.mName -}) + title: game.mName, +});