fix: use pascalCase

This commit is contained in:
JustTemmie 2025-07-03 19:02:44 +02:00
parent d90252542d
commit 0befc42ec8
Signed by: justtemmie
SSH key fingerprint: SHA256:nBO+OwpTkd8LYhe38PIqdxmDvkIg9Vw2EbrRZM97dkU
2 changed files with 8 additions and 8 deletions

10
app.vue
View file

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<link :href="'/themes/' + current_theme + '.css'" rel="stylesheet" type="text/css"></link> <link :href="'/themes/' + currentTheme + '.css'" rel="stylesheet" type="text/css"></link>
<Banner v-if="banner" /> <Banner v-if="banner" />
<NuxtPage :keepalive="true" /> <NuxtPage :keepalive="true" />
</div> </div>
@ -10,10 +10,10 @@
const banner = useState("banner", () => false); const banner = useState("banner", () => false);
let current_theme = "dark" // default theme let currentTheme = "dark" // default theme
const saved_theme = localStorage.getItem("selectedTheme"); const savedTheme = localStorage.getItem("selectedTheme");
if (saved_theme) { if (savedTheme) {
current_theme = saved_theme; currentTheme = savedTheme;
} }
</script> </script>

View file

@ -77,10 +77,10 @@ onMounted(async () => {
// showHover.value = !showHover.value; // showHover.value = !showHover.value;
//} //}
function getDayDifference(date_1: Date, date_2: Date) { function getDayDifference(date1: Date, date2: Date) {
// Normalize both dates to midnight // Normalize both dates to midnight
const midnight1 = new Date(date_1.getFullYear(), date_1.getMonth(), date_1.getDate()); const midnight1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
const midnight2 = new Date(date_2.getFullYear(), date_2.getMonth(), date_2.getDate()); const midnight2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
// Calculate the difference in time // Calculate the difference in time
const timeDifference = midnight2.getTime() - midnight1.getTime(); const timeDifference = midnight2.getTime() - midnight1.getTime();