1import IconDashboard from '@carbon/icons-vue/es/dashboard/16'; 2import IconTextLinkAnalysis from '@carbon/icons-vue/es/text-link--analysis/16'; 3import IconDataCheck from '@carbon/icons-vue/es/data--check/16'; 4import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16'; 5import IconSettings from '@carbon/icons-vue/es/settings/16'; 6import IconSecurity from '@carbon/icons-vue/es/security/16'; 7import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16'; 8import IconDataBase from '@carbon/icons-vue/es/data--base--alt/16'; 9 10const AppNavigationMixin = { 11 components: { 12 iconOverview: IconDashboard, 13 iconLogs: IconTextLinkAnalysis, 14 iconHealth: IconDataCheck, 15 iconControl: IconSettingsAdjust, 16 iconSettings: IconSettings, 17 iconSecurityAndAccess: IconSecurity, 18 iconExpand: IconChevronUp, 19 iconResourceManagement: IconDataBase, 20 }, 21 data() { 22 return { 23 navigationItems: [ 24 { 25 id: 'overview', 26 label: this.$t('appNavigation.overview'), 27 route: '/', 28 icon: 'iconOverview', 29 }, 30 { 31 id: 'logs', 32 label: this.$t('appNavigation.logs'), 33 icon: 'iconLogs', 34 children: [ 35 { 36 id: 'dumps', 37 label: this.$t('appNavigation.dumps'), 38 route: '/logs/dumps', 39 }, 40 { 41 id: 'event-logs', 42 label: this.$t('appNavigation.eventLogs'), 43 route: '/logs/event-logs', 44 }, 45 { 46 id: 'post-code-logs', 47 label: this.$t('appNavigation.postCodeLogs'), 48 route: '/logs/post-code-logs', 49 }, 50 ], 51 }, 52 { 53 id: 'hardware-status', 54 label: this.$t('appNavigation.hardwareStatus'), 55 icon: 'iconHealth', 56 children: [ 57 { 58 id: 'inventory', 59 label: this.$t('appNavigation.inventory'), 60 route: '/hardware-status/inventory', 61 }, 62 { 63 id: 'sensors', 64 label: this.$t('appNavigation.sensors'), 65 route: '/hardware-status/sensors', 66 }, 67 ], 68 }, 69 { 70 id: 'operations', 71 label: this.$t('appNavigation.operations'), 72 icon: 'iconControl', 73 children: [ 74 { 75 id: 'factory-reset', 76 label: this.$t('appNavigation.factoryReset'), 77 route: '/operations/factory-reset', 78 }, 79 { 80 id: 'firmware', 81 label: this.$t('appNavigation.firmware'), 82 route: '/operations/firmware', 83 }, 84 { 85 id: 'reboot-bmc', 86 label: this.$t('appNavigation.rebootBmc'), 87 route: '/operations/reboot-bmc', 88 }, 89 { 90 id: 'serial-over-lan', 91 label: this.$t('appNavigation.serialOverLan'), 92 route: '/operations/serial-over-lan', 93 }, 94 { 95 id: 'server-power-operations', 96 label: this.$t('appNavigation.serverPowerOperations'), 97 route: '/operations/server-power-operations', 98 }, 99 ], 100 }, 101 { 102 id: 'settings', 103 label: this.$t('appNavigation.settings'), 104 icon: 'iconSettings', 105 children: [ 106 { 107 id: 'date-time', 108 label: this.$t('appNavigation.dateTime'), 109 route: '/settings/date-time', 110 }, 111 { 112 id: 'network', 113 label: this.$t('appNavigation.network'), 114 route: '/settings/network', 115 }, 116 { 117 id: 'power-restore-policy', 118 label: this.$t('appNavigation.powerRestorePolicy'), 119 route: '/settings/power-restore-policy', 120 }, 121 ], 122 }, 123 { 124 id: 'security-and-access', 125 label: this.$t('appNavigation.securityAndAccess'), 126 icon: 'iconSecurityAndAccess', 127 children: [ 128 { 129 id: 'sessions', 130 label: this.$t('appNavigation.sessions'), 131 route: '/security-and-access/sessions', 132 }, 133 { 134 id: 'ldap', 135 label: this.$t('appNavigation.ldap'), 136 route: '/security-and-access/ldap', 137 }, 138 { 139 id: 'user-management', 140 label: this.$t('appNavigation.userManagement'), 141 route: '/security-and-access/user-management', 142 }, 143 { 144 id: 'policies', 145 label: this.$t('appNavigation.policies'), 146 route: '/security-and-access/policies', 147 }, 148 { 149 id: 'certificates', 150 label: this.$t('appNavigation.certificates'), 151 route: '/security-and-access/certificates', 152 }, 153 ], 154 }, 155 { 156 id: 'resource-management', 157 label: this.$t('appNavigation.resourceManagement'), 158 icon: 'iconResourceManagement', 159 children: [ 160 { 161 id: 'power', 162 label: this.$t('appNavigation.power'), 163 route: '/resource-management/power', 164 }, 165 ], 166 }, 167 ], 168 }; 169 }, 170}; 171 172export default AppNavigationMixin; 173