feat: Implement course discovery page with browsing, filtering, and detailed course views, supported by new course card and category sidebar components and a course composable.
All checks were successful
Build and Deploy Frontend Learner / Build Frontend Learner Docker Image (push) Successful in 38s
Build and Deploy Frontend Learner / Deploy E-learning Frontend Learner to Dev Server (push) Successful in 2s
Build and Deploy Frontend Learner / Notify Deployment Status (push) Successful in 1s

This commit is contained in:
supalerk-ar66 2026-02-10 14:02:45 +07:00
parent 0691ca40cd
commit 4955bc9e5c
4 changed files with 13 additions and 8 deletions

View file

@ -11,8 +11,10 @@ definePageMeta({
middleware: "auth",
});
const { t, locale } = useI18n();
useHead({
title: "รายการคอร์ส - e-Learning",
title: `${t('sidebar.browseCourses')} - E-Learning Platform`,
});
// ==========================================
@ -34,14 +36,14 @@ const totalPages = ref(1);
const itemsPerPage = 12;
const { t } = useI18n();
const { currentUser } = useAuth();
const { fetchCategories } = useCategory();
const { fetchCourses, fetchCourseById, enrollCourse, getLocalizedText } = useCourse();
// 2. Computed Properties
const sortOption = ref(computed(() => t('discovery.sortRecent')));
const sortOption = computed(() => t('discovery.sortRecent'));
const sortOptions = computed(() => [t('discovery.sortRecent')]);
const filteredCourses = computed(() => {