feat: Implement dashboard with recommended courses and dedicated course detail pages using a new useCourse composable.

This commit is contained in:
supalerk-ar66 2026-01-22 10:46:44 +07:00
parent 3c9703ebfa
commit ffd2d55e33
3 changed files with 134 additions and 68 deletions

View file

@ -24,6 +24,17 @@ export interface Course {
rating?: string
lessons?: number | string
levelType?: 'neutral' | 'warning' | 'success' // For UI badging
chapters?: {
id: number
title: string | { th: string; en: string }
lessons: {
id: number
title: string | { th: string; en: string }
duration_minutes: number
video_url?: string
}[]
}[]
}
interface CourseResponse {