1import IconDashboard from '@carbon/icons-vue/es/dashboard/16';
2import IconTextLinkAnalysis from '@carbon/icons-vue/es/text-link--analysis/16';
3import 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 IconSecurity from '@carbon/icons-vue/es/security/16';
7import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
8import IconDataBase from '@carbon/icons-vue/es/data--base--alt/16';
9
10const AppNavigationMixin = {
11  components: {
12    iconOverview: IconDashboard,
13    iconLogs: IconTextLinkAnalysis,
14    iconHealth: IconDataCheck,
15    iconControl: IconSettingsAdjust,
16    iconSettings: IconSettings,
17    iconSecurityAndAccess: IconSecurity,
18    iconExpand: IconChevronUp,
19    iconResourceManagement: IconDataBase,
20  },
21  data() {
22    return {
23      navigationItems: [
24        {
25          id: 'overview',
26          label: this.$t('appNavigation.overview'),
27          route: '/',
28          icon: 'iconOverview',
29        },
30        {
31          id: 'logs',
32          label: this.$t('appNavigation.logs'),
33          icon: 'iconLogs',
34          children: [
35            {
36              id: 'event-logs',
37              label: this.$t('appNavigation.eventLogs'),
38              route: '/logs/event-logs',
39            },
40            {
41              id: 'post-code-logs',
42              label: this.$t('appNavigation.postCodeLogs'),
43              route: '/logs/post-code-logs',
44            },
45          ],
46        },
47        {
48          id: 'hardware-status',
49          label: this.$t('appNavigation.hardwareStatus'),
50          icon: 'iconHealth',
51          children: [
52            {
53              id: 'inventory',
54              label: this.$t('appNavigation.inventory'),
55              route: '/hardware-status/inventory',
56            },
57            {
58              id: 'sensors',
59              label: this.$t('appNavigation.sensors'),
60              route: '/hardware-status/sensors',
61            },
62          ],
63        },
64        {
65          id: 'operations',
66          label: this.$t('appNavigation.operations'),
67          icon: 'iconControl',
68          children: [
69            {
70              id: 'factory-reset',
71              label: this.$t('appNavigation.factoryReset'),
72              route: '/operations/factory-reset',
73            },
74            {
75              id: 'kvm',
76              label: this.$t('appNavigation.kvm'),
77              route: '/operations/kvm',
78            },
79            {
80              id: 'firmware',
81              label: this.$t('appNavigation.firmware'),
82              route: '/operations/firmware',
83            },
84            {
85              id: 'reboot-bmc',
86              label: this.$t('appNavigation.rebootBmc'),
87              route: '/operations/reboot-bmc',
88            },
89            {
90              id: 'serial-over-lan',
91              label: this.$t('appNavigation.serialOverLan'),
92              route: '/operations/serial-over-lan',
93            },
94            {
95              id: 'server-power-operations',
96              label: this.$t('appNavigation.serverPowerOperations'),
97              route: '/operations/server-power-operations',
98            },
99            {
100              id: 'virtual-media',
101              label: this.$t('appNavigation.virtualMedia'),
102              route: '/operations/virtual-media',
103            },
104          ],
105        },
106        {
107          id: 'settings',
108          label: this.$t('appNavigation.settings'),
109          icon: 'iconSettings',
110          children: [
111            {
112              id: 'date-time',
113              label: this.$t('appNavigation.dateTime'),
114              route: '/settings/date-time',
115            },
116            {
117              id: 'network',
118              label: this.$t('appNavigation.network'),
119              route: '/settings/network',
120            },
121            {
122              id: 'power-restore-policy',
123              label: this.$t('appNavigation.powerRestorePolicy'),
124              route: '/settings/power-restore-policy',
125            },
126          ],
127        },
128        {
129          id: 'security-and-access',
130          label: this.$t('appNavigation.securityAndAccess'),
131          icon: 'iconSecurityAndAccess',
132          children: [
133            {
134              id: 'sessions',
135              label: this.$t('appNavigation.sessions'),
136              route: '/security-and-access/sessions',
137            },
138            {
139              id: 'ldap',
140              label: this.$t('appNavigation.ldap'),
141              route: '/security-and-access/ldap',
142            },
143            {
144              id: 'user-management',
145              label: this.$t('appNavigation.userManagement'),
146              route: '/security-and-access/user-management',
147            },
148            {
149              id: 'policies',
150              label: this.$t('appNavigation.policies'),
151              route: '/security-and-access/policies',
152            },
153            {
154              id: 'certificates',
155              label: this.$t('appNavigation.certificates'),
156              route: '/security-and-access/certificates',
157            },
158          ],
159        },
160        {
161          id: 'resource-management',
162          label: this.$t('appNavigation.resourceManagement'),
163          icon: 'iconResourceManagement',
164          children: [
165            {
166              id: 'power',
167              label: this.$t('appNavigation.power'),
168              route: '/resource-management/power',
169            },
170          ],
171        },
172      ],
173    };
174  },
175};
176
177export default AppNavigationMixin;
178