Renamed name->label in schema
parent
8bb04c69b7
commit
5ad15675f8
58
schema.json
58
schema.json
|
@ -1,37 +1,37 @@
|
||||||
{
|
{
|
||||||
"title": {
|
"title": {
|
||||||
"name": "Title",
|
"label": "Title",
|
||||||
"description": "Question set title (optional)",
|
"description": "Question set title (optional)",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"randomOrder": {
|
"randomOrder": {
|
||||||
"name": "Randomize order",
|
"label": "Randomize order",
|
||||||
"description": "Whether questions should be shown in random order",
|
"description": "Whether questions should be shown in random order",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"initialQuestion": {
|
"initialQuestion": {
|
||||||
"name": "Initial question",
|
"label": "Initial question",
|
||||||
"description": "Which question to start with. Count from 0",
|
"description": "Which question to start with. Count from 0",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"backgroundImage": {
|
"backgroundImage": {
|
||||||
"name": "Background image",
|
"label": "Background image",
|
||||||
"description": "An optional background image for the Question set.",
|
"description": "An optional background image for the Question set.",
|
||||||
"type": "image",
|
"type": "image",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"progressType": {
|
"progressType": {
|
||||||
"name": "Progress indicator",
|
"label": "Progress indicator",
|
||||||
"description": "Question set progress indicator style",
|
"description": "Question set progress indicator style",
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"values": [{"text": "Textual", "value": "textual"}, {"text": "Dots", "value": "dots"}],
|
"values": [{"text": "Textual", "value": "textual"}, {"text": "Dots", "value": "dots"}],
|
||||||
"default": "textual"
|
"default": "textual"
|
||||||
},
|
},
|
||||||
"passPercentage": {
|
"passPercentage": {
|
||||||
"name": "Pass percentage",
|
"label": "Pass percentage",
|
||||||
"description": "Percentage of total score required for passing the quiz.",
|
"description": "Percentage of total score required for passing the quiz.",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minValue": 0,
|
"minValue": 0,
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
"default": 50
|
"default": 50
|
||||||
},
|
},
|
||||||
"questions": {
|
"questions": {
|
||||||
"name": "Questions",
|
"label": "Questions",
|
||||||
"description": "List of questions in this set.",
|
"description": "List of questions in this set.",
|
||||||
"type": "h5p-library",
|
"type": "h5p-library",
|
||||||
"validLibs": ["H5P.MultiChoice", "H5P.DragTextMatch", "H5PDragImageIntoPosition"],
|
"validLibs": ["H5P.MultiChoice", "H5P.DragTextMatch", "H5PDragImageIntoPosition"],
|
||||||
|
@ -48,49 +48,49 @@
|
||||||
"maxEntries": -1
|
"maxEntries": -1
|
||||||
},
|
},
|
||||||
"introPage": {
|
"introPage": {
|
||||||
"name": "Intro page",
|
"label": "Intro page",
|
||||||
"description": "Data for the intro page",
|
"description": "Data for the intro page",
|
||||||
"type": "combined",
|
"type": "combined",
|
||||||
"fields": {
|
"fields": {
|
||||||
"showIntroPage": {
|
"showIntroPage": {
|
||||||
"name": "Show intro page?",
|
"label": "Show intro page?",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"title": {
|
"title": {
|
||||||
"name": "Title",
|
"label": "Title",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"introduction": {
|
"introduction": {
|
||||||
"name": "Introduction text",
|
"label": "Introduction text",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"startButtonText": {
|
"startButtonText": {
|
||||||
"name": "Start button text",
|
"label": "Start button text",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"texts": {
|
"texts": {
|
||||||
"name": "Interface texts in quiz",
|
"label": "Interface texts in quiz",
|
||||||
"type": "combined"
|
"type": "combined"
|
||||||
"fields": {
|
"fields": {
|
||||||
"prevButton": {
|
"prevButton": {
|
||||||
"name": "Back button",
|
"label": "Back button",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": "Previous"
|
"default": "Previous"
|
||||||
},
|
},
|
||||||
"nextButton": {
|
"nextButton": {
|
||||||
"name": "Next button",
|
"label": "Next button",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": "Next"
|
"default": "Next"
|
||||||
},
|
},
|
||||||
"finishButton": {
|
"finishButton": {
|
||||||
"name": "Finish button",
|
"label": "Finish button",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": "Finish"
|
"default": "Finish"
|
||||||
},
|
},
|
||||||
"textualProgress": {
|
"textualProgress": {
|
||||||
"name": "Progress text",
|
"label": "Progress text",
|
||||||
"description": "Text used if textual progress is selected.",
|
"description": "Text used if textual progress is selected.",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": "Question: @current of @total questions"
|
"default": "Question: @current of @total questions"
|
||||||
|
@ -98,64 +98,64 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"endGame": {
|
"endGame": {
|
||||||
"name": "End game data",
|
"label": "End game data",
|
||||||
"type": "combined",
|
"type": "combined",
|
||||||
"fields" {
|
"fields" {
|
||||||
"showResultPage": {
|
"showResultPage": {
|
||||||
"name": "Show result page",
|
"label": "Show result page",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"resultPage": {
|
"resultPage": {
|
||||||
"name": "Result page",
|
"label": "Result page",
|
||||||
"description": "Data and texts for the result page",
|
"description": "Data and texts for the result page",
|
||||||
"type": "combined",
|
"type": "combined",
|
||||||
"fields": {
|
"fields": {
|
||||||
"successGreeting": {
|
"successGreeting": {
|
||||||
"name": "Success greeting",
|
"label": "Success greeting",
|
||||||
"description": "Title in result page on success",
|
"description": "Title in result page on success",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"successComment": {
|
"successComment": {
|
||||||
"name": "Success comment",
|
"label": "Success comment",
|
||||||
"description": "Comment shown after the score",
|
"description": "Comment shown after the score",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"failGreeting": {
|
"failGreeting": {
|
||||||
"name": "Failed greeting",
|
"label": "Failed greeting",
|
||||||
"description": "Title in result page on failed quiz",
|
"description": "Title in result page on failed quiz",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"failComment": {
|
"failComment": {
|
||||||
"name": "Failed comment",
|
"label": "Failed comment",
|
||||||
"description": "Comment shown after the score on failed quiz",
|
"description": "Comment shown after the score on failed quiz",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
"finishButtonText": {
|
"finishButtonText": {
|
||||||
"name": "Finish button text",
|
"label": "Finish button text",
|
||||||
"description": "Text for the finish button",
|
"description": "Text for the finish button",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"animations": {
|
"animations": {
|
||||||
"name": "Animations",
|
"label": "Animations",
|
||||||
"type": "combined"
|
"type": "combined"
|
||||||
"fields": {
|
"fields": {
|
||||||
"showAnimations": {
|
"showAnimations": {
|
||||||
"name": "Show animations",
|
"label": "Show animations",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
}
|
}
|
||||||
"successResultAnimation": {
|
"successResultAnimation": {
|
||||||
"name": "Result animation for success",
|
"label": "Result animation for success",
|
||||||
"description": "Add animation for successful completion of the quiz",
|
"description": "Add animation for successful completion of the quiz",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"type": "h5p-library",
|
"type": "h5p-library",
|
||||||
"validLibs": ["H5P.Animation", "H5P.Video", "H5P.Image"]
|
"validLibs": ["H5P.Animation", "H5P.Video", "H5P.Image"]
|
||||||
},
|
},
|
||||||
"failedResultAnimation": {
|
"failedResultAnimation": {
|
||||||
"name": "Result animation for failed quiz",
|
"label": "Result animation for failed quiz",
|
||||||
"description": "Add animation for failed completion of the quiz",
|
"description": "Add animation for failed completion of the quiz",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"type": "h5p-library",
|
"type": "h5p-library",
|
||||||
|
|
Loading…
Reference in New Issue