blob: fa3891eaccc35546d0974192e75ed40c844dfa22 [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';
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 Muranaka0214fed2020-09-03 13:25:50 -070013 iconHealth: IconDataCheck,
14 iconControl: IconSettingsAdjust,
15 iconConfiguration: IconSettings,
16 iconAccessControl: IconPassword,
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 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053088 id: 'power-restore-policy',
89 label: this.$t('appNavigation.powerRestorePolicy'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053090 route: '/operations/power-restore-policy',
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053091 },
92 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070093 id: 'reboot-bmc',
94 label: this.$t('appNavigation.rebootBmc'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053095 route: '/operations/reboot-bmc',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070096 },
97 {
98 id: 'serial-over-lan',
99 label: this.$t('appNavigation.serialOverLan'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530100 route: '/operations/serial-over-lan',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700101 },
102 {
103 id: 'server-power-operations',
104 label: this.$t('appNavigation.serverPowerOperations'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +0530105 route: '/operations/server-power-operations',
Derick Montague602e98a2020-10-21 16:20:00 -0500106 },
107 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700108 },
109 {
110 id: 'configuration',
111 label: this.$t('appNavigation.configuration'),
112 icon: 'iconConfiguration',
113 children: [
114 {
115 id: 'date-time-settings',
116 label: this.$t('appNavigation.dateTimeSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500117 route: '/configuration/date-time-settings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700118 },
119 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700120 id: 'network-settings',
121 label: this.$t('appNavigation.networkSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500122 route: '/configuration/network-settings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700123 },
124 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800125 id: 'security-settings',
126 label: this.$t('appNavigation.securitySettings'),
127 route: '/configuration/security-settings',
128 },
129 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700130 id: 'snmp-settings',
131 label: this.$t('appNavigation.snmpSettings'),
Yoshie Muranakaac2b3f02021-01-12 12:37:30 -0800132 route: '/configuration/snmp-settings',
Derick Montague602e98a2020-10-21 16:20:00 -0500133 },
134 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700135 },
136 {
137 id: 'access-control',
SurenNeware5fe1c3f2020-12-22 19:21:07 +0530138 label: this.$t('appNavigation.accessControl'),
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700139 icon: 'iconAccessControl',
140 children: [
141 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800142 id: 'client-sessions',
143 label: this.$t('appNavigation.clientSessions'),
144 route: '/access-control/client-sessions',
145 },
146 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700147 id: 'ldap',
148 label: this.$t('appNavigation.ldap'),
Derick Montague602e98a2020-10-21 16:20:00 -0500149 route: '/access-control/ldap',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700150 },
151 {
152 id: 'local-user-management',
153 label: this.$t('appNavigation.localUserManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500154 route: '/access-control/local-user-management',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700155 },
156 {
157 id: 'ssl-certificates',
158 label: this.$t('appNavigation.sslCertificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500159 route: '/access-control/ssl-certificates',
160 },
161 ],
162 },
163 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700164 };
Derick Montague602e98a2020-10-21 16:20:00 -0500165 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700166};
167
168export default AppNavigationMixin;