summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16Add client sessions pageSukanya Pandey7-0/+411
- 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 Wolmers7-0/+267
Adds ability to enable/disable: - SSH protocol - IPMI protocol Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I2430a46343dd8756ef75fcc3cb068df8d51dd415
2020-12-09Fix loading property importYoshie Muranaka1-4/+2
Imported loading from wrong mixin with commit https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/38917 This will fix warning: "export 'loading' was not found in '@/components/Mixins/LocalTimezoneLabelMixin' Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I10869d605f70bde0b4cdcb970c96357f9a5da87a
2020-12-09Fix loading hangYoshie Muranaka5-5/+16
Import and add loading property to pages that are disabling forms based on LoadingBarMixin loading property. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1669bff2572422327566a3afe023633eb0b729f4
2020-12-07Fix no-lone-template warning on Firmware pageYoshie Muranaka1-3/+1
Fixes https://eslint.vuejs.org/rules/no-lone-template.html Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Icc92d8349f063d756b92f6b2f751f7804267effb
2020-12-03Remove page not found error in LDAPSukanya Pandey1-3/+3
- When adding role groups, the URL was being modified resulting in a 404 response Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I0cf2653e83e85bc3bd6eca4a86bb065f8f8dd179
2020-12-02Fix server LED switch value on errorYoshie Muranaka3-7/+4
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 Montague3-28/+34
- Make name consistent between both Overview and Server LED views Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I36601b603bfeb4e9f2b782641dd2813882466c21
2020-12-02Add alignment on Event Logs pageSurenNeware8-16/+17
- Align table search, count and date components on Event Logs page. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Id681d50f57a6fca86b8d8ba57f8e3420c1a0e56e
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-01Fix pixelated toggle elementDerick Montague1-2/+2
On some screens, the toggle element is pixelated due to the border color. When looking at Bootstrap default styles, they use the same color for both the toggle element's background color and border color. This change resolves the pixelation issue and follows the same pattern as the Bootstrap component library. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I0fb356153f216c6a79ba57e5f38294871c63dc6a
2020-12-01Add back to top button to hardware status pageDixsie Wolmers3-0/+70
- Created global back to top button Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I32022613e1ba62667b46150463c8f407b0b4ff11
2020-12-01Update indicator LED switch using another propertySurenNeware3-14/+12
- 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-12-01Hide LDAP tab on Intel environmentMichalX Szopinski3-1/+371
Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I18c5df56a857733adebec57f0fba68590dcb11f8
2020-12-01Update data option for components using Mixin dataSurenNeware17-69/+130
- Removed all the data options from all the mixins. - Updated component data property relying on data property defined in mixin. - Export data property from mixin file itself. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I4aeffcb333bbaf5b78bcadd711b3169b0b4cb10e
2020-12-01Add label to table checkboxesDixsie Wolmers5-8/+26
- Span with class sr-only added to table checkboxes - Verified passed DAP Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: If6dff636762e6cc70c2f5b345827aa1385a31c97
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-28Fix LDAP accessibility violationsYoshie Muranaka1-203/+201
- Fixed "<fieldset> element does not have a <legend>" by removing a label-for prop - Fixed "Form control has more than one label" by removing a wrapper <b-form-group> that disabled controls while the page was loading - Existing table violations to be addressed separately Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7c90f361cc982b54ddd2b7893ba65b2e5489f5cd
2020-11-25Add datepicker labelDixsie Wolmers2-4/+10
Span with sr-only class added to date picker button to implicity add label. The bootstrap vue datepicker component does not have an accessibility prop for the button inside the datepicker wrapper. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I6fd3e55b865343769d6c0a179ae4c5d8c1038ffb
2020-11-25Fix TableFilter componentYoshie Muranaka1-36/+17
Updates to the event values passed by BootstrapVue checkbox components required changes to the custom component. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic6b1f3c22ff4c056b11a572777fc2f589f121676
2020-11-23Add new style for form file componentSurenNeware5-42/+142
- Now only add file button will be visible. - And selected file name will come down to the button. - Changed form file component from custom type to plain. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ib59135691495c4dddfdbbae0e4228b55cdfda2a8
2020-11-13Add SNMP settings route to app navigationYoshie Muranaka1-1/+1
Adding a router "to" value so the SNMP settings navigation item can be redirected to the 404 page instead of refreshing the app. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6e87e2bf6d3682fa0f380a852a555b389132f86f
2020-11-13Align button iconsDixsie Wolmers24-143/+130
- Fixes button icon and text alignment - App header buttons to be addressed separately - Button documentation will be addressed in separate commit - Aligns form input buttons: datepicker, clear search, and password toggle - Moves title from icon to button for icon only buttons - Aligns validation icon with form input buttons Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie28d7d7dd7303ab6bf1897d1fa569e1580cc2f9d
2020-11-13Add new transition class nameSurenNeware3-3/+7
- Modified transition class name needed for vue3. - Add comment for vue version based classes. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I3578ca7c45e71326e38888412a4f36c266b005a0
2020-11-12Resolve custom-event-name-casing lint warningsSukanya Pandey28-65/+65
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I9eea4eac3b8cacc216fc9ad1011e51622622e75f
2020-11-12Delete all selected event logsSukanya Pandey2-1/+25
-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-06Fix typo in SOL console helper textDerick Montague1-1/+1
- Missing the word the to make the helper text a complete sentence Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I62d41134f9234620e00c857b90bcf256cf26e275
2020-11-06Resolve vue/no-unused-vars lint warningsSukanya Pandey2-2/+2
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I25ca1e451af5e793cd864d484572049e04cf09bc
2020-11-05Fix property order to meet linting rulesDerick Montague1-5/+5
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4436cc0d5dc5da934a4bf1b0679a91ab3854a9c6
2020-11-04Fix Safari default dropdown on Local user management pageYoshie Muranaka1-2/+7
Currently when creating a new user on the Local user management page, the 'Administrator' privilege appears to be selected by default but in Safari causes inline validations errors if attempting to submit the form without manually choosing an option from the dropdown. This commit will add a default "Select an option" item from the dropdown to avoid inconsistent default select behavior in Safari. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I779fd62a516faf7dc88fe4992ec36c0c23a44cce
2020-11-04Resolve vue/no-lone-template lint warning messageSukanya Pandey1-25/+23
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ib2a7bdff5b4075f56f5beda5eb5861645ffa211b
2020-11-03Resolve firmware accessibility violationDerick Montague1-5/+4
The Bootstrap-vue b-form-group component has two different HTML blocks that are generated depending on what props are present on the component. Neiter of these are correct for wrapping a button since it is not semantically correct to wrap one button alone in a fieldset or to associate a <label> element with a button. - Remove the b-form-group comonent that contains the submit button Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I41d05883f4ca133f44188cb03cb2a44917361709
2020-11-03Fix eslint no-prototype-builtins errorsYoshie Muranaka3-4/+6
Made updates to TableToolbar, ModalAddRoleGroup, and ModalUploadCertificate components. https://eslint.org/docs/rules/no-prototype-builtins Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic143cd244b288bc089a9416699d7c3d4349a500c
2020-11-03Update linting packages to use latestDerick Montague112-1584/+1570
- 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-11-02Update local user management role tableYoshie Muranaka1-2/+2
Updated role table to indicate Operator and Readonly roles are able to "Update password for current user account". Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I38638f007dce3a4077e66e99a2e8b0dd3bc52637
2020-10-30Remove Virtual Media from IBM buildYoshie Muranaka3-14/+2
Removes Virtual Media from app navigation, router definition, and unregisters the store module. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I0e3ab2a6cb28b9923efbeb6b2c212b0a09d263a9
2020-10-30Add two file firmware updateYoshie Muranaka9-196/+267
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-30Fix app nav focus state on current linkDerick Montague1-13/+9
- Removed :active psuedo-elements that were overriding default states - Removed use of specific colors in place of theme-color or theme-color-level to improve theming scalability - Moved outline declaration to the primary :focus pseudo-element Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I2af984fd1b29ed21d9278f5ad65dc563c81afc29
2020-10-29Update button focus state for small screenDerick Montague1-8/+10
The focus state uses the box-shadow and two inset values. The first should match the background of the button or link container. The second is the actual color of the outline focus state. On smaller viewports, the menu stacks and is a different color. - Add mixin with optional color param for setting the color of the inset box-shadow that matches the container's background color - Add a focus state for the helper-menu at the smaller breakpoint - Remove the multiple :focus pseudo-selector declarations that remove the outline and set it when we set the initial focus state Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I8eb046f892b395baba41dd62460d2a771bd1f92a
2020-10-27Fix table row alignment and table head borderDixsie Wolmers10-13/+30
- Aligns content in table rows with expand and action buttons - Adds border to table head Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I403575bedc78d71ad05edcae2f59f7df994d3630
2020-10-26Make copy of single file firmware uploadYoshie Muranaka8-16/+845
Make a copy of single file firmware upload component and store in env directory. Update IBM router to use copied single file firmware components. Update IBM store module to use copied single file firmware store. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I046ce6c69a02b90400058866295b84c5435f5a4b
2020-10-23Fixed event logs pagination on small screenSurenNeware2-2/+8
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ifb3963d416a7e2663af24c3c7b1d2c1876af6788
2020-10-23Add style to left sidebar and app headerSurenNeware4-124/+75
- Updated hover, active and focus state for left sidebar menu items. - Add style guide for top header navigation. - Add new white color logo. - Add focus and active state to current menu item. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ib97df4efda216f653ce0415c3f3ae9ae75bcb9cd
2020-10-23Add support for mutual TLSYoshie Muranaka3-8/+24
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-23Resolve Content-Security-Policy errorDerick Montague1-9/+11
In Firefox there was an no unsafe eval error which was caused when users had the vue dev tools extenstion installed and enabled. The other issue was the loading of a resrouce at inline (style-src) which was caused by the SVG icons coming from the Carbon icons vue library. - Updated the Carbon icons to the latest version to resolve the CSP issue. - Remove chainwebpack option only used for prefecth as this is not needed. Originally this was an issue when using code splitting. Changing how we import views for routes and creating a single bundle removes the need for this option. - Update how fill color is applied to StatusIcon component. The Carbon icons update results in adding the fill property to the svg container does not cascade resulting in all icons rendering as their default fill color. GitHub Issue: https://github.com/openbmc/webui-vue/issues/32 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4846f80c993c129d5e88fceda13d53fab51d7c8a
2020-10-21Show error toast notification on unauthorized accessSukanya Pandey7-40/+34
-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-20Update theme customizationDerick Montague1-116/+0
- Move the env.md from /env directory to be displayed in the theming section - Update copy to remove references to downstream changes since changes are made upstream Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I5ed3c62a9534c071b6dbd7f69ed35d457353a628
2020-10-20Fix imports on router indexDixsie Wolmers1-1/+1
UI failed to load when routes were imported before store in router index. Store should be imported before routes for UI to load correctly. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I1ba02cf567babc67c7a5b1c5148d49ae19108faa
2020-10-19Add comments for imports that support dotenvYoshie Muranaka4-1/+17
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 '@' aliasSurenNeware24-37/+37
- Add '@/' instead of '../../../' Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ida1dc26f2bd62f38914a74b729ee8fd143c360ac