blob: a83b6c7f0981a1c1b00de961f4e5ee31ef9ec30a [file] [log] [blame]
Yoshie Muranakad329ec82020-08-11 18:24:59 -07001import IconAnalytics from '@carbon/icons-vue/es/analytics/16';
2import IconDataCheck from '@carbon/icons-vue/es/data--check/16';
3import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16';
4import IconSettings from '@carbon/icons-vue/es/settings/16';
5import IconPassword from '@carbon/icons-vue/es/password/16';
6import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
7
8const AppNavigationMixin = {
9 components: {
10 iconOverview: IconAnalytics,
11 iconHealth: IconDataCheck,
12 iconControl: IconSettingsAdjust,
13 iconConfiguration: IconSettings,
14 iconAccessControl: IconPassword,
Derick Montague602e98a2020-10-21 16:20:00 -050015 iconExpand: IconChevronUp,
Yoshie Muranakad329ec82020-08-11 18:24:59 -070016 },
17 data() {
18 return {
19 navigationItems: [
20 {
21 id: 'overview',
22 label: this.$t('appNavigation.overview'),
23 route: '/',
Derick Montague602e98a2020-10-21 16:20:00 -050024 icon: 'iconOverview',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070025 },
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 Montague602e98a2020-10-21 16:20:00 -050034 route: '/health/event-logs',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070035 },
36 {
37 id: 'hardware-status',
38 label: this.$t('appNavigation.hardwareStatus'),
Derick Montague602e98a2020-10-21 16:20:00 -050039 route: '/health/hardware-status',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070040 },
41 {
42 id: 'sensors',
43 label: this.$t('appNavigation.sensors'),
Derick Montague602e98a2020-10-21 16:20:00 -050044 route: '/health/sensors',
45 },
46 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -070047 },
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 Montague602e98a2020-10-21 16:20:00 -050056 route: '/control/kvm',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070057 },
58 {
59 id: 'manage-power-usage',
60 label: this.$t('appNavigation.managePowerUsage'),
Derick Montague602e98a2020-10-21 16:20:00 -050061 route: '/control/manage-power-usage',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070062 },
63 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053064 id: 'power-restore-policy',
65 label: this.$t('appNavigation.powerRestorePolicy'),
66 route: '/control/power-restore-policy',
67 },
68 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070069 id: 'reboot-bmc',
70 label: this.$t('appNavigation.rebootBmc'),
Derick Montague602e98a2020-10-21 16:20:00 -050071 route: '/control/reboot-bmc',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070072 },
73 {
74 id: 'serial-over-lan',
75 label: this.$t('appNavigation.serialOverLan'),
Derick Montague602e98a2020-10-21 16:20:00 -050076 route: '/control/serial-over-lan',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070077 },
78 {
79 id: 'server-led',
80 label: this.$t('appNavigation.serverLed'),
Derick Montague602e98a2020-10-21 16:20:00 -050081 route: '/control/server-led',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070082 },
83 {
84 id: 'server-power-operations',
85 label: this.$t('appNavigation.serverPowerOperations'),
Derick Montague602e98a2020-10-21 16:20:00 -050086 route: '/control/server-power-operations',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070087 },
88 {
89 id: 'virtual-media',
90 label: this.$t('appNavigation.virtualMedia'),
Derick Montague602e98a2020-10-21 16:20:00 -050091 route: '/control/virtual-media',
92 },
93 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -070094 },
95 {
96 id: 'configuration',
97 label: this.$t('appNavigation.configuration'),
98 icon: 'iconConfiguration',
99 children: [
100 {
101 id: 'date-time-settings',
102 label: this.$t('appNavigation.dateTimeSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500103 route: '/configuration/date-time-settings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700104 },
105 {
106 id: 'firmware',
107 label: this.$t('appNavigation.firmware'),
Derick Montague602e98a2020-10-21 16:20:00 -0500108 route: '/configuration/firmware',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700109 },
110 {
111 id: 'network-settings',
112 label: this.$t('appNavigation.networkSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500113 route: '/configuration/network-settings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700114 },
115 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600116 id: 'security-settings',
117 label: this.$t('appNavigation.securitySettings'),
118 route: '/configuration/security-settings',
119 },
120 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700121 id: 'snmp-settings',
122 label: this.$t('appNavigation.snmpSettings'),
Yoshie Muranakaff8c5cd2020-11-12 12:56:38 -0800123 route: '/snmp-settings',
Derick Montague602e98a2020-10-21 16:20:00 -0500124 },
125 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700126 },
127 {
128 id: 'access-control',
Yoshie Muranaka4c7c5af2020-09-27 21:22:52 -0700129 label: this.$t('appNavigation.accessControl'),
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700130 icon: 'iconAccessControl',
131 children: [
132 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530133 id: 'client-sessions',
134 label: this.$t('appNavigation.clientSessions'),
135 route: '/access-control/client-sessions',
136 },
137 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700138 id: 'ldap',
139 label: this.$t('appNavigation.ldap'),
Derick Montague602e98a2020-10-21 16:20:00 -0500140 route: '/access-control/ldap',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700141 },
142 {
143 id: 'local-user-management',
144 label: this.$t('appNavigation.localUserManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500145 route: '/access-control/local-user-management',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700146 },
147 {
148 id: 'ssl-certificates',
149 label: this.$t('appNavigation.sslCertificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500150 route: '/access-control/ssl-certificates',
151 },
152 ],
153 },
154 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700155 };
Derick Montague602e98a2020-10-21 16:20:00 -0500156 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700157};
158
159export default AppNavigationMixin;