From 66400f487517d4e31d3e7cbfc9716bde2601d1ce Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:45:09 +1030 Subject: [PATCH 1/3] fix(webui): Fix forcably redirecting to https --- nuxt.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index b6bd022..a1af19a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -48,6 +48,8 @@ export default defineNuxtConfig({ security: { headers: { contentSecurityPolicy: { + //fix for forced https redirection issue + "upgrade-insecure-requests": false, "img-src": [ "'self'", "data:", @@ -59,4 +61,4 @@ export default defineNuxtConfig({ strictTransportSecurity: false, }, }, -}); \ No newline at end of file +}); From 19d1a9dd0eeecb01bccf8f0486df619c6d6c6611 Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:46:15 +1030 Subject: [PATCH 2/3] style(library): complete restyling to match client library --- pages/library/game/[id]/index.vue | 277 ++++++++++++++++++++++-------- 1 file changed, 202 insertions(+), 75 deletions(-) diff --git a/pages/library/game/[id]/index.vue b/pages/library/game/[id]/index.vue index f1791dd..5fdb760 100644 --- a/pages/library/game/[id]/index.vue +++ b/pages/library/game/[id]/index.vue @@ -1,111 +1,238 @@ From c052511ff333862c3711c1f55f7441381769a7e7 Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:54:20 +1030 Subject: [PATCH 3/3] fix(library): Use $dropFetch util --- pages/library/game/[id]/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/library/game/[id]/index.vue b/pages/library/game/[id]/index.vue index 5fdb760..6a16175 100644 --- a/pages/library/game/[id]/index.vue +++ b/pages/library/game/[id]/index.vue @@ -169,12 +169,12 @@ import type { Game } from "@prisma/client"; const route = useRoute(); const id = route.params.id.toString(); -const { data: rawGame } = await useFetch(`/api/v1/games/${id}`); +const rawGame = await $dropFetch(`/api/v1/games/${id}`); const game = computed(() => { - if (!rawGame.value) { + if (!rawGame) { throw createError({ statusCode: 404, message: 'Game not found' }); } - return rawGame.value; + return rawGame; }); // Convert markdown to HTML