From 0cca515ffd0b7be6756441709b36db01cbee5cca 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 --- server/nuxt.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/nuxt.config.ts b/server/nuxt.config.ts index b6bd0222..a1af19a8 100644 --- a/server/nuxt.config.ts +++ b/server/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 5cc87ddf90a8fa60c63d2a1a2071c91511bb2280 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 --- server/pages/library/game/[id]/index.vue | 277 +++++++++++++++++------ 1 file changed, 202 insertions(+), 75 deletions(-) diff --git a/server/pages/library/game/[id]/index.vue b/server/pages/library/game/[id]/index.vue index f1791dd7..5fdb760b 100644 --- a/server/pages/library/game/[id]/index.vue +++ b/server/pages/library/game/[id]/index.vue @@ -1,111 +1,238 @@ From 817c65d9b63295ed1003b72208ab02bcd1a9b8cc 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 --- server/pages/library/game/[id]/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/pages/library/game/[id]/index.vue b/server/pages/library/game/[id]/index.vue index 5fdb760b..6a16175b 100644 --- a/server/pages/library/game/[id]/index.vue +++ b/server/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