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
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:
parent
0691ca40cd
commit
4955bc9e5c
4 changed files with 13 additions and 8 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue