-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,032 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"$typename": "FlowDescription", | ||
"name": "Flow", | ||
"rules": [ | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "TheoryRule", | ||
"description": "A rule for Theory page", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions video one" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video two" | ||
} | ||
], | ||
"page": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "Video 2", | ||
"description": "Continue to other page", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeC" | ||
}, | ||
"toPage": "Fractions video two" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video one" | ||
} | ||
], | ||
"page": "Fractions video one" | ||
}, | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "Video 2", | ||
"description": "A rule for video 2", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video one" | ||
} | ||
], | ||
"page": "Fractions video two" | ||
} | ||
], | ||
"topic": "Fractions10" | ||
} |
87 changes: 87 additions & 0 deletions
87
packages/server/modelstore/EduOneFreonStorage/FlowPublic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"$typename": "FlowDescription", | ||
"name": "Flow", | ||
"rules": [ | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "TheoryRule", | ||
"description": "A rule for Theory page", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions video one" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video two" | ||
} | ||
], | ||
"page": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "Video 2", | ||
"description": "Continue to other page", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeC" | ||
}, | ||
"toPage": "Fractions video two" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video one" | ||
} | ||
], | ||
"page": "Fractions video one" | ||
}, | ||
{ | ||
"$typename": "FlowRule", | ||
"name": "Video 2", | ||
"description": "A rule for video 2", | ||
"transitions": [ | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeA" | ||
}, | ||
"toPage": "Fractions theory" | ||
}, | ||
{ | ||
"$typename": "PageTransition", | ||
"condition": { | ||
"$typename": "GradeLiteral", | ||
"grade": "gradeB" | ||
}, | ||
"toPage": "Fractions video one" | ||
} | ||
], | ||
"page": "Fractions video two" | ||
} | ||
], | ||
"topic": "Fractions10" | ||
} |
199 changes: 199 additions & 0 deletions
199
packages/server/modelstore/EduOneFreonStorage/Fractions10.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
{ | ||
"$typename": "Topic", | ||
"name": "Fractions10", | ||
"description": "Fractions for children of age 10", | ||
"pages": [ | ||
{ | ||
"$typename": "Theory", | ||
"name": "Fractions theory", | ||
"lines": [ | ||
{ | ||
"$typename": "Line", | ||
"content": "When you encounter a fraction, you want to simplify this as much as possible." | ||
}, | ||
{ | ||
"$typename": "Line", | ||
"content": "This means that you make the numbers above and below the line as small as possible." | ||
}, | ||
{ | ||
"$typename": "Line", | ||
"content": "How do you do this?" | ||
}, | ||
{ | ||
"$typename": "Line", | ||
"content": " " | ||
}, | ||
{ | ||
"$typename": "Line", | ||
"content": "By dividing both the numerator and the denominator by the same number." | ||
} | ||
], | ||
"questions": [ | ||
{ | ||
"$typename": "Question", | ||
"name": "Theory 1", | ||
"content": "Bla", | ||
"correctAnswer": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": false | ||
} | ||
} | ||
], | ||
"calcResult": { | ||
"$typename": "Function", | ||
"cases": [ | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "AndExpression", | ||
"left": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "QuestionRef", | ||
"question": "Theory 1" | ||
}, | ||
"right": { | ||
"$typename": "FractionLiteralExpression", | ||
"numerator": 1, | ||
"denominator": 2 | ||
} | ||
}, | ||
"right": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "QuestionRef", | ||
"question": "Theory 1" | ||
}, | ||
"right": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": false | ||
} | ||
} | ||
}, | ||
"grade": "gradeA" | ||
}, | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": true | ||
}, | ||
"grade": "gradeB" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"$typename": "Video", | ||
"url": "https://www.mathematics.com/help", | ||
"name": "Fractions video one", | ||
"questions": [ | ||
{ | ||
"$typename": "Question", | ||
"name": "Video1 Q1", | ||
"content": "Is 3 / 4 the same as 6 / 8?", | ||
"correctAnswer": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": true | ||
} | ||
}, | ||
{ | ||
"$typename": "Question", | ||
"name": "Video1 Simplify", | ||
"content": "Simplify 4/ 8", | ||
"correctAnswer": { | ||
"$typename": "FractionLiteralExpression", | ||
"numerator": 1, | ||
"denominator": 2 | ||
} | ||
} | ||
], | ||
"calcResult": { | ||
"$typename": "Function", | ||
"cases": [ | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "QuestionRef", | ||
"question": "Video1 Q1" | ||
}, | ||
"right": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": true | ||
} | ||
}, | ||
"grade": "gradeA" | ||
}, | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "QuestionRef", | ||
"question": "Video1 Q1" | ||
}, | ||
"right": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": false | ||
} | ||
}, | ||
"grade": "gradeB" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"$typename": "Video", | ||
"url": "https://www.myvideo.com", | ||
"name": "Fractions video two", | ||
"questions": [ | ||
{ | ||
"$typename": "Question", | ||
"name": "Video2 question", | ||
"content": "Did you understand the video?", | ||
"correctAnswer": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": true | ||
} | ||
} | ||
], | ||
"calcResult": { | ||
"$typename": "Function", | ||
"cases": [ | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "QuestionRef", | ||
"question": "Video2 question" | ||
}, | ||
"right": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": true | ||
} | ||
}, | ||
"grade": "gradeA" | ||
}, | ||
{ | ||
"$typename": "FunctionCase", | ||
"formula": { | ||
"$typename": "EqualsExpression", | ||
"left": { | ||
"$typename": "BooleanLiteralExpression", | ||
"value": false | ||
}, | ||
"right": { | ||
"$typename": "QuestionRef", | ||
"question": "Video2 question" | ||
} | ||
}, | ||
"grade": "gradeB" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.