secubox-openwrt/luci-app-secubox/htdocs/luci-static/resources/view/secubox
CyberMind-FR a9fca35644 fix: Release v0.4.4 - Improved version handling and helpers refactoring
This release focuses on consistent version display across all modules
and proper OOP structure for network-modes helpers.

## Version Display Improvements (3 files)

Added robust version resolution functions to handle various version field names:

**SecuBox Dashboard** (dashboard.js):
- Added getModuleVersion() function with fallback chain
- Checks: version, pkg_version, package_version, packageVersion, Version
- Handles both string and number types
- Returns '—' if no version found
- Loads modules list from API for accurate version data

**SecuBox Modules** (modules.js):
- Added resolveModuleVersion() function with same fallback logic
- Ensures consistent version display in module cards
- Handles missing or undefined versions gracefully

**System Hub Components** (components.js):
- Added getComponentVersion() function with version fallback chain
- Consistent version display across all components
- Proper handling of edge cases (null, undefined, empty strings)

## Network Modes Refactoring (1 file)

**helpers.js**:
- Refactored from plain object export to baseclass.extend()
- Proper OOP structure following LuCI conventions
- Added 'require baseclass' import
- All helper functions now properly encapsulated
- Better integration with LuCI module system

## Benefits

- Consistent version display across SecuBox, System Hub, and Components
- Handles version field name variations (legacy, OpenWrt, custom)
- Type-safe version handling (numbers → strings)
- Improved code maintainability with proper OOP structure
- Better error handling for missing version information

Summary:
- 4 files changed (+85, -8)
- 3 new version resolution functions
- 1 OOP refactoring for helpers
- Improved consistency and reliability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 19:35:54 +01:00
..
alerts.js feat: Bump version to 0.3.1 for enhanced modules 2025-12-27 10:28:12 +01:00
dashboard.js fix: Release v0.4.4 - Improved version handling and helpers refactoring 2025-12-28 19:35:54 +01:00
dev-status.js Add LuCI development status view for SecuBox Hub 2025-12-28 03:34:19 +01:00
help.js feat: Add help system integration and fix menu structure 2025-12-28 16:29:04 +01:00
modules-debug.js release: v0.1.1 - Unified Theme System with Dark/Light Mode Support 2025-12-26 16:09:15 +01:00
modules-minimal.js release: v0.1.1 - Unified Theme System with Dark/Light Mode Support 2025-12-26 16:09:15 +01:00
modules.js fix: Release v0.4.4 - Improved version handling and helpers refactoring 2025-12-28 19:35:54 +01:00
monitoring.js fix: correct CSS path from system-hub to secubox in view files 2025-12-26 20:59:41 +01:00
settings.js fix: correct CSS path from system-hub to secubox in view files 2025-12-26 20:59:41 +01:00