|
|
@ -2,11 +2,11 @@ |
|
|
|
import { CourseView } from '../../../../../components/Course/CourseView'; |
|
|
|
import { CourseView } from '../../../../../components/Course/CourseView'; |
|
|
|
import SkeletonLayout from '../../../../../layouts/SkeletonLayout.astro'; |
|
|
|
import SkeletonLayout from '../../../../../layouts/SkeletonLayout.astro'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
getAllCourses, |
|
|
|
getAllCourses, |
|
|
|
getChaptersByCourseId, |
|
|
|
getChaptersByCourseId, |
|
|
|
type CourseFileType, |
|
|
|
type ChapterFileType, |
|
|
|
type ChapterFileType, |
|
|
|
type CourseFileType, |
|
|
|
type LessonFileType, |
|
|
|
type LessonFileType, |
|
|
|
} from '../../../../../lib/course'; |
|
|
|
} from '../../../../../lib/course'; |
|
|
|
|
|
|
|
|
|
|
|
interface Params extends Record<string, string | undefined> { |
|
|
|
interface Params extends Record<string, string | undefined> { |
|
|
@ -64,7 +64,7 @@ export async function getStaticPaths() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { courseId, chapterId } = Astro.params; |
|
|
|
const { courseId, chapterId } = Astro.params; |
|
|
|
const { course, chapter, lesson } = Astro.props; |
|
|
|
const { course, lesson } = Astro.props; |
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
<SkeletonLayout title={course.frontmatter.title}> |
|
|
|
<SkeletonLayout title={course.frontmatter.title}> |
|
|
@ -75,6 +75,7 @@ const { course, chapter, lesson } = Astro.props; |
|
|
|
lesson={lesson} |
|
|
|
lesson={lesson} |
|
|
|
title={course.frontmatter.title} |
|
|
|
title={course.frontmatter.title} |
|
|
|
chapters={course.chapters} |
|
|
|
chapters={course.chapters} |
|
|
|
|
|
|
|
isLoading={false} |
|
|
|
client:load |
|
|
|
client:load |
|
|
|
> |
|
|
|
> |
|
|
|
<lesson.Content /> |
|
|
|
<lesson.Content /> |
|
|
|