Skip to content

Fix all Blockly definitions of custom blocks #1598

Open

Activity

  1. klein0r commented on Jun 7, 2024

    @klein0r
    CollaboratorAuthor

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

    • Blockly.WidgetDiv.DIV -> Blockly.WidgetDiv.getDiv()
    • Blockly.JavaScript.variableDB_ -> Blockly.JavaScript.nameDB_
    • use Blockly.JavaScript.quote_() to add quoted strings which escapes single quotes ' (optional)
    • Mutator-Blocks must be updated:
    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));
    }
  2. added a commit that references this issue on Jun 7, 2024
  3. self-assigned this
    on Jun 7, 2024
  4. Lucky-ESA commented on Jun 14, 2024

    @Lucky-ESA

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

  5. pinned this issue on Jun 14, 2024
  6. klein0r commented on Jun 14, 2024

    @klein0r
    CollaboratorAuthor

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

  7. BenAhrdt commented on Jun 27, 2024

    @BenAhrdt

    @klein0r was muss angepasst werden?
    Adapter: LoRaWan

  8. Apollon77 commented on Jun 27, 2024

    @Apollon77
    Contributor

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

  9. klein0r commented on Jun 28, 2024

    @klein0r
    CollaboratorAuthor

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

  10. BenAhrdt commented on Jun 28, 2024

    @BenAhrdt

    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.

  11. klein0r commented on Jun 28, 2024

    @klein0r
    CollaboratorAuthor

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

  12. crycode-de commented on Jun 29, 2024

    @crycode-de
    Contributor

    @klein0r discord fixed in latest release v2.3.1

    crycode-de/ioBroker.discord@2dc6b9a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions