summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-10-01Updated Power restore policy URINikhil Ashoka1-19/+28
- Previously, we used to get the values for power restore policy page from“JsonSchemas/ComputerSystem/ComputerSystem.json”. Now we have removed the hardcoded API call and are fetching the values from the JsonSchemas/ComputerSystem’s URI because we would have versioned ComputerSystem.json in the redfish response. Change-Id: I1a25cbbb3dfc536485a6f71a359ae32c6eadf5f7 Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com>
2024-09-27Fix event entry downloadSean Zhang1-1/+5
Event entry should be downloaded with specific http header of "Accept: application/octet-stream" or "*/*", but the default http header is set to "Accept: application/json", so need to specify the header for event downloading. Refer: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/40136 Tested: Event entry data can be downloaded with the fix. Change-Id: Ia45123340da79a54fc4229470e6822206b8df808 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-09-24Updated Dumps card in overview pageNikhil Ashoka2-4/+1
- The Dumps count in the overview page is not displaying the count of all
the entries. Updated to display count of all entries. - The registration of Dumps store is in multiple locations, store -> index.js and env -> store -> ibm.js. Causing error in IBM machines because of duplicate
 registration. Removed from env folder. Change-Id: Idc57a85db090d1b1d3211c01e658b181a7fc1177 Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com>
2024-09-13Add default Target to MultipartHttpPushjason westover1-1/+7
When no targets are provided, webui will now default to the BMC: i.e. "/redfish/v1/Managers/bmc" The current version of bmcweb requires the Targets parameter. bmcweb will be updated for multipart to match the behavior of simpleupdate: if Targets is empty or missing, default to the BMC. Also, the fwupdate page will be updated soon to allow the selection of Targets from the FirmwareInventory list. This should be a temp webui fix until we are comfortable with the upcoming changes to bmcweb. Change-Id: I630dcb40068b98aad8e1d276d17fe9af4793e788 Signed-off-by: jason westover <jwestover@nvidia.com>
2024-09-10Add support for MultipartHttpPushUri in fw pushLeo Xu2-2/+33
According to the Redfish Firmware Update Whitepaper [1] due to the vendor-specific details of this operation, HttpPushUri has been deprecated in favor of multipartHTTP push updates. Availability of update methods is determined from the UpdateService response. If MultipartHttpPushUri is found it will be preferred over HttpPushUri Tested: -Firmware update by performed via MultipartHttpPushUri [1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP2062_1.0.1.pdf Change-Id: I184a889514d5f9f9598f35b2281404335bc0bc82 Signed-off-by: Leo Xu <yongquanx@nvidia.com>
2024-08-30OWNERS: Remove RenukaGunnar Mills1-4/+0
Renuka is no longer working on the project. Renuka thank you for all your work! Change-Id: If5cf2f65cc166c5ebc8ca80f1ceb6944b3cdf966 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2024-08-29OWNERS: Add Jasonjason westover1-0/+4
Change-Id: Ic4de518f6b9016b90c3deaaa7d303dc97c6af208 Signed-off-by: jason westover <jwestover@nvidia.com>
2024-08-27Add status state info to inventory tablesFarah Rasheed2-0/+80
Add status state information to the inventory tables for fans and power supplies. Also updates sortCompare to be able to sort by the state. Change-Id: Ic830dd0867daee0bf6052a5d1cff5592b98fc009 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-08-27Use auth token when not communicating with bmcwebPaul Fertser2-2/+19
Redfish backends other than OpenBMC bmcweb expect clients to authenticate using X-Auth-Token HTTP header as that's the only standard authentication method for Redfish sessions. This code falls back to using the token in case Session creation didn't result in obtaining an XSRF cookie (as should normally happen with bmcweb). Limitations: all WebSocket-based functionality can not work (JS-based NBD Virtual Media, IP KVM, SOL), page reload drops the session and requires to log in again. Tested: logging in, observing Overview and successfully logging out of an AMI MegaRAC BMC. Logging in and navigating around a bmcweb-running system which doesn't have the code to provide cookies for Session POST request (everything works as usual sans WS-based features). Change-Id: I81dc881193440d8d252dcd283b99915bd08c0c5e Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-08-14Add a confirmation modal for disabling usersFarah Rasheed3-10/+37
Add a confirmation modal in the user management table when users are disabled. Change-Id: I06bb1c96abdc7fa895aec2fe2025e9039577ae1d Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-08-12Handle expired passwords Redfish standard wayPaul Fertser3-9/+21
A password can expire at any moment during session lifetime and bmcweb starts returning 403 Forbidden errors to the requests made after that. The response contains clear indication of the condition in the standard `@Message.ExtendedInfo` attribute which is an array of Message objects. Previously the code was trying to detect this condition by querying AccountService after logging in but this approach doesn't work when password expires mid-session. Also it was limited to BMC-managed accounts and used hardcoded account URIs in violation of Redfish spec. This patch adds to the interceptor of 403 error so that the user is automatically redirected to the password change page as soon as the condition is detected. The same message is also present in the session creation POST response 201 if the password expired before the log in attempt, in this case the session is created as usual but the user is automatically redirected to password change page before any further requests are made. Tested: logging in, navigating, logging out with non-expired password. Logging in, navigating, then running `passwd -e <accountname>` via ssh leads to functional password change page on the next request and then navigating proceeds normally, and logging out too. If password is expired before logging in the user gets redirected to the password change page automatically after logging in. Fixes: https://github.com/openbmc/webui-vue/issues/118 Change-Id: I03f5ee2526a4bb1d35d3bbea1142fea077d6bfed Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-07-26Fix single event entry downloadSean Zhang3-5/+32
For event entry download, the href not work since the event entry download only work with header of "Accept: application/octet-stream" or the default "*/*", change to click function to make it work. Refer: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/40136 Change-Id: I11051e913bfd71ef081bed93ffcbeeb1edd8c730 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-07-19Switch to standard Redfish auth endpointPaul Fertser1-12/+22
To be able to talk to a Redfish-compliant implementation webui should switch from old non-standard login and logout endpoints to creating a Session via an appropriate POST request and to DELETE it on logout. This also gives us standard Session object with all the relevant parameters which allows the frontend to know what session it's using, what permissions it has etc. This works against bmcweb which checks for the presence of webui-vue-specific "X-Requested-With" header in the request and provides cookies in addition to the Redfish authentication token in the header. Tested: logging in, logging out, navigating the pages, reloading the page doesn't require logging in (if the session isn't expired), WebSocket connections work. Change-Id: I9d6159850b109a658b8f980637653e7e4576058b Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-07-16Removed TFTP code update optionNikhil Ashoka4-98/+4
- Removed TFTP server firmware update ability in the UI. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Icbeddc7a3faa262f12e85268206ae70850f37905
2024-07-15Wrong store function used in Dump.vueKees Trommel1-1/+1
In Dump.vue the "store" function getBmcDumpEntries is used but this should be getAllDumps. This because Dump.vue wants to get all the dump entries and not just the BCM entries. Also the output format of getBmcDumpEntries is not what Dump.vue expects causing that WebUI does not display any dump entry even when BCM dump entries exists. Note: The "dumps" path does not exist in the default src/router/routes.js but (currently) only in src/env/router.ibm.js Change-Id: I0c211126e1f1d0394455ea7e7ff627814674e1fa Signed-off-by: Kees Trommel <kees.trommel@aimvalley.com>
2024-07-12Fix word-break for group name in edit role groupFarah Rasheed1-1/+1
Apply 'word-break: break-all' style for the group name field in the Edit role group modal to ensure long group names wrap properly within their container. The change improves the readability and layout consistency of the group name display in the modal even if it contains long text. Fixes #111 Change-Id: Ia424fadc1630bbf28726a7064ff9b14764877d2b Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-12Break long file name into multiple linesFarah Rasheed1-0/+1
In the FormFile component, break a long file name into multiple lines using the word-break CSS property. This ensures that long file names are properly displayed within their container without causing overflow issues. Fixes #121 The word-break property will allow the text to wrap onto the next line at any character, maintaining the layout integrity and improving the user interface. Change-Id: Id534dd4e8f7737a60483272f2fdd70deb7a8a002 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-12Update network hostname display styleFarah Rasheed1-1/+3
Add 'word-break: break-all' CSS property to ensure long hostnames wrap properly within their container. This prevents overflow issues that occur with long hostnames without spaces. Fixes #111 The change improves the readability and layout consistency of the network information display in the NetworkGlobalSettings view. Change-Id: I142d18b9507f6ae0a90778e5a338b015507c9d79 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-12Configure Git to handle binary filesFarah Rasheed1-1/+3
Mark `.png` and `.woff` files as binary to prevent line ending conversions. Change-Id: Ic9c46d4d62d29aa529d45f3487dcd62f78554bc3 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-11fix reboot BMC error messageSean Zhang1-2/+1
Remove getLastBmcRebootTime after post BMC reboot action since BMC connection will be lost after reboot. The last BMC reboot time will be got after reboot BMC page loading, and after BMC reboot, user need reload the WEB UI, so there is also no need to send Redfish request to get the last BMC reboot time just after the post the BMC reboot action. Change-Id: Ic5d0cbca23a61610cc387a4046b85e9c20c255ea Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-07-06Add support for IPv6 network settingSean Zhang7-30/+859
Add IPv6 setting in network setting page. - Add IPv6 domain name, DNS servers, NTP servers enable/disable - Add DHCPv6 enable/disable - Add IPv6 default gateway - Add IPv6 addresses - Add IPv6 static addresses - Add IPv6 static addresses adding and deleting Tested: - IPv6 domain name, DNS servers, NTP servers enable/disable function - DHCPv6 enable/disable function - Verified the IPv6 default gateway - IPv6 addresses adding and deleting - Verified the IPv6 addresses in IPv6 table Change-Id: I9eebf6ef5f7de748f79779d8168b8dcfcdda2495 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-25Replace fixed paths with response from APISean Zhang21-116/+201
Currently, the Redfish request used fixed URIs, modify the code to use the BMC and System paths got from response of API calls. For CertificateStore, since it was using the URL for constant variable assignment, changed the constant CERTIFICATE_TYPES to method call. Change-Id: I330b7272083e3e6993aae5705aae170b8e9a4659 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-19remove setApplyTimeImmediate and its usageJagpal Singh Gill1-25/+2
BMCWeb is dropping the support for patch for ApplyOptions, hence remove the setApplyTimeImmediate and its corresponding usage from webui. The related patch from bmcweb is as under - https://gerrit.openbmc.org/c/openbmc/bmcweb/+/72150 Change-Id: I4ef64485103db843e1280bc5b8bd8be63813c368 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
2024-06-14Regenerate package-lock.jsonGunnar Mills1-3744/+6251
rm package-lock.json. Then regenerate package-lock.json using the yocto version of npm, nodejs_20.11.1. [1] devtool modify -n webui-vue <local webui-vue repo> Then did a build. This adds the integrity / resolved. It is based on a connectrpc issue[2]. Prefer this solution over 71971[3] due to this using standard NPM. [1]: https://github.com/openbmc/openbmc/blob/master/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_20.11.1.bb [2]: https://github.com/connectrpc/connect-es/issues/719#issuecomment-1635874082 [3]: https://gerrit.openbmc.org/c/openbmc/webui-vue/+/71971 Tested: A quick sanity test on the GUI works. Change-Id: I13c098a7d07b2b8fdf3d82c2eaad3f35167757ae Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2024-06-13Revert "Add keep-alive option in webpack devServer"Paul Fertser1-3/+0
This reverts commit bf37b317496c80dc9a87f49356efdab8a3b50caa. The current version of the stack doesn't prevent logging in and all operations without overriding "Connection:" header. This overriding is making it impossible to test any WebSocket-based functionality (IP KVM, SOL, Virtual Media). Tested: logging in, navigating the interface, using IP KVM and SOL console. Fixes: https://github.com/openbmc/webui-vue/issues/94 Change-Id: I6174c75e35784ff370f6adf7841c98ae78a26ceb Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-06-11Fixed filter error in dumps pageNikhil Ashoka1-1/+1
- We were calling a method that is not present in @filtered. Fixed this by using the method that is added for this purpose and not used. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I26b4b7d9be00c79c17dba382c0df6a0f02e1cd89
2024-06-10Disable index hashing in development modeEd Tanous1-4/+6
When in Dev server mode, we the webpack dev server isn't capable of understanding wildcards, and that index.html, and index.<hash>.html are the same thing. Disable the index file hashing when in dev mode. Tested: Launched dev server without bmc present. Observed UI could be loaded correctly. Change-Id: Ie2d3bfe4af0117681cec8c92f93d7e278b2071f2 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-06-10CONTRIBUTING.md: Remove link to projectsGunnar Mills1-3/+1
At https://github.com/openbmc/webui-vue/projects/1 GitHub warns me: "Projects (classic) will be sunset on August 23, 2024". I don't see a benefit here GitHub issues can already be filtered. Change-Id: I3debd3ff7e52bcd408ae0917f52a35539a74a9ef Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2024-06-10Fix CONTRIBUTING.md to pass CIGunnar Mills1-2/+2
A new version of prettier is flagging this. Fix the link. Change-Id: Ibb376bed7472b697c59bcaee75e958a969a72e61 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2024-06-07Disabled the privilege dropdown for root useraravinths11-0/+1
By allowing root user privilege changes to Operator or Read Only, after login with root user seeing privilege access issues in some pages and not possible to change administrator again. Allowed root user to change password alone and disabled the privilege changes Change-Id: I2be93060fb30e1f08dc2ea20a30fb998dc83ee0f Signed-off-by: aravinths1 <aravinths@ami.com>
2024-05-24Fixed Scroll top issue between page navigationaravinths11-0/+3
After scrolling down a page and navigating from that page to other pages, the page still shows the bottom of the page and does not display the top of the page. Scroll behavior added in the router, So when navigating from one page to another page the top of the page will always display. Change-Id: I883e8a9f6ae3f98846996883cac0961b4c24c62b Signed-off-by: aravinths1 <aravinths@ami.com>
2024-05-22Make two webpack plugin modificationsEd Tanous1-0/+5
First, remove the preload plugin installed by default. Given that the login page requires the complete javascript package to be loaded before the page can be rendered, and doing the rendering inside of bmcweb before javascript is loaded[1] doesn't seem to be desired by the community, preloading it does us essentially no good. The DOM itself is tiny. This fixes a split second flash that's seen on refresh, where the DOM is loaded, but the javascript has not, so there's no content to render. Second, modify the html loader plugin to produce the hash of the file at output, thus allowing the index file to be cached, and allowing the etag machinery[2] to work. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/35456 [2] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/70644 Tested: After this patch, nearly all resources on refresh return 304, not modified from bmcweb. This significantly reduces the requirements for TLS encryption on the BMC. Change-Id: I7189c6024cacba099705ff6d27e4567bf88f3df4 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-05-21Added toast notification for identify LEDsNikhil Ashoka15-36/+104
- Added success toast notification messages for identify LEDs present at Inventory and LEDs page and Overview. - Import of Toast was not present in Overview's Inventory card and DIMM slot table, fixed it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: If9ad84e66f6f15616cb8af51b1e84d8d06b1afd0
2024-05-09Fixed radio buttons arrangement issueNikhil Ashoka1-0/+1
- The contents in the Power restore policies were not listed in a new line for large or extra large screens, Fixed this by using stacked prop. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I30ec1206a929137fc6635d602944cd80d2c2805f
2024-05-08Removed Challenge password option from Generate CSR panelVedangi Mittal2-22/+2
- Unable to generate Certificate Signing Request (CSR) when filling optional field-Challenge password values on Certificate page. - Hence, removed the Challenge password option from the Generate CSR panel. Change-Id: I862f024de84f34738be5e5cd22701b63c2309152 Signed-off-by: Vedangi Mittal <vedangimittal3004@gmail.com>
2024-05-02Allow to log in when using remote authenticationPaul Fertser2-2/+12
For accounts authenticated remotely (e.g. with LDAP or RADIUS) the API endpoint (handled by bmcweb) can not provide any information about RoleId currently, reporting 404 instead. This confuses the frontend and it doesn't allow to navigate at all. Fix this by lifting all frontend-side restrictions by assuming 'Administrator' role in this case. Since the backend verifies validity of each and every request anyway this doesn't affect security anyhow. Tested: logging in, out and incorrectly using local BMC and remote LDAP users, reloading the page with an active session. In all cases frontend behaved as expected, storing assumed RoleId after getting 404 not found reply and using it for unrestricted routing decisions. Change-Id: If17d06bf0b8a372acd1980f6777227e25d9c78d8 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-26Implement response cachingEd Tanous3-1/+50
Bmcweb supports the If-None-Match and etag headers on responses. While for static files, we can do a direct set, for responses, there's no way to cache values. Add caching support by adding what seems to be a well supported axios package. Note the intent is that the cache expires immediately, such that the bmc will always be polled for results, and return 304 when not modified. Additionally, we currently cache these values in the session context, such that they can be reused on refresh. Tested: webui loads properly. Upon navigating to a logs page, and back, the network console shows the bmc returning nearly all redfish responses with 304, not modified. Change-Id: I2e8067a88a0352226db9f987d1508ab5bf266b92 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-26Allow the favicon to be cachedEd Tanous2-1/+9
The favicon is currently loaded directly by url. This commit changes it to be loaded by file-loader. Note, the default vue webpack file loader doesn't support ico file types (because it seems to expect to use a png here), so add that to the file loader config. This allows bmcweb [1] to provide caching headers for the favicon, and avoid downloading a new favicon on every refresh. Tested: Webui-vue loads, favicon in the network panel loads properly. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/70644 Change-Id: I27e5b459ff8822294ac9273220111e9944e8d1e5 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-26Limit to one chunkEd Tanous1-0/+20
Considering that currently, there's no way to load the login page without both the main json, and the 1 vendor chunk, chunking itself gets us no extra performance, and makes it harder on the bmc, because we now have to respond to two requests instead of one. These requests in practice happen serially, so on high RTT connections, it can be a negative on performance. Simplify by changing the webpack settings to produce one chunk. Tested: Webui loads properly. No errors on console when clicking around. Change-Id: Ida5bb748429137eb2414be1990168affe1d001af Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-25Deduplicate and simplify RoleId handlingPaul Fertser3-13/+9
To improve UX for users of accounts with restricted permissions the frontend determines the current RoleId. Knowing that it can hide menus and inhibit transitions that are not allowed by the backend in any case. This patch unifies the handling by moving processing of the API reply containing RoleId in the single place, right where `authentication/getUserInfo` store gets it. This makes the program flow easier to understand and change if needed without worrying of where another copy of the code might be and how it would need to be amended. No functional change. Tested: logging in and out, navigating the pages, getting an error message when wrong credentials are used, reloading the page with an established session. All while observing Network and Console tabs in Web Developer tools, no unexpected API requests are made and no unexpected errors reported. Confirmed in debugger that the retrieved role gets stored and used for routing restrictions. Change-Id: Ia8782f44cb6bf813954d30b8bf3a620a626ad455 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-24Inline the header svgEd Tanous2-0/+2
Ideally we wouldn't have to pull down this file on every load, and we could just inline it. This commit implements inlining. Note, that this requires a minor modification to the unit test, as the inline header remains when unit tests are run. It's not clear at this time how to make inlining plugin operate on unit tests, but it doesn't seem terribly important. Tested: Loading the webui no longer shows a download of logo-header Change-Id: Iaa5be5b5a84e0ad6e1f430113f929032835c9f1c Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-21Remove /subscribe websocket handlerEd Tanous3-63/+0
Having this code is causing crashes for implementations that don't have dbus-rest enabled in bmcweb, which is deprecated. This commit is intended to start a discussion around this issue, and propose simply removing it. 33a8c5369e0253a93dba2e70647bda1c7697b73b (checked in July 2020) points this crash out, and adds a way to disable the feature. While we could just make VUE_APP_SUBSCRIBE_SOCKET_DISABLED the default, this seems ill advised, given the dbus-rest options deprecated status. Change-Id: I6244f5e2ce895199d5d47cfca9eef36584e8f524 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-18Focus default action in modal windowsPaul Fertser13-0/+21
Users of common WIMP GUIs (as opposed to interfaces primarily meant for touch input) expect dialog boxes to have keyboard focus set on the button for default action so that it can be executed by a single key press. Usually that is chosen to proceed with the operation but in cases where that leads to data loss the UI designers often pre-select Cancel as a precaution. This patch adds suitable property to all invocations of msgBoxConfirm() method of `this.$bvModal` BootstrapVue object. For regular actions the confirmation button is selected and can be activated by Enter or Space bar. For actions deemed dangerous Cancel is focused instead so it takes two key presses (first being Tab to shift the focus) to prooceed. This also improves accessibility following the Web Content Accessibility Guidelines (WCAG) published by W3C. Tested: manually verified that modals are consistently shown with the specified button focused, Enter and Space bar key presses produce the same effect as left pointer button click: when Cancel is focused it just closes the window, when OK is focused it sends the corresponding request to the Redfish endpoint. Change-Id: I66bfd02e48e08dc18994b11bbdd5d6b3ea27047f Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-09Inline SVGEd Tanous4-6/+39
Having the SVG files loaded as a separate package significantly increases the load time of the UI, as it forces the images to be downloaded AFTER the page has loaded. This commit adds the vue-svg-inline-loader, and appropriate config such that the styles can be inlined, and a second trip to the BMC is not required to load the login screen. This improves the "time to glass" of the webui quite a bit. Tested: Webui loads. Network tab shows svg files are not loaded. Webui login page looks correct. First load of the webui renders 500ms faster (1.9s vs 1.4s) Change-Id: Iebcd9ab5df6edad0a1a5c53c028eccd2fda8f63c Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-09Inline class stylesEd Tanous1-13/+11
The characters in the OpenBMC logo use class styles 1 and 6. SVGO for whatever reason chokes on trying to deduplicate these, which causes a template error when inlining the SVG, because style tags still exist. Ideally in the future we would export our SVGs with inline styles, or get SVGO to do it for us, but inline the styles manually for now. Note, that build-on-openbmc-logo.svg has no style tags, and does this by default, even though they are very similar images. Tested: Loaded webui. Logo loads properly. Change-Id: I21c7a24ba49c85559f07fce859d81ed96a40a04f Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-09Pretty print svg logoEd Tanous1-1/+48
This file was likely exported out of Adobe Illistrator, which has some less than desirable traits. Format the file such that it can be modified. Tested: Whitespace only. UI loads image correctly Change-Id: I8689ff0193f54608391a4c81fa72b16ed21a04be Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-02Upgraded Axios versionNikhil Ashoka2-34/+71
Current Axios version was 0.21.4, this version has a CSRF vulnerability. https://github.com/axios/axios/issues/6022. v1.6.0 has fixed this problem, upgrade Axios to that version. Reference: https://github.com/axios/axios/pull/6028 The package-lock.json was generated by pointing bitbake at my local repo and building the image. devtool modify -n webui-vue <local repo> This uses the npm version in yocto 10.4.0. Tested: Loaded this on a p10bmc and GUI looked good. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Ifb0d64c7d4d15d2396ee6d83d609ab8522d9e247 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2024-03-27OWNERS: Add Sivaprabu Ganesan as ReviewerKiran Kumar1-0/+4
Sivaprabu is working on webui-vue, been active in moving in Vue3 and expressed interest in being a Reviewer. Change-Id: I0b9d5404a8b88049aac52edbb76f8c2de920bd3e Signed-off-by: Kiran Kumar <kirankumarb@ami.com>
2024-03-22Update browsers listEd Tanous1-11/+12
Building the webui returns a warning that browserlist is out of date. Do as the command asks, and run. npx browserslist@latest --update-db To update the package-lock.json to the latest. Change-Id: Iffb9553e68be5a14e36e358a3c695e43048ff82e Signed-off-by: Ed Tanous <ed@tanous.net>
2024-03-20Display Power Supply Inventory from PowerSubsystemHuyLe1-6/+18
Switch Power Supply information to use information from the new PowerSubsystem since bmcweb enabled this by default, any other modern Redfish implementation should have this schema enabled. Tested: On Ampere MtJade platform 1. Login to WebUI; Hardware Status; Inventory 2. Inventory information for power supplies is displayed. Change-Id: Iad59d0145b47bcd5eb3cb4ff852e50da976a6005 Signed-off-by: HuyLe <hule@amperecomputing.com>