From 474dd108eb80993505e5816fbdaf490b903492af Mon Sep 17 00:00:00 2001 From: Nabil Ananthamangalath Date: Tue, 4 Mar 2025 11:03:34 +0530 Subject: [PATCH] Initial commit --- src/router/routes.js | 33 +- src/store/modules/GlobalStore.js | 2 +- .../modules/HardwareStatus/ChassisStore.js | 2 +- .../ServiceLoginConsoles/ServiceLogin.vue | 64 ++-- .../ServiceLoginConsoles.vue | 300 +++++++++--------- 5 files changed, 205 insertions(+), 196 deletions(-) diff --git a/src/router/routes.js b/src/router/routes.js index 2bfe168162..f16c783ba6 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -34,6 +34,8 @@ import DeconfigurationRecords from '../views/Logs/DeconfigurationRecords/Deconfi import ServerPowerOperations from '@/views/Operations/ServerPowerOperations'; import Ldap from '../views/SecurityAndAccess/Ldap/Ldap.vue'; import EventLogs from '@/views/Logs/EventLogs'; +import ServiceLoginConsoles from '@/views/Operations/ServiceLoginConsoles/ServiceLoginConsoles.vue'; +import ServiceLogin from '@/views/Operations/ServiceLoginConsoles'; const roles = { administrator: 'Administrator', @@ -62,6 +64,15 @@ export const routes = [ }, component: HostConsoleConsole, }, + // Needs reimplementation once routes is implemented + { + path: '/console/service-login-consoles', + meta: { + requiresAuth: true, + title: i18n.global.t('appPageTitle.serviceLogin'), + }, + component: ServiceLoginConsoles, + }, { path: '/', meta: { @@ -94,6 +105,14 @@ export const routes = [ title: i18n.global.t('appPageTitle.serverPowerOperations'), }, }, + { + path: '/operations/service-login', + name: 'service-login', + component: ServiceLogin, + meta: { + title: i18n.global.t('appPageTitle.serviceLogin'), + }, + }, { path: '/hardware-status/sensors', name: 'sensors', @@ -288,14 +307,14 @@ export const routes = [ title: i18n.global.t('appPageTitle.pageNotFound'), }, }, - { - path: '/security-and-access/ldap', - name: 'ldap', - component: Ldap, - meta: { - title: i18n.global.t('appPageTitle.ldap'), - }, + { + path: '/security-and-access/ldap', + name: 'ldap', + component: Ldap, + meta: { + title: i18n.global.t('appPageTitle.ldap'), }, + }, { path: '/notices', name: 'notices', diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js index 158220e1b9..03370ddf49 100644 --- a/src/store/modules/GlobalStore.js +++ b/src/store/modules/GlobalStore.js @@ -149,7 +149,7 @@ export const GlobalStore = defineStore('global', { }) .catch((error) => console.log(error)); }, - getSystemInfo() { + async getSystemInfo() { api .get('/redfish/v1/Systems/system') .then( diff --git a/src/store/modules/HardwareStatus/ChassisStore.js b/src/store/modules/HardwareStatus/ChassisStore.js index 8e8e7543b2..b6938af464 100644 --- a/src/store/modules/HardwareStatus/ChassisStore.js +++ b/src/store/modules/HardwareStatus/ChassisStore.js @@ -86,7 +86,7 @@ export const ChassisStore = defineStore('chassisStore', { return await api .get('/redfish/v1/Chassis/chassis') .then(({ data: { PowerState = null } }) => { - this.PowerState = PowerState; + this.powerState = PowerState; }) .catch((error) => console.log(error)); }, diff --git a/src/views/Operations/ServiceLoginConsoles/ServiceLogin.vue b/src/views/Operations/ServiceLoginConsoles/ServiceLogin.vue index 10bff9a05f..d493534abf 100644 --- a/src/views/Operations/ServiceLoginConsoles/ServiceLogin.vue +++ b/src/views/Operations/ServiceLoginConsoles/ServiceLogin.vue @@ -1,32 +1,32 @@ - diff --git a/src/views/Operations/ServiceLoginConsoles/ServiceLoginConsoles.vue b/src/views/Operations/ServiceLoginConsoles/ServiceLoginConsoles.vue index 9123cff0d6..9b79b2dcd2 100644 --- a/src/views/Operations/ServiceLoginConsoles/ServiceLoginConsoles.vue +++ b/src/views/Operations/ServiceLoginConsoles/ServiceLoginConsoles.vue @@ -1,12 +1,7 @@ -