diff options
author | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-05-23 16:46:24 +0300 |
---|---|---|
committer | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-05-23 16:46:24 +0300 |
commit | 5c7a1dd3d6a22e02b983a01be39b654b8eaa6ad1 (patch) | |
tree | 3f11b86aa27b02fa6b33142f53e5b2c25b33f85f /src/components/AppNavigation/AppNavigationMixin.js | |
parent | 8086773d610f64ab71a11bd13cc896111b710fc8 (diff) | |
download | webui-vue-5c7a1dd3d6a22e02b983a01be39b654b8eaa6ad1.tar.xz |
Add pages: BMC, Ipv4/6, console settings. Fix routes: add console mixin, disable fullscreen console, add global styles.
Diffstat (limited to 'src/components/AppNavigation/AppNavigationMixin.js')
-rw-r--r-- | src/components/AppNavigation/AppNavigationMixin.js | 231 |
1 files changed, 216 insertions, 15 deletions
diff --git a/src/components/AppNavigation/AppNavigationMixin.js b/src/components/AppNavigation/AppNavigationMixin.js index 6ba9ffe3..ad5f58b5 100644 --- a/src/components/AppNavigation/AppNavigationMixin.js +++ b/src/components/AppNavigation/AppNavigationMixin.js @@ -8,9 +8,220 @@ export const AppNavigationMixin = { return { navigationItems: [ { - id: 'overview', - label: this.$t('appNavigation.overview'), + id: 'system', + label: this.$t('appNavigation.systemInformaion'), + icon: 'iconChevronUp', + children: [ + { + id: 'info', + label: this.$t('appNavigation.overviewInfo'), + route: '/', + }, + { + id: 'network', + label: this.$t('appNavigation.networkParametrs'), + route: '/network', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.eventLogs'), + route: '/logs/post-code-logs', + }, + { + id: 'server-parametrs', + label: this.$t('appNavigation.serverParam'), + route: '/server-parametrs', + }, + ], + }, + { + id: 'bmc', + label: this.$t('appNavigation.bmc'), + icon: 'iconChevronUp', + children: [ + { + id: 'configuration', + label: this.$t('appNavigation.config'), + route: '/bmc-configuration', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.deviceFirmware'), + route: '/logs/post-code-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.broadcast'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'analytical-panel', + label: this.$t('appNavigation.analyticalPanel'), + route: '/', + }, + { + id: 'RAID', + label: this.$t('appNavigation.raidControllers'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.settings'), + route: '/logs/post-code-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.cachRaid'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'memoryModules', + label: this.$t('appNavigation.memoryModules'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'processors', + label: this.$t('appNavigation.processors'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'power-supplies', + label: this.$t('appNavigation.powerSupplies'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'fans', + label: this.$t('appNavigation.fans'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.statisticInformation'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.dynamicInformation'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'physical-drives', + label: this.$t('appNavigation.physicalDrives'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'virtual-drives', + label: this.$t('appNavigation.virtualDrives'), route: '/', + }, + { + id: 'network-adapters', + label: this.$t('appNavigation.networkAdapters'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.ethernetAdapters'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.fcHbaAdapters'), + route: '/logs/post-code-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'motherboard', + label: this.$t('appNavigation.motherboard'), + icon: 'iconChevronUp', + children: [ + { + id: 'overview-info', + label: this.$t('appNavigation.specifications'), + route: '/logs/event-logs', + }, + { + id: 'post-code-logs', + label: this.$t('appNavigation.analyticalPanel'), + route: '/logs/post-code-logs', + }, + ], + }, + { + id: 'pci-devises', + label: this.$t('appNavigation.pciDevises'), + route: '/', + }, + //old tabs + { + id: 'overview', + label: 'СТАРЫЕ ВКЛАДКИ', + route: '/Info', icon: 'iconOverview', }, { @@ -58,11 +269,6 @@ export const AppNavigationMixin = { route: '/operations/factory-reset', }, { - id: 'kvm', - label: this.$t('appNavigation.kvm'), - route: '/operations/kvm', - }, - { id: 'key-clear', label: this.$t('appNavigation.keyClear'), route: '/operations/key-clear', @@ -78,11 +284,6 @@ export const AppNavigationMixin = { route: '/operations/reboot-bmc', }, { - id: 'serial-over-lan', - label: this.$t('appNavigation.serialOverLan'), - route: '/operations/serial-over-lan', - }, - { id: 'server-power-operations', label: this.$t('appNavigation.serverPowerOperations'), route: '/operations/server-power-operations', @@ -172,17 +373,17 @@ export const KvmNavigationMixin = { { id: 'console-settings', label: this.$t('kvmNavigation.ConsoleSettings'), - route: '/operations/kvm', + route: '/console-settings', }, { id: 'serial-over-lan', label: this.$t('kvmNavigation.serialOverLan'), - route: '/operations/serial-over-lan', + route: '/console/serial-over-lan', }, { id: 'kvm', label: this.$t('kvmNavigation.kvm'), - route: '/operations/kvm', + route: '/console/kvm', }, ], }; |