mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-15 08:42:55 +01:00
feat(blockly): Phase A foundation - Blockly setup, custom blocks, and generators
- Install blockly package (~500KB) - Create BlocklyWorkspace React component with serialization - Define custom Noodl blocks (Input/Output, Variables, Objects, Arrays) - Implement JavaScript code generators for all custom blocks - Add theme-aware styling for Blockly workspace - Export initialization functions for easy integration Part of TASK-012: Blockly Visual Logic Integration
This commit is contained in:
@@ -132,11 +132,18 @@ const SimpleJavascriptNode = {
|
||||
}
|
||||
}
|
||||
|
||||
// Create Noodl API and augment with Inputs/Outputs for backward compatibility
|
||||
// Legacy code used: Noodl.Outputs.foo = 'bar'
|
||||
// New code uses: Outputs.foo = 'bar' (direct parameter)
|
||||
const noodlAPI = JavascriptNodeParser.createNoodlAPI(this.nodeScope.modelScope);
|
||||
noodlAPI.Inputs = inputs;
|
||||
noodlAPI.Outputs = outputs;
|
||||
|
||||
try {
|
||||
await func.apply(this._internal._this, [
|
||||
inputs,
|
||||
outputs,
|
||||
JavascriptNodeParser.createNoodlAPI(this.nodeScope.modelScope),
|
||||
noodlAPI,
|
||||
JavascriptNodeParser.getComponentScopeForNode(this)
|
||||
]);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user