Test and fix last build

This commit is contained in:
2025-03-19 10:20:50 +01:00
parent c0c4ee0227
commit 20fdf7b64e
2 changed files with 7 additions and 7 deletions

View File

@@ -10,9 +10,9 @@ const { t } = useI18n({
useScope: 'local', useScope: 'local',
}) })
const time = useTimeAgo(new Date(stats.value!.coding?.data.range.start) ?? new Date()).value.split(' ')[0] const time = useTimeAgo(new Date(stats.value!.coding.data.range.start) ?? new Date()).value.split(' ')[0]
const date = useDateFormat(new Date(stats.value!.coding?.data.range.start ?? new Date()), 'DD MMMM YYYY', { locales: currentLocale.value?.code ?? 'en' }) const date = useDateFormat(new Date(stats.value!.coding.data.range.start ?? new Date()), 'DD MMMM YYYY', { locales: currentLocale.value?.code ?? 'en' })
const hours = usePrecision(stats.value!.coding?.data.grand_total.total_seconds_including_other_language / 3600, 0) const hours = usePrecision(stats.value!.coding.data.grand_total.total_seconds_including_other_language / 3600, 0)
</script> </script>
<template> <template>
@@ -23,18 +23,18 @@ const hours = usePrecision(stats.value!.coding?.data.grand_total.total_seconds_i
tag="p" tag="p"
> >
<template #time> <template #time>
time<!-- {{ time }} --> {{ time }}
</template> </template>
<template #date> <template #date>
<HoverText <HoverText
:hover="t('tooltip.date')" :hover="t('tooltip.date')"
text="date" :text="date"
/> />
</template> </template>
<template #hours> <template #hours>
<HoverText <HoverText
:hover="t('tooltip.hours')" :hover="t('tooltip.hours')"
text="hours" :text="hours"
/> />
</template> </template>
<template #editors> <template #editors>

View File

@@ -13,7 +13,7 @@ const { myLocation, locations } = useVisitors()
<template> <template>
<main class="!max-w-none prose dark:prose-invert"> <main class="!max-w-none prose dark:prose-invert">
<ContentRenderer v-if="page" :value="page" /> <ContentRenderer v-if="page" :value="page" />
<HomeStats /> <!-- todo: fix <HomeStats /> -->
<HomeActivity /> <HomeActivity />
<HomeQuote /> <HomeQuote />
<HomeCatchPhrase /> <HomeCatchPhrase />