Skip to content

Commit

Permalink
Merge pull request #75 from bu-ist/release/0.0.6
Browse files Browse the repository at this point in the history
Release/0.0.6
  • Loading branch information
jdub233 authored Nov 1, 2019
2 parents e315b7b + cb838d8 commit 131899c
Show file tree
Hide file tree
Showing 15 changed files with 308 additions and 38 deletions.
2 changes: 1 addition & 1 deletion bu-learning-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: http://www.bu.edu/
* Text Domain: bulearningblocks
* Domain Path: /languages
* Version: 0.0.5
* Version: 0.0.6
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
Expand Down
36 changes: 36 additions & 0 deletions data-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,39 @@
}
}
```

## Question: Fill in the Blank

```json
{
"question": {
"type": "fill-in-the-blank",
"header": "String",
"body": "String",
"answer": "String",
"caseSensitive": "Boolean",
"feedback": {
"correct": "String",
"incorrect": "String"
}
}
}
```

### Fill in the Blank Example

``` json
{
"question": {
"type": "fill-in-the-blank",
"header": "Type in the word exactly in lower case",
"body": "What is the Spanish word for grandmother?",
"answer": "abuela",
"caseSensitive": true,
"feedback": {
"correct": "Yes, that is correct",
"incorrect": "No, that is not the exact lower case spelling",
}
}
}
```
2 changes: 1 addition & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/blocks.editor.build.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/frontend.build.js

Large diffs are not rendered by default.

68 changes: 35 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bu-learning-blocks",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"scripts": {
"start": "node scripts/start.js",
Expand All @@ -15,7 +15,7 @@
"test-unit-php-multisite": "docker-compose run -e WP_MULTISITE=1 --rm wordpress_phpunit phpunit"
},
"dependencies": {
"@bostonuniversity/react-questions": "0.0.8",
"@bostonuniversity/react-questions": "0.0.9",
"autoprefixer": "^7.2.4",
"babel-core": "^6.25.0",
"babel-eslint": "^8.2.1",
Expand Down
1 change: 1 addition & 0 deletions src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ import './blocks/bulb-cn/index.js';
import './blocks/bulb-ma/index.js';
import './blocks/bulb-mc/index.js';
import './blocks/bulb-tf/index.js';
import './blocks/bulb-fitb/index.js';

9 changes: 9 additions & 0 deletions src/blocks/bulb-fitb/FillInTheBlankAnswer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default ( {
answer,
onChangeAnswer,
} ) => (
<div>
<h5>Answer:</h5>
<input type="text" size="50" value={ answer } onChange={ event => onChangeAnswer( event.target.value ) } />
</div>
);
Loading

0 comments on commit 131899c

Please sign in to comment.