Skip to content

Commit 4e4db19

Browse files
authored
890-feat: Contentful: move course pages to contentful (#903)
* feat: 890 - implement to render sections from contenful * chore: 890 - exclude contenful types files from eslint config * refactor: 890 - change component and transform functions mapping logic * fix: 890 - error message typo * refactor: 890 - to prepare data from contentful beforehand * feat: 890 - implement to render links in rich text * feat: 890 - implement to render about course section * feat: 890 - implement to render certification section * feat: 890 - implement to render communication section * chore: 890 - update types * feat: implement to render pages dynamically * feat: implement to use slug as url * refactor: merge similar entities into one media text block * fix: 890 - to fetch a course page with a specific locale * feat: 890 - add more contentful sections * feat: update media text block to be more generic * fix: trainers language issue * refactor: remove old course pages * chore: remove unnecessary data * chore: update types * refactor: rearrange code * chore: fix types * refactor: move related modules to their folders * chore: correct metadata types * fix: typescript errors * fix: eslint error * refactor: optimize async calls * chore: resolve merge conflicts * refactor: move section type to const object * feat: implement to fetch course page title * refactor: get rid of get course title helper
1 parent 609cded commit 4e4db19

File tree

151 files changed

+2327
-4150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+2327
-4150
lines changed

dev-data/about-course.data.tsx

Lines changed: 0 additions & 295 deletions
This file was deleted.

dev-data/about-video.data.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

dev-data/course-titles.data.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Course } from '@/widgets/required/types';
2-
31
export const COURSE_TITLES = {
42
JS_PRESCHOOL_RU: 'JS / Front-end Pre-school RU',
53
JS_EN: 'JS / Front-end EN',
@@ -13,15 +11,8 @@ export const COURSE_TITLES = {
1311
AWS_AI: 'AWS AI',
1412
} as const;
1513

16-
export const AWS_FUNDAMENTALS_BADGE = `${COURSE_TITLES.AWS_FUNDAMENTALS} badge` as const;
17-
export type AwsFundamentalsBadge = typeof AWS_FUNDAMENTALS_BADGE;
1814
export type CourseNames = typeof COURSE_TITLES;
1915
export type CourseNamesKeys = CourseNames[keyof CourseNames];
20-
export type CoursesWithRequirementsNames = Exclude<CourseNamesKeys, CourseNames['REACT']>;
21-
export type CourseMap = {
22-
[courseName in CoursesWithRequirementsNames]: Course;
23-
};
24-
export type TrainingProgramType = CourseNamesKeys | AwsFundamentalsBadge;
2516

2617
export const DISCORD_LINKS = {
2718
[COURSE_TITLES.JS_PRESCHOOL_RU]: 'https://discord.com/invite/gFnRh8Sudg',

dev-data/courses-data.types.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)