blob: 42552da5f1a58e2d93e8d4e969804e882771c09f [file] [log] [blame]
Derick Montague828dda92021-06-28 15:52:22 -05001import IconDashboard from '@carbon/icons-vue/es/dashboard/16';
2import IconTextLinkAnalysis from '@carbon/icons-vue/es/text-link--analysis/16';
Yoshie Muranakad329ec82020-08-11 18:24:59 -07003import IconDataCheck from '@carbon/icons-vue/es/data--check/16';
4import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16';
5import IconSettings from '@carbon/icons-vue/es/settings/16';
6import IconPassword from '@carbon/icons-vue/es/password/16';
7import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
8
9const AppNavigationMixin = {
10 components: {
Derick Montague828dda92021-06-28 15:52:22 -050011 iconOverview: IconDashboard,
12 iconLogs: IconTextLinkAnalysis,
Yoshie Muranakad329ec82020-08-11 18:24:59 -070013 iconHealth: IconDataCheck,
14 iconControl: IconSettingsAdjust,
15 iconConfiguration: IconSettings,
16 iconAccessControl: IconPassword,
Derick Montague602e98a2020-10-21 16:20:00 -050017 iconExpand: IconChevronUp,
Yoshie Muranakad329ec82020-08-11 18:24:59 -070018 },
19 data() {
20 return {
21 navigationItems: [
22 {
23 id: 'overview',
24 label: this.$t('appNavigation.overview'),
25 route: '/',
Derick Montague602e98a2020-10-21 16:20:00 -050026 icon: 'iconOverview',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070027 },
28 {
Derick Montague828dda92021-06-28 15:52:22 -050029 id: 'logs',
30 label: this.$t('appNavigation.logs'),
31 icon: 'iconLogs',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070032 children: [
33 {
34 id: 'event-logs',
35 label: this.$t('appNavigation.eventLogs'),
Derick Montague828dda92021-06-28 15:52:22 -050036 route: '/logs/event-logs',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070037 },
Derick Montague828dda92021-06-28 15:52:22 -050038 ],
39 },
40 {
41 id: 'health',
42 label: this.$t('appNavigation.health'),
43 icon: 'iconHealth',
44 children: [
Yoshie Muranakad329ec82020-08-11 18:24:59 -070045 {
46 id: 'hardware-status',
47 label: this.$t('appNavigation.hardwareStatus'),
Derick Montague602e98a2020-10-21 16:20:00 -050048 route: '/health/hardware-status',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070049 },
50 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053051 id: 'post-code-logs',
52 label: this.$t('appNavigation.postCodeLogs'),
53 route: '/health/post-code-logs',
54 },
55 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070056 id: 'sensors',
57 label: this.$t('appNavigation.sensors'),
Derick Montague602e98a2020-10-21 16:20:00 -050058 route: '/health/sensors',
59 },
60 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -070061 },
62 {
63 id: 'control',
64 label: this.$t('appNavigation.control'),
65 icon: 'iconControl',
66 children: [
67 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060068 id: 'factory-reset',
69 label: this.$t('appNavigation.factoryReset'),
70 route: '/control/factory-reset',
71 },
72 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070073 id: 'kvm',
74 label: this.$t('appNavigation.kvm'),
Derick Montague602e98a2020-10-21 16:20:00 -050075 route: '/control/kvm',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070076 },
77 {
78 id: 'manage-power-usage',
79 label: this.$t('appNavigation.managePowerUsage'),
Derick Montague602e98a2020-10-21 16:20:00 -050080 route: '/control/manage-power-usage',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070081 },
82 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053083 id: 'power-restore-policy',
84 label: this.$t('appNavigation.powerRestorePolicy'),
85 route: '/control/power-restore-policy',
86 },
87 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070088 id: 'reboot-bmc',
89 label: this.$t('appNavigation.rebootBmc'),
Derick Montague602e98a2020-10-21 16:20:00 -050090 route: '/control/reboot-bmc',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070091 },
92 {
93 id: 'serial-over-lan',
94 label: this.$t('appNavigation.serialOverLan'),
Derick Montague602e98a2020-10-21 16:20:00 -050095 route: '/control/serial-over-lan',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070096 },
97 {
98 id: 'server-led',
99 label: this.$t('appNavigation.serverLed'),
Derick Montague602e98a2020-10-21 16:20:00 -0500100 route: '/control/server-led',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700101 },
102 {
103 id: 'server-power-operations',
104 label: this.$t('appNavigation.serverPowerOperations'),
Derick Montague602e98a2020-10-21 16:20:00 -0500105 route: '/control/server-power-operations',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700106 },
107 {
108 id: 'virtual-media',
109 label: this.$t('appNavigation.virtualMedia'),
Derick Montague602e98a2020-10-21 16:20:00 -0500110 route: '/control/virtual-media',
111 },
112 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700113 },
114 {
115 id: 'configuration',
116 label: this.$t('appNavigation.configuration'),
117 icon: 'iconConfiguration',
118 children: [
119 {
120 id: 'date-time-settings',
121 label: this.$t('appNavigation.dateTimeSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500122 route: '/configuration/date-time-settings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700123 },
124 {
125 id: 'firmware',
126 label: this.$t('appNavigation.firmware'),
Derick Montague602e98a2020-10-21 16:20:00 -0500127 route: '/configuration/firmware',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700128 },
129 {
130 id: 'network-settings',
131 label: this.$t('appNavigation.networkSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500132 route: '/configuration/network-settings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700133 },
134 {
Dixsie Wolmers8f030ba2020-12-07 13:12:53 -0600135 id: 'security-settings',
136 label: this.$t('appNavigation.securitySettings'),
137 route: '/configuration/security-settings',
138 },
139 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700140 id: 'snmp-settings',
141 label: this.$t('appNavigation.snmpSettings'),
Yoshie Muranakaff8c5cd2020-11-12 12:56:38 -0800142 route: '/snmp-settings',
Derick Montague602e98a2020-10-21 16:20:00 -0500143 },
144 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700145 },
146 {
147 id: 'access-control',
Yoshie Muranaka4c7c5af2020-09-27 21:22:52 -0700148 label: this.$t('appNavigation.accessControl'),
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700149 icon: 'iconAccessControl',
150 children: [
151 {
Sukanya Pandey34efde22020-12-02 19:04:09 +0530152 id: 'client-sessions',
153 label: this.$t('appNavigation.clientSessions'),
154 route: '/access-control/client-sessions',
155 },
156 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700157 id: 'ldap',
158 label: this.$t('appNavigation.ldap'),
Derick Montague602e98a2020-10-21 16:20:00 -0500159 route: '/access-control/ldap',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700160 },
161 {
162 id: 'local-user-management',
163 label: this.$t('appNavigation.localUserManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500164 route: '/access-control/local-user-management',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700165 },
166 {
167 id: 'ssl-certificates',
168 label: this.$t('appNavigation.sslCertificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500169 route: '/access-control/ssl-certificates',
170 },
171 ],
172 },
173 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700174 };
Derick Montague602e98a2020-10-21 16:20:00 -0500175 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700176};
177
178export default AppNavigationMixin;