初步增加educore

This commit is contained in:
Irene-Maxine
2025-01-09 08:46:44 +08:00
parent 9d74c9800d
commit 6a97eb899b
329 changed files with 15296 additions and 40 deletions

View File

@@ -1044,4 +1044,14 @@ export const datetime_fromtimestamp = {
this.setInputsInline(true);
this.setOutput(true, Number);
}
};
export const gene_unique_identifier = {
init: function () {
this.setColour(LOOPS_HUE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_GET_UNIQUE_IDEN);
this.setOutput(true)
}
};

View File

@@ -759,4 +759,15 @@ export const dicts_to_to ={
this.setTooltip(Blockly.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP);
this.setOutput(true);
}
}
}
export const dicts_to_json2 = {
init: function () {
this.setColour(DICTS_HUE);
this.appendValueInput('DICT');
this.appendDummyInput("")
.appendField(Blockly.Msg.MIXLY_TO_JSON);
this.setTooltip(Blockly.Msg.MIXLY_TO_JSON_TOOLTIP);
this.setOutput(true);
}
};

View File

@@ -823,4 +823,18 @@ export const enumerate = {
this.setOutput(true);
this.setTooltip(Blockly.Msg.MIXLY_TOTO_INDEX_SEQUENC_TOOLTIP);
}
};
};
export const content_in_lists = {
init: function () {
this.setColour(LISTS_HUE);
this.appendValueInput("CON")
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_ESP32_MIXGO_MUSIC_SHOW_IN);
this.appendValueInput("LIST")
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_MID);
this.setInputsInline(true);
this.setOutput(true);
}
}