ioBroker / ioBroker.javascript

Script engine for JavaScript and Blockly
MIT License
320 stars 119 forks source link

Fix all Blockly definitions of custom blocks #1598

Open klein0r opened 3 weeks ago

klein0r commented 3 weeks ago
klein0r commented 3 weeks ago

See https://github.com/google/blockly/releases/tag/blockly-v10.0.0 / https://github.com/google/blockly/pull/7077

if (typeof Blockly.icons === 'object') {
    this.setMutator(new Blockly.icons.MutatorIcon(['telegram_ask_mutator'], this));
} else {
    // Blockly 9.x
    this.setMutator(new Blockly.Mutator(['telegram_ask_mutator'], this));
}
Lucky-ESA commented 2 weeks ago

imap -> is fixed in next release >= 0.2.0 commit

klein0r commented 2 weeks ago

@Lucky-ESA Thanks, just updated the generated code to fit the code style of all other blockly blocks: https://github.com/Lucky-ESA/ioBroker.imap/pull/75

BenAhrdt commented 5 days ago

@klein0r was muss angepasst werden? Adapter: LoRaWan

Apollon77 commented 5 days ago

@klein0r Wenn ein Adapter nicht angepasst werden kann wird da ab irgendwann was passieren das er nicht mhr geht?

klein0r commented 4 days ago

Eigentlich muss nichts angepasst werden. Nur Bausteine mit Mutator-Blöcken. Das sind aber super wenige Adapter.

BenAhrdt commented 4 days ago

Eigentlich muss nichts angepasst werden. Nur Bausteine mit Mutator-Blöcken. Das sind aber super wenige Adapter.

@klein0r Ich dachte es müsste was erledigt werden, da der Adapter oben in deiner Liste steht. Also muss dazu nichts angepasst werden? Ich habe im Adapter auch nur custom sendTo Blöcke drin.

klein0r commented 4 days ago

@BenAhrdt Ich habe einfach nur vor, alle Blockly-Bausteine mal anzuschauen und im gleichen Stil aufzubauen. Mehr nicht. 95% Kosmetik.

crycode-de commented 3 days ago

@klein0r discord fixed in latest release v2.3.1

https://github.com/crycode-de/ioBroker.discord/commit/2dc6b9a527ecb767b266db4d1c56e9ff82c6d166