blob: da8a59cd570ae4c777512134235b91a3697e3dbc [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';
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,
Sandeepa Singhf67f7692021-07-19 18:04:18 +053015 iconSettings: IconSettings,
Sandeepa Singhb4406162021-07-26 15:05:39 +053016 iconSecurityAndAccess: IconSecurity,
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 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -070038 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053039 id: 'post-code-logs',
40 label: this.$t('appNavigation.postCodeLogs'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053041 route: '/logs/post-code-logs',
42 },
43 ],
44 },
45 {
46 id: 'hardware-status',
47 label: this.$t('appNavigation.hardwareStatus'),
48 icon: 'iconHealth',
49 children: [
50 {
51 id: 'inventory',
52 label: this.$t('appNavigation.inventory'),
53 route: '/hardware-status/inventory',
Sandeepa Singh06d53862021-05-24 13:51:09 +053054 },
55 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070056 id: 'sensors',
57 label: this.$t('appNavigation.sensors'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053058 route: '/hardware-status/sensors',
Derick Montague602e98a2020-10-21 16:20:00 -050059 },
60 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -070061 },
62 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053063 id: 'operations',
64 label: this.$t('appNavigation.operations'),
Yoshie Muranakad329ec82020-08-11 18:24:59 -070065 icon: 'iconControl',
66 children: [
67 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060068 id: 'factory-reset',
69 label: this.$t('appNavigation.factoryReset'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053070 route: '/operations/factory-reset',
Derick Montagueda9f0a62021-02-14 19:21:44 -060071 },
72 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -070073 id: 'kvm',
74 label: this.$t('appNavigation.kvm'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053075 route: '/operations/kvm',
76 },
77 {
78 id: 'firmware',
79 label: this.$t('appNavigation.firmware'),
80 route: '/operations/firmware',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070081 },
82 {
83 id: 'manage-power-usage',
84 label: this.$t('appNavigation.managePowerUsage'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053085 route: '/operations/manage-power-usage',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070086 },
87 {
88 id: 'reboot-bmc',
89 label: this.$t('appNavigation.rebootBmc'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053090 route: '/operations/reboot-bmc',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070091 },
92 {
93 id: 'serial-over-lan',
94 label: this.$t('appNavigation.serialOverLan'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053095 route: '/operations/serial-over-lan',
Yoshie Muranakad329ec82020-08-11 18:24:59 -070096 },
97 {
98 id: 'server-power-operations',
99 label: this.$t('appNavigation.serverPowerOperations'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530100 route: '/operations/server-power-operations',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700101 },
102 {
103 id: 'virtual-media',
104 label: this.$t('appNavigation.virtualMedia'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530105 route: '/operations/virtual-media',
Derick Montague602e98a2020-10-21 16:20:00 -0500106 },
107 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700108 },
109 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530110 id: 'settings',
111 label: this.$t('appNavigation.settings'),
112 icon: 'iconSettings',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700113 children: [
114 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530115 id: 'date-time',
116 label: this.$t('appNavigation.dateTime'),
117 route: '/settings/date-time',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700118 },
119 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530120 id: 'network',
121 label: this.$t('appNavigation.network'),
122 route: '/settings/network',
123 },
124 {
125 id: 'power-restore-policy',
126 label: this.$t('appNavigation.powerRestorePolicy'),
127 route: '/settings/power-restore-policy',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700128 },
Derick Montague602e98a2020-10-21 16:20:00 -0500129 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700130 },
131 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530132 id: 'security-and-access',
133 label: this.$t('appNavigation.securityAndAccess'),
134 icon: 'iconSecurityAndAccess',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700135 children: [
136 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530137 id: 'sessions',
138 label: this.$t('appNavigation.sessions'),
139 route: '/security-and-access/sessions',
Sukanya Pandey34efde22020-12-02 19:04:09 +0530140 },
141 {
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700142 id: 'ldap',
143 label: this.$t('appNavigation.ldap'),
Sandeepa Singhb4406162021-07-26 15:05:39 +0530144 route: '/security-and-access/ldap',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700145 },
146 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530147 id: 'user-management',
148 label: this.$t('appNavigation.userManagement'),
149 route: '/security-and-access/user-management',
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700150 },
151 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530152 id: 'policies',
153 label: this.$t('appNavigation.policies'),
154 route: '/security-and-access/policies',
155 },
156 {
157 id: 'certificates',
158 label: this.$t('appNavigation.certificates'),
159 route: '/security-and-access/certificates',
Derick Montague602e98a2020-10-21 16:20:00 -0500160 },
161 ],
162 },
163 ],
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700164 };
Derick Montague602e98a2020-10-21 16:20:00 -0500165 },
Yoshie Muranakad329ec82020-08-11 18:24:59 -0700166};
167
168export default AppNavigationMixin;