blob: b8186a44cbf566a083bcd21eda78d010eb364331 [file] [log] [blame]
Yoshie Muranaka0214fed2020-09-03 13:25:50 -07001import IconAnalytics from '@carbon/icons-vue/es/analytics/16';
2import IconDataCheck from '@carbon/icons-vue/es/data--check/16';
3import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16';
4import IconSettings from '@carbon/icons-vue/es/settings/16';
5import IconPassword from '@carbon/icons-vue/es/password/16';
6import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
7
8const AppNavigationMixin = {
9 components: {
10 iconOverview: IconAnalytics,
11 iconHealth: IconDataCheck,
12 iconControl: IconSettingsAdjust,
13 iconConfiguration: IconSettings,
14 iconAccessControl: IconPassword,
Derick Montague602e98a2020-10-21 16:20:00 -050015 iconExpand: IconChevronUp,
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070016 },
17 data() {
18 return {
19 navigationItems: [
20 {
21 id: 'overview',
22 label: this.$t('appNavigation.overview'),
23 route: '/',
Derick Montague602e98a2020-10-21 16:20:00 -050024 icon: 'iconOverview',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070025 },
26 {
27 id: 'health',
28 label: this.$t('appNavigation.health'),
29 icon: 'iconHealth',
30 children: [
31 {
Yoshie Muranaka22d4d522020-12-03 10:58:35 -080032 id: 'dumps',
33 label: this.$t('appNavigation.dumps'),
34 route: '/health/dumps',
35 },
36 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070037 id: 'event-logs',
38 label: this.$t('appNavigation.eventLogs'),
Derick Montague602e98a2020-10-21 16:20:00 -050039 route: '/health/event-logs',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070040 },
41 {
42 id: 'hardware-status',
43 label: this.$t('appNavigation.hardwareStatus'),
Derick Montague602e98a2020-10-21 16:20:00 -050044 route: '/health/hardware-status',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070045 },
46 {
Sandeepa Singh06d53862021-05-24 13:51:09 +053047 id: 'post-code-logs',
48 label: this.$t('appNavigation.postCodeLogs'),
49 route: '/health/post-code-logs',
50 },
51 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070052 id: 'sensors',
53 label: this.$t('appNavigation.sensors'),
Derick Montague602e98a2020-10-21 16:20:00 -050054 route: '/health/sensors',
55 },
56 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070057 },
58 {
59 id: 'control',
60 label: this.$t('appNavigation.control'),
61 icon: 'iconControl',
62 children: [
63 {
Derick Montagueda9f0a62021-02-14 19:21:44 -060064 id: 'factory-reset',
65 label: this.$t('appNavigation.factoryReset'),
66 route: '/control/factory-reset',
67 },
68 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070069 id: 'manage-power-usage',
70 label: this.$t('appNavigation.managePowerUsage'),
Derick Montague602e98a2020-10-21 16:20:00 -050071 route: '/control/manage-power-usage',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070072 },
73 {
Sukanya Pandeybe6858c2020-12-16 20:08:01 +053074 id: 'power-restore-policy',
75 label: this.$t('appNavigation.powerRestorePolicy'),
76 route: '/control/power-restore-policy',
77 },
78 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070079 id: 'reboot-bmc',
80 label: this.$t('appNavigation.rebootBmc'),
Derick Montague602e98a2020-10-21 16:20:00 -050081 route: '/control/reboot-bmc',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070082 },
83 {
84 id: 'serial-over-lan',
85 label: this.$t('appNavigation.serialOverLan'),
Derick Montague602e98a2020-10-21 16:20:00 -050086 route: '/control/serial-over-lan',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070087 },
88 {
89 id: 'server-led',
90 label: this.$t('appNavigation.serverLed'),
Derick Montague602e98a2020-10-21 16:20:00 -050091 route: '/control/server-led',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070092 },
93 {
94 id: 'server-power-operations',
95 label: this.$t('appNavigation.serverPowerOperations'),
Derick Montague602e98a2020-10-21 16:20:00 -050096 route: '/control/server-power-operations',
97 },
98 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -070099 },
100 {
101 id: 'configuration',
102 label: this.$t('appNavigation.configuration'),
103 icon: 'iconConfiguration',
104 children: [
105 {
106 id: 'date-time-settings',
107 label: this.$t('appNavigation.dateTimeSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500108 route: '/configuration/date-time-settings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700109 },
110 {
111 id: 'firmware',
112 label: this.$t('appNavigation.firmware'),
Derick Montague602e98a2020-10-21 16:20:00 -0500113 route: '/configuration/firmware',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700114 },
115 {
116 id: 'network-settings',
117 label: this.$t('appNavigation.networkSettings'),
Derick Montague602e98a2020-10-21 16:20:00 -0500118 route: '/configuration/network-settings',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700119 },
120 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800121 id: 'security-settings',
122 label: this.$t('appNavigation.securitySettings'),
123 route: '/configuration/security-settings',
124 },
125 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700126 id: 'snmp-settings',
127 label: this.$t('appNavigation.snmpSettings'),
Yoshie Muranakaac2b3f02021-01-12 12:37:30 -0800128 route: '/configuration/snmp-settings',
Derick Montague602e98a2020-10-21 16:20:00 -0500129 },
130 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700131 },
132 {
133 id: 'access-control',
SurenNeware5fe1c3f2020-12-22 19:21:07 +0530134 label: this.$t('appNavigation.accessControl'),
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700135 icon: 'iconAccessControl',
136 children: [
137 {
Yoshie Muranakaca22a422021-01-04 14:13:34 -0800138 id: 'client-sessions',
139 label: this.$t('appNavigation.clientSessions'),
140 route: '/access-control/client-sessions',
141 },
142 {
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700143 id: 'ldap',
144 label: this.$t('appNavigation.ldap'),
Derick Montague602e98a2020-10-21 16:20:00 -0500145 route: '/access-control/ldap',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700146 },
147 {
148 id: 'local-user-management',
149 label: this.$t('appNavigation.localUserManagement'),
Derick Montague602e98a2020-10-21 16:20:00 -0500150 route: '/access-control/local-user-management',
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700151 },
152 {
153 id: 'ssl-certificates',
154 label: this.$t('appNavigation.sslCertificates'),
Derick Montague602e98a2020-10-21 16:20:00 -0500155 route: '/access-control/ssl-certificates',
156 },
157 ],
158 },
159 ],
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700160 };
Derick Montague602e98a2020-10-21 16:20:00 -0500161 },
Yoshie Muranaka0214fed2020-09-03 13:25:50 -0700162};
163
164export default AppNavigationMixin;