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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -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 | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 34 | children: [ |
| 35 | { |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 36 | id: 'dumps', |
| 37 | label: this.$t('appNavigation.dumps'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 38 | route: '/logs/dumps', |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 39 | }, |
| 40 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 41 | id: 'event-logs', |
| 42 | label: this.$t('appNavigation.eventLogs'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 43 | route: '/logs/event-logs', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 44 | }, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 45 | { |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 46 | id: 'post-code-logs', |
| 47 | label: this.$t('appNavigation.postCodeLogs'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 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', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 61 | }, |
| 62 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 63 | id: 'sensors', |
| 64 | label: this.$t('appNavigation.sensors'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 65 | route: '/hardware-status/sensors', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 66 | }, |
| 67 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 68 | }, |
| 69 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 70 | id: 'operations', |
| 71 | label: this.$t('appNavigation.operations'), |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 72 | icon: 'iconControl', |
| 73 | children: [ |
| 74 | { |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 75 | id: 'factory-reset', |
| 76 | label: this.$t('appNavigation.factoryReset'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 77 | route: '/operations/factory-reset', |
| 78 | }, |
| 79 | { |
| 80 | id: 'firmware', |
| 81 | label: this.$t('appNavigation.firmware'), |
| 82 | route: '/operations/firmware', |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 83 | }, |
| 84 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 85 | id: 'reboot-bmc', |
| 86 | label: this.$t('appNavigation.rebootBmc'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 87 | route: '/operations/reboot-bmc', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 88 | }, |
| 89 | { |
| 90 | id: 'serial-over-lan', |
| 91 | label: this.$t('appNavigation.serialOverLan'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 92 | route: '/operations/serial-over-lan', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 93 | }, |
| 94 | { |
| 95 | id: 'server-power-operations', |
| 96 | label: this.$t('appNavigation.serverPowerOperations'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 97 | route: '/operations/server-power-operations', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 98 | }, |
| 99 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 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', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [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', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [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', |
| 115 | }, |
| 116 | { |
| 117 | id: 'power-restore-policy', |
| 118 | label: this.$t('appNavigation.powerRestorePolicy'), |
| 119 | route: '/settings/power-restore-policy', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 120 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 121 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 122 | }, |
| 123 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 124 | id: 'security-and-access', |
| 125 | label: this.$t('appNavigation.securityAndAccess'), |
| 126 | icon: 'iconSecurityAndAccess', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 127 | children: [ |
| 128 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 129 | id: 'sessions', |
| 130 | label: this.$t('appNavigation.sessions'), |
| 131 | route: '/security-and-access/sessions', |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 132 | }, |
| 133 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 134 | id: 'ldap', |
| 135 | label: this.$t('appNavigation.ldap'), |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 136 | route: '/security-and-access/ldap', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 137 | }, |
| 138 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 139 | id: 'user-management', |
| 140 | label: this.$t('appNavigation.userManagement'), |
| 141 | route: '/security-and-access/user-management', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 142 | }, |
| 143 | { |
Sandeepa Singh | b440616 | 2021-07-26 15:05:39 +0530 | [diff] [blame] | 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', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 152 | }, |
| 153 | ], |
| 154 | }, |
Sandeepa Singh | 6dba4be | 2021-07-28 15:25:14 +0530 | [diff] [blame] | 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 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 167 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 168 | }; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 169 | }, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | export default AppNavigationMixin; |