summaryrefslogtreecommitdiff
path: root/src/components/AppNavigation
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AppNavigation')
-rw-r--r--src/components/AppNavigation/AppNavigation.vue16
-rw-r--r--src/components/AppNavigation/AppNavigationMixin.js231
-rw-r--r--src/components/AppNavigation/KmvNavigationMixin.js25
3 files changed, 221 insertions, 51 deletions
diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue
index 2aa61984..dc7a58d0 100644
--- a/src/components/AppNavigation/AppNavigation.vue
+++ b/src/components/AppNavigation/AppNavigation.vue
@@ -114,8 +114,9 @@ export default {
computed: {
sideBar() {
if (
- this.$route.path === '/operations/kvm' ||
- this.$route.path === '/operations/serial-over-lan'
+ this.$route.path === '/console-settings' ||
+ this.$route.path === '/console/serial-over-lan' ||
+ this.$route.path === '/console/kvm'
) {
return this.kvmNavigationItems;
} else {
@@ -159,6 +160,7 @@ svg {
align-items: center;
padding-left: $spacer * 4;
outline: none;
+ box-sizing: border-box;
height: 68px;
border-top: 1px solid rgba(26, 62, 91, 0.2);
&:not(.nav-link--current) {
@@ -205,12 +207,6 @@ svg {
border-top: 1px solid rgba(26, 62, 91, 0.2);
font-weight: 600;
line-height: 20px;
- &.collapsed {
- .icon-expand {
- transform: rotate(180deg);
- transition: 0.3s linear;
- }
- }
&.not-collapsed {
font-weight: 600;
line-height: 20px;
@@ -218,9 +214,7 @@ svg {
}
.icon-expand {
- float: right;
- transition: 0.3s linear;
- margin-top: $spacer / 4;
+ margin: 0;
}
.btn-link,
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',
},
],
};
diff --git a/src/components/AppNavigation/KmvNavigationMixin.js b/src/components/AppNavigation/KmvNavigationMixin.js
deleted file mode 100644
index a15b3d38..00000000
--- a/src/components/AppNavigation/KmvNavigationMixin.js
+++ /dev/null
@@ -1,25 +0,0 @@
-const KvmNavigationMixin = {
- data() {
- return {
- navigationItems: [
- {
- id: 'console-settings',
- label: this.$t('appNavigation.ConsoleSettings'),
- route: '/operations/kvm',
- },
- {
- id: 'serial-over-lan',
- label: this.$t('appNavigation.serialOverLan'),
- route: '/operations/serial-over-lan',
- },
- {
- id: 'kvm',
- label: this.$t('appNavigation.kvm'),
- route: '/operations/kvm',
- },
- ],
- };
- },
-};
-
-export default KvmNavigationMixin;