fix: use pascalCase
This commit is contained in:
parent
d90252542d
commit
0befc42ec8
2 changed files with 8 additions and 8 deletions
10
app.vue
10
app.vue
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue