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