Workign on activity and on stats

This commit is contained in:
2024-06-21 02:04:23 +02:00
parent 54fc5434e4
commit 055610dbea
4 changed files with 40 additions and 43 deletions

View File

@@ -11,9 +11,10 @@ const stats = await $fetch<Stats>('/api/stats')
>
<p>
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.
<strong>{{ useDateFormat(new Date(stats.coding.data.range.start), 'Do MMMM YYYY').value }}</strong>.
I've coded for a total of <strong>{{
usePrecision(stats.coding.data.grand_total.total_seconds_including_other_language / 3600, 0)
}}</strong> 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 }}%).