From ead92092d74796d266dc93c4b1bb0d89f1648c6b Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Fri, 7 Jun 2024 12:57:27 +0200 Subject: [PATCH] Fixed blockly definition (value -> field) --- admin/blockly.js | 54 +++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/admin/blockly.js b/admin/blockly.js index 95e87a9..936223b 100644 --- a/admin/blockly.js +++ b/admin/blockly.js @@ -35,32 +35,30 @@ Blockly.Words['ifttt_log_error'] = {"en": "error", // Blockly.Sendto is global variable and defined in javascript/admin/google-blockly/own/blocks_sendto.js Blockly.Sendto.blocks['ifttt'] = - '' - + ' ' - + ' ' - + ' ' - + ' ' - + ' state' - + ' ' - + ' ' - + ' ' - + ' ' - + ' value1' - + ' ' - + ' ' - + ' ' - + ' ' - + ' value2' - + ' ' - + ' ' - + ' ' - + ' ' - + ' value3' - + ' ' - + ' ' - + ' ' - + ' ' - + ''; + '' + + ' .0' + + ' ' + + ' ' + + ' ' + + ' state' + + ' ' + + ' ' + + ' ' + + ' ' + + ' value1' + + ' ' + + ' ' + + ' ' + + ' ' + + ' value2' + + ' ' + + ' ' + + ' ' + + ' ' + + ' value3' + + ' ' + + ' ' + + ''; Blockly.Blocks['ifttt'] = { init: function() { @@ -107,7 +105,7 @@ Blockly.Blocks['ifttt'] = { [Blockly.Translate('ifttt_log_info'), 'log'], [Blockly.Translate('ifttt_log_debug'), 'debug'], [Blockly.Translate('ifttt_log_warn'), 'warn'], - [Blockly.Translate('ifttt_log_error'), 'error'] + [Blockly.Translate('ifttt_log_error'), 'error'], ]), 'LOG'); this.setInputsInline(false); @@ -117,7 +115,7 @@ Blockly.Blocks['ifttt'] = { this.setColour(Blockly.Sendto.HUE); this.setTooltip(Blockly.Translate('ifttt_tooltip')); this.setHelpUrl(Blockly.Translate('ifttt_help')); - } + }, }; Blockly.JavaScript['ifttt'] = function(block) {