From df33efc73148d1cf1586a1b6bbcf594e0f89adb2 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 4 Jan 2026 19:53:15 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20corriger=20la=20d=C3=A9claration=20de=20?= =?UTF-8?q?totalHours=20dans=20le=20composant=20Stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/home/live/Stats.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/components/home/live/Stats.vue b/app/components/home/live/Stats.vue index 41f6c98..4cac768 100644 --- a/app/components/home/live/Stats.vue +++ b/app/components/home/live/Stats.vue @@ -5,11 +5,10 @@ import { usePrecision } from '@vueuse/math' const { data: stats } = await useAsyncData('stats', () => $fetch('/api/stats')) const startDate = computed(() => new Date(stats.value?.coding?.range?.start ?? new Date())) +const totalHours = usePrecision((stats.value?.coding?.grand_total?.total_seconds_including_other_language ?? 0) / 3600, 0) const yearsCollected = useTimeAgo(startDate) const formattedDate = useDateFormat(startDate, 'MMM DD, YYYY') -const totalHours = usePrecision((stats.value?.coding.grand_total.total_seconds_including_other_language ?? 0) / 3600, 0) - const topLanguages = computed(() => stats.value?.languages.slice(0, 4) ?? []) const topEditors = computed(() => stats.value?.editors.slice(0, 3) ?? []) const topOS = computed(() => stats.value?.os.slice(0, 2) ?? []) @@ -21,8 +20,6 @@ const topOS = computed(() => stats.value?.os.slice(0, 2) ?? []) v-if="stats" class="space-y-6" > - {{ stats.coding.range.start }} - {{ startDate }}