This commit is contained in:
2025-03-19 10:41:52 +01:00
parent 20fdf7b64e
commit 47557155d1
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const { locale, locales } = useI18n()
const currentLocale = computed(() => locales.value.find(l => l.code === locale.value))
const { data: stats } = await useFetch<Stats>('/api/stats')
console.log(stats.value)
const { t } = useI18n({
useScope: 'local',
})
@@ -17,6 +18,7 @@ const hours = usePrecision(stats.value!.coding.data.grand_total.total_seconds_in
<template>
<ClientOnly>
<div>{{ stats }}</div>
<i18n-t
v-if="stats && stats.coding && stats.editors && stats.os && stats.languages"
keypath="stats"

View File

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