Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 1 | import IconAnalytics from '@carbon/icons-vue/es/analytics/16'; |
| 2 | import IconDataCheck from '@carbon/icons-vue/es/data--check/16'; |
| 3 | import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16'; |
| 4 | import IconSettings from '@carbon/icons-vue/es/settings/16'; |
| 5 | import IconPassword from '@carbon/icons-vue/es/password/16'; |
| 6 | import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16'; |
| 7 | |
| 8 | const AppNavigationMixin = { |
| 9 | components: { |
| 10 | iconOverview: IconAnalytics, |
| 11 | iconHealth: IconDataCheck, |
| 12 | iconControl: IconSettingsAdjust, |
| 13 | iconConfiguration: IconSettings, |
| 14 | iconAccessControl: IconPassword, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 15 | iconExpand: IconChevronUp, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 16 | }, |
| 17 | data() { |
| 18 | return { |
| 19 | navigationItems: [ |
| 20 | { |
| 21 | id: 'overview', |
| 22 | label: this.$t('appNavigation.overview'), |
| 23 | route: '/', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 24 | icon: 'iconOverview', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 25 | }, |
| 26 | { |
| 27 | id: 'health', |
| 28 | label: this.$t('appNavigation.health'), |
| 29 | icon: 'iconHealth', |
| 30 | children: [ |
| 31 | { |
| 32 | id: 'event-logs', |
| 33 | label: this.$t('appNavigation.eventLogs'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 34 | route: '/health/event-logs', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 35 | }, |
| 36 | { |
| 37 | id: 'hardware-status', |
| 38 | label: this.$t('appNavigation.hardwareStatus'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 39 | route: '/health/hardware-status', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 40 | }, |
| 41 | { |
| 42 | id: 'sensors', |
| 43 | label: this.$t('appNavigation.sensors'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 44 | route: '/health/sensors', |
| 45 | }, |
| 46 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 47 | }, |
| 48 | { |
| 49 | id: 'control', |
| 50 | label: this.$t('appNavigation.control'), |
| 51 | icon: 'iconControl', |
| 52 | children: [ |
| 53 | { |
| 54 | id: 'kvm', |
| 55 | label: this.$t('appNavigation.kvm'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 56 | route: '/control/kvm', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 57 | }, |
| 58 | { |
| 59 | id: 'manage-power-usage', |
| 60 | label: this.$t('appNavigation.managePowerUsage'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 61 | route: '/control/manage-power-usage', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 62 | }, |
| 63 | { |
| 64 | id: 'reboot-bmc', |
| 65 | label: this.$t('appNavigation.rebootBmc'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 66 | route: '/control/reboot-bmc', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 67 | }, |
| 68 | { |
| 69 | id: 'serial-over-lan', |
| 70 | label: this.$t('appNavigation.serialOverLan'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 71 | route: '/control/serial-over-lan', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 72 | }, |
| 73 | { |
| 74 | id: 'server-led', |
| 75 | label: this.$t('appNavigation.serverLed'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 76 | route: '/control/server-led', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 77 | }, |
| 78 | { |
| 79 | id: 'server-power-operations', |
| 80 | label: this.$t('appNavigation.serverPowerOperations'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 81 | route: '/control/server-power-operations', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 82 | }, |
| 83 | { |
| 84 | id: 'virtual-media', |
| 85 | label: this.$t('appNavigation.virtualMedia'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 86 | route: '/control/virtual-media', |
| 87 | }, |
| 88 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 89 | }, |
| 90 | { |
| 91 | id: 'configuration', |
| 92 | label: this.$t('appNavigation.configuration'), |
| 93 | icon: 'iconConfiguration', |
| 94 | children: [ |
| 95 | { |
| 96 | id: 'date-time-settings', |
| 97 | label: this.$t('appNavigation.dateTimeSettings'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 98 | route: '/configuration/date-time-settings', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 99 | }, |
| 100 | { |
| 101 | id: 'firmware', |
| 102 | label: this.$t('appNavigation.firmware'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 103 | route: '/configuration/firmware', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 104 | }, |
| 105 | { |
| 106 | id: 'network-settings', |
| 107 | label: this.$t('appNavigation.networkSettings'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 108 | route: '/configuration/network-settings', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 109 | }, |
| 110 | { |
Dixsie Wolmers | 8f030ba | 2020-12-07 13:12:53 -0600 | [diff] [blame] | 111 | id: 'security-settings', |
| 112 | label: this.$t('appNavigation.securitySettings'), |
| 113 | route: '/configuration/security-settings', |
| 114 | }, |
| 115 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 116 | id: 'snmp-settings', |
| 117 | label: this.$t('appNavigation.snmpSettings'), |
Yoshie Muranaka | ff8c5cd | 2020-11-12 12:56:38 -0800 | [diff] [blame] | 118 | route: '/snmp-settings', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 119 | }, |
| 120 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 121 | }, |
| 122 | { |
| 123 | id: 'access-control', |
Yoshie Muranaka | 4c7c5af | 2020-09-27 21:22:52 -0700 | [diff] [blame] | 124 | label: this.$t('appNavigation.accessControl'), |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 125 | icon: 'iconAccessControl', |
| 126 | children: [ |
| 127 | { |
Sukanya Pandey | 34efde2 | 2020-12-02 19:04:09 +0530 | [diff] [blame] | 128 | id: 'client-sessions', |
| 129 | label: this.$t('appNavigation.clientSessions'), |
| 130 | route: '/access-control/client-sessions', |
| 131 | }, |
| 132 | { |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 133 | id: 'ldap', |
| 134 | label: this.$t('appNavigation.ldap'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 135 | route: '/access-control/ldap', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 136 | }, |
| 137 | { |
| 138 | id: 'local-user-management', |
| 139 | label: this.$t('appNavigation.localUserManagement'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 140 | route: '/access-control/local-user-management', |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 141 | }, |
| 142 | { |
| 143 | id: 'ssl-certificates', |
| 144 | label: this.$t('appNavigation.sslCertificates'), |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 145 | route: '/access-control/ssl-certificates', |
| 146 | }, |
| 147 | ], |
| 148 | }, |
| 149 | ], |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 150 | }; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 151 | }, |
Yoshie Muranaka | d329ec8 | 2020-08-11 18:24:59 -0700 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | export default AppNavigationMixin; |