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'; |
| 6 | import IconPassword from '@carbon/icons-vue/es/password/16'; |
| 7 | import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16'; |
| 8 | |
| 9 | const AppNavigationMixin = { |
| 10 | components: { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 11 | iconOverview: IconDashboard, |
| 12 | iconLogs: IconTextLinkAnalysis, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 13 | iconHealth: IconDataCheck, |
| 14 | iconControl: IconSettingsAdjust, |
| 15 | iconConfiguration: IconSettings, |
| 16 | iconAccessControl: IconPassword, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 17 | iconExpand: IconChevronUp, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 18 | }, |
| 19 | data() { |
| 20 | return { |
| 21 | navigationItems: [ |
| 22 | { |
| 23 | id: 'overview', |
| 24 | label: this.$t('appNavigation.overview'), |
| 25 | route: '/', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 26 | icon: 'iconOverview', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 27 | }, |
| 28 | { |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 29 | id: 'logs', |
| 30 | label: this.$t('appNavigation.logs'), |
| 31 | icon: 'iconLogs', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 32 | children: [ |
| 33 | { |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 34 | id: 'dumps', |
| 35 | label: this.$t('appNavigation.dumps'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 36 | route: '/logs/dumps', |
Yoshie Muranaka | 22d4d52 | 2020-12-03 10:58:35 -0800 | [diff] [blame] | 37 | }, |
| 38 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 39 | id: 'event-logs', |
| 40 | label: this.$t('appNavigation.eventLogs'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 41 | route: '/logs/event-logs', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 42 | }, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 43 | { |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 44 | id: 'post-code-logs', |
| 45 | label: this.$t('appNavigation.postCodeLogs'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame^] | 46 | route: '/logs/post-code-logs', |
| 47 | }, |
| 48 | ], |
| 49 | }, |
| 50 | { |
| 51 | id: 'hardware-status', |
| 52 | label: this.$t('appNavigation.hardwareStatus'), |
| 53 | icon: 'iconHealth', |
| 54 | children: [ |
| 55 | { |
| 56 | id: 'inventory', |
| 57 | label: this.$t('appNavigation.inventory'), |
| 58 | route: '/hardware-status/inventory', |
Sandeepa Singh | 06d5386 | 2021-05-24 13:51:09 +0530 | [diff] [blame] | 59 | }, |
| 60 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 61 | id: 'sensors', |
| 62 | label: this.$t('appNavigation.sensors'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame^] | 63 | route: '/hardware-status/sensors', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 64 | }, |
| 65 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 66 | }, |
| 67 | { |
| 68 | id: 'control', |
| 69 | label: this.$t('appNavigation.control'), |
| 70 | icon: 'iconControl', |
| 71 | children: [ |
| 72 | { |
Derick Montague | da9f0a6 | 2021-02-14 19:21:44 -0600 | [diff] [blame] | 73 | id: 'factory-reset', |
| 74 | label: this.$t('appNavigation.factoryReset'), |
| 75 | route: '/control/factory-reset', |
| 76 | }, |
| 77 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 78 | id: 'manage-power-usage', |
| 79 | label: this.$t('appNavigation.managePowerUsage'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 80 | route: '/control/manage-power-usage', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 81 | }, |
| 82 | { |
Sukanya Pandey | be6858c | 2020-12-16 20:08:01 +0530 | [diff] [blame] | 83 | id: 'power-restore-policy', |
| 84 | label: this.$t('appNavigation.powerRestorePolicy'), |
| 85 | route: '/control/power-restore-policy', |
| 86 | }, |
| 87 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 88 | id: 'reboot-bmc', |
| 89 | label: this.$t('appNavigation.rebootBmc'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 90 | route: '/control/reboot-bmc', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 91 | }, |
| 92 | { |
| 93 | id: 'serial-over-lan', |
| 94 | label: this.$t('appNavigation.serialOverLan'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 95 | route: '/control/serial-over-lan', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 96 | }, |
| 97 | { |
| 98 | id: 'server-led', |
| 99 | label: this.$t('appNavigation.serverLed'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 100 | route: '/control/server-led', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 101 | }, |
| 102 | { |
| 103 | id: 'server-power-operations', |
| 104 | label: this.$t('appNavigation.serverPowerOperations'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 105 | route: '/control/server-power-operations', |
| 106 | }, |
| 107 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 108 | }, |
| 109 | { |
| 110 | id: 'configuration', |
| 111 | label: this.$t('appNavigation.configuration'), |
| 112 | icon: 'iconConfiguration', |
| 113 | children: [ |
| 114 | { |
| 115 | id: 'date-time-settings', |
| 116 | label: this.$t('appNavigation.dateTimeSettings'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 117 | route: '/configuration/date-time-settings', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 118 | }, |
| 119 | { |
| 120 | id: 'firmware', |
| 121 | label: this.$t('appNavigation.firmware'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 122 | route: '/configuration/firmware', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 123 | }, |
| 124 | { |
| 125 | id: 'network-settings', |
| 126 | label: this.$t('appNavigation.networkSettings'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 127 | route: '/configuration/network-settings', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 128 | }, |
| 129 | { |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 130 | id: 'security-settings', |
| 131 | label: this.$t('appNavigation.securitySettings'), |
| 132 | route: '/configuration/security-settings', |
| 133 | }, |
| 134 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 135 | id: 'snmp-settings', |
| 136 | label: this.$t('appNavigation.snmpSettings'), |
Yoshie Muranaka | ac2b3f0 | 2021-01-12 12:37:30 -0800 | [diff] [blame] | 137 | route: '/configuration/snmp-settings', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 138 | }, |
| 139 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 140 | }, |
| 141 | { |
| 142 | id: 'access-control', |
SurenNeware | 5fe1c3f | 2020-12-22 19:21:07 +0530 | [diff] [blame] | 143 | label: this.$t('appNavigation.accessControl'), |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 144 | icon: 'iconAccessControl', |
| 145 | children: [ |
| 146 | { |
Yoshie Muranaka | ca22a42 | 2021-01-04 14:13:34 -0800 | [diff] [blame] | 147 | id: 'client-sessions', |
| 148 | label: this.$t('appNavigation.clientSessions'), |
| 149 | route: '/access-control/client-sessions', |
| 150 | }, |
| 151 | { |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 152 | id: 'ldap', |
| 153 | label: this.$t('appNavigation.ldap'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 154 | route: '/access-control/ldap', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 155 | }, |
| 156 | { |
| 157 | id: 'local-user-management', |
| 158 | label: this.$t('appNavigation.localUserManagement'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 159 | route: '/access-control/local-user-management', |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 160 | }, |
| 161 | { |
| 162 | id: 'ssl-certificates', |
| 163 | label: this.$t('appNavigation.sslCertificates'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 164 | route: '/access-control/ssl-certificates', |
| 165 | }, |
| 166 | ], |
| 167 | }, |
| 168 | ], |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 169 | }; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 170 | }, |
Yoshie Muranaka | 0214fed | 2020-09-03 13:25:50 -0700 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | export default AppNavigationMixin; |