summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-06-02Update contributing fileDerick Montague2-53/+110
- Move setup information from readme to contributing file - Add information about participating in user research - Explain the design reviews and help wanted projects - Explain how to ask questions, submit bugs and add new feature requests - Add link to OpenBMC code of conduct - Explain how to submit code for review Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ia2f5a59329e52bcc44a0f48bef8bbf0d97270eba
2020-05-29Add continuous integration code linting scriptDerick Montague1-0/+11
This is a short-term solution for testing code formatting during continuous integration. It relies on the npm ci function to install package dependencies and run the vue-cli-service lint command. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4a6c3f304ad4caa409c4f463dc1a098a96b7467f
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-20Update readme with new feature parity deadline exceptionYoshie Muranaka1-1/+5
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie6250ad99e3ae934a082b97ef30a33791f20b491
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 Montague20-24/+443
- 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-14Move node to >=12.14.1Gunnar Mills1-1/+1
Currently, OpenBMC uses node 12.14.1. https://github.com/openbmc/openbmc/blob/master/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb OpenBMC gets this recipe from meta-openembedded. Moved the node required to ">=12.14.1" to allow this. https://github.com/openbmc/webui-vue/commit/b346406f3aa407869a3c868fb14322fc529673a3 moved to node 12.16.x. Without this change was seeing (when building an image with webui-vue replacing phosphor-webui): | > check-node-version --package && vue-cli-service build | | node: 12.14.1 | Wanted node version 12.16.x (>=12.16.0 <12.17.0) | To install node, see https://nodejs.org/download/release/v12.16.0/ | npm ERR! code ELIFECYCLE | npm ERR! errno 1 | npm ERR! webui-vue@0.1.0 build: `check-node-version --package && vue-cli-service build` | npm ERR! Exit status 1 | npm ERR! | npm ERR! Failed at the webui-vue@0.1.0 build script. Tested: Built and loaded on a Witherspoon. No regressions observed. Change-Id: I20fc81ccebc9a1eb37294e3966dc657836f08064 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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 Montague4-4/+40
- 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 Montague10-1082/+3742
- 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
2020-05-05Update Sass architecture to require helper importsDerick Montague36-58/+96
- Restructuring file strucure to support single file components use of Sass variables when imported into vuepress. - Creating a scalable file structure using Sass best practices Tested by building and testing both the vue web ui and the the documentation application. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Iddcefbf305c8dac978ee24e903df33b609e395e3
2020-05-05Add vuepress dist directory to .gitignoreDerick Montague1-0/+1
Keep the files generated when running the build script from being tracked in the repository. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I3ee9466cf2a7becffd442b81b47e0d073a2a7128
2020-05-05Add export functionality to Sensors pageYoshie Muranaka4-3/+86
- Create TableToolbarExport component to be used as a slot in TableToolbar - Allows selected table items to be exported Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I929347e046af8a5d5188e4c4fd9fc874e067cce5
2020-05-01Create LoadingBar componentYoshie Muranaka4-1/+112
Create loading bar component to indicate when page data is 'loading'. Not every component view will need to show the loading bar (eg Reboot BMC). The LoadingBarMixin can be imported per component as needed. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6735be37bc0a81f5bb2b7c93fb31a0e0ef9b40d1
2020-05-01Add missing router namesYoshie Muranaka1-1/+2
Overview and Sensors routes were missing router names. Removed empty string value name, since it doesn't help identify a router by name. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Idcff2c4104427d50abfc260c90d8087efe6525e3
2020-05-01Update local user button icon positionYoshie Muranaka1-3/+3
Move icon to left of button text to follow consistent patterns defined in style guide. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I56a9f4bb47fb28d6791ad1d9e0b986f3a8b5cbd4
2020-05-01Add LDAP role groups tableYoshie Muranaka5-49/+585
Adds ability to add, edit, and delete RemoteRoleMapping objects from the GUI. Role group table functionality includes sort, single row edit and delete, and batch delete. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id9168c90b78a6f4090ab0ab3e37e74b8cd821d54
2020-05-01Remove hostname D-Bus requestYoshie Muranaka4-26/+1
Hostname is available in NetworkSettingsStore using redfish api. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I26c26281ca8d9003d2daaed13d6bbd4db6ed700c