summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-07Add documentation for table componentYoshie Muranaka4-0/+113
Adds Table documentation page under Components section with an example of how to create a basic table. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I9033fae662bd46d301edfb02d8a5c108e05017c6
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-06Fix broken links in documentationDerick Montague1-2/+2
There were two broken links on the Getting Started page. These were broke when changed the docs information architecture (IA) and when we removed the guidelines/overview page. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie12bd1b1320db4e8922c4a08d944d74aaf53a2a4
2020-11-06Resolve vue/no-unused-vars lint warningsSukanya Pandey3-3/+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-05Fix icon color in documentationDerick Montague2-6/+12
- Add StatusIcon to ehnaceApp and use the component imported into the the documentation's component/app-imports directory to resolve fill rendering bug in the Alert component - Remove the scoped attribute to make the changes work for alerts in documentation - Update StatusIcon component to match changes to application component Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4090d58f78a1d10d9745ee592424ca0c0c91c610
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 Muranaka4-5/+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 Montague121-2330/+2531
- 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-11-02Add page anatomy quick start to documentationDixsie Wolmers2-0/+82
The page anatomy quick start is intended to give developers a quick reference for building out new pages. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Idfed9e62822283c971e228a8a8a186ae05e485ae
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-27Add coding standards overview pageDerick Montague2-0/+24
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I2dd0fb44a78da62864442fd633654a3e4f887184
2020-10-26Remove blank overview pages in documentationDixsie Wolmers3-4/+0
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I6238767b89eda7e0aaebe73faa2ca3e0a61ebf5e
2020-10-26Add icon only button to documentationDerick Montague2-2/+15
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ia00d714b0d33b849a6e9dde8d25e9e9c78d36002
2020-10-26Make copy of single file firmware uploadYoshie Muranaka9-17/+847
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-26Update compression-webpack-pluginDerick Montague2-31/+174
- Update to latest major release, 6.0.3 - Resolve one of two existing npm security vulnerabilities This plugin is only used for production builds to delete any assets created by the plugin. This will remove any of the non-compressed files from the dist folder. Testing: - Ran build and deployed to a BMC - Verified all views functional and spot tested functionality - Successfully added and deleted a user - Successfully changed date and time settings and date and time display - Successfully power cycled the system Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I86b06f30928fc33d189e24281c516ad39628b764
2020-10-26Resolve npm vulnerabilitiesDerick Montague2-951/+1519
Ran npm outdated to determine what packages had updates and updated all packages with a patch or minor release. This will resolve all but two errors. The remaining errors are in modules used for the development process only. To see these two vulnerabilities run the npm audit command. - Update vue-i18n-loader to use new library as the previous has been migrated Testing: - Ran application locally and tested every page - Ran documentation and tested locally - Ran build script and tested on the BMC - Ran the docs build without any errors Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I7603588bd732167749a403b9f6279a0ad50ccc12
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-23Merge branch 'master' of ↵Derick Montague0-0/+0
ssh://gerrit.openbmc-project.xyz:29418/openbmc/webui-vue Change-Id: I6a5e5685fcf9d4f4b6fc4014ff0e3b1b9f11d3e3
2020-10-23Add action to deploy documentationDerick Montague1-0/+34
This was merged using Gerrit, but due to being part of the .github directory the merge is not showing. After this commit, I will rebase with Gerrit. - Action will run npm install and docs:build and push the static files to the gh-pages branch - Will build documentation and push to the gh-pages branch on every push to master - Tested on a forked repo: https://derick-montague.github.io/webui-vue/ - Workflow that was used is the same as being pushed with this commit: https://github.com/derick-montague/webui-vue/actions/runs/316032970/workflow
2020-10-23Add action to deploy documentationDerick Montague1-0/+34
- Action will run npm install and docs:build and push the static files to the gh-pages branch - Will build documentation and push to the gh-pages branch on every push to master - Tested on a forked repo: https://derick-montague.github.io/webui-vue/ - Workflow that was used is the same as being pushed with this commit: https://github.com/derick-montague/webui-vue/actions/runs/316032970/workflow Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ia5e7a95712aff3c9bac2d18fa7d4473851ebaa60
2020-10-23Resolve Content-Security-Policy errorDerick Montague5-23/+20
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-23Update vuepress to fix hot reloadingDerick Montague2-100/+93
- Version 1.5 had an issue with hot reloading that was resolved in version 1.5.1 - Update vue and vue-template-compiler to vue@2.6.12 to resolve vuepress dependencies Testing: - Ran docs locally (npm run docs:serve) and verified all pages - Ran app locally (npm run serve) and spot tested several pages Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Iec3494e00756040d9ce2f9ae6d1475f37dba0032
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 colors in documentationDerick Montague7-38/+46
- Remove all color-100 tokens since we are using bootstrap's built-in functions for color lightening - Update changed hex values Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I08894fdb64021e38ea8b5c0f47e127d72f3d3ecd
2020-10-20Update theme customizationDerick Montague5-3/+12
- 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-20Add narrator to screen reader listDerick Montague1-2/+3
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I4399271998fca392f457d0d1769f1e9337881f44
2020-10-20Fix documentation render bugDerick Montague5-3/+129
Using the i18n module in the BVToastMixin file caused an issue with VuePress that resulted in the static files not being created and the documentation rendering as a blank page. - Removed the import of the BVToastMixin - Copied BVToastMixin to docs components and removed i18n - Copied the StatusIcon to docs components to so icons will render with the correct fill color in the toast notifications GitHub Issue: https://github.com/openbmc/webui-vue/issues/40 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie479df17d529ad2803c41e7442801e13601a0a02
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 '@' aliasSurenNeware25-38/+38
- 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-09Update ReadmeGunnar Mills1-4/+19
Add webui-vue features not in phosphor-webui. Point at GitHub Issues label:phosphor-webui-feature-parity for feature parity. Add recent mailing list discussion and point at commit moving to webui-vue as an example. Change-Id: Ida9631c7ed8a4485f3bced34894c89eb3cca71b5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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-09Fix contributing readme typoDixsie Wolmers1-1/+1
Correct npm run docs:serve for running vue press docs Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Idd2e54f3f61e06baf46121984e0907989a0f3801
2020-10-08Update Vuex package to v3.5.1Yoshie Muranaka2-4/+4
New hasModule method was added in v3.2.0. This new feature is needed with env specific work being done for the two image firmware update work. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia2a9168f76eb36a586913bd6371533eea0981b1c