blob: 3fe0ad1cc8be0ffa5307e20dd78e18db152edf38 [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';
MichalX Szopinski842b5db2020-11-24 13:12:50 +01003import 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';
MichalX Szopinski842b5db2020-11-24 13:12:50 +01007import 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';
MichalX Szopinski842b5db2020-11-24 13:12:50 +01009
10const AppNavigationMixin = {
11 components: {
Derick Montague828dda92021-06-28 15:52:22 -050012 iconOverview: IconDashboard,
13 iconLogs: IconTextLinkAnalysis,
MichalX Szopinski842b5db2020-11-24 13:12:50 +010014 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,
MichalX Szopinski842b5db2020-11-24 13:12:50 +010018 iconExpand: IconChevronUp,
Sandeepa Singh6dba4be2021-07-28 15:25:14 +053019 iconResourceManagement: IconDataBase,
MichalX Szopinski842b5db2020-11-24 13:12:50 +010020 },
21 data() {
22 return {
23 navigationItems: [
24 {
25 id: 'overview',
26 label: this.$t('appNavigation.overview'),
27 route: '/',
28 icon: 'iconOverview',
29 },
30 {
Derick Montague828dda92021-06-28 15:52:22 -050031 id: 'logs',
32 label: this.$t('appNavigation.logs'),
33 icon: 'iconLogs',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010034 children: [
35 {
36 id: 'event-logs',
37 label: this.$t('appNavigation.eventLogs'),
Derick Montague828dda92021-06-28 15:52:22 -050038 route: '/logs/event-logs',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010039 },
MichalX Szopinski2a2e1022021-11-05 15:54:29 +010040 {
41 id: 'post-code-logs',
42 label: this.$t('appNavigation.postCodeLogs'),
43 route: '/logs/post-code-logs',
44 },
Derick Montague828dda92021-06-28 15:52:22 -050045 ],
46 },
47 {
Sandeepa Singh7affc522021-07-06 16:29:10 +053048 id: 'hardware-status',
49 label: this.$t('appNavigation.hardwareStatus'),
Derick Montague828dda92021-06-28 15:52:22 -050050 icon: 'iconHealth',
51 children: [
MichalX Szopinski842b5db2020-11-24 13:12:50 +010052 {
Sandeepa Singh7affc522021-07-06 16:29:10 +053053 id: 'inventory',
54 label: this.$t('appNavigation.inventory'),
55 route: '/hardware-status/inventory',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010056 },
57 {
58 id: 'sensors',
59 label: this.$t('appNavigation.sensors'),
Sandeepa Singh7affc522021-07-06 16:29:10 +053060 route: '/hardware-status/sensors',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010061 },
62 ],
63 },
64 {
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053065 id: 'operations',
66 label: this.$t('appNavigation.operations'),
MichalX Szopinski842b5db2020-11-24 13:12:50 +010067 icon: 'iconControl',
68 children: [
69 {
70 id: 'kvm',
71 label: this.$t('appNavigation.kvm'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053072 route: '/operations/kvm',
73 },
74 {
75 id: 'firmware',
76 label: this.$t('appNavigation.firmware'),
77 route: '/operations/firmware',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010078 },
79 {
MichalX Szopinski842b5db2020-11-24 13:12:50 +010080 id: 'reboot-bmc',
81 label: this.$t('appNavigation.rebootBmc'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053082 route: '/operations/reboot-bmc',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010083 },
84 {
85 id: 'serial-over-lan',
86 label: this.$t('appNavigation.serialOverLan'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053087 route: '/operations/serial-over-lan',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010088 },
89 {
90 id: 'server-power-operations',
91 label: this.$t('appNavigation.serverPowerOperations'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053092 route: '/operations/server-power-operations',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010093 },
94 {
95 id: 'virtual-media',
96 label: this.$t('appNavigation.virtualMedia'),
Sandeepa Singh68cbbe92021-07-14 16:02:22 +053097 route: '/operations/virtual-media',
MichalX Szopinski842b5db2020-11-24 13:12:50 +010098 },
99 ],
100 },
101 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530102 id: 'settings',
103 label: this.$t('appNavigation.settings'),
104 icon: 'iconSettings',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100105 children: [
106 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530107 id: 'date-time',
108 label: this.$t('appNavigation.dateTime'),
109 route: '/settings/date-time',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100110 },
111 {
Sandeepa Singhf67f7692021-07-19 18:04:18 +0530112 id: 'network',
113 label: this.$t('appNavigation.network'),
114 route: '/settings/network',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100115 },
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100116 ],
117 },
118 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530119 id: 'security-and-access',
120 label: this.$t('appNavigation.securityAndAccess'),
121 icon: 'iconSecurityAndAccess',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100122 children: [
123 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530124 id: 'sessions',
125 label: this.$t('appNavigation.sessions'),
126 route: '/security-and-access/sessions',
MichalX Szopinskid6752692021-03-01 13:59:55 +0100127 },
128 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530129 id: 'user-management',
130 label: this.$t('appNavigation.userManagement'),
131 route: '/security-and-access/user-management',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100132 },
133 {
Sandeepa Singhb4406162021-07-26 15:05:39 +0530134 id: 'policies',
135 label: this.$t('appNavigation.policies'),
136 route: '/security-and-access/policies',
137 },
138 {
139 id: 'certificates',
140 label: this.$t('appNavigation.certificates'),
141 route: '/security-and-access/certificates',
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100142 },
143 ],
144 },
Sandeepa Singh6dba4be2021-07-28 15:25:14 +0530145 {
146 id: 'resource-management',
147 label: this.$t('appNavigation.resourceManagement'),
148 icon: 'iconResourceManagement',
149 children: [
150 {
151 id: 'power',
152 label: this.$t('appNavigation.power'),
153 route: '/resource-management/power',
154 },
155 ],
156 },
MichalX Szopinski842b5db2020-11-24 13:12:50 +0100157 ],
158 };
159 },
160};
161
162export default AppNavigationMixin;