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: 'kvm',
71              label: this.$t('appNavigation.kvm'),
72              route: '/operations/kvm',
73            },
74            {
75              id: 'firmware',
76              label: this.$t('appNavigation.firmware'),
77              route: '/operations/firmware',
78            },
79            {
80              id: 'reboot-bmc',
81              label: this.$t('appNavigation.rebootBmc'),
82              route: '/operations/reboot-bmc',
83            },
84            {
85              id: 'serial-over-lan',
86              label: this.$t('appNavigation.serialOverLan'),
87              route: '/operations/serial-over-lan',
88            },
89            {
90              id: 'server-power-operations',
91              label: this.$t('appNavigation.serverPowerOperations'),
92              route: '/operations/server-power-operations',
93            },
94            {
95              id: 'virtual-media',
96              label: this.$t('appNavigation.virtualMedia'),
97              route: '/operations/virtual-media',
98            },
99          ],
100        },
101        {
102          id: 'settings',
103          label: this.$t('appNavigation.settings'),
104          icon: 'iconSettings',
105          children: [
106            {
107              id: 'date-time',
108              label: this.$t('appNavigation.dateTime'),
109              route: '/settings/date-time',
110            },
111            {
112              id: 'network',
113              label: this.$t('appNavigation.network'),
114              route: '/settings/network',
115            },
116          ],
117        },
118        {
119          id: 'security-and-access',
120          label: this.$t('appNavigation.securityAndAccess'),
121          icon: 'iconSecurityAndAccess',
122          children: [
123            {
124              id: 'sessions',
125              label: this.$t('appNavigation.sessions'),
126              route: '/security-and-access/sessions',
127            },
128            {
129              id: 'user-management',
130              label: this.$t('appNavigation.userManagement'),
131              route: '/security-and-access/user-management',
132            },
133            {
134              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',
142            },
143          ],
144        },
145        {
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        },
157      ],
158    };
159  },
160};
161
162export default AppNavigationMixin;
163