blob: cbf0db55c4196236dab04906d6bbc6ebb5400fc4 [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';
8
9const AppNavigationMixin = {
10 components: {
Derick Montague828dda92021-06-28 15:52:22 -050011 iconOverview: IconDashboard,
12 iconLogs: IconTextLinkAnalysis,
Yoshie Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -070027 },
28 {
Derick Montague828dda92021-06-28 15:52:22 -050029 id: 'logs',
30 label: this.$t('appNavigation.logs'),
31 icon: 'iconLogs',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070032 children: [
33 {
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080034 id: 'dumps',
35 label: this.$t('appNavigation.dumps'),
Derick Montague828dda92021-06-28 15:52:22 -050036 route: '/logs/dumps',
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080037 },
38 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070039 id: 'event-logs',
40 label: this.$t('appNavigation.eventLogs'),
Derick Montague828dda92021-06-28 15:52:22 -050041 route: '/logs/event-logs',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070042 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070043 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053044 id: 'post-code-logs',
45 label: this.$t('appNavigation.postCodeLogs'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053046 route: '/logs/post-code-logs',
47 },
48 ],
49 },
50 {
51 id: 'hardware-status',
52 label: this.$t('appNavigation.hardwareStatus'),
53 icon: 'iconHealth',
54 children: [
55 {
56 id: 'inventory',
57 label: this.$t('appNavigation.inventory'),
58 route: '/hardware-status/inventory',
Sandeepa Singh06d53862021-05-24 13:51:09 +053059 },
60 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070061 id: 'sensors',
62 label: this.$t('appNavigation.sensors'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053063 route: '/hardware-status/sensors',
Derick Montague602e98a2020-10-21 16:20:00 -050064 },
65 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070066 },
67 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053068 id: 'operations',
69 label: this.$t('appNavigation.operations'),
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070070 icon: 'iconControl',
71 children: [
72 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060073 id: 'factory-reset',
74 label: this.$t('appNavigation.factoryReset'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053075 route: '/operations/factory-reset',
76 },
77 {
78 id: 'firmware',
79 label: this.$t('appNavigation.firmware'),
80 route: '/operations/firmware',
Derick Montagueda9f0a62021-02-14 19:21:44 -060081 },
82 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070083 id: 'manage-power-usage',
84 label: this.$t('appNavigation.managePowerUsage'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053085 route: '/operations/manage-power-usage',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -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 Muranaka0214fed2020-09-03 13:25:50 -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',
Derick Montague602e98a2020-10-21 16:20:00 -0500101 },
102 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700103 },
104 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530105 id: 'settings',
106 label: this.$t('appNavigation.settings'),
107 icon: 'iconSettings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700108 children: [
109 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530110 id: 'date-time',
111 label: this.$t('appNavigation.dateTime'),
112 route: '/settings/date-time',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700113 },
114 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530115 id: 'network',
116 label: this.$t('appNavigation.network'),
117 route: '/settings/network',
118 },
119 {
120 id: 'power-restore-policy',
121 label: this.$t('appNavigation.powerRestorePolicy'),
122 route: '/settings/power-restore-policy',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700123 },
Derick Montague602e98a2020-10-21 16:20:00 -0500124 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700125 },
126 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530127 id: 'security-and-access',
128 label: this.$t('appNavigation.securityAndAccess'),
129 icon: 'iconSecurityAndAccess',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700130 children: [
131 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530132 id: 'sessions',
133 label: this.$t('appNavigation.sessions'),
134 route: '/security-and-access/sessions',
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800135 },
136 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700137 id: 'ldap',
138 label: this.$t('appNavigation.ldap'),
Sandeepa Singhb4406162021-07-26 15:05:39 +0530139 route: '/security-and-access/ldap',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700140 },
141 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530142 id: 'user-management',
143 label: this.$t('appNavigation.userManagement'),
144 route: '/security-and-access/user-management',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700145 },
146 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530147 id: 'policies',
148 label: this.$t('appNavigation.policies'),
149 route: '/security-and-access/policies',
150 },
151 {
152 id: 'certificates',
153 label: this.$t('appNavigation.certificates'),
154 route: '/security-and-access/certificates',
Derick Montague602e98a2020-10-21 16:20:00 -0500155 },
156 ],
157 },
158 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700159 };
Derick Montague602e98a2020-10-21 16:20:00 -0500160 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700161};
162
163export default AppNavigationMixin;