File size: 567 Bytes
c9ae51a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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
};