feat: implement course discovery page with category filtering sidebar and course detail view.
This commit is contained in:
parent
088bbf4b1b
commit
efb50a1ddb
3 changed files with 80 additions and 201 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue