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'; |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [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'; |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [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'; |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [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, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [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, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 18 | iconExpand: IconChevronUp, |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 19 | iconResourceManagement: IconDataBase, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 20 | }, |
| 21 | data() { |
| 22 | return { |
| 23 | navigationItems: [ |
| 24 | { |
| 25 | id: 'overview', |
| 26 | label: this.$t('appNavigation.overview'), |
| 27 | route: '/', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 28 | icon: 'iconOverview', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 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', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [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', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 39 | }, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 40 | { |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 41 | id: 'post-code-logs', |
| 42 | label: this.$t('appNavigation.postCodeLogs'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 43 | route: '/logs/post-code-logs', |
| 44 | }, |
| 45 | ], |
| 46 | }, |
| 47 | { |
| 48 | id: 'hardware-status', |
| 49 | label: this.$t('appNavigation.hardwareStatus'), |
| 50 | icon: 'iconHealth', |
| 51 | children: [ |
| 52 | { |
| 53 | id: 'inventory', |
| 54 | label: this.$t('appNavigation.inventory'), |
| 55 | route: '/hardware-status/inventory', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 56 | }, |
| 57 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 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', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 61 | }, |
| 62 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 63 | }, |
| 64 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 65 | id: 'operations', |
| 66 | label: this.$t('appNavigation.operations'), |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 67 | icon: 'iconControl', |
| 68 | children: [ |
| 69 | { |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 70 | id: 'factory-reset', |
| 71 | label: this.$t('appNavigation.factoryReset'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 72 | route: '/operations/factory-reset', |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 73 | }, |
| 74 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 75 | id: 'kvm', |
| 76 | label: this.$t('appNavigation.kvm'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 77 | route: '/operations/kvm', |
| 78 | }, |
| 79 | { |
Sandeepa Singh | 05887b5 | 2022-01-10 19:19:36 +0530 | [diff] [blame] | 80 | id: 'key-clear', |
| 81 | label: this.$t('appNavigation.keyClear'), |
| 82 | route: '/operations/key-clear', |
| 83 | }, |
| 84 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 85 | id: 'firmware', |
| 86 | label: this.$t('appNavigation.firmware'), |
| 87 | route: '/operations/firmware', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 88 | }, |
| 89 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 90 | id: 'reboot-bmc', |
| 91 | label: this.$t('appNavigation.rebootBmc'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 92 | route: '/operations/reboot-bmc', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 93 | }, |
| 94 | { |
| 95 | id: 'serial-over-lan', |
| 96 | label: this.$t('appNavigation.serialOverLan'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 97 | route: '/operations/serial-over-lan', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 98 | }, |
| 99 | { |
| 100 | id: 'server-power-operations', |
| 101 | label: this.$t('appNavigation.serverPowerOperations'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 102 | route: '/operations/server-power-operations', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 103 | }, |
| 104 | { |
| 105 | id: 'virtual-media', |
| 106 | label: this.$t('appNavigation.virtualMedia'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 107 | route: '/operations/virtual-media', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 108 | }, |
| 109 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 110 | }, |
| 111 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 112 | id: 'settings', |
| 113 | label: this.$t('appNavigation.settings'), |
| 114 | icon: 'iconSettings', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 115 | children: [ |
| 116 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 117 | id: 'date-time', |
| 118 | label: this.$t('appNavigation.dateTime'), |
| 119 | route: '/settings/date-time', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 120 | }, |
| 121 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame] | 122 | id: 'network', |
| 123 | label: this.$t('appNavigation.network'), |
| 124 | route: '/settings/network', |
| 125 | }, |
| 126 | { |
| 127 | id: 'power-restore-policy', |
| 128 | label: this.$t('appNavigation.powerRestorePolicy'), |
| 129 | route: '/settings/power-restore-policy', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 130 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 131 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 132 | }, |
| 133 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 134 | id: 'security-and-access', |
| 135 | label: this.$t('appNavigation.securityAndAccess'), |
| 136 | icon: 'iconSecurityAndAccess', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 137 | children: [ |
| 138 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 139 | id: 'sessions', |
| 140 | label: this.$t('appNavigation.sessions'), |
| 141 | route: '/security-and-access/sessions', |
Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 142 | }, |
| 143 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 144 | id: 'ldap', |
| 145 | label: this.$t('appNavigation.ldap'), |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 146 | route: '/security-and-access/ldap', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 147 | }, |
| 148 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 149 | id: 'user-management', |
| 150 | label: this.$t('appNavigation.userManagement'), |
| 151 | route: '/security-and-access/user-management', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 152 | }, |
| 153 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 154 | id: 'policies', |
| 155 | label: this.$t('appNavigation.policies'), |
| 156 | route: '/security-and-access/policies', |
| 157 | }, |
| 158 | { |
| 159 | id: 'certificates', |
| 160 | label: this.$t('appNavigation.certificates'), |
| 161 | route: '/security-and-access/certificates', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 162 | }, |
| 163 | ], |
| 164 | }, |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 165 | { |
| 166 | id: 'resource-management', |
| 167 | label: this.$t('appNavigation.resourceManagement'), |
| 168 | icon: 'iconResourceManagement', |
| 169 | children: [ |
| 170 | { |
| 171 | id: 'power', |
| 172 | label: this.$t('appNavigation.power'), |
| 173 | route: '/resource-management/power', |
| 174 | }, |
| 175 | ], |
| 176 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 177 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 178 | }; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 179 | }, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 180 | }; |
| 181 | |
| 182 | export default AppNavigationMixin; |