blob: 32f5c9f47ce2f565f26ab970fc2684f332a4fe52 [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 Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -07009
10const AppNavigationMixin = {
11 components: {
Derick Montague828dda92021-06-28 15:52:22 -050012 iconOverview: IconDashboard,
13 iconLogs: IconTextLinkAnalysis,
Yoshie Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -070029 },
30 {
Derick Montague828dda92021-06-28 15:52:22 -050031 id: 'logs',
32 label: this.$t('appNavigation.logs'),
33 icon: 'iconLogs',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070034 children: [
35 {
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080036 id: 'dumps',
37 label: this.$t('appNavigation.dumps'),
Derick Montague828dda92021-06-28 15:52:22 -050038 route: '/logs/dumps',
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080039 },
40 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070041 id: 'event-logs',
42 label: this.$t('appNavigation.eventLogs'),
Derick Montague828dda92021-06-28 15:52:22 -050043 route: '/logs/event-logs',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070044 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070045 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053046 id: 'post-code-logs',
47 label: this.$t('appNavigation.postCodeLogs'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053048 route: '/logs/post-code-logs',
49 },
50 ],
51 },
52 {
53 id: 'hardware-status',
54 label: this.$t('appNavigation.hardwareStatus'),
55 icon: 'iconHealth',
56 children: [
57 {
58 id: 'inventory',
59 label: this.$t('appNavigation.inventory'),
60 route: '/hardware-status/inventory',
Sandeepa Singh06d53862021-05-24 13:51:09 +053061 },
62 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070063 id: 'sensors',
64 label: this.$t('appNavigation.sensors'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053065 route: '/hardware-status/sensors',
Derick Montague602e98a2020-10-21 16:20:00 -050066 },
67 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070068 },
69 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053070 id: 'operations',
71 label: this.$t('appNavigation.operations'),
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070072 icon: 'iconControl',
73 children: [
74 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060075 id: 'factory-reset',
76 label: this.$t('appNavigation.factoryReset'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053077 route: '/operations/factory-reset',
78 },
79 {
80 id: 'firmware',
81 label: this.$t('appNavigation.firmware'),
82 route: '/operations/firmware',
Derick Montagueda9f0a62021-02-14 19:21:44 -060083 },
84 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070085 id: 'reboot-bmc',
86 label: this.$t('appNavigation.rebootBmc'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053087 route: '/operations/reboot-bmc',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070088 },
89 {
90 id: 'serial-over-lan',
91 label: this.$t('appNavigation.serialOverLan'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053092 route: '/operations/serial-over-lan',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070093 },
94 {
95 id: 'server-power-operations',
96 label: this.$t('appNavigation.serverPowerOperations'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053097 route: '/operations/server-power-operations',
Derick Montague602e98a2020-10-21 16:20:00 -050098 },
99 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700100 },
101 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530102 id: 'settings',
103 label: this.$t('appNavigation.settings'),
104 icon: 'iconSettings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700105 children: [
106 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530107 id: 'date-time',
108 label: this.$t('appNavigation.dateTime'),
109 route: '/settings/date-time',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700110 },
111 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530112 id: 'network',
113 label: this.$t('appNavigation.network'),
114 route: '/settings/network',
115 },
116 {
117 id: 'power-restore-policy',
118 label: this.$t('appNavigation.powerRestorePolicy'),
119 route: '/settings/power-restore-policy',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700120 },
Derick Montague602e98a2020-10-21 16:20:00 -0500121 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700122 },
123 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530124 id: 'security-and-access',
125 label: this.$t('appNavigation.securityAndAccess'),
126 icon: 'iconSecurityAndAccess',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700127 children: [
128 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530129 id: 'sessions',
130 label: this.$t('appNavigation.sessions'),
131 route: '/security-and-access/sessions',
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800132 },
133 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700134 id: 'ldap',
135 label: this.$t('appNavigation.ldap'),
Sandeepa Singhb4406162021-07-26 15:05:39 +0530136 route: '/security-and-access/ldap',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700137 },
138 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530139 id: 'user-management',
140 label: this.$t('appNavigation.userManagement'),
141 route: '/security-and-access/user-management',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700142 },
143 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530144 id: 'policies',
145 label: this.$t('appNavigation.policies'),
146 route: '/security-and-access/policies',
147 },
148 {
149 id: 'certificates',
150 label: this.$t('appNavigation.certificates'),
151 route: '/security-and-access/certificates',
Derick Montague602e98a2020-10-21 16:20:00 -0500152 },
153 ],
154 },
Sandeepa Singh6dba4be2021-07-28 15:25:14 +0530155 {
156 id: 'resource-management',
157 label: this.$t('appNavigation.resourceManagement'),
158 icon: 'iconResourceManagement',
159 children: [
160 {
161 id: 'power',
162 label: this.$t('appNavigation.power'),
163 route: '/resource-management/power',
164 },
165 ],
166 },
Derick Montague602e98a2020-10-21 16:20:00 -0500167 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700168 };
Derick Montague602e98a2020-10-21 16:20:00 -0500169 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700170};
171
172export default AppNavigationMixin;