1
+ import { Course , Format , LearningModule , Material } from "@/types/course" ;
2
+ import { mockTrailer } from "./bounty" ;
3
+
4
+
5
+ export const Introduction = {
6
+ text : "course intro" ,
7
+ } ;
8
+
9
+ export const mockCertificateData = {
10
+ narrative : "course certificate" ,
11
+ icon : "certificate icon" ,
12
+ } ;
13
+
14
+ export const Rubric = {
15
+ id : "id" ,
16
+ ref : "rubric references" ,
17
+ created_at : "Wednesday" ,
18
+ updated_at : "Thursday" ,
19
+ challenge : "Challenge" ,
20
+ text : "Challenge text" ,
21
+ type : "challenge type" ,
22
+ order : 89 ,
23
+ points : 90 ,
24
+ timestamp : 73 ,
25
+ typeSlug : "slug" ,
26
+ } ;
27
+
28
+ export const mockRatingCriteria = {
29
+ name : "rating criteria" ,
30
+ order : 4 ,
31
+ rubric : [ Rubric ] ,
32
+ maxPoints : 78 ,
33
+ } ;
34
+
35
+ enum MaterialType {
36
+ ADDITIONAL = "ADDITIONAL" ,
37
+ MARKDOWN = "MARKDOWN" ,
38
+ TEXT = "TEXT" ,
39
+ ARTICLE = "ARTICLE" ,
40
+ "EMBEDDED-VIDEO" = "EMBEDDED-VIDEO" ,
41
+ }
42
+ export const mockMaterial : Material = {
43
+ duration : 3 ,
44
+ subtitle : "material subtitle" ,
45
+ link : "material link" ,
46
+ description : "material description" ,
47
+ title : "material title" ,
48
+ type : MaterialType . ADDITIONAL ,
49
+ list : [ { link : "Link 1" } ] ,
50
+ } ;
51
+
52
+ export const InteractiveModule = {
53
+ ref : "interactive module ref" ,
54
+ title : "interactive module title" ,
55
+ text : "interative text" ,
56
+ closing : {
57
+ text : "closing" ,
58
+ title : "title" ,
59
+ } ,
60
+ items : [
61
+ {
62
+ text : "text" ,
63
+ title : "title" ,
64
+ options : {
65
+ text : "text" ,
66
+ isCorrect : true ,
67
+ } ,
68
+ question : {
69
+ title : "question title" ,
70
+ answers : [ "answer 1" , "answer 2" ] ,
71
+ correct : 2 ,
72
+ } ,
73
+ } ,
74
+ ] ,
75
+ } ;
76
+
77
+ export const mockLearningModule : LearningModule = {
78
+ id : "learningModule id" ,
79
+ ref : "learning module reference" ,
80
+ created_at : new Date ( "2022-05-01T12:00:00Z" ) ,
81
+ updated_at : new Date ( "2022-05-01T12:00:00Z" ) ,
82
+ duration : 4 ,
83
+ description : "learning module description" ,
84
+ objectives : [ "objective 1, objective 2" ] ,
85
+ title : "learning module title" ,
86
+ community : "learning module community" ,
87
+ materials : [ mockMaterial ] ,
88
+ timestamp : 3 ,
89
+ order : 4 ,
90
+ course : "Learning module course" ,
91
+ interactiveModules : [ InteractiveModule ] ,
92
+ } ;
93
+
94
+ export const mockCourse : Course = {
95
+ id : "course" ,
96
+ ref : "course ref" ,
97
+ created_at : new Date ( "2022-05-01T12:00:00Z" ) ,
98
+ updated_at : new Date ( "2022-05-01T12:00:00Z" ) ,
99
+ duration : 3 ,
100
+ summary : "Course description" ,
101
+ level : 3 ,
102
+ name : "course name" ,
103
+ description : "Course description" ,
104
+ objectives : [ "course description" , "course objectives" ] ,
105
+ locale : "English" ,
106
+ community : "community" ,
107
+ slug : "course description slug" ,
108
+ introduction : Introduction ,
109
+ active : true ,
110
+ certificateIcon : "certificate" ,
111
+ certificateData : mockCertificateData ,
112
+ timestamp : 0 ,
113
+ learningModules : [ mockLearningModule ] ,
114
+ trailer : mockTrailer ,
115
+ disclaimer : "Course" ,
116
+ items : [ "item 1" , "item 2" ] ,
117
+ faq : [
118
+ {
119
+ description : "faq description" ,
120
+ title : "faq title" ,
121
+ } ,
122
+ ] ,
123
+ prerequisite : {
124
+ items : [ "item 1" , "item 2" ] ,
125
+ hint : "prerequisite hint" ,
126
+ } ,
127
+ } ;
128
+
129
+ export const mockFormat : Format = {
130
+ githubLink : true ,
131
+ text : true ,
132
+ disclaimer : true ,
133
+ } ;
0 commit comments