feat: add initial frontend pages for course browsing, recommendations, and user dashboard.
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 3s
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 3s
Build and Deploy Frontend Learner / Notify Deployment Status (push) Successful in 1s
This commit is contained in:
parent
0588ad7acd
commit
01d249c19a
14 changed files with 570 additions and 267 deletions
|
|
@ -171,6 +171,7 @@ export const useCourse = () => {
|
|||
category_id?: number;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
search?: string;
|
||||
random?: boolean;
|
||||
is_recommended?: boolean;
|
||||
forceRefresh?: boolean
|
||||
|
|
@ -193,6 +194,7 @@ export const useCourse = () => {
|
|||
if (apiParams.category_id) queryParams.append('category_id', apiParams.category_id.toString())
|
||||
if (apiParams.page) queryParams.append('page', apiParams.page.toString())
|
||||
if (apiParams.limit) queryParams.append('limit', apiParams.limit.toString())
|
||||
if (apiParams.search) queryParams.append('search', apiParams.search)
|
||||
if (apiParams.random !== undefined) queryParams.append('random', apiParams.random.toString())
|
||||
if (apiParams.is_recommended !== undefined) queryParams.append('is_recommended', apiParams.is_recommended.toString())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue