ensure all block inputs/outputs are checked

This commit is contained in:
Loren Norman 2025-07-23 15:32:13 -04:00
parent 848d9d5fda
commit bd002ba253
23 changed files with 74 additions and 1 deletions

View file

@ -18,12 +18,14 @@ export default {
inputs: {
SUBJECT: {
description: "a template for generating the email subject",
check: "expression",
bytecodeProperty: "subjectTemplate",
shadow: singleLineTemplate,
},
BODY: {
description: "a multi-line template for generating the email body",
check: "expression",
bytecodeProperty: "bodyTemplate",
shadow: multilineLineTemplate,
}

View file

@ -16,6 +16,7 @@ export default {
inputs: {
EXPRESSION: {
description: "A Block diagram you'd like to see the resolved value and type of.",
check: "expression",
shadow: 'io_text'
}
},

View file

@ -21,11 +21,13 @@ export default {
inputs: {
VALUE: {
description: "The value to write to the Feed.",
check: "expression",
shadow: 'io_text'
},
FEED: {
description: "The Feed to write to.",
check: "expression",
shadow: 'feed_selector'
},
},

View file

@ -23,6 +23,7 @@ export default {
inputs: {
BODY: {
description: "A template for generating the SMS body",
check: "expression",
shadow: multilineLineTemplate
}
},

View file

@ -25,6 +25,7 @@ export default {
inputs: {
URL: {
description: "A valid web location to send a POST request to.",
check: "expression",
shadow: {
type: 'io_text',
fields: { TEXT: 'https://...' }
@ -33,6 +34,7 @@ export default {
BODY: {
description: "A JSON template to render and POST",
check: "expression",
shadow: multilineLineTemplate
}
},

View file

@ -36,11 +36,13 @@ export default {
inputs: {
IF0: {
description: "Runs the given block tree and checks whether it resolve true or false. If true, executes the 'do' branch, otherwise moves onto the next if (if present), or the final else (if present.)",
check: "expression",
shadow: 'io_logic_boolean'
},
THEN0: {
description: "The block diagram to execute when the preceding 'if' clause resolves to true",
check: "expression",
type: 'statement',
},

View file

@ -8,6 +8,11 @@ export default {
mixins: ['replaceDropdownOptions'],
extensions: ['populateFeedDropdown'],
connections: {
mode: "value",
output: "expression",
},
template: `Get %FEED_KEY`,
fields: {

View file

@ -9,6 +9,11 @@ export default {
mixins: ['replaceDropdownOptions'],
extensions: ['populateFeedDropdown'],
connections: {
mode: "value",
output: "expression",
},
template: "Feed: %FEED_KEY",
fields: {

View file

@ -20,6 +20,7 @@ export default {
inputs: {
VALUE: {
description: "The value to publish to the Feed.",
check: "expression",
shadow: 'io_text'
}
},

View file

@ -5,11 +5,17 @@ export default {
colour: 60,
description: "Swaps a truthy value to `false`, or a falsy value to `true`.",
connections: {
mode: "value",
output: "expression",
},
template: "not %EXPRESSION",
inputs: {
EXPRESSION: {
description: "Block diagram that will be resolved, then have its truthiness flipped.",
check: "expression",
shadow: 'io_logic_boolean'
}
},

View file

@ -6,16 +6,23 @@ export default {
colour: 60,
description: "Perform the specifed boolean logic operation on two operands.",
connections: {
mode: "value",
output: "expression",
},
template: `%A %OP %B`,
inputs: {
A: {
description: "A block diagram that will be resolved to a truthy/falsy value",
check: "expression",
shadow: 'io_logic_boolean'
},
B: {
description: "A block diagram that will be resolved to a truthy/falsy value",
check: "expression",
shadow: 'io_logic_boolean'
}
},

View file

@ -21,6 +21,7 @@ export default {
inputs: {
B: {
check: "expression",
shadow: 'io_logic_boolean'
}
},

View file

@ -27,6 +27,7 @@ export default {
inputs: {
B: {
description: "The value to compare with the Feed value.",
check: "expression",
shadow: 'io_math_number'
}
},

View file

@ -13,6 +13,7 @@ export default {
inputs: {
B: {
description: "The string to compare with the Feed value.",
check: "expression",
shadow: 'io_text'
}
},

View file

@ -6,16 +6,23 @@ export default {
inputsInline: true,
description: "Perform the specified arithmetic operation on two specified operands.",
connections: {
mode: "value",
output: "expression",
},
template: `%A %OP %B`,
inputs: {
A: {
description: "The left side of the operation. Will be coerced to a number",
check: "expression",
shadow: 'io_math_number'
},
B: {
description: "The right side of the operation. Will be coerced to a number",
check: "expression",
shadow: 'io_math_number'
},
},

View file

@ -6,16 +6,23 @@ export default {
inputsInline: true,
description: "Numerically compare two given values using the selected math operation.",
connections: {
mode: "value",
output: "expression",
},
template: `%A %OP %B`,
inputs: {
A: {
description: "The left side of the comparison. Will be coerced to a number",
check: "expression",
shadow: 'io_math_number'
},
B: {
description: "The right side of the comparison. Will be coerced to a number",
check: "expression",
shadow: 'io_math_number'
},
},

View file

@ -17,6 +17,7 @@ export default {
inputs: {
VALUE: {
check: "expression",
shadow: "io_math_number"
},

View file

@ -17,12 +17,14 @@ export default {
inputs: {
FROM: {
description: "The lower bound of the range.",
check: "expression",
bytecodeProperty: "from",
shadow: "io_math_number"
},
TO: {
description: "The upper bound of the range.",
check: "expression",
bytecodeProperty: "to",
shadow: "io_math_number"
},

View file

@ -14,6 +14,7 @@ export default {
VALUE: {
description: "A value you'd like to round to a whole number. Will be coerced to a number.",
bytecodeProperty: "value",
check: "expression",
shadow: "io_math_number"
}
},

View file

@ -6,16 +6,23 @@ export default {
inputsInline: true,
description: "Compare two chunks of text for equality, inequality, or inclusion.",
connections: {
mode: "value",
output: "expression",
},
template: `%A %OP %B`,
inputs: {
A: {
description: "The left side of the comparison. Will be coerced to a string",
check: "expression",
shadow: 'io_text'
},
B: {
description: "The right side of the comparison. Will be coerced to a string",
check: "expression",
shadow: 'io_text'
},
},

View file

@ -6,16 +6,23 @@ export default {
inputsInline: true,
description: "Join two pieces of text into one.",
connections: {
mode: "value",
output: "expression",
},
template: "%A + %B",
inputs: {
A: {
description: "The first string of text",
check: "expression",
shadow: "io_text"
},
B: {
description: "The last string of text",
check: "expression",
shadow: "io_text"
},
},

View file

@ -49,7 +49,10 @@ export default {
template: "{{ %TEMPLATE",
inputs: {
TEMPLATE: { shadow: 'io_text_multiline' }
TEMPLATE: {
check: "expression",
shadow: 'io_text_multiline'
}
},
generators: {

View file

@ -16,6 +16,7 @@ export default {
inputs: {
VALUE: {
check: "expression",
shadow: "io_text",
}
},