diff --git a/bower.json b/bower.json index 4f9ab83..810eea9 100644 --- a/bower.json +++ b/bower.json @@ -1,12 +1,14 @@ { "name": "adapt-contrib-mcq", - "version": "0.0.1", + "version": "0.0.2", "homepage": "https://github.com/adaptlearning/adapt-contrib-mcq", "authors": [ "Daryl Hedley " ], - "description": "Please enter a description about your component here. This is what will get shown when registered with the Adapt registry so make it good", + "description": "An Adapt core multiple choice question.", "main": "/js/adapt-contrib-mcq.js", + "displayName" : "Multiple Choice Question", + "component" : "mcq", "keywords": [ "adapt-plugin", "adapt-component" diff --git a/package.json b/package.json index ab47e3e..b992a5d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "adapt-contrib-mcq", - "version": "0.0.1", - "description": "Description of your component", + "version": "0.0.2", + "description": "An Adapt core multiple choice question", "main": "", "scripts": { "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS" @@ -16,7 +16,7 @@ "url": "https://github.com/adaptlearning/adapt-contrib-mcq/issues" }, "devDependencies": { - "karma": "~0.9", + "karma": "~0.10", "karma-mocha": "*", "karma-expect": "*" } diff --git a/properties.schema b/properties.schema new file mode 100644 index 0000000..651db72 --- /dev/null +++ b/properties.schema @@ -0,0 +1,88 @@ +{ + "type":"object", + "$schema": "http://json-schema.org/draft-04/schema", + "id": "http://jsonschema.net", + "$ref": "http://localhost/plugins/content/component/model.schema", + "properties":{ + "_attempts": { + "type":"number", + "required":true, + "default":1 + }, + "_isRandom": { + "type":"boolean", + "required":true + }, + "_questionWeight": { + "type":"number", + "required":false + }, + "_selectable": { + "type":"number", + "required":true + }, + "buttons": { + "type":"object", + "required":false, + "properties":{ + "hideCorrectAnswer": { + "type":"string", + "required":false, + "default":"Your Answer" + }, + "reset": { + "type":"string", + "required":false, + "default":"Reset" + }, + "showCorrectAnswer": { + "type":"string", + "required":false, + "default":"Model Answer" + }, + "submit": { + "type":"string", + "required":false, + "default":"Submit" + } + } + }, + "feedback": { + "type":"object", + "required":true, + "properties":{ + "correct": { + "type":"string", + "required":true + }, + "incorrect": { + "type":"string", + "required":true + }, + "partly": { + "type":"string", + "required":true + } + } + }, + "items": { + "type":"array", + "required":true, + "items": + { + "type":"object", + "required":true, + "properties":{ + "shouldBeSelected": { + "type":"boolean", + "required":true + }, + "text": { + "type":"string", + "required":true + } + } + } + } + } +}