summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-06-24Responsive Site HeaderSurenNeware2-9/+50
- Changed Header shortcut menu Icon position - Fixed Media devices responsive layout Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I817d8f11d9fb720bb9e37f4a136cb19305144228
2020-06-18Update TableDataFormatter filenameYoshie Muranaka7-14/+14
Changed TableDataFormatter to TableDataFormatterMixin to be consistent with other Mixin files. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Iae6528deda3099cf730150164739ee2fb64bbfe3
2020-06-18Add BMC manager table to hardware status pageYoshie Muranaka6-2/+257
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 Muranaka5-2/+179
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 Muranaka5-2/+162
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 Muranaka6-6/+165
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 Pandey9-56/+264
-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 Muranaka6-6/+217
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 Muranaka5-75/+20
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 Muranaka10-13/+301
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-17Manage power usage loaderSukanya Pandey1-2/+15
-Show the loading bar while making the call to the APIs during both GET and PATCH call. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I96db90a676ded1684218dcddc227ca151f712dc2
2020-06-16Add page LoaderSurenNeware2-5/+15
- 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 Muranaka10-18/+254
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-12Global Search componentSurenNeware3-2/+81
Added global Search component to Sensors page. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I3121cc4e582c782fa7e9937738cefbeddc23610e
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 Muranaka5-36/+280
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-10Add pagination to Event Log tableYoshie Muranaka6-2/+99
Created BvPaginationMixin for shared pagination values and methods. Chose to use exising BoostrapVue components as-is instead of wrapping in a custom component since it would add unnecessary complexity. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I246d761d90db36efeb442b0ee1074b629d32edef
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-08Fix loader on local user management pageYoshie Muranaka1-3/+3
Loader for batch delete should start after confirming the action in the modal. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5c4a4a5c0f98b51757f614423232cd6e08e90902
2020-06-08Update date filter to use international date format ISODixsie Wolmers1-6/+1
ISO 8601 format is the standard for international date formats. - Formats date as: YYYY-MM-DD, example 2020-06-05 https://www.w3.org/QA/Tips/iso-date Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ic0796932b441592e998eaa8818b4f88fe8f1345d
2020-06-05Add Network Settings translationsDixsie Wolmers3-287/+363
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I8d5f6544fb99832bfcda5e4ee63603ce41339d8e
2020-06-05Add network settings pageDixsie Wolmers5-4/+571
- Adds ability to configure newtowrk settings by selected ethernet interface - Default gateway is currently unavailable in redfish, to work around, grabbed gateway from first static ipv4 configuration and assigned to new static ipv4 configurations - Adds ability to add, modify and delete static ipv4 configs - Adds ability to add, modify and delete static dns - Adds ability to edit gateway, hostname and mac address - Form validations include regex for ip, mac address, and hostname - Language translations to be addressed in separate commit - Enabling DHCP and configuring DHCP settings to be addressed in separate commit Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I122034ae0ef3a8c08e5599ee3eca66e8d0d59f67
2020-06-02Update Bootstrap Pill consistencyDixsie Wolmers1-1/+3
Pills in multiple select component and table filter are set to both have a line-height of 1.5 Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I90685534e995211d7bdf5feb16698957a29ccc91
2020-06-02Add link to app header status iconsDixsie Wolmers1-2/+2
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Id7a303c415778351089786e894c42770e1810d01
2020-06-02Add router leave hook to Event logs pageYoshie Muranaka1-0/+6
Hide loader if the user navigates to another page before request is fulfilled. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I2fb393607fd6b5b2f2b72ea1781dfae5cd4c7442
2020-05-23Refactor Sensors filtered dataYoshie Muranaka1-11/+2
Removed setter on computed filteredSensors value. Explicitly setting filteredSensors value is not necessary because activeFilters property change automatically updates the computed value. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7711d3aa0ddf2eea2fc0c613ef7a7882245d3cf1
2020-05-21Add Event log pageYoshie Muranaka6-6/+156
Add basic event log table with the ability to sort by column (ID, Severity, Type, Date) and filter by severity. - Updated existing translation for eventLog to eventLogs Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic233593cc8804d9dcefb2b5740dfac3d52899b02
2020-05-21Remove focus outline from navigation itemsYoshie Muranaka1-0/+5
Removing outline from app navigation to allow for custom Bootstrap box-shadow focus styles. Explicitly set outline property to none to override default user agent styles. Needed to apply to <li> and <a> (nav-item and nav-link). Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Iaf70215c68b91fd03f595487a30e93e024c12a1d
2020-05-21Update EventLogStore request to use RedfishYoshie Muranaka5-117/+60
Changes to WebSocketPlugin to dispatch event log GET request when new event interfaces are received. By re-fetching the Redfish logs the health status icon in the application header will always reflect the visible event logs. The plugin was previously only updating the header status, so it was possible for the header status and event logs to be out of sync. - Changed to use Redfish endpoint for event log GET request /redfish/v1/Systems/system/LogServices/EventLog/Entries - Update AppHeader Health status icon to reflect changes made with Redfish log Severity property Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I73a3a441dcbbb3a29ef9a51f961c062689cb5add
2020-05-21Add manage power usage pageSukanya Pandey6-1/+182
-The page is used to control the power. -Maximum power can be set between 1 to 10000. -The API used to get and set the power limit:/redfish/v1/Chassis/chassis/Power Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I1cab4876e9149d92de75014d7680ac11410ca4fe
2020-05-20Add ServerLED pageSurenNeware7-2/+106
Added ability to turn on/off Indicator LED. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ia59eb0214530906dea840ff18ff22fc913870bb9
2020-05-16Add logout commit for 401 responseYoshie Muranaka2-3/+3
Change the authentication logout from router to api interceptor, so that if a user accidentally navigates to login page by clicking the browser back button, they aren't automatically logged out. Logouts would occur when hitting a 401 response or if the user clicks the logout button from app header. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6290070b63e724b75b3ac2fc39b3c7e814fbfc3e
2020-05-16Add Redfish mapping for quiesced and dignostics modeYoshie Muranaka2-4/+15
- Add yellow warning icon Power status in app header for diagnostics mode Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I8a0f18139da2a29f4bcc4025db3aada158f86026
2020-05-15Add themes documentationDerick Montague1-3/+3
- Renamed all index.md to readme.md to make consuming the documentation from the Github repo easier. VuePress treats index.md and readme.md the same way when building the static pages. - Added theme section overview documentation - Added how to customize documentation - Added custom style imports to support OpenBMC Web UI component documentation to remove Bootstrap framework base styles that conflict with the Vuepress theme - Found occurrences of the word Sass in upper-case and changed to use sentence case. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: If5588f88a3d75761cc47e85a3fb0a582b31d373c
2020-05-14Clear XSRF token when navigating to LoginYoshie Muranaka1-0/+3
This will fix the WebSocket authentication error if redirected to the Login page when a session is expired. The WebSocketPlugin checks to see if the user is logged in before attempting to make a connection. The AuthenticationStore determines if a user is logged in based on whether or not the XSRF-TOKEN cookie exists. Currently the app only removes this token if the user explicitly logs out from the application header. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I9f2b7025ff1de21889267b8f56efd08930eb63d3
2020-05-12Add confirmation modal on local user tableYoshie Muranaka2-13/+35
Adds a delete confirmation modal when user attempting batch delete action from local user table. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I33f77cb55ceedad8a724a9d3f4b37d12c6d6687e
2020-05-12Add translation to Unauthorized pageYoshie Muranaka2-12/+7
- Swapped container <div> for boostrap container Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie3f8539fc4b1e3496d77277319f77a9b51574885
2020-05-12Add page loader on Local user management pageYoshie Muranaka2-13/+30
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ibb681f72bed33a6ca70d8e526668a2ab154111b4
2020-05-12Add motion guidelinesDerick Montague2-4/+5
- Update transition global variables in bootstrap to use Carbon motion easing and duration tokens to maintain consistency throughout the application - Remove import of colors helper file into variables and set import order based on dependency Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ibd3fb9438ff236670e5523250d284b59411a7e53
2020-05-06Add missing translations to user management storeYoshie Muranaka2-21/+59
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie5da5272b2529bda57dc37e0c92d7822cbea11a8
2020-05-06Add XSRF token to websocket connectionYoshie Muranaka2-2/+4
Resolves HTTP authentication failure when attempting to make a websocket connection. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie833f1cd281dd3b7124ac798eb5318b24df0ed8f
2020-05-06Add loading bar to Server power operations pageYoshie Muranaka3-8/+21
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I823279c6865fa1ecff2f0443d735477e03fbf417
2020-05-06Fix accessibility issue on local user pageYoshie Muranaka2-10/+27
Updates template to use form attribute on submit button to allow keyboard users to submit modal forms with the enter key. These updates were made to the local user add/edit modal and the account settings modal. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id217cd68e4576ee099598591df6edbead0f1de8b
2020-05-06Fix generate CSR submitYoshie Muranaka1-1/+1
Add .prevent modifier to prevent native form submit in CSR modal which causes unwanted page refresh. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I3d56ed4797bc3829507873029d849a7a1ad03c99
2020-05-06Add loading bar to SSL certificates pageYoshie Muranaka2-10/+24
- Return new Date() instead of null when calculating expiring time. Expired certificates banner is sometimes visible if the certificates are returned before the bmc time Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I3a2b8ac8a639f464856472013be14878151e7289
2020-05-06Add loading bar to LDAP pageYoshie Muranaka3-11/+29
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I19f34986e05298a42f1739632a5786d03371e47c
2020-05-06Add loading bar to Sensors pageYoshie Muranaka2-38/+53
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6d44e1326b2cf697bf1f20e4e10ccd68e4681c66
2020-05-05Add loading bar to Overview pageYoshie Muranaka10-40/+47
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I47ef77dda6b348c854e875aa458acfa44e287c49
2020-05-05Import sass helpers to LoaderBar componentYoshie Muranaka1-0/+2
Fixes errors when trying to access Sass variables in LoaderBar component. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I9aa4baa2c1725a62bdbad36a5bda342563090b0a
2020-05-05Use Jest as the test frameworkDerick Montague1-0/+1
- Remove mocha, chai, sinon and setup.js - Add snapshot test to ApplicationHeader spec and remove skip nav link test - Add an update snapshot test that can be run if a page changes and the snapshot needs to be updated - Remove tight coupling of application structure and test in ApplicationHeader spec We are changing to Jest for a few reasons: 1. Jest is the testing framework used by most Vue applications and has robust documentation 2. It requires less configuration and works out of the box 3. It includes the ability to perform snapshot testing of rendered UI, which is much easier to maintain than trying to test specific UI elements. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I7bca3613991ebae1fd464fa3a60f079d044ed7b4