platform/plugins/training-resources/src/components/Score.svelte
Alexey Zinoviev 48e1ca9849
UBERF-7090: Add QMS plugins (#5716)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
2024-06-03 19:55:54 +04:00

23 lines
399 B
Svelte

<!--
Copyright @ 2024 Hardcore Engineering Inc.
-->
<script lang="ts">
import type { Percentage } from '@hcengineering/questions'
export let count: number
export let total: number
export let score: Percentage
</script>
<span class="no-word-wrap">
{count}/{total}
<span class="score fs-normal">({score}%)</span>
</span>
<style lang="scss">
.score {
opacity: 0.6;
}
</style>