summaryrefslogtreecommitdiff
path: root/src/store
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16Show asset name in the app headerSukanya Pandey1-9/+15
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: If5394604d6c91b3604eaadb33178376fe6da672c
2020-12-16Add client sessions pageSukanya Pandey2-0/+82
- This page will show the list of sessions that are currently connected to the BMC. APIs used: - To get all the sessions API used is `/redfish/v1/SessionService/Sessions` - To delete the sessions API used is `/redfish/v1/SessionService/Sessions/<session id>` Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ia81f62cbbea749809b9b7f7e62356cfe2db7fc18
2020-12-16Add security settings pageDixsie Wolmers2-0/+97
Adds ability to enable/disable: - SSH protocol - IPMI protocol Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I2430a46343dd8756ef75fcc3cb068df8d51dd415
2020-12-02Fix server LED switch value on errorYoshie Muranaka1-1/+2
Add error state handling in the ServerLed store to make sure the UI accurately reflects the state if there is an error. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7f3647df9f5a32e241005eb7058a7cda1e0ba36a
2020-12-02Refactor server LED indicator variable namingDerick Montague1-8/+11
- Make name consistent between both Overview and Server LED views Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I36601b603bfeb4e9f2b782641dd2813882466c21
2020-12-01Fix two file switch firmware bugYoshie Muranaka1-3/+3
Fixed spelling errors in FirmwareStore Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I08741ec981f902816c4e4c7063c6e337da9ca9f4
2020-12-01Update indicator LED switch using another propertySurenNeware1-5/+7
- Update indicator LED redfish endpoint based on 'LocationIndicatorActive' property. - Updated both ServerLED and Overview page. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Id47133e4834b658d49911be87d93f7985519a6d2
2020-11-28Add thresholds for Fan sensorsKonstantin Aladyshev1-1/+4
Add lower/upper non-critical/critical tresholds for Fan sensors Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I8588af6e1fb6a3a9f74730de3f3ab0cee0110962
2020-11-12Delete all selected event logsSukanya Pandey1-0/+12
-Earlier all the event logs were deleted ID wise. -Now when all logs are selected then below API will be called to delete all the logs. -API : '/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog'. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ib7026a4fe3c324e6a998be747325f379a944f1c8
2020-11-03Update linting packages to use latestDerick Montague25-365/+368
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
2020-10-30Add two file firmware updateYoshie Muranaka1-37/+105
Adds the ability to upload separate Host and BMC firmware images through the GUI. By default, the two file firmware update page will be shown. Changes to the .env configurations will enable the single file upload page. The IBM env is configured to allow single file firmware update. Two file upload features: - File upload through local workstation or tftp server - Reboot from backup BMC image - Does not have ability to reboot from backup host image - Does not implement checks in GUI for host status, which is the same as what we have in phosphor-webui Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ibf2a2d9ffc3952dd5a5454c723350c61d9f91c3e
2020-10-23Add support for mutual TLSYoshie Muranaka1-7/+20
Adding check for 'IsAuthenticated' cookie in AuthenticationStore and adding a check in created hook for AppHeader component because it is visible on all authenticated pages. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic558c9c45fd3f5874c8c516cb6bc005cba4946e2
2020-10-21Show error toast notification on unauthorized accessSukanya Pandey2-13/+15
-When 403 status code which is an unauthorized access occured -show error toast notification. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I55fa7052073f87f28c3584b68fd4e84247a4237e
2020-10-19Add comments for imports that support dotenvYoshie Muranaka1-0/+4
We have set up exact match resolve aliases to support different dotenv build customizations. Added comments to the imports that should not be changed. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie371b42ec35f876ccb89ef976f7126d5234a1b47
2020-10-19Update relative path imports to use '@' aliasSurenNeware11-14/+14
- Add '@/' instead of '../../../' Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ida1dc26f2bd62f38914a74b729ee8fd143c360ac
2020-10-14Catch the TypeError in sensors pageYong Li1-4/+4
On the sensors page, there is the below error and some sensors are missing: Uncaught (in promise) TypeError: Cannot read property 'LowerCaution' of undefined The root cause is that some sensors do not support all these Thresholds properties, add the checking to catch such errors. Tested: These sensors in redfish/v1/Chassis/$id/Sensors/ can be displayed in sensors web page Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: Ic80048045ee8e293e693811c246723557489fb35
2020-10-09Refactor firmware store to get backup from SoftwareImagesYoshie Muranaka1-32/+29
Eliminates an extra call to find the system backup firmware image. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I82e36c6b8982dc3bfbdfb57c9ee143c1367e7c9e
2020-09-28Fix error on Hardware status pageYoshie Muranaka1-1/+1
Setting default value for processors to an empty array to avoid error "TypeError: Cannot read property 'length' of null" caused when attempting to calculate the total table count on initial load. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I2e3af184f7f7649bed96cd4fd994fb3ee24ff28f
2020-09-25Create separate file for Vue Router routesYoshie Muranaka1-2/+2
Separating routes into its own JS file to allow for easier env customizations. Update store resolve path to make sure right env stores modules are imported in every file. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5c646c81fab54085198b2e179be80c954258f51c
2020-09-16Add loading image from external serverMateusz Gapski1-4/+29
Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Ie9793b25fdee0f438d64aafe0978d75025800cb8
2020-08-28Add VirtualMedia pageMateusz Gapski3-2/+84
More info: https://github.com/openbmc/webui-vue/issues/7 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I68f2074e77301c68c425f1e661988c751224b713
2020-08-28Fix last power operation time bugDixsie Wolmers1-2/+6
- To display updated time in the UI, `getLastPowerOperationTime` must be dispatched after each async power operation Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie3fc38b55e75532fa703a45d5d598d4f80514f1a
2020-08-21Add last reset time to reboot bmc pageDixsie Wolmers1-4/+19
- Timestamp is displayed to inform user of last power operation Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ia4d95bced701b04f1099d020ee062f06d16ae8dc
2020-08-21Add last reset time to server power operations pageDixsie Wolmers1-4/+19
- Timestamp is displayed to inform user of last power operation Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I14c23ff56b3a0cf134c0ad2d831290971d93e293
2020-08-19Code update: Fix TFTPGunnar Mills1-1/+4
For TFTP use /redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate https://github.com/openbmc/docs/blob/master/REDFISH-cheatsheet.md Change-Id: I4deb82b16c5b91e15958a2248604a6f6323e5185 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2020-08-18Add processors to hardware status pageSurenNeware2-1/+64
-Add processors status from given API. -Created seperate table with all available details. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Iae4346cd0555a9a7d8ec35c0f56f8bce6c4ab653
2020-08-13Add Firmware pageYoshie Muranaka1-9/+140
Adds ability to upload a fimware image by local workstation or TFTP. Also adds ability to reboot BMC from the backup image. - Add route definition, component view, and store for Firmware page - Get ActiveSoftwareImage location at /redfish/v1/Managers/bmc - Get backup by checking for an image id that is not the same as the active image /redfish/v1/UpdateService/FirmwareInventory - Switch running firmware image by making PATCH request to /redfish/v1/Managers/bmc Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I04450e5a170d374122908c4c0349ba3b6e93ed2c
2020-07-30Immediate Reboot: Move to ForceRestartGunnar Mills1-5/+2
ResetType ForceRestart was recently added. Use it for immediate reboot. This allows the GUI to make only one call. Change-Id: I2a5f59d651c0e17cb6c3655e0e93250a031f89c2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2020-07-29Fix WebSocket errorYoshie Muranaka1-4/+0
Removing .on() function because it is not a valid method and is causing errors: Uncaught TypeError: ws.on is not a function The onerror event listener is already logging the error. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6ccfa9a3a6beba93668b8c209b59560f4bf7b4bc
2020-07-28Add the possibility to disable subscribe socketMateusz Gapski1-0/+7
Intel does not support subscribe socket yet. I don't want to try to connect with this socket becuase it crashes entire app in development mode. Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I09d66474480dcb37393ecff5d46c4ee0e9052f99
2020-07-28Add timezone to profile settings pageSukanya Pandey1-1/+6
- Users will have two options to select a timezone. - UTC and browser offset timezone are the two options for the application. - date-fns and date-fns-tz is used for date and time manipulations because:- - The package size of library is smaller. - It allows for importing functions to work with the native date object rather than having to create a moment instance that carries a larger payload. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I581803f230f501c0d34d0b53e7c2d89e8466ee60
2020-07-22Health icon shows ok while loadingMateusz Gapski1-5/+8
While web UI is loading it is showing controls as "OK" state instead of undetermined which might be confusing. More details: https://github.com/openbmc/webui-vue/issues/11 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I0dc4aa3f00cee5d67c764c1950b4961e59a0a3cd
2020-07-22Add check if password change required at LoginYoshie Muranaka1-0/+6
After successfully authenticating on the Login page, check /redfish/v1/AccountService/Accounts/${username} endpoint for the PasswordChangeRequired property to see whether or not the password is expired. If the password is expired, then navigate to the Change password page, if the password isn't expired navigate to the Overview page. After successfully changing an expired password, navigate to the Overview page. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I32de5f71bcfcbe4099c2953a31c05ba0ebe670bc
2020-07-20Bug fix: Add timeout when setting Manual date & timeDixsie Wolmers1-4/+21
When time mode is initially set to Manual from NTP, the NTP service is disabled. In this process, the NTP service is stopping but not fully stopped therefore setting date/time will return an error. There are no responses from backend to notify when NTP is fully stopped. To work around, a timeout is set to allow NTP to fully stop. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I8873722a72a955c355114567e56205aff7819931
2020-07-10Add date and time settingsDixsie Wolmers2-0/+70
Adds ablity to change date and time manually, or configure using NTP servers. - If NTP is selected, user is required to enter at least one NTP address - Date and time are ISO formatted Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I0d67c80487fdd815eacc3539ccd702b23618260e
2020-07-06Add Toast Notification to ServerLED pageSurenNeware1-3/+16
- Added Toast notification when Server LED turning On/Off. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I8dda963275f7083ae5c8804831c1bb676d7bbcc4
2020-06-18Add BMC manager table to hardware status pageYoshie Muranaka2-1/+50
Add properties at /redfish/v1/Managers/bmc endpoint in a table with expandable row to view details. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ieb32a9b2a535ddd7d24edcb68761c51eace2e5a8
2020-06-18Add Chassis table to hardware status pageYoshie Muranaka2-1/+58
Add each chassis at /redfish/v1/Chassis endpoint to a table with an expansion row to view property details. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I8d4c64fecac3857e0d4ece9fad81d9035e236c92
2020-06-18Add Fans table to hardware status pageYoshie Muranaka2-1/+38
Add Fan items at /redfish/v1/Chassis/chassis/Thermal endpoint to table with expansion row to view details. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1f69e30748f8dec62647468c4fd2e5b3947716d9
2020-06-18Add DIMM slot table to hardware status pageYoshie Muranaka2-1/+42
Add items at /redfish/v1/Systems/system/Memory endpoint to DIMM slot table. The table is sortable and has a row expansion to view details. The code is currently missing most properties needed to match the design. This table will need to be revisited when all properties are available. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I07cacf3403fe84431cb9fe0e4315069fc7baf27d
2020-06-17Profile settings pageSukanya Pandey2-3/+7
-To set the profile by setting password. -This commit adds a profile page which allows the user to change their password. In the future, the profile page will also contain user settings like language and timezone. The API called to change the user's password is '/redfish/v1/AccountService/Accounts/<userName>' Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ie54a54beff8c85bc9ac5af21c35edc481b34cf44
2020-06-17Add power supplies table to hardware status pageYoshie Muranaka2-0/+54
Adds items at /redfish/v1/Chassis/chassis/Power endpoint in Power supplies table. Table is sortable and has a row expansion to view details. - Table sort mixin to reuse sort method for status values Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ib2953ad06be3fa25e9dbbbed34e37d09154431f5
2020-06-17Refactor Overview pageYoshie Muranaka4-68/+5
Use SystemStore to get Server information values on the overview page. Added missing properties to SystemStore and removed hostFirmware from FirmwareStore. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5923adb0345f0de28f9a66f460e41d15f87f743a
2020-06-17Add Hardware status page and system tableYoshie Muranaka2-1/+42
Adds ability to see system information in table format with a row expansion details view. Modified tables styles to add table borders. Created global mixin for table data formatting: - Show '--' for undefined or empty string values - Map Redfish health status options to status-icon values Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5b45c37997647f5a265c1e84eb53f0b51699ee20
2020-06-16Add page LoaderSurenNeware1-4/+4
- Add page Loader to Server LED page - Tested responsive layout on supported viewport sizes Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I0ca198c8ee1354f66a677746c29c8cb45f361eab
2020-06-13Add date filter on Event logs pageYoshie Muranaka1-3/+7
Created global TableDateFilter component that uses the BootstrapVue Datepicker with a native text input. This will allow users to manually enter a date in ISO format or use the Bootstrap calendar dropdown. Storing language preference from Login to use locale prop on BootstrapVue Datepicker component. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I66de9fb04451572c9a90f90d8522934b6204aed2
2020-06-10Update LocalUserManagementStore to use shared export functionYoshie Muranaka1-17/+2
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia8617d4656d00244eefd09ece1f735fb37aedacc
2020-06-10Add batch actions and row action to Event LogsYoshie Muranaka2-12/+66
Adds ability to export and delete event logs by row or in a table batch action. - Modifications to TableRowAction component to allow single row export functionality Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ica50dd0868ac85cc2d6925a9448858b40da9c529
2020-06-10Fix duplicate navigation errorYoshie Muranaka1-0/+7
Adding a check to the 403 response api iterceptor before routing to the Unauthorized page. The router throws a NavigationDuplicated error when attempting to navigate to the same page. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ib34d4d73a326440f609dd97d0dd677ff96b7b3a6
2020-06-05Add Network Settings translationsDixsie Wolmers1-2/+5
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I8d5f6544fb99832bfcda5e4ee63603ce41339d8e