1.15.0 • Published 7 years ago
@redallen-patternfly/react-console v1.15.0
@patternfly/react-console
This package provides VncConsole, SerialConsole and DesktopViewer React components to be used alongside patternfly-react to access virtual machine or server consoles.
Installing
yarn add @patternfly/react-consoleor
npm install @patternfly/react-console --saveUsage
import { VncConsole, SerialConsole } from '@patternfly/react-console';Styling:
Example with LESS:
@import "~bootstrap/less/variables";
@import "~patternfly/dist/less/variables";
@import "~patternfly-react/dist/less/patternfly-react.less";
@import "~xterm/dist/xterm.css";
@import "~@patternfly/react-console/dist/less/console.less";Building
yarn buildNote the build scripts for this are located in the root package.json under yarn build.
Testing
Testing is done at the root of this repo. To only run the console tests:
yarn test packages/consolePublishing
yarn publish