commit | 51229f8005cb20a12e8d0f057d4565f31d84fa29 | [log] [tgz] |
---|---|---|
author | Konstantin Aladyshev <aladyshev22@gmail.com> | Fri Nov 06 18:32:53 2020 +0300 |
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | Wed Jul 14 17:23:44 2021 +0000 |
tree | 6dd7b53104878289a88104bfec4e0d76e7d41143 | |
parent | 339db9a4c8610c5ecb92993c0bbc2219933bc858 [diff] |
Make SOL layout responsive to the window changes The current version of a SOL window layout have several downsides: -terminal content doesn't resize with the window changes -when opened in a separate window terminal content doesn't use full viewport space -when opened in a separate window terminal viewport takes only a small part of the window Screenshots with the problems descriptions are documented in the github issue: https://github.com/openbmc/phosphor-webui/issues/125 This commit adds responsiveness to the SOL layout. The main SOL tab: -terminal content automatically resizes with the viewport changes The separate SOL window: -XTERM always use full terminal viewport space -terminal viewport width always equals window space width -terminal viewport automatically resizes on window size changes -terminal content automatically resizes with the viewport changes As SOL UI is resposive now, this commit also removes fixed size configurations for the SOL terminal via JSON 'customConsoleDisplaySize' variable. It is worth noting that in reality it wasn't really used anyway. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ia5d929e9a309281366a9d3119ac326ebd73c73f0
phosphor-webui is a Web-based user interface for the OpenBMC firmware stack. The WebUI uses AngularJS. AngularJS goes End of Life June 30, 2021, a possible replacement is the webui-vue repository. Features of this repository include:
nodejs (>= 4.2.6) npm (>= 6.0.1)
Note The default installation of your Linux distro may not come with the required versions above. See the following for more information on updating:
https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-node https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-npm
npm install
Note This must be run from within the phosphor-webui git repository.
npm run-script server
This will start a server instance and begin listening for connections at http://localhost:8080
. This development server provides live reloading on code changes. NOTE: Browsing to https://<BMC>
and accepting the self-signed certificate might be required to prevent your browser from blocking traffic to the BMC.
Enter the BMC Host or BMC IP address, username, and password. The default username and password are root
/0penBmc
.
Note that some OpenBMC implementations use bmcweb for its backend. For security reasons, bmcweb will need to be recompiled and loaded onto the target BMC Host before the above redirect command will work. The option to turn on within bmcweb is BMCWEB_INSECURE_DISABLE_XSS_PREVENTION
. In order to test locally, you will also need to disable CSRF by turning on BMCWEB_INSECURE_DISABLE_CSRF_PREVENTION
.