feat: show student progress heatmap on moderators dashboard

This commit is contained in:
Jannat Patel
2025-01-07 18:15:59 +05:30
parent 79177b5f5b
commit fb40b627fc
10 changed files with 286 additions and 166 deletions

View File

@@ -28,9 +28,7 @@
size="lg"
>
{{ program.members }}
{{
program.members == 1 ? __(singularize('members')) : __('members')
}}
{{ program.members == 1 ? __('member') : __('members') }}
</Badge>
<Badge
v-if="program.progress"
@@ -133,7 +131,7 @@ import { computed, inject, onMounted, ref } from 'vue'
import { BookOpen, Edit, Plus, LockKeyhole } from 'lucide-vue-next'
import CourseCard from '@/components/CourseCard.vue'
import { useRouter } from 'vue-router'
import { showToast, singularize } from '@/utils'
import { showToast } from '@/utils'
import { useSettings } from '@/stores/settings'
const user = inject('$user')