Updated semantics to new syntax

d3summaryChart
Frank Ronny Larsen 2013-01-30 17:58:50 +01:00
parent 22468e93fd
commit be754296e6
1 changed files with 139 additions and 109 deletions

View File

@ -1,178 +1,208 @@
{ [
"title": { {
"name": "title",
"type": "text",
"label": "Title", "label": "Title",
"description": "Question set title (optional)", "description": "Question set title (optional)",
"type": "text",
"default": "" "default": ""
}, },
"randomOrder": { {
"name": "randomOrder",
"type": "boolean",
"label": "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",
"default": false "default": false
}, },
"initialQuestion": { {
"name": "initialQuestion",
"type": "number",
"label": "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",
"default": 0 "default": 0
}, },
"backgroundImage": { {
"name": "backgroundImage",
"type": "image",
"label": "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",
"default": "" "default": ""
}, },
"progressType": { {
"name": "progressType",
"type": "select",
"label": "Progress indicator", "label": "Progress indicator",
"description": "Question set progress indicator style", "description": "Question set progress indicator style",
"type": "select", "values": [
"values": [{"text": "Textual", "value": "textual"}, {"text": "Dots", "value": "dots"}], {
"text": "Textual",
"value": "textual"
},
{
"text": "Dots",
"value": "dots"
}
],
"default": "textual" "default": "textual"
}, },
"passPercentage": { {
"name": "passPercentage",
"type": "number",
"label": "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", "min": 0,
"minValue": 0, "max": 100,
"maxValue": 100,
"default": 50 "default": 50
}, },
"questions": { {
"label": "Questions", "name": "questions",
"description": "List of questions in this set.", "type": "list",
"type": "h5p-library", "entity": "question",
"validLibs": ["H5P.MultiChoice", "H5P.DragTextMatch", "H5PDragImageIntoPosition"], "fields": [
"array": true, {
"minEntries": 1, "name": "library",
"maxEntries": -1 "type": "library",
"label": "Question library",
"description": "Library for this question",
"validLibs": [
"H5P.MultiChoice"
]
}
]
}, },
"introPage": { {
"name": "introPage",
"type": "group",
"label": "Intro page", "label": "Intro page",
"description": "Data for the intro page", "description": "Data for the intro page",
"type": "combined", "fields": [
"fields": { {
"showIntroPage": { "name": "showIntroPage",
"label": "Show intro page?", "type": "boolean",
"type": "boolean" "label": "Show intro page?"
}, },
"title": { {
"label": "Title", "name": "title",
"type": "text"
},
"introduction": {
"label": "Introduction text",
"type": "text"
},
"startButtonText": {
"label": "Start button text",
"type": "text"
}
}
},
"texts": {
"label": "Interface texts in quiz",
"type": "combined",
"fields": {
"prevButton": {
"label": "Back button",
"type": "text", "type": "text",
"label": "Title"
},
{
"name": "introduction",
"type": "text",
"label": "Introduction text"
},
{
"name": "startButtonText",
"type": "text",
"label": "Start button text"
}
]
},
{
"name": "texts",
"type": "group",
"label": "Interface texts in quiz",
"fields": [
{
"name": "prevButton",
"type": "text",
"label": "Back button",
"default": "Previous" "default": "Previous"
}, },
"nextButton": { {
"label": "Next button", "name": "nextButton",
"type": "text", "type": "text",
"label": "Next button",
"default": "Next" "default": "Next"
}, },
"finishButton": { {
"label": "Finish button", "name": "finishButton",
"type": "text", "type": "text",
"label": "Finish button",
"default": "Finish" "default": "Finish"
}, },
"textualProgress": { {
"name": "textualProgress",
"type": "text",
"label": "Progress text", "label": "Progress text",
"description": "Text used if textual progress is selected.", "description": "Text used if textual progress is selected.",
"type": "text",
"default": "Question: @current of @total questions" "default": "Question: @current of @total questions"
} }
} ]
}, },
"endGame": { {
"name": "endGame",
"type": "group",
"label": "End game data", "label": "End game data",
"type": "combined", "fields": [
"fields": { {
"showResultPage": { "name": "showResultPage",
"label": "Show result page",
"type": "boolean", "type": "boolean",
"label": "Show result page",
"default": true "default": true
}, },
"resultPage": { {
"name": "resultPage",
"type": "group",
"label": "Result page", "label": "Result page",
"description": "Data and texts for the result page", "description": "Data and texts for the result page",
"type": "combined", "fields": [
"fields": { {
"successGreeting": { "name": "successGreeting",
"type": "text",
"label": "Success greeting", "label": "Success greeting",
"description": "Title in result page on success", "description": "Title in result page on success"
"type": "text"
}, },
"successComment": { {
"name": "successComment",
"type": "text",
"label": "Success comment", "label": "Success comment",
"description": "Comment shown after the score", "description": "Comment shown after the score"
"type": "text"
}, },
"failGreeting": { {
"name": "failGreeting",
"type": "text",
"label": "Failed greeting", "label": "Failed greeting",
"description": "Title in result page on failed quiz", "description": "Title in result page on failed quiz"
"type": "text"
}, },
"failComment": { {
"name": "failComment",
"type": "text",
"label": "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"
}, },
"finishButtonText": { {
"name": "finishButtonText",
"type": "text",
"label": "Finish button text", "label": "Finish button text",
"description": "Text for the finish button", "description": "Text for the finish button"
"type": "text"
} }
} ]
}, },
"animations": { {
"name": "animations",
"type": "group",
"label": "Animations", "label": "Animations",
"type": "combined", "fields": [
"fields": { {
"showAnimations": { "name": "showAnimations",
"label": "Show animations",
"type": "boolean", "type": "boolean",
"label": "Show animations",
"default": false "default": false
}, },
"successVideo": { {
"name": "successVideo",
"type": "video",
"label": "Success video", "label": "Success video",
"description": "Video displayed on successful quiz", "description": "Video displayed on successful quiz"
"type": "video"
}, },
"failVideo": { {
"name": "failVideo",
"type": "video",
"label": "Fail video", "label": "Fail video",
"description": "Video displayed on failed quiz", "description": "Video displayed on failed quiz"
"type": "video"
},
"successResultAnimation": {
"label": "Result animation for success",
"description": "Add animation for successful completion of the quiz",
"optional": true,
"type": "h5p-library",
"validLibs": ["H5P.Animation", "H5P.Video", "H5P.Image"]
},
"failedResultAnimation": {
"label": "Result animation for failed quiz",
"description": "Add animation for failed completion of the quiz",
"optional": true,
"type": "h5p-library",
"validLibs": ["H5P.Animation", "H5P.Video", "H5P.Image"]
} }
} ]
} }
} ]
} }
} ]