Skip to content

Commit

Permalink
Merge pull request #2 from jeremyjacob123/develop
Browse files Browse the repository at this point in the history
merging develop
  • Loading branch information
jeremyjacob123 authored Nov 6, 2021
2 parents e305021 + c75e944 commit b1f5199
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 53 deletions.
9 changes: 2 additions & 7 deletions blocks/colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Colour blocks for Blockly.
*
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -28,7 +23,7 @@ goog.require('Blockly.FieldLabel');
*/
Blockly.Constants.Colour.HUE = 20;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for colour picker.
{
"type": "colour_picker",
Expand Down Expand Up @@ -117,4 +112,4 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"style": "colour_blocks",
"tooltip": "%{BKY_COLOUR_BLEND_TOOLTIP}",
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);
9 changes: 2 additions & 7 deletions blocks/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview List blocks for Blockly.
*
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -28,7 +23,7 @@ goog.require('Blockly.Mutator');
*/
Blockly.Constants.Lists.HUE = 260;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for creating an empty list
// The 'list_create_with' block is preferred as it is more flexible.
// <block type="lists_create_with">
Expand Down Expand Up @@ -111,7 +106,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"tooltip": "%{BKY_LISTS_LENGTH_TOOLTIP}",
"helpUrl": "%{BKY_LISTS_LENGTH_HELPURL}",
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

Blockly.Blocks['lists_create_with'] = {
/**
Expand Down
10 changes: 1 addition & 9 deletions blocks/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Logic blocks for Blockly.
*
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -29,7 +24,7 @@ goog.require('Blockly.Mutator');
*/
Blockly.Constants.Logic.HUE = 210;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for boolean data type: true and false.
{
"type": "logic_boolean",
Expand Down Expand Up @@ -226,9 +221,6 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"helpUrl": "%{BKY_LOGIC_TERNARY_HELPURL}",
"extensions": ["logic_ternary"],
},
]); // END JSON EXTRACT (Do not delete this comment.)

Blockly.defineBlocksWithJsonArray([ // Mutator blocks. Do not extract.
// Block representing the if statement in the controls_if mutator.
{
"type": "controls_if_if",
Expand Down
9 changes: 2 additions & 7 deletions blocks/loops.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Loop blocks for Blockly.
*
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -31,7 +26,7 @@ goog.require('Blockly.Warning');
*/
Blockly.Constants.Loops.HUE = 120;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for repeat n times (external number).
{
"type": "controls_repeat_ext",
Expand Down Expand Up @@ -200,7 +195,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"controls_flow_in_loop_check",
],
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

/**
* Tooltips for the 'controls_whileUntil' block, keyed by MODE value.
Expand Down
9 changes: 2 additions & 7 deletions blocks/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Math blocks for Blockly.
*
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -30,7 +25,7 @@ goog.require('Blockly.FieldVariable');
*/
Blockly.Constants.Math.HUE = 230;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for numeric value.
{
"type": "math_number",
Expand Down Expand Up @@ -384,7 +379,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"tooltip": "%{BKY_MATH_ATAN2_TOOLTIP}",
"helpUrl": "%{BKY_MATH_ATAN2_HELPURL}",
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

/**
* Mapping of math block OP value to tooltip message for blocks
Expand Down
4 changes: 2 additions & 2 deletions blocks/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ goog.require('Blockly.Mutator');
*/
Blockly.Constants.Text.HUE = 160;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for text value
{
"type": "text",
Expand Down Expand Up @@ -222,7 +222,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"inputsInline": true,
"mutator": "text_charAt_mutator",
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

Blockly.Blocks['text_getSubstring'] = {
/**
Expand Down
9 changes: 2 additions & 7 deletions blocks/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Variable blocks for Blockly.
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -28,7 +23,7 @@ goog.require('Blockly.FieldVariable');
*/
Blockly.Constants.Variables.HUE = 330;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for variable getter.
{
"type": "variables_get",
Expand Down Expand Up @@ -68,7 +63,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"helpUrl": "%{BKY_VARIABLES_SET_HELPURL}",
"extensions": ["contextMenu_variableSetterGetter"],
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

/**
* Mixin to add context menu items to create getter/setter blocks for this
Expand Down
9 changes: 2 additions & 7 deletions blocks/variables_dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @fileoverview Variable blocks for Blockly.
* This file is scraped to extract a .json file of block definitions. The array
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
*/
'use strict';

Expand All @@ -27,7 +22,7 @@ goog.require('Blockly.FieldVariable');
*/
Blockly.Constants.VariablesDynamic.HUE = 310;

Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
Blockly.defineBlocksWithJsonArray([
// Block for variable getter.
{
"type": "variables_get_dynamic",
Expand Down Expand Up @@ -64,7 +59,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"helpUrl": "%{BKY_VARIABLES_SET_HELPURL}",
"extensions": ["contextMenu_variableDynamicSetterGetter"],
},
]); // END JSON EXTRACT (Do not delete this comment.)
]);

/**
* Mixin to add context menu items to create getter/setter blocks for this
Expand Down

0 comments on commit b1f5199

Please sign in to comment.