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'; |
| 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, |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 13 | iconHealth: IconDataCheck, |
| 14 | iconControl: IconSettingsAdjust, |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 15 | iconSettings: IconSettings, |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 16 | iconAccessControl: IconPassword, |
| 17 | iconExpand: IconChevronUp, |
| 18 | }, |
| 19 | data() { |
| 20 | return { |
| 21 | navigationItems: [ |
| 22 | { |
| 23 | id: 'overview', |
| 24 | label: this.$t('appNavigation.overview'), |
| 25 | route: '/', |
| 26 | icon: 'iconOverview', |
| 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', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 32 | children: [ |
| 33 | { |
| 34 | id: 'event-logs', |
| 35 | label: this.$t('appNavigation.eventLogs'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 36 | route: '/logs/event-logs', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 37 | }, |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 38 | ], |
| 39 | }, |
| 40 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 41 | id: 'hardware-status', |
| 42 | label: this.$t('appNavigation.hardwareStatus'), |
Derick Montague | 828dda9 | 2021-06-28 15:52:22 -0500 | [diff] [blame] | 43 | icon: 'iconHealth', |
| 44 | children: [ |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 45 | { |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 46 | id: 'inventory', |
| 47 | label: this.$t('appNavigation.inventory'), |
| 48 | route: '/hardware-status/inventory', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 49 | }, |
| 50 | { |
| 51 | id: 'sensors', |
| 52 | label: this.$t('appNavigation.sensors'), |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 53 | route: '/hardware-status/sensors', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 54 | }, |
| 55 | ], |
| 56 | }, |
| 57 | { |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 58 | id: 'operations', |
| 59 | label: this.$t('appNavigation.operations'), |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 60 | icon: 'iconControl', |
| 61 | children: [ |
| 62 | { |
| 63 | id: 'kvm', |
| 64 | label: this.$t('appNavigation.kvm'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 65 | route: '/operations/kvm', |
| 66 | }, |
| 67 | { |
| 68 | id: 'firmware', |
| 69 | label: this.$t('appNavigation.firmware'), |
| 70 | route: '/operations/firmware', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 71 | }, |
| 72 | { |
| 73 | id: 'manage-power-usage', |
| 74 | label: this.$t('appNavigation.managePowerUsage'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 75 | route: '/operations/manage-power-usage', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 76 | }, |
| 77 | { |
| 78 | id: 'reboot-bmc', |
| 79 | label: this.$t('appNavigation.rebootBmc'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 80 | route: '/operations/reboot-bmc', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 81 | }, |
| 82 | { |
| 83 | id: 'serial-over-lan', |
| 84 | label: this.$t('appNavigation.serialOverLan'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 85 | route: '/operations/serial-over-lan', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 86 | }, |
| 87 | { |
| 88 | id: 'server-power-operations', |
| 89 | label: this.$t('appNavigation.serverPowerOperations'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 90 | route: '/operations/server-power-operations', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 91 | }, |
| 92 | { |
| 93 | id: 'virtual-media', |
| 94 | label: this.$t('appNavigation.virtualMedia'), |
Sandeepa Singh | 68cbbe9 | 2021-07-14 16:02:22 +0530 | [diff] [blame] | 95 | route: '/operations/virtual-media', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 96 | }, |
| 97 | ], |
| 98 | }, |
| 99 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 100 | id: 'settings', |
| 101 | label: this.$t('appNavigation.settings'), |
| 102 | icon: 'iconSettings', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 103 | children: [ |
| 104 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 105 | id: 'date-time', |
| 106 | label: this.$t('appNavigation.dateTime'), |
| 107 | route: '/settings/date-time', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 108 | }, |
| 109 | { |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 110 | id: 'network', |
| 111 | label: this.$t('appNavigation.network'), |
| 112 | route: '/settings/network', |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 113 | }, |
MichalX Szopinski | 0beb0f9 | 2021-03-16 20:25:35 +0100 | [diff] [blame] | 114 | { |
| 115 | id: 'security-settings', |
| 116 | label: this.$t('appNavigation.securitySettings'), |
Sandeepa Singh | f67f769 | 2021-07-19 18:04:18 +0530 | [diff] [blame^] | 117 | route: '/settings/security-settings', |
MichalX Szopinski | 0beb0f9 | 2021-03-16 20:25:35 +0100 | [diff] [blame] | 118 | }, |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 119 | ], |
| 120 | }, |
| 121 | { |
| 122 | id: 'access-control', |
| 123 | label: this.$t('appNavigation.accessControl'), |
| 124 | icon: 'iconAccessControl', |
| 125 | children: [ |
| 126 | { |
MichalX Szopinski | d675269 | 2021-03-01 13:59:55 +0100 | [diff] [blame] | 127 | id: 'client-sessions', |
| 128 | label: this.$t('appNavigation.clientSessions'), |
| 129 | route: '/access-control/client-sessions', |
| 130 | }, |
| 131 | { |
MichalX Szopinski | 842b5db | 2020-11-24 13:12:50 +0100 | [diff] [blame] | 132 | id: 'local-user-management', |
| 133 | label: this.$t('appNavigation.localUserManagement'), |
| 134 | route: '/access-control/local-user-management', |
| 135 | }, |
| 136 | { |
| 137 | id: 'ssl-certificates', |
| 138 | label: this.$t('appNavigation.sslCertificates'), |
| 139 | route: '/access-control/ssl-certificates', |
| 140 | }, |
| 141 | ], |
| 142 | }, |
| 143 | ], |
| 144 | }; |
| 145 | }, |
| 146 | }; |
| 147 | |
| 148 | export default AppNavigationMixin; |