feat: sync arduino source board configurations
This commit is contained in:
24
mixly/boards/default_src/arduino/blocks/text.js
Normal file
24
mixly/boards/default_src/arduino/blocks/text.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
|
||||
const TEXTS_HUE = 160;
|
||||
|
||||
|
||||
export const text_base64_url_codec = {
|
||||
init: function () {
|
||||
this.appendValueInput('VALUE')
|
||||
.setCheck(null)
|
||||
.setAlign(Blockly.inputs.Align.LEFT)
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
['Base64', 'BASE64'],
|
||||
['URL', 'URL']
|
||||
]), 'TYPE')
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
[Blockly.Msg.MIXPY_TEXT_ENCODE, 'ENCODE'],
|
||||
[Blockly.Msg.MIXPY_TEXT_DECODE, 'DECODE']
|
||||
]), 'OPTION');
|
||||
this.setOutput(true, null);
|
||||
this.setColour(TEXTS_HUE);
|
||||
this.setTooltip('');
|
||||
this.setHelpUrl('');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user