mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-03 15:31:46 +01:00
Update Stats.vue
This commit is contained in:
@@ -29,6 +29,9 @@ const { t } = useI18n({
|
|||||||
:text="usePrecision(stats.coding.data.grand_total.total_seconds_including_other_language / 3600, 0).value"
|
:text="usePrecision(stats.coding.data.grand_total.total_seconds_including_other_language / 3600, 0).value"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
<template #editors>
|
||||||
|
{{ stats.editors.data.slice(0, 2).map(editor => `${editor.name} (${editor.percent}%)`).join(' and ') }}
|
||||||
|
</template>
|
||||||
<template
|
<template
|
||||||
v-if="stats.os.data[0]"
|
v-if="stats.os.data[0]"
|
||||||
#os
|
#os
|
||||||
@@ -39,6 +42,7 @@ const { t } = useI18n({
|
|||||||
{{
|
{{
|
||||||
stats.languages.data.slice(0, 2).map(language => `${language.name} (${language.percent}%)`).join(t('separator'))
|
stats.languages.data.slice(0, 2).map(language => `${language.name} (${language.percent}%)`).join(t('separator'))
|
||||||
}}
|
}}
|
||||||
|
{{ stats.languages.data.slice(0, 2).map(language => `${language.name} (${language.percent}%)`).join(t('separator')) }}
|
||||||
</template>
|
</template>
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
</ClientOnly>
|
</ClientOnly>
|
||||||
@@ -64,3 +68,4 @@ const { t } = useI18n({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user