How truenas/webui works
High-Level Architecture Components
a. Frontend Layer:
• Angular Application (Main UI)
• Core Modules
• Feature Modules
• Shared Components
• State Management (NgRx Store)
b. Communication Layer:
• WebSocket Service
• REST API Service
• Authentication Service
c. Backend Integration:
• TrueNAS Core/Scale System
• WebSocket Connection
• API Endpoints
Key Components
a. Core Infrastructure:
• Authentication Module
• WebSocket Handler
• Global Store
• Router/Navigation System
• Translation System
b. Feature Modules:
• Storage Management
• Network Configuration
• System Settings
• Virtual Machines
• Applications
• Backup/Restore
• Monitoring/Reporting
c. Shared Services:
• Error Handling
• Dialog Service
• Notification System
• Form Management
• Schema Service
Details
a. Module Relationships:
• How feature modules interact with core services
• Data flow between components
• Authentication/authorization paths
b. State Management:
• Store/reducer connections
• Action/effect flows
• Subscription patterns
Technical Specifications
Notes about:
• Angular version
• Node.js requirements
• WebSocket protocol
• State management patterns
• Module lazy loading