Skip to content

Commit

Permalink
Change type from textWithBlanksExercise to blanksExercise
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Dec 11, 2023
1 parent 1354526 commit ff8b8a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/data/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ export const loggedInData = {
title: 'SC/MC Exercise',
description: 'Single Choice or Multiple Choice'
},
textWithBlanksExercise: {
blanksExercise: {
title: 'Fill In The Blanks Exercise',
description: 'Text with blanks'
}
Expand Down Expand Up @@ -967,7 +967,7 @@ export const loggedInData = {
exercise: {
scMcExercise: 'Choice Exercise',
inputExercise: 'Input Exercise',
textWithBlanksExercise: 'Fill In The Blanks Exercise',
blanksExercise: 'Fill In The Blanks Exercise',
h5p: 'H5p Exercise',
addOptionalInteractiveEx: 'Add an optional interactive exercise:',
changeInteractive: 'Change interactive element',
Expand Down Expand Up @@ -1184,7 +1184,7 @@ export const loggedInData = {
multipleChoice: "Multiple Choice",
singleChoice: "Single Choice",
inputExercise: "Input exercise",
textWithBlanksExercise: "Fill In The Blanks Exercise"
blanksExercise: "Fill In The Blanks Exercise"
},
difficulty: {
title: 'What is the %difficulty% level of the exercise and learning goal?',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ export const fillInTheBlanksExercise: EditorPlugin<FillInTheBlanksExerciseState>
{
Component: FillInTheBlanksExerciseEditor,
config: {},
state: createFillInTheBlanksExerciseState(),
state: createState(),
}

export type FillInTheBlanksExerciseState = ReturnType<
typeof createFillInTheBlanksExerciseState
>
export type FillInTheBlanksExerciseState = ReturnType<typeof createState>

function createFillInTheBlanksExerciseState() {
function createState() {
const defaultMode: FillInTheBlanksMode = 'typing'

return object({
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/serlo-editor/types/editor-plugin-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export enum EditorPluginType {
Exercise = 'exercise',
ScMcExercise = 'scMcExercise',
InputExercise = 'inputExercise',
FillInTheBlanksExercise = 'textWithBlanksExercise',
FillInTheBlanksExercise = 'blanksExercise',
Solution = 'solution',

Unsupported = 'unsupported',
Expand Down

0 comments on commit ff8b8a8

Please sign in to comment.