From 2af194373348180fc7ce18b22fcf667c0a9e3ade Mon Sep 17 00:00:00 2001 From: survellow <59056368+survellow@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:11:09 +0200 Subject: [PATCH] feat:#45 fix nginx static serving and light mode default --- frontend/nginx.conf | 2 +- frontend/src/components/DarkModeSwitcher.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 435850b..8e67212 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -50,7 +50,7 @@ http { index index.html index.htm; #necessary to display vue subpage - try_files $uri $uri/ /index.html; + try_files $uri $uri.html $uri/ /index.html; } error_page 500 502 503 504 /50x.html; location = /50x.html { diff --git a/frontend/src/components/DarkModeSwitcher.vue b/frontend/src/components/DarkModeSwitcher.vue index ad2f6cf..a824f22 100644 --- a/frontend/src/components/DarkModeSwitcher.vue +++ b/frontend/src/components/DarkModeSwitcher.vue @@ -24,7 +24,7 @@ const PrimeVue = usePrimeVue(); const emit = defineEmits(["dark-mode-toggled"]); -const isDark = ref(true); +const isDark = ref(false); const darkTheme = ref("lara-dark-blue"), lightTheme = ref("lara-light-blue");