summaryrefslogtreecommitdiff
path: root/src/components/_sila/AppNavigation/AppNavigationMixin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/_sila/AppNavigation/AppNavigationMixin.js')
-rw-r--r--src/components/_sila/AppNavigation/AppNavigationMixin.js343
1 files changed, 268 insertions, 75 deletions
diff --git a/src/components/_sila/AppNavigation/AppNavigationMixin.js b/src/components/_sila/AppNavigation/AppNavigationMixin.js
index bbbbb1ee..13125fdf 100644
--- a/src/components/_sila/AppNavigation/AppNavigationMixin.js
+++ b/src/components/_sila/AppNavigation/AppNavigationMixin.js
@@ -1,36 +1,227 @@
-import IconDashboard from '@carbon/icons-vue/es/dashboard/16';
-import IconTextLinkAnalysis from '@carbon/icons-vue/es/text-link--analysis/16';
-import IconDataCheck from '@carbon/icons-vue/es/data--check/16';
-import IconSettingsAdjust from '@carbon/icons-vue/es/settings--adjust/16';
-import IconSettings from '@carbon/icons-vue/es/settings/16';
-import IconSecurity from '@carbon/icons-vue/es/security/16';
-import IconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
-import IconDataBase from '@carbon/icons-vue/es/data--base--alt/16';
+import iconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
-const AppNavigationMixin = {
+export const AppNavigationMixin = {
components: {
- iconOverview: IconDashboard,
- iconLogs: IconTextLinkAnalysis,
- iconHealth: IconDataCheck,
- iconControl: IconSettingsAdjust,
- iconSettings: IconSettings,
- iconSecurityAndAccess: IconSecurity,
- iconExpand: IconChevronUp,
- iconResourceManagement: IconDataBase,
+ IconChevronUp: iconChevronUp,
},
data() {
return {
navigationItems: [
{
- id: 'overview',
- label: this.$t('appNavigation.overview'),
- route: '/',
- icon: 'iconOverview',
+ 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.dynamicInformation'),
+ 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.dynamicInformation'),
+ 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: 'iconLogs',
+ icon: 'iconChevronUp',
children: [
{
id: 'event-logs',
@@ -47,14 +238,9 @@ const AppNavigationMixin = {
{
id: 'hardware-status',
label: this.$t('appNavigation.hardwareStatus'),
- icon: 'iconHealth',
+ icon: 'iconChevronUp',
children: [
{
- id: 'inventory',
- label: this.$t('appNavigation.inventory'),
- route: '/hardware-status/inventory',
- },
- {
id: 'sensors',
label: this.$t('appNavigation.sensors'),
route: '/hardware-status/sensors',
@@ -64,7 +250,7 @@ const AppNavigationMixin = {
{
id: 'operations',
label: this.$t('appNavigation.operations'),
- icon: 'iconControl',
+ icon: 'iconChevronUp',
children: [
{
id: 'factory-reset',
@@ -72,13 +258,8 @@ const AppNavigationMixin = {
route: '/operations/factory-reset',
},
{
- id: 'kvm',
- label: this.$t('appNavigation.kvm'),
- route: '/operations/kvm',
- },
- {
id: 'key-clear',
- label: this.$t('appNavigation.keyClear'),
+ label: this.$t('appPageTitle.keyClear'),
route: '/operations/key-clear',
},
{
@@ -92,11 +273,6 @@ 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',
@@ -108,32 +284,27 @@ const AppNavigationMixin = {
},
],
},
- {
- id: 'settings',
- label: this.$t('appNavigation.settings'),
- icon: 'iconSettings',
- children: [
- {
- id: 'date-time',
- label: this.$t('appNavigation.dateTime'),
- route: '/settings/date-time',
- },
- {
- 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: '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: 'iconSecurityAndAccess',
+ icon: 'iconChevronUp',
children: [
{
id: 'sessions',
@@ -162,21 +333,43 @@ const AppNavigationMixin = {
},
],
},
+ // {
+ // 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: 'resource-management',
- label: this.$t('appNavigation.resourceManagement'),
- icon: 'iconResourceManagement',
- children: [
- {
- id: 'power',
- label: this.$t('appNavigation.power'),
- route: '/resource-management/power',
- },
- ],
+ id: 'serial-over-lan',
+ label: this.$t('appPageTitle.serialOverLan'),
+ route: '/operations/serial-over-lan',
},
],
};
},
};
-
-export default AppNavigationMixin;