How 2600hz/monster-ui works
Main Components
a. Frontend Layer
• Core UI Framework
• Monster UI Core (/src/apps/core)
• Base Applications (auth, apploader, appstore)
• Common Components (/src/apps/common)
• Custom Apps (/src/apps/*)
b. Communication Layer
• API Integration Layer
• Kazoo SDK Integration (src/js/lib/jquery.kazoosdk.js)
• WebSocket Handling (src/apps/core/submodules/socket)
• REST API Communication
c. Backend Integration
• Kazoo Platform Connection
• Authentication Services
• WebSocket Services
Component Relationships
[Browser Client] → [Monster UI Core]
• ↓
[Apps Layer] ←→ [Common Components]
• ↓
[Kazoo SDK] → [REST API] → [Kazoo Platform]
• ↓
[WebSocket] →→→ [Real-time Updates]
Detailed Component Breakdown
a. Monster UI Core (Central Component):
• Config Management (src/js/config.js)
• Routing System (monster.routing.js)
• UI Components (monster.ui.js)
• Utility Functions (monster.util.js)
b. Apps Structure:
[Core App]
• ↓
[Common Modules] → [Submodules]
• ↓
[Custom Apps] → [App-Specific Components]
Key Integration Points
Critical connections:
• Authentication Flow
• API Communication Paths
• WebSocket Event Handling
• App Loading/Management
Special Features
Important aspects:
• Internationalization System (i18n)
• Template Management
• Event System
• Service Plan Management
• User Management
Technical Details to Note
Annotations for:
• Build System (Gulp)
• Development Tools
• Configuration Options
• Security Layer
Extension points for custom apps
Remember to:
• Keep components at a logical grouping level
• Clear data flow directions
• Version information
• Configuration dependencies