feat: Implement dashboard with recommended courses and dedicated course detail pages using a new useCourse composable.
This commit is contained in:
parent
3c9703ebfa
commit
ffd2d55e33
3 changed files with 134 additions and 68 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue