Skip to content

Commit

Permalink
Removed namespace from mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Jun 7, 2024
1 parent 88ebfc4 commit ea12c24
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/public/google-blockly/own/blocks_action.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Blockly.Action = {

Blockly.Action.blocks['exec'] =
'<block type="exec">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>' +
' <mutation with_statement="false"></mutation>' +
' <field name="WITH_STATEMENT">FALSE</field>' +
' <field name="LOG"></field>' +
' <value name="COMMAND">' +
Expand Down Expand Up @@ -577,7 +577,7 @@ Blockly.JavaScript['file_data'] = function(block) {
// --- action request --------------------------------------------------
Blockly.Action.blocks['request'] =
'<block type="request">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>' +
' <mutation with_statement="false"></mutation>' +
' <field name="WITH_STATEMENT">FALSE</field>' +
' <field name="LOG"></field>' +
' <value name="URL">' +
Expand Down
4 changes: 2 additions & 2 deletions src/public/google-blockly/own/blocks_convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Blockly.JavaScript.convert_to_date = function (a) {
// --- from Date --------------------------------------------------
Blockly.Convert.blocks['convert_from_date'] =
'<block type="convert_from_date">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>' +
' <mutation format="false" language="false"></mutation>' +
' <field name="OPTION">object</field>' +
'</block>';

Expand Down Expand Up @@ -287,7 +287,7 @@ Blockly.JavaScript.convert_from_date = function (block) {
// --- time difference --------------------------------------------------
Blockly.Convert.blocks['convert_time_difference'] =
'<block type="convert_time_difference">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" format="false"></mutation> ' +
' <mutation format="false"></mutation> ' +
' <field name="OPTION">hh:mm:ss</field> ' +
'</block>';

Expand Down
2 changes: 1 addition & 1 deletion src/public/google-blockly/own/blocks_sendto.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Blockly.Sendto = {
// --- sendTo Custom --------------------------------------------------
Blockly.Sendto.blocks['sendto_custom'] =
'<block type="sendto_custom">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" items="parameter1" with_statement="false"></mutation>' +
' <mutation items="parameter1" with_statement="false"></mutation>' +
' <field name="INSTANCE">admin.0</field>' +
' <field name="COMMAND">send</field>' +
' <field name="LOG"></field>' +
Expand Down
6 changes: 3 additions & 3 deletions src/public/google-blockly/own/blocks_system.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Blockly.JavaScript['comment'] = function(block) {
// --- control -----------------------------------------------------------
Blockly.System.blocks['control'] =
'<block type="control">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>' +
' <mutation delay_input="false"></mutation>' +
' <field name="WITH_DELAY">FALSE</field>' +
'</block>';

Expand Down Expand Up @@ -228,7 +228,7 @@ Blockly.JavaScript['control'] = function(block) {
// --- toggle -----------------------------------------------------------
Blockly.System.blocks['toggle'] =
'<block type="toggle">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>' +
' <mutation delay_input="false"></mutation>' +
' <field name="WITH_DELAY">FALSE</field>' +
'</block>';

Expand Down Expand Up @@ -357,7 +357,7 @@ Blockly.JavaScript['toggle'] = function(block) {
// --- update -----------------------------------------------------------
Blockly.System.blocks['update'] =
'<block type="update">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>' +
' <mutation delay_input="false"></mutation>' +
' <field name="WITH_DELAY">FALSE</field>' +
'</block>';

Expand Down
8 changes: 4 additions & 4 deletions src/public/google-blockly/own/blocks_time.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Blockly.Time = {
// --- time compare --------------------------------------------------
Blockly.Time.blocks['time_compare_ex'] =
'<block type="time_compare_ex">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>' +
' <mutation end_time="false" actual_time="true"></mutation>' +
' <field name="USE_ACTUAL_TIME">TRUE</field>' +
' <field name="OPTION">&lt;</field>' +
' <value name="START_TIME">' +
Expand Down Expand Up @@ -167,7 +167,7 @@ Blockly.JavaScript['time_compare_ex'] = function(block) {
// --- time compare --------------------------------------------------
Blockly.Time.blocks['time_compare'] =
'<block type="time_compare">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation>' +
' <mutation end_time="false"></mutation>' +
' <field name="OPTION">&lt;</field>' +
' <field name="START_TIME">12:00</field>' +
'</block>';
Expand Down Expand Up @@ -266,7 +266,7 @@ Blockly.Words['time_get_hh_mm_ss.sss'].format = 'hh:mm:ss.sss';

Blockly.Time.blocks['time_get'] =
'<block type="time_get">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>' +
' <mutation format="false" language="false"></mutation>' +
' <field name="OPTION">object</field>' +
'</block>';

Expand Down Expand Up @@ -532,7 +532,7 @@ Blockly.Time.blocks['time_calculation'] =
' <field name="UNIT">ms</field>' +
' <value name="DATE_TIME">' +
' <shadow type="time_get">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>' +
' <mutation format="false" language="false"></mutation>' +
' <field name="OPTION">object</field>' +
' </shadow>' +
' </value>' +
Expand Down
4 changes: 2 additions & 2 deletions src/public/google-blockly/own/blocks_trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Blockly.Trigger = {

Blockly.Trigger.blocks['on_ext'] =
'<block type="on_ext">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>' +
' <mutation items="1"></mutation>' +
' <field name="CONDITION">ne</field>' +
' <field name="ACK_CONDITION"></field>' +
' <value name="OID0">' +
Expand Down Expand Up @@ -971,7 +971,7 @@ Blockly.JavaScript['field_cron'] = function(block) {
// --- CRON builder --------------------------------------------------
Blockly.Trigger.blocks['cron_builder'] =
'<block type="cron_builder">' +
' <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>' +
' <mutation seconds="false" as_line="false"></mutation>' +
' <field name="LINE">FALSE</field>' +
' <field name="WITH_SECONDS">FALSE</field>' +
' <value name="DOW">' +
Expand Down

0 comments on commit ea12c24

Please sign in to comment.