From 055610dbea61760c5e78a8e36c941e4eab1d8557 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 21 Jun 2024 02:04:23 +0200 Subject: [PATCH] Workign on activity and on stats --- app/components/AppFooter.vue | 2 +- app/components/content/Activity.vue | 73 ++++++++++++++--------------- app/components/content/Stats.vue | 7 +-- content/index.md | 1 + 4 files changed, 40 insertions(+), 43 deletions(-) diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index 656b5ff..48fc057 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -20,7 +20,7 @@ const socials = [ - + + diff --git a/app/components/content/Stats.vue b/app/components/content/Stats.vue index 40aefc7..a370603 100644 --- a/app/components/content/Stats.vue +++ b/app/components/content/Stats.vue @@ -11,9 +11,10 @@ const stats = await $fetch('/api/stats') >

I collect some data for {{ useTimeAgo(new Date(stats.coding.data.range.start)).value }}, started the - {{ useDateFormat(new Date(stats.coding.data.range.start), 'Do MMMM YYYY').value }}. - I've coded for a total of - {{ usePrecision(stats.coding.data.grand_total.total_seconds_including_other_language / 3600, 0) }} hours. + {{ useDateFormat(new Date(stats.coding.data.range.start), 'Do MMMM YYYY').value }}. + I've coded for a total of {{ + usePrecision(stats.coding.data.grand_total.total_seconds_including_other_language / 3600, 0) + }} hours. My best editors are {{ stats.editors.data.slice(0, 2).map(editor => `${editor.name} (${editor.percent}%)`).join(' and ') }}. My best OS is {{ stats.os.data[0].name }} ({{ stats.os.data[0].percent }}%). diff --git a/content/index.md b/content/index.md index b262a15..f75a826 100644 --- a/content/index.md +++ b/content/index.md @@ -18,4 +18,5 @@ I'm **constantly** learning new things, from technology to finance and entrepren As well as programming, I enjoy **sport** and **travelling**. My passion, commitment and eagerness to learn and progress are the qualities that enable me to succeed in my **career** and **studies**. :stats + :activity \ No newline at end of file