Spaces:
Running
Running
| // Main application logic will go here | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Initialize the app | |
| console.log('Phoenix Flow Builder initialized'); | |
| // Dark mode by default | |
| document.documentElement.classList.add('dark'); | |
| }); | |
| // Constants for initial nodes and edges | |
| const INITIAL_NODES = []; | |
| const INITIAL_EDGES = []; | |
| // Custom node types | |
| const NodeType = { | |
| ACTION: 'action', | |
| TRIGGER: 'trigger', | |
| CONDITION: 'condition', | |
| }; | |
| // Export them for use in components | |
| window.FlowConstants = { | |
| INITIAL_NODES, | |
| INITIAL_EDGES, | |
| NodeType | |
| }; |