'use strict'; 'require baseclass'; 'require secubox/nav as SecuNav'; /** * System Hub Navigation * Uses SecuNav.renderCompactTabs() for consistent styling */ var tabs = [ { id: 'overview', icon: '๐Ÿ“Š', label: _('Overview'), path: ['admin', 'secubox', 'system', 'system-hub', 'overview'] }, { id: 'services', icon: '๐Ÿงฉ', label: _('Services'), path: ['admin', 'secubox', 'system', 'system-hub', 'services'] }, { id: 'logs', icon: '๐Ÿ“œ', label: _('Logs'), path: ['admin', 'secubox', 'system', 'system-hub', 'logs'] }, { id: 'backup', icon: '๐Ÿ’พ', label: _('Backup'), path: ['admin', 'secubox', 'system', 'system-hub', 'backup'] }, { id: 'components', icon: '๐Ÿงฑ', label: _('Components'), path: ['admin', 'secubox', 'system', 'system-hub', 'components'] }, { id: 'diagnostics', icon: '๐Ÿงช', label: _('Diagnostics'), path: ['admin', 'secubox', 'system', 'system-hub', 'diagnostics'] }, { id: 'health', icon: 'โค๏ธ', label: _('Health'), path: ['admin', 'secubox', 'system', 'system-hub', 'health'] }, { id: 'debug', icon: '๐Ÿ›', label: _('Debug'), path: ['admin', 'secubox', 'system', 'system-hub', 'debug'] }, { id: 'remote', icon: '๐Ÿ“ก', label: _('Remote'), path: ['admin', 'secubox', 'system', 'system-hub', 'remote'] }, { id: 'settings', icon: 'โš™๏ธ', label: _('Settings'), path: ['admin', 'secubox', 'system', 'system-hub', 'settings'] } ]; return baseclass.extend({ getTabs: function() { return tabs.slice(); }, /** * Render System Hub navigation tabs * Delegates to SecuNav.renderCompactTabs() for consistent styling */ renderTabs: function(active) { return SecuNav.renderCompactTabs(active, this.getTabs(), { className: 'system-hub-nav-tabs' }); }, /** * Render breadcrumb back to SecuBox */ renderBreadcrumb: function() { return SecuNav.renderBreadcrumb(_('System Hub'), '๐Ÿ–ฅ๏ธ'); } });