From fe6e5fc21e4433ffa01c2abf1b2c01b98230bbb9 Mon Sep 17 00:00:00 2001 From: Chris Steele Date: Mon, 27 Jan 2014 10:05:00 +0000 Subject: [PATCH 1/4] updated bower description --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 14f0f1d..ca8394a 100644 --- a/bower.json +++ b/bower.json @@ -5,7 +5,7 @@ "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": "A question component that allows the learner to select one or more images in response to a question stem", "main": "/js/adapt-contrib-gmcq.js", "keywords": [ "adapt-plugin", From fcc02c7e6d9868f37c1ed6e21e374c99f6c615fd Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 4 Apr 2014 11:24:13 +0100 Subject: [PATCH 2/4] JSON schema --- bower.json | 2 + package.json | 2 +- properties.schema | 114 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 properties.schema diff --git a/bower.json b/bower.json index ca8394a..1bb8a03 100644 --- a/bower.json +++ b/bower.json @@ -7,6 +7,8 @@ ], "description": "A question component that allows the learner to select one or more images in response to a question stem", "main": "/js/adapt-contrib-gmcq.js", + "displayName" : "Graphical multiple choice question", + "component" : "gmcq", "keywords": [ "adapt-plugin", "adapt-component" diff --git a/package.json b/package.json index a2ec349..b4808ec 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "url": "https://github.com/adaptlearning/adapt-contrib-gmcq/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..42ca931 --- /dev/null +++ b/properties.schema @@ -0,0 +1,114 @@ +{ + "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":false, + "properties":{ + "correct": { + "type":"string", + "required":false + }, + "incorrect": { + "type":"string", + "required":false + }, + "partly": { + "type":"string", + "required":false + } + } + }, + "items": { + "type":"array", + "required":true, + "items": + { + "type":"object", + "required":true, + "properties":{ + "graphic": { + "type":"object", + "required":true, + "properties":{ + "alt": { + "type":"string", + "required":false + }, + "large": { + "type":"string", + "required":true + }, + "medium": { + "type":"string", + "required":true + }, + "small": { + "type":"string", + "required":true + }, + "title": { + "type":"string", + "required":true + } + } + }, + "shouldBeSelected": { + "type":"boolean", + "required":true + }, + "text": { + "type":"string", + "required":false + } + } + } + } + } +} \ No newline at end of file From 009c7521be3cbed3cf221a97f043f6c04bdc64dc Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 4 Apr 2014 12:17:10 +0100 Subject: [PATCH 3/4] Increment version number --- bower.json | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 1bb8a03..669878f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "adapt-contrib-gmcq", - "version": "0.0.1", + "version": "0.0.2", "homepage": "https://github.com/adaptlearning/adapt-contrib-gmcq", "authors": [ "Daryl Hedley " diff --git a/package.json b/package.json index b4808ec..8a9264b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "adapt-contrib-gmcq", - "version": "0.0.1", - "description": "Description of your component", + "version": "0.0.2", + "description": "Question component that allows the learner to select one or more images", "main": "", "scripts": { "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS" From d6b93204567359bc158fc66948efdba0ddee0aa2 Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 4 Apr 2014 12:50:20 +0100 Subject: [PATCH 4/4] Title case for display name value --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 669878f..4a14618 100644 --- a/bower.json +++ b/bower.json @@ -7,7 +7,7 @@ ], "description": "A question component that allows the learner to select one or more images in response to a question stem", "main": "/js/adapt-contrib-gmcq.js", - "displayName" : "Graphical multiple choice question", + "displayName" : "Graphical Multiple Choice Question", "component" : "gmcq", "keywords": [ "adapt-plugin",