blob: bbbbb1eea14140463a7a62697d10d956aafa861b [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';
Sandeepa Singhb4406162021-07-26 15:05:39 +05306import IconSecurity from '@carbon/icons-vue/es/security/16';
Yoshie Muranakad329ec82020-08-11 18:24:59 -07007import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
Sandeepa Singh6dba4be2021-07-28 15:25:14 +05308import IconDataBase from '@carbon/icons-vue/es/data--base--alt/16';
Yoshie Muranakad329ec82020-08-11 18:24:59 -07009
10const AppNavigationMixin = {
11 components: {
Derick Montague828dda92021-06-28 15:52:22 -050012 iconOverview: IconDashboard,
13 iconLogs: IconTextLinkAnalysis,
Yoshie Muranakad329ec82020-08-11 18:24:59 -070014 iconHealth: IconDataCheck,
15 iconControl: IconSettingsAdjust,
Sandeepa Singhf67f7692021-07-19 18:04:18 +053016 iconSettings: IconSettings,
Sandeepa Singhb4406162021-07-26 15:05:39 +053017 iconSecurityAndAccess: IconSecurity,
Derick Montague602e98a2020-10-21 16:20:00 -050018 iconExpand: IconChevronUp,
Sandeepa Singh6dba4be2021-07-28 15:25:14 +053019 iconResourceManagement: IconDataBase,
Yoshie Muranakad329ec82020-08-11 18:24:59 -070020 },
21 data() {
22 return {
23 navigationItems: [
24 {
25 id: 'overview',
26 label: this.$t('appNavigation.overview'),
27 route: '/',
Derick Montague602e98a2020-10-21 16:20:00 -050028 icon: 'iconOverview',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070029 },
30 {
Derick Montague828dda92021-06-28 15:52:22 -050031 id: 'logs',
32 label: this.$t('appNavigation.logs'),
33 icon: 'iconLogs',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070034 children: [
35 {
36 id: 'event-logs',
37 label: this.$t('appNavigation.eventLogs'),
Derick Montague828dda92021-06-28 15:52:22 -050038 route: '/logs/event-logs',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070039 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -070040 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053041 id: 'post-code-logs',
42 label: this.$t('appNavigation.postCodeLogs'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053043 route: '/logs/post-code-logs',
44 },
45 ],
46 },
47 {
48 id: 'hardware-status',
49 label: this.$t('appNavigation.hardwareStatus'),
50 icon: 'iconHealth',
51 children: [
52 {
53 id: 'inventory',
54 label: this.$t('appNavigation.inventory'),
55 route: '/hardware-status/inventory',
Sandeepa Singh06d53862021-05-24 13:51:09 +053056 },
57 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070058 id: 'sensors',
59 label: this.$t('appNavigation.sensors'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053060 route: '/hardware-status/sensors',
Derick Montague602e98a2020-10-21 16:20:00 -050061 },
62 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -070063 },
64 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053065 id: 'operations',
66 label: this.$t('appNavigation.operations'),
Yoshie Muranakad329ec82020-08-11 18:24:59 -070067 icon: 'iconControl',
68 children: [
69 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060070 id: 'factory-reset',
71 label: this.$t('appNavigation.factoryReset'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053072 route: '/operations/factory-reset',
Derick Montagueda9f0a62021-02-14 19:21:44 -060073 },
74 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070075 id: 'kvm',
76 label: this.$t('appNavigation.kvm'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053077 route: '/operations/kvm',
78 },
79 {
Sandeepa Singh05887b52022-01-10 19:19:36 +053080 id: 'key-clear',
81 label: this.$t('appNavigation.keyClear'),
82 route: '/operations/key-clear',
83 },
84 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053085 id: 'firmware',
86 label: this.$t('appNavigation.firmware'),
87 route: '/operations/firmware',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070088 },
89 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070090 id: 'reboot-bmc',
91 label: this.$t('appNavigation.rebootBmc'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053092 route: '/operations/reboot-bmc',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070093 },
94 {
95 id: 'serial-over-lan',
96 label: this.$t('appNavigation.serialOverLan'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053097 route: '/operations/serial-over-lan',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070098 },
99 {
100 id: 'server-power-operations',
101 label: this.$t('appNavigation.serverPowerOperations'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530102 route: '/operations/server-power-operations',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700103 },
104 {
105 id: 'virtual-media',
106 label: this.$t('appNavigation.virtualMedia'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530107 route: '/operations/virtual-media',
Derick Montague602e98a2020-10-21 16:20:00 -0500108 },
109 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700110 },
111 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530112 id: 'settings',
113 label: this.$t('appNavigation.settings'),
114 icon: 'iconSettings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700115 children: [
116 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530117 id: 'date-time',
118 label: this.$t('appNavigation.dateTime'),
119 route: '/settings/date-time',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700120 },
121 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530122 id: 'network',
123 label: this.$t('appNavigation.network'),
124 route: '/settings/network',
125 },
126 {
127 id: 'power-restore-policy',
128 label: this.$t('appNavigation.powerRestorePolicy'),
129 route: '/settings/power-restore-policy',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700130 },
Derick Montague602e98a2020-10-21 16:20:00 -0500131 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700132 },
133 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530134 id: 'security-and-access',
135 label: this.$t('appNavigation.securityAndAccess'),
136 icon: 'iconSecurityAndAccess',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700137 children: [
138 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530139 id: 'sessions',
140 label: this.$t('appNavigation.sessions'),
141 route: '/security-and-access/sessions',
Sukanya Pandey34efde22020-12-02 19:04:09 +0530142 },
143 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700144 id: 'ldap',
145 label: this.$t('appNavigation.ldap'),
Sandeepa Singhb4406162021-07-26 15:05:39 +0530146 route: '/security-and-access/ldap',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700147 },
148 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530149 id: 'user-management',
150 label: this.$t('appNavigation.userManagement'),
151 route: '/security-and-access/user-management',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700152 },
153 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530154 id: 'policies',
155 label: this.$t('appNavigation.policies'),
156 route: '/security-and-access/policies',
157 },
158 {
159 id: 'certificates',
160 label: this.$t('appNavigation.certificates'),
161 route: '/security-and-access/certificates',
Derick Montague602e98a2020-10-21 16:20:00 -0500162 },
163 ],
164 },
Sandeepa Singh6dba4be2021-07-28 15:25:14 +0530165 {
166 id: 'resource-management',
167 label: this.$t('appNavigation.resourceManagement'),
168 icon: 'iconResourceManagement',
169 children: [
170 {
171 id: 'power',
172 label: this.$t('appNavigation.power'),
173 route: '/resource-management/power',
174 },
175 ],
176 },
Derick Montague602e98a2020-10-21 16:20:00 -0500177 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700178 };
Derick Montague602e98a2020-10-21 16:20:00 -0500179 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700180};
181
182export default AppNavigationMixin;