feat: Add core e-learning pages for authentication, course discovery, learning, and user dashboard.

This commit is contained in:
supalerk-ar66 2026-01-30 14:42:08 +07:00
parent c4f68eb927
commit 9629f79c52
5 changed files with 13 additions and 65 deletions

View file

@ -18,7 +18,7 @@ useHead({
const route = useRoute()
const showEnrollModal = ref(false)
const activeFilter = ref<'all' | 'progress' | 'completed'>('all')
const { currentUser } = useAuth()
// const { currentUser } = useAuth() // Unused
// Check URL query parameters to show 'Enrollment Success' modal
onMounted(() => {
@ -87,7 +87,7 @@ onMounted(() => {
// Certificate Handling
const downloadingCourseId = ref<number | null>(null)
// Certificate Handling
// Certificate Handling
const downloadCertificate = async (course: any) => {
if (!course) return
downloadingCourseId.value = course.id