import iconChevronUp from '@carbon/icons-vue/es/chevron--up/16'; export const AppNavigationMixin = { components: { IconChevronUp: iconChevronUp, }, data() { return { navigationItems: [ { id: 'system', label: this.$t('appNavigation.systemInformaion'), icon: 'iconChevronUp', children: [ { id: 'info', label: this.$t('appNavigation.overviewInfo'), route: '/hardware-status/inventory', }, { id: 'network', label: this.$t('appNavigation.networkParametrs'), route: '/settings/network', }, { id: 'date-time', label: this.$t('appNavigation.dateTime'), route: '/settings/date-time', }, ], }, { id: 'bmc', label: this.$t('appNavigation.bmc'), icon: 'iconChevronUp', children: [ { id: 'bmc-configuration', label: this.$t('appNavigation.config'), route: '/bmc-configuration', }, // { // id: 'bmc-firmware', // label: this.$t('appNavigation.deviceFirmware'), // route: '/bmc-firmware', // }, // { // id: 'bmc-settings', // label: this.$t('appNavigation.broadcast'), // route: '/bmc-settings', // }, ], }, // { // id: 'analytical-panel', // label: this.$t('appNavigation.analyticalPanel'), // route: '/analytical-panel', // }, // { // id: 'RAID', // label: this.$t('appNavigation.raidControllers'), // icon: 'iconChevronUp', // children: [ // { // id: 'raid-specification', // label: this.$t('appNavigation.specification'), // route: '/raid-specification', // }, // { // id: 'raid-settings', // label: this.$t('appNavigation.settings'), // route: '/raid-settings', // }, // { // id: 'raid-cache', // label: this.$t('RAID.cache'), // route: '/raid-cache', // }, // ], // }, // { // id: 'processors', // label: this.$t('appNavigation.processors'), // icon: 'iconChevronUp', // children: [ // { // id: 'processors-specification', // label: this.$t('appNavigation.specification'), // route: '/processors-specification', // }, // { // id: 'processors-dynamic-info', // label: this.$t('appNavigation.analyticalPanel'), // route: '/processors-dynamic-info', // }, // ], // }, // { // id: 'power', // label: this.$t('appNavigation.powerSupplies'), // icon: 'iconChevronUp', // children: [ // { // id: 'power-specification', // label: this.$t('appNavigation.specification'), // route: '/power-specification', // }, // { // id: 'power-dynamic-info', // label: this.$t('appNavigation.analyticalPanel'), // route: '/power-dynamic-info', // }, // ], // }, // { // id: 'memory', // label: this.$t('appNavigation.memoryModules'), // icon: 'iconChevronUp', // children: [ // { // id: 'memory-specification', // label: this.$t('appNavigation.specification'), // route: '/memory-specification', // }, // { // id: 'memory-dynamic-info', // label: this.$t('appNavigation.analyticalPanel'), // route: '/memory-dynamic-info', // }, // ], // }, // { // id: 'fans', // label: this.$t('appNavigation.fans'), // icon: 'iconChevronUp', // children: [ // { // id: 'fans-static', // label: this.$t('appNavigation.statisticInformation'), // route: '/fans-static', // }, // { // id: 'fans', // label: this.$t('appNavigation.dynamicInformation'), // route: '/fans', // }, // ], // }, // { // id: 'physical-drives', // label: this.$t('appNavigation.physicalDrives'), // icon: 'iconChevronUp', // children: [ // { // id: 'drivers-static', // label: this.$t('appNavigation.statisticInformation'), // route: '/drivers-static', // }, // { // id: 'drivers', // label: this.$t('appNavigation.analyticalPanel'), // route: '/drivers', // }, // ], // }, // { // id: 'virtual-drivers', // label: this.$t('appNavigation.virtualDrivers'), // route: '/virtual-drivers', // }, // { // id: 'motherboard', // label: this.$t('appNavigation.motherboard'), // icon: 'iconChevronUp', // children: [ // { // id: 'motherboard-specification', // label: this.$t('appNavigation.specification'), // route: '/motherboard-specification', // }, // { // id: 'motherboard-dynamic-info', // label: this.$t('appNavigation.analyticalPanel'), // route: '/motherboard-dynamic-info', // }, // ], // }, // { // id: 'network-adapters', // label: this.$t('appNavigation.networkAdapters'), // icon: 'iconChevronUp', // children: [ // { // id: 'network-adapters-ethernet', // label: this.$t('appNavigation.ethernetAdapters'), // route: '/network-adapters-ethernet', // }, // { // id: 'network-adapters-fc-hba', // label: this.$t('appNavigation.fcHbaAdapters'), // route: '/network-adapters-fc-hba', // }, // { // id: 'network-adapters-pannel', // label: this.$t('appNavigation.analyticalPanel'), // route: '/network-adapters-pannel', // }, // ], // }, // { // id: 'pci-devices', // label: this.$t('appNavigation.pciDevices'), // route: '/pci-devices', // }, ///////////////////////////old tabs // { // id: 'overview', // label: 'Обзор', // route: '/Info', // }, { id: 'logs', label: this.$t('appNavigation.logs'), icon: 'iconChevronUp', children: [ { id: 'event-logs', label: this.$t('appNavigation.eventLogs'), route: '/logs/event-logs', }, { id: 'post-code-logs', label: this.$t('appNavigation.postCodeLogs'), route: '/logs/post-code-logs', }, ], }, { id: 'hardware-status', label: this.$t('appNavigation.hardwareStatus'), icon: 'iconChevronUp', children: [ { id: 'sensors', label: this.$t('appNavigation.sensors'), route: '/hardware-status/sensors', }, ], }, { id: 'operations', label: this.$t('appNavigation.operations'), icon: 'iconChevronUp', children: [ { id: 'factory-reset', label: this.$t('appNavigation.factoryReset'), route: '/operations/factory-reset', }, { id: 'key-clear', label: this.$t('appPageTitle.keyClear'), route: '/operations/key-clear', }, { id: 'firmware', label: this.$t('appNavigation.firmware'), route: '/operations/firmware', }, { id: 'reboot-bmc', label: this.$t('appNavigation.rebootBmc'), route: '/operations/reboot-bmc', }, { id: 'server-power-operations', label: this.$t('appNavigation.serverPowerOperations'), route: '/operations/server-power-operations', }, { id: 'virtual-media', label: this.$t('appNavigation.virtualMedia'), route: '/operations/virtual-media', }, ], }, // { // id: 'settings', // label: this.$t('appNavigation.settings'), // icon: 'iconChevronUp', // children: [ // { // id: 'network', // label: this.$t('appNavigation.network'), // route: '/settings/network', // }, // { // id: 'power-restore-policy', // label: this.$t('appNavigation.powerRestorePolicy'), // route: '/settings/power-restore-policy', // }, // ], // }, { id: 'security-and-access', label: this.$t('appNavigation.securityAndAccess'), icon: 'iconChevronUp', children: [ { id: 'sessions', label: this.$t('appNavigation.sessions'), route: '/security-and-access/sessions', }, { id: 'ldap', label: this.$t('appNavigation.ldap'), route: '/security-and-access/ldap', }, { id: 'user-management', label: this.$t('appNavigation.userManagement'), route: '/security-and-access/user-management', }, { id: 'policies', label: this.$t('appNavigation.policies'), route: '/security-and-access/policies', }, { id: 'certificates', label: this.$t('appNavigation.certificates'), route: '/security-and-access/certificates', }, ], }, // { // id: 'resource-management', // label: this.$t('appNavigation.resourceManagement'), // icon: 'iconChevronUp', // children: [ // { // id: 'power', // label: this.$t('appNavigation.power'), // route: '/resource-management/power', // }, // ], // }, ], }; }, }; export const KvmNavigationMixin = { data() { return { kvmNavigationItems: [ // { // id: 'console-settings', // label: this.$t('appPageTitle.consoleSettings'), // route: '/console/settings', // }, { id: 'kvm', label: this.$t('appNavigation.kvm'), route: '/operations/kvm', }, { id: 'serial-over-lan', label: this.$t('appPageTitle.serialOverLan'), route: '/operations/serial-over-lan', }, ], }; }, };