feat: implement course discovery page with category filtering sidebar and course detail view.

This commit is contained in:
supalerk-ar66 2026-02-11 12:45:57 +07:00
parent 088bbf4b1b
commit efb50a1ddb
3 changed files with 80 additions and 201 deletions

View file

@ -34,14 +34,13 @@ const totalPages = ref(1);
const itemsPerPage = 12;
const { t } = useI18n();
const { t, locale } = 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 = ref(t('discovery.sortRecent'));
const sortOptions = computed(() => [t('discovery.sortRecent')]);
const filteredCourses = computed(() => {