summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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
2020-10-16Add title attribute to header actionsSurenNeware2-7/+16
- Add title attrbute to refresh and avatar icons in app header. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I89629548ecf5141e3c168fe7b5e1a60d1f86620c
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-14Add consistent save button pattern to LDAPDixsie Wolmers1-1/+0
As a pattern, save buttons should not be disabled Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: If1d327db6d688d54e3068fb9807a49d401d57af0
2020-10-14Add custom IBM progress loading barDixsie Wolmers2-3/+34
- Current out of the box bootstrap did not meet IBM style guide - Custom gradient and animation added to loading bar to indicate progress Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I9d12c1709e7e344545a7ecfd211db0507fd40794
2020-10-12Add TFTP input label and helper textSurenNeware2-2/+7
- Add TFTP input label and helper text for firmware page. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I0f1d9f6fda9bf375449da7f8d814953628575775
2020-10-09Fix "Export" button height on hoverMichalX Szopinski1-3/+4
Details: https://github.com/openbmc/webui-vue/issues/38 Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I956938186fa06b9670cb716979572a3b8d6a1b6a
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-10-07Add new style guide to global button styleSurenNeware7-63/+81
- Updated new style guide for Primary, Secondary and Link button variants - Changed box-shadow style from outer to inside on focus and active state - Updated font weight from bold to regular for normal buttons and font weight bold for link button. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I38ca94baa9daec3fd03b830fc7b6d676fcce15b0
2020-10-07Add updated table stylesSukanya Pandey17-1/+34
- Refer below link for styles: https://ibm.invisionapp.com/share/D8O06PPE32B#/screens Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I6dcc3b8d0fb7ef19388b5bfeaf87fce78725b638
2020-10-06Add stacked table style for small screenSurenNeware3-1/+70
- Add style to the stacked table type for small screen only. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I79fb44b20c8436df5734f89e60c98966c9c6a591
2020-10-05Fix hardware status expand button accessiblityDixsie Wolmers9-22/+78
- Aria label added to provide screen readers context for button action - Title added to chevron icon to display label on hover Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ib8c0cef36d7aa61e0b4b0ac7fdabffb7e8a0a17a
2020-10-05Update class to make event logs filter responsiveSurenNeware1-2/+2
- For small viewports updated class to make event logs filter responsive. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I95ff82c0b4765815f70467b5ca748dcc3043d35d
2020-10-05Add changes related to SOL pageSukanya Pandey5-49/+123
-Changes incorporated can be referred through below link: -https://github.com/openbmc/webui-vue/issues/25 Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I39d79259e0470d11c15e596908eefee7a799262a
2020-09-30Update name of sensors export fileSurenNeware2-1/+18
- Now the name of exported sensors file will be combination of date and sensors as prefix. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ie30a1b5e61ad47bc2e78f173945b54ed73a873a5
2020-09-30Remove searchFilter property from Sensors pageYoshie Muranaka1-1/+0
The searchFilter data prop is included in the SearchFilterMixin, so can be removed from the Sensors component. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Iba40439de0aa01458cf95157f25124e0b08669f1
2020-09-29Fix responsiveness of KVMMateusz Gapski4-48/+126
More info: https://github.com/openbmc/webui-vue/issues/24 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I150e7816ea08f462300566276ddbfc117e9f2e0c
2020-09-28Fix duplicate nav itemYoshie Muranaka1-1/+1
There are two "Configuration" nav items in the primary app nav. Changed the second one to "Access control" Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5de41892ec3f675c7cb98b1600d77f0342723d57
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-27Add icon to the toast componentSurenNeware2-7/+29
- Add status icon to the toast component. - Add a method that return title with associated icon. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Iae75e3eec7317af6b25a0ed1bfa4cc72644f7cd7
2020-09-25Make customizations to IBM routerYoshie Muranaka1-1/+13
Removes KVM definition from default router. Before this change, the IBM environment build would remove KVM from the app navigation, but users could still access the page by typing in url directly for the KVM page. With this change, the route should no longer be accessible and will redirect to our 404 page. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I75439bc9443f9cbabbedf80b1142dd97209f5456
2020-09-25Move translation into routes fileYoshie Muranaka3-28/+30
- Added intial application load document title update with created hook Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I73d18ed4a56bd04601fa7382c2d6c2ec504b03f5
2020-09-25Update toast drop-shadow opacityDixsie Wolmers2-1/+3
- Created sass variable for box shadow to be reused for elements requiring box-shadow - Update toast opacity to 0.3 Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Icfc0a58944fd5fe6d2c677e99564910fc2c67f1f
2020-09-25Create separate file for Vue Router routesYoshie Muranaka6-296/+268
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-24Add table search filter clear buttonDixsie Wolmers9-35/+81
- Adds ability to quickly clear a table input search field - Uses similar styling to password toggle icon and datepicker - Button style to be addressed in separate commit to match style guide Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I18f2e01c28c00c7e7b2ad1af924070241caf36a5
2020-09-24Add optional fields to LDAP and CSR formDixsie Wolmers3-40/+53
- Optional fields are indicated on the form field label - Asterisks indicating required were removed Verified with design. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I998485f8928c2c976aa49790c19c9ac247d5ed24
2020-09-22Show total and filtered number of items in a tableSukanya Pandey8-19/+156
-The total number of items and the filtered items will be shown in the EventLogs, Sensors and HardwareStatus table. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I0ee6410bf675038a350a71a02ec076f9e8baf004
2020-09-17Auto fill date and time input fields in DateTimeSetting pageSukanya Pandey1-0/+8
-Under manual date and time input field will be auto populated with defalut date and time. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I62dcfe9ad37193d2ab6dfab1aea14eefb595ff37
2020-09-17Update config to enable custom app navigationYoshie Muranaka2-0/+152
- Update documentation to include navigation customizations - Created an IBM specific application navigation file to demonstrate how to remove KVM navigation item Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I2ea61e9f3a43e6821f274ed90e0eed18afabccb7
2020-09-16Update style of modal titleDixsie Wolmers1-1/+6
New style guide uses h4 style for modal title Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I440ff224b24de788086a33b5a0df7ad464d22096
2020-09-16Add loading image from external serverMateusz Gapski4-15/+253
Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Ie9793b25fdee0f438d64aafe0978d75025800cb8
2020-09-16Update name of file of exported log filesSurenNeware2-2/+16
- The name of exported event log file would be combination of event logs prefix and current date and time. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Iaaf46fed5df1942e9cc2e4157dafa8e3e755ecf8
2020-09-16Remove not needed scroll on sensor pageMateusz Gapski2-1/+7
Details: https://github.com/openbmc/webui-vue/issues/17 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I5c76219db954470dc72231e51ea0f202016d6816
2020-09-15Refactor navigation componentYoshie Muranaka3-169/+180
We are anticipating necessary customizations to the app navigation for different environments. This refactoring will allow for a more programmatic approach. By abstracting the navigation into a JS object we can leverage the Vue mixin to isolate customizations while sharing a standard template and styles. There may be slight changes to data-test-id-* hooks. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I0d095acfee29cfdd4ce1094b860d754f45dc6db9
2020-09-11Change overview page critical event sort orderDerick Montague1-1/+1
- Set the table to sort by id rather than date to resolve confusion if date stamps are identical. In this use case, the id column will not be sorted correctly based on limitations in the framework. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I51ad712d34aea7da2a4152dfb695c16b5f94b453
2020-09-09Hide loader on Reboot BMC pageYoshie Muranaka1-0/+4
Added beforeRouteLeave component guard to make sure loader bar is hidden before navigating to a new page. This will make sure that the loading bar always starts from 0, if the user navigates to another page before the inital load completes. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I16e57203123069160575f4c288bdbc5bad44e669