mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Lint corrections.
This commit is contained in:
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.colour');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.colour.HUE = 20;
|
||||
|
||||
Blockly.Blocks['colour_picker'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.lists');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.lists.HUE = 260;
|
||||
|
||||
Blockly.Blocks['lists_create_empty'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.logic');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.logic.HUE = 210;
|
||||
|
||||
Blockly.Blocks['controls_if'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.loops');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.loops.HUE = 120;
|
||||
|
||||
Blockly.Blocks['controls_repeat'] = {
|
||||
@@ -38,20 +41,12 @@ Blockly.Blocks['controls_repeat'] = {
|
||||
*/
|
||||
init: function() {
|
||||
this.jsonInit({
|
||||
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE + " %2 " +
|
||||
Blockly.Msg.CONTROLS_REPEAT_INPUT_DO + " %3",
|
||||
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE,
|
||||
"args": [
|
||||
{
|
||||
"type": "field_input",
|
||||
"name": "TIMES",
|
||||
"text": "10"
|
||||
},
|
||||
{
|
||||
"type": "input_dummy"
|
||||
},
|
||||
{
|
||||
"type": "input_statement",
|
||||
"name": "DO"
|
||||
}
|
||||
],
|
||||
"previousStatement": null,
|
||||
@@ -60,6 +55,8 @@ Blockly.Blocks['controls_repeat'] = {
|
||||
"tooltip": Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,
|
||||
"helpUrl": Blockly.Msg.CONTROLS_REPEAT_HELPURL
|
||||
});
|
||||
this.appendStatementInput('DO')
|
||||
.appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);
|
||||
this.getField_('TIMES').setChangeHandler(
|
||||
Blockly.FieldTextInput.nonnegativeIntegerValidator);
|
||||
}
|
||||
@@ -72,20 +69,12 @@ Blockly.Blocks['controls_repeat_ext'] = {
|
||||
*/
|
||||
init: function() {
|
||||
this.jsonInit({
|
||||
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE + " %2 " +
|
||||
Blockly.Msg.CONTROLS_REPEAT_INPUT_DO + " %3",
|
||||
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE,
|
||||
"args": [
|
||||
{
|
||||
"type": "input_value",
|
||||
"name": "TIMES",
|
||||
"check": "Number"
|
||||
},
|
||||
{
|
||||
"type": "input_dummy"
|
||||
},
|
||||
{
|
||||
"type": "input_statement",
|
||||
"name": "DO"
|
||||
}
|
||||
],
|
||||
"previousStatement": null,
|
||||
@@ -94,6 +83,8 @@ Blockly.Blocks['controls_repeat_ext'] = {
|
||||
"tooltip": Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,
|
||||
"helpUrl": Blockly.Msg.CONTROLS_REPEAT_HELPURL
|
||||
});
|
||||
this.appendStatementInput('DO')
|
||||
.appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.math');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.math.HUE = 230;
|
||||
|
||||
Blockly.Blocks['math_number'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.procedures');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.procedures.HUE = 290;
|
||||
|
||||
Blockly.Blocks['procedures_defnoreturn'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.texts');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.texts.HUE = 160;
|
||||
|
||||
Blockly.Blocks['text'] = {
|
||||
|
||||
@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.variables');
|
||||
goog.require('Blockly.Blocks');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
*/
|
||||
Blockly.Blocks.variables.HUE = 330;
|
||||
|
||||
Blockly.Blocks['variables_get'] = {
|
||||
|
||||
Reference in New Issue
Block a user