sort blocks: custom+xml and common
This commit is contained in:
parent
9e95f2f40f
commit
d9995c8a76
26 changed files with 135 additions and 16 deletions
118
src/blocks/custom/xml/action_root.xml
Normal file
118
src/blocks/custom/xml/action_root.xml
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="factory_base" id="pTm]Hpk1SYWSmtw3Fpnm" deletable="false" movable="false" x="10" y="10">
|
||||
<mutation connections="NONE"></mutation>
|
||||
<field name="NAME">action_root</field>
|
||||
<field name="INLINE">AUTO</field>
|
||||
<field name="CONNECTIONS">NONE</field>
|
||||
<statement name="INPUTS">
|
||||
<block type="input_dummy" id="?lPcJPXQdyU!~Dm?6p2=">
|
||||
<field name="ALIGN">CENTRE</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="{-[lJB,kJQ;qLQbwzdBv">
|
||||
<field name="TEXT">Action Root</field>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="input_dummy" id="L*j`dFgy#}rSo`!Aa2,D">
|
||||
<field name="ALIGN">LEFT</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="y@F%Xu-R~3@5+PxWl.(1">
|
||||
<field name="TEXT">Max Frequency:</field>
|
||||
<next>
|
||||
<block type="field_dropdown" id="M@0A1E.s;at)9C_$cW5f">
|
||||
<mutation options="["text","text","text","text","text"]"></mutation>
|
||||
<field name="FIELDNAME">ACTION_FREQUENCY</field>
|
||||
<field name="USER0">10 seconds</field>
|
||||
<field name="CPU0">10</field>
|
||||
<field name="USER1">30 seconds</field>
|
||||
<field name="CPU1">30</field>
|
||||
<field name="USER2">1 minute</field>
|
||||
<field name="CPU2">60</field>
|
||||
<field name="USER3">5 minutes</field>
|
||||
<field name="CPU3">300</field>
|
||||
<field name="USER4">1 hour</field>
|
||||
<field name="CPU4">3600</field>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="input_dummy" id="6lF{R3=jv);r5(M;%xU1">
|
||||
<field name="ALIGN">CENTRE</field>
|
||||
<next>
|
||||
<block type="input_dummy" id="k?wQ8*ny9:9w*Arx=t)u">
|
||||
<field name="ALIGN">CENTRE</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="M0HaRcqi~mv3cJ*EX=yB">
|
||||
<field name="TEXT">Triggers</field>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="input_statement" id="hw_1LHy~rY70-eaRQ/,7">
|
||||
<field name="INPUTNAME">TRIGGERS</field>
|
||||
<field name="ALIGN">LEFT</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="ylyOWeGo(Iwsvx3$do;)">
|
||||
<field name="TEXT">Any:</field>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="TYPE">
|
||||
<shadow type="type_null" id="RptP},Q;R;Vpb|c|QB!B"></shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="input_dummy" id="lGhQ.j).d(^i0xeCTwXe">
|
||||
<field name="ALIGN">CENTRE</field>
|
||||
<next>
|
||||
<block type="input_dummy" id="ev.;#.*J*JBn/%-Er},T">
|
||||
<field name="ALIGN">CENTRE</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="@P.l1P6v!JN$+PQpzut#">
|
||||
<field name="TEXT">Actions</field>
|
||||
</block>
|
||||
</statement>
|
||||
<next>
|
||||
<block type="input_statement" id="{_pB)q@[pR5z{^=1w9l(">
|
||||
<field name="INPUTNAME">ACTIONS</field>
|
||||
<field name="ALIGN">LEFT</field>
|
||||
<statement name="FIELDS">
|
||||
<block type="field_static" id="c7d*ot[gT[.2?^]6mh~U">
|
||||
<field name="TEXT">All:</field>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="TYPE">
|
||||
<shadow type="type_null" id="X!+Vq3vrBqF/`:1ZtH#6"></shadow>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="TOOLTIP">
|
||||
<block type="text" id=".8=CeDPZX*G^L,I~O@L5" deletable="false" movable="false">
|
||||
<field name="TEXT"></field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="HELPURL">
|
||||
<block type="text" id="fZt]zMSBG*l{-CTS4=xA" deletable="false" movable="false">
|
||||
<field name="TEXT"></field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="COLOUR">
|
||||
<block type="colour_hue" id="QT.Gg@xo@ZTOG0~Y{bq+">
|
||||
<mutation colour="#5ba55b"></mutation>
|
||||
<field name="HUE">120</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</xml>
|
||||
|
|
@ -1,21 +1,22 @@
|
|||
import * as Blockly from 'blockly';
|
||||
|
||||
import action_root from './action_root'
|
||||
import feed_selector from './feed_selector'
|
||||
import trigger_all from './trigger_all'
|
||||
import trigger_on_change from './trigger_on_change'
|
||||
import action_publish_to_feed from './action_publish_to_feed'
|
||||
import action_send_email from './action_send_email'
|
||||
import math_number from './math_number'
|
||||
import text from './text'
|
||||
import text_multiline from './text_multiline'
|
||||
import logic_boolean from './logic_boolean'
|
||||
import logic_null from './logic_null'
|
||||
import controls_if from './controls_if'
|
||||
import logic_compare from './logic_compare'
|
||||
import logic_negate from './logic_negate'
|
||||
import logic_operation from './logic_operation'
|
||||
import math_arithmetic from './math_arithmetic'
|
||||
import action_root from './custom/action_root'
|
||||
import feed_selector from './custom/feed_selector'
|
||||
import trigger_all from './custom/trigger_all'
|
||||
import trigger_on_change from './custom/trigger_on_change'
|
||||
import action_publish_to_feed from './custom/action_publish_to_feed'
|
||||
import action_send_email from './custom/action_send_email'
|
||||
|
||||
import math_number from './common/math_number'
|
||||
import text from './common/text'
|
||||
import text_multiline from './common/text_multiline'
|
||||
import logic_boolean from './common/logic_boolean'
|
||||
import logic_null from './common/logic_null'
|
||||
import controls_if from './common/controls_if'
|
||||
import logic_compare from './common/logic_compare'
|
||||
import logic_negate from './common/logic_negate'
|
||||
import logic_operation from './common/logic_operation'
|
||||
import math_arithmetic from './common/math_arithmetic'
|
||||
|
||||
|
||||
const
|
||||
|
|
|
|||
Loading…
Reference in a new issue