summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-31Fix vuepress dependency issueDerick Montague2-3300/+2338
Running vuepress locally was failing due to a missing module. This issue was created by a recent upgrade made using npm audit fix to resolve some npm module security issues. The issue was resolved by deleting the package-lock.json and rebuilding on an npm install. I updated vuepress since there was a minor version change. TESTING I was able to run the docs locally and docs are rendering as expected. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: If59c52a7a13b03e910c7c2b9969bef43d5808de8
2020-07-31Change openpower env files to ibmYoshie Muranaka5-2/+3
- Adds VUE_APP_COMPANY_NAME value that is used for logo alt text - Update VUE_APP_ENV_NAME to ibm since this will need to match the env filenames Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie5b9fc3bedacb493939900a1de77a3a8a1f181c5
2020-07-31Remove envConstants.js fileYoshie Muranaka2-63/+0
Removing because current implementations are not using this file but directly referencing process.env.VUE_APP_* value instead. Also removing reference to this file in the env documentation along with the conditional template rendering section. The conditional template pattern is something that should be avoided and currently researching ways to dynamically generate navigation items so we can avoid this pattern. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Icbb92c423dac2b9b353c3701c330c3b9bfb00d7a
2020-07-30Delete _helpers.scss partialYoshie Muranaka1-3/+0
SFCs no longer require this _helpers partial since they are included by sass loader. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ib6400085f05a195d0140691c69323dbb82e00fc3
2020-07-30Delete helpers import on DateTimeSettings SFCYoshie Muranaka1-2/+0
Importing helper Sass files is no longer necessary in SFCs because it is included by the sass loader. It could potentially also cause issues with theming if it is included because SFC styles would override the env partial. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie865c63bdf9a10480242177b4dabe0895edc79f1
2020-07-30Add test hooks to profile settings pageSukanya Pandey1-1/+9
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I99d6fbb97de18ca74f520f3ab2ea2fc7374fa5e6
2020-07-30README: Update to stronger recommend webui-vueGunnar Mills1-5/+3
webui-vue is nearing feature parity. Update the list of outstanding features and no longer recommend phosphor-webui. Change-Id: I0d1f0de74626c22db4924ca2a75e8dbd3aed9423 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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-29Disable elements on page during loadingMateusz Gapski5-498/+519
Pages: Network settings, Date and time, LDAP, Manage power usage More details: https://github.com/openbmc/webui-vue/issues/15 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I02c5aaff180a4ce445b7135403a169a8db3704da
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-28Fix login layout logo alt text valueYoshie Muranaka1-1/+1
Update Login page logo alt text to use VUE_APP_COMPANY_NAME. VUE_APP_COMPANY_NAME is already being used for the logo in the application header. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I4ab901a705052cd9e7abac4e8db52532c1d18ef5
2020-07-28Add the possibility to disable subscribe socketMateusz Gapski2-0/+8
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 test hooks to server LED pageSurenNeware1-0/+1
-Added test id to switch component. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I86f7f6d24f2ec70623d9c537755f5760052046cd
2020-07-28Add documentation for env themingYoshie Muranaka1-8/+29
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I55d3ad755cb897918bb57059334e952ce7829c53
2020-07-28Update Interface colorsDixsie Wolmers2-3/+2
Components affected by style guide gray pallete changes were updated from gray200 to gray100. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ib5b2cca55f2c7d1d6be49e8e64a10db6ef5e4524
2020-07-28Update form fields to match style guideDixsie Wolmers3-21/+63
Updates inputs, select, form field background color, validation text size, and field focus state. New styles have a darker form field background color. Form fields on dark backgrounds will remain white. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ifa14a57f764335b196b129e6614d7a1f1c27d7ad
2020-07-28Add timezone to profile settings pageSukanya Pandey6-35/+134
- 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-27Add code to refactor the server LED componentSurenNeware1-10/+20
-Resolved issue with toast notification appearing on page load. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I03e76951bf9e4f92eb6a6a6fcffa09ef1be2f811
2020-07-27Change file input languageMateusz Gapski2-1/+8
If my browser has Polish language then file input has Polish language too. However I would expect English language like whole app. More details: https://github.com/openbmc/webui-vue/issues/20 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I20119fdd29686e1a4e6bed9ddd78a0e559afc694
2020-07-27Add extra margin to bottom of navigationYoshie Muranaka1-1/+1
Adding extra spacing between the last navigation item and the edge of the browser screen. The extra space makes the last item easier to view and click, on shorter screens or when all menu items are expanded. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1776c8aa419480c568533baa92e60cc7d8a68bb0
2020-07-27Add application header test hooksDerick Montague1-8/+29
We are not able to easily pass the data attribute to the markup created by some of the Bootstrap-vue components. In these cases we are adding the data attribute to the parent container. Those elements will use the word container in the data attribute value. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I5f1cb43aaed9233415e9b7b9a7f71580f27f921d
2020-07-27Add ability to customize theme stylesYoshie Muranaka27-39/+90
Showcases how different themes/styles can be supported using .env variables. If an environemnt name is specified during the build process, an overrides file will be pulled in to allow modifications to color and font definitions. This commit includes possible style modifications with the openpower env name as an example. To see the openpower changes, add the variable definition VUE_APP_NAME="openpower" to your .env.development.local file or build using 'npm run build -- --mode openpower' - Moves helper imports into vue config to allow for specific import order - Removed helper imports in SFCs Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Iaf7a59c24fda06a7b74e23f2f042fb3300cb2056
2020-07-24Use proper casing for data-test-id valuesDerick Montague1-9/+9
- Used hyphenated words instead of camelCase to represent multiple words Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I66a18adb3b00f642861201b353f9c0051cea4bb7
2020-07-24Change name of menu elementsMateusz Gapski1-2/+2
Convention is lower case for second word. 'SSL certifcates' and 'Access control' name was fixed Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I967e4e29af0be23dd65e2058c205d38859d8b91a
2020-07-24Hide status icon if severity is emptyMateusz Gapski1-1/+1
Status icon was hidden if severity is empty on events log page More details: https://github.com/openbmc/webui-vue/issues/16 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I905b30dfbb71bed8a0874e9fb38ff40c301477e9
2020-07-24Add test hooks to LDAP pageSurenNeware1-1/+13
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I50a7e84b27a1fd1c1211d708213c48537750d580
2020-07-24Add test hooks to SSL certificate pageSurenNeware2-1/+19
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ieb04df80fedd98ed83297916f99d355cb241041f
2020-07-24Add test hooks to primary navigationDerick Montague1-21/+82
The button elements will be labeled using the word button. The data attribute for the anchor elements will be added to the parent container and will use the word container in the data attribute value. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I7967b3ac659b1363a07b7686b874cf044a1a48ad
2020-07-24Add table responsive layout and fix search icon visibilitySurenNeware15-25/+35
-Add responsive layout for all the tables. -Fix search icon visibility in search component. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ibb4f77cf322aeb3699b13ab6cbbdb6cc38efbdc4
2020-07-23Update global typographyDixsie Wolmers6-11/+47
Updated the following body, label, and heading styles to match new style guide: - Font sizes - Font weight - Line height - Color Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I014c968f6542b697fec8c3b9af781e64ac10794d
2020-07-23Overlapping search box and toolbar with selected rowsMateusz Gapski1-0/+1
More details: https://github.com/openbmc/webui-vue/issues/19 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I6c84f979baa1d381c8ae62781a2607d3de63169a
2020-07-23Resolve npm package vulnerabilitiesDerick Montague2-469/+172
- Ran npm audit fix and resolved all high priority security vulnerabilities. - One low risk vulnerability remains. This is a yargs package that may require updating other packages. - Lodash required an update since it was a high servirity issue that was exposed in the application's functionality beyond the build script and tools Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: If67fe5939c6ab69767bdc046168985078a19aa30
2020-07-23Add the updated icons for critical and exportSukanya Pandey2-3/+4
-the critical icon in the header and tables. -the export icon in the event log page. Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I5b3beedb8339ba6e6bbd34b43ea7698fc44f9e42
2020-07-23Fix browser warning of non-unique id on Hardware pageYoshie Muranaka1-3/+4
Adds a unique id to the global search component. The search component has an id attribute. When it is reused on the same page, like Hardware status, the id is no longer unique within the document. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1226aa9da69b90b9a7da9ed3d053fde020babcc0
2020-07-22Add test hooks to server power operationsSukanya Pandey1-3/+19
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ie5d9ffe1bf6ce7850824344cf5c413666fb2071b
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-22Intel environmentMateusz Gapski8-6/+131
add environment for Intel add logo as a placeholder Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Iad1ef66ef73e7f9e0857122cc29729543cbf6682
2020-07-22KVM consoleMateusz Gapski8-2/+170
- The kvm console with using novnc library Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: Icfb7643595d8c17231ca3671753d6de971525bd3
2020-07-22Add check if password change required at LoginYoshie Muranaka5-13/+44
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-22Add slot for an optional action in Alert componentYoshie Muranaka1-1/+4
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia2891eaf6e22c367d3080a9a3cb2eff0a27563bf
2020-07-21Add test hooks to date time settingsSukanya Pandey1-1/+12
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ia2caddb61fa42024812cf15b9834ef6cff478193
2020-07-21Add test hooks to local user managementDixsie Wolmers3-8/+60
Adds test hooks to to all interactive elements: inputs, checkboxes, radio, selects, buttons Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I7f3f6fbe968aeb23acf5a2ace7dbb3d4ed2aae77
2020-07-21Fix validation on date and time settings pageDixsie Wolmers1-1/+1
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Id1770eee060acbf9672439201f089c873cfe9cc9
2020-07-21Update LoadingBar componentDixsie Wolmers1-0/+2
Adds "striped" and "animated" prop to loading component to improve user experience when saving or loading on a page. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie1c3c253172486a5915cdc79952271bad846cfde
2020-07-21Update use of Sass variables for better themingYoshie Muranaka18-61/+63
Use Bootstrap color functions for theme-colors and grays instead of directly referencing Sass variable to allow more flexible theming. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id08b77ff6df3bdf99400dcdfe964853706f1070f
2020-07-21Add ChangePassword componentYoshie Muranaka4-0/+135
Add non-functional Change password page and router definition. The page has a form and some frontend validations but backend functionality and api requests are not tied in yet. Page can be viewed by manually navigating to /change-password. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: If5e6c6a5120b86fc457d8cab4c82333c33ef745f
2020-07-21Resolve import stack order error in build processDerick Montague3-3/+3
The import order for global components are throwing warnings during the build process. The build warnings suggested issues creating the correct order of the CSS chunk groups. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I5979a8070d8003f6192b87ca1c2a2d136146cd4e
2020-07-20Bug fix: Add timeout when setting Manual date & timeDixsie Wolmers2-4/+24
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-20Clear password fields when changed successfullySukanya Pandey1-1/+5
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Iaf3e420bd48597c34c1588855ed69dcb1dbf7523
2020-07-20Add test hooks to manage power usageSukanya Pandey1-1/+7
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ifbbb7b9c23e2be28dec61471db090462272b1ffe