Giter VIP home page Giter VIP logo

open-amt-cloud-toolkit / ui-toolkit-angular Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 27.53 MB

The UI Toolkit for Angular contains components for KVM and Serial over LAN (SOL) for integration into Angular based web applications.

Home Page: https://open-amt-cloud-toolkit.github.io/docs

License: Apache License 2.0

JavaScript 4.94% CSS 0.56% HTML 1.37% TypeScript 93.13%
amt angular kvm serial-over-lan ui-toolkit vpro

ui-toolkit-angular's Introduction

Open AMT Cloud Toolkit

Discord

Disclaimer: Production viable releases are tagged and listed under 'Releases'. All other check-ins should be considered 'in-development' and should not be used in production

Open Active Management Technology Cloud Toolkit (Open AMT Cloud Toolkit) offers open-source microservices and libraries to streamline Intel AMT integration, simplifying out-of-band management solutions for Intel vPro Platforms.


For detailed documentation about the Open AMT Cloud Toolkit, see the docs.


Clone

Important! Make sure you clone this repo with the --recursive flag since it uses git submodules.

To clone live, in-development code (main branch):

git clone --recursive https://github.com/open-amt-cloud-toolkit/open-amt-cloud-toolkit.git

Alternatively, for steps to clone and Get Started with one of the tagged releases, see our documentation.


Get Started

There are multiple options to quickly deploy the Open AMT Cloud Toolkit:


Local using Docker

The quickest and easiest option is to set up a local stack using Docker*, view our Documentation Site and click the Getting Started tab for How-To steps and examples.


Cloud using Azure

For more experienced users, deploy the stack on Azure using the 'Deploy to Azure' button below. Note: This requires MPS, RPS, and Sample Web UI images to be built and accessible in a Container Image Registry such as Azure Container Registry (ACR), Docker Hub, or other options.

Deploy to Azure

Optionally, deploy from AzureCLI using the following commands:

az group create --name openamt --location eastus
az deployment group create --resource-group openamt --template-file azureDeploy.json

Additional deployments, such as Kubernetes via Azure (AKS) or AWS (EKS), can be found in our Documentation Site.


Additional Resources

  • For detailed documentation and Getting Started, visit the docs site.

  • Find a bug? Or have ideas for new features? Open a new Issue.

  • Need additional support or want to get the latest news and events about Open AMT? Connect with the team directly through Discord.

    Discord Banner 1

ui-toolkit-angular's People

Contributors

bwendlandt-intel avatar chethanbellechalu-intel avatar craig-spencer-12 avatar dependabot[bot] avatar madhavilosetty-intel avatar mahendra-intel avatar matt-primrose avatar orinem avatar rjbrache avatar rsdmike avatar semantic-release-bot avatar step-security-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ui-toolkit-angular's Issues

Create IDER angular component

As a developer integrating IDER into my existing console, I want to have an angular component that I can add to my angular 16 based UI so that I can use the IDER features similar to how I use the KVM and SOL features of Open AMT Cloud Toolkit

Acceptance Critera

Update to Angular 15

Describe the bug ๐Ÿชฒ
A clear and concise description of what the bug is.

To Reproduce ๐Ÿชœ
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots ๐Ÿ–ผ๏ธ
If applicable, add screenshots to help explain your problem.

Browser Information (please complete the following information): ๐Ÿ–ฅ๏ธ

  • OS: [e.g. Windows 10 build 21H1, Ubuntu 20.04 LTS]
  • Browser and Version: [e.g. IE Edge 95.0.1020.40 ]

Additional context
Add any other context about the problem here.

update the angular app to pass `mode` as queryParams

Describe the bug ๐Ÿชฒ
When launch this sample web app and create a KVM websocket session, there needs to be a mode queryparams(https://github.com/open-amt-cloud-toolkit/mps/blob/main/src/utils/wsRedirect.ts#L36) which needs to be passed to the MPS. If not done, the device's isKVM, SOL, IDER properties will not be updated and stay false inspite of an active KVM connection.

Because of current behavior, this code does not get triggered for us. Hence the output of /api/v1/devices/redirectStatus/{guid} shows as false, false, false in spite of active KVM connection.
https://github.com/open-amt-cloud-toolkit/mps/blob/main/src/server/webserver.ts#L239

To Reproduce ๐Ÿชœ
Steps to reproduce the behavior:

  1. Use sample UI and trigger a successful KVM connection
  2. Check the output of /api/v1/devices/redirectStatus/{guid} and it should show as false, false, false.

Expected behavior
The output should be /api/v1/devices/redirectStatus/{guid} and it should show as true, false, false.

Screenshots ๐Ÿ–ผ๏ธ
If applicable, add screenshots to help explain your problem.

Webrowser KVM session:
image (2)

Browser Information (please complete the following information): ๐Ÿ–ฅ๏ธ

  • OS: Windows 11 Pro
  • Browser and Version: Chrome

Additional context
Add any other context about the problem here.

Space and A-Z not sent over SOL

Describe the bug ๐Ÿชฒ
The space and upper case letter characters are ignored in SOL using the Chrome browser in Windows and macOS at least.

To Reproduce ๐Ÿชœ
These steps show the problem; it was originally observed after Reset to BIOS entering a password that contained upper case characters. The 'space' problem was observed attempting the use the space bar as the "any Key" to a BIOS prompt.

Steps to reproduce the behavior:

  1. Make an SOL connection to a device.
  2. On the device, open putty or terminal of choice and connect to the SOL COM port.
  3. In the SOL window, type "Hello Polly!"
  4. On the device, "elloolly!" appears in the putty/terminal window.

The reverse isn't true, all characters tested so far will be transmitted from the device.

Expected behavior
All characters to be sent to the device.

Browser Information (please complete the following information): ๐Ÿ–ฅ๏ธ

  • OS: Windows 11, macOS
  • Browser and Version: Chrome 105.0.5195.125

Additional context

The problem occurs whether Caps-Lock or Shift is used for A-Z.

Note that pasting A-Z and ' ' into the SOL window does work indicating it's likely a keyboard handling problem... investigation reveals that this is all probably due to the custom key handler in terminal.component.ts:

    this.term.attachCustomKeyEventHandler((e: any) => {
      e.stopPropagation()
      e.preventDefault()
      if (e.ctrlKey === true && e.shiftKey === true && e.keyCode === C) {
        return navigator.clipboard.writeText(this.term.getSelection())
      } else if (e.ctrlKey === true && e.shiftKey === true && e.keyCode === V) {
        return navigator.clipboard.readText().then(text => {
          this.handleKeyPress.emit(text)
        })
      } else if (e.code === SPACE) {
        return this.handleKeyPress.emit(e.key)
      }
    })

and the following code in xterm's _keyDown():

    // HACK: Process A-Z in the keypress event to fix an issue with macOS IMEs where lower case
    // letters cannot be input while caps lock is on.
    if (event.key && !event.ctrlKey && !event.altKey && !event.metaKey && event.key.length === 1) {
      if (event.key.charCodeAt(0) >= 65 && event.key.charCodeAt(0) <= 90) {
        return true;
      }
    }

First, e.code is being compared against SPACE. Either it should be compared against "Space" or e.keyCode compared against SPACE as in the comparisons against C and V. Since keyCode is deprecated, it should probably be the former.

Secondly, the custom key event handle is calling preventDefault(). xterm is relying on getting keypress events for A-Z and preventDefault() appears to be preventing them. At least Chrome developer tools don't show xterm's _keyPress() being called... This can probably be fixed by only calling preventDefault() for Ctrl-Shift-[CV] and 'space'. Hopefully that wouldn't become a problem if xterm changed their 'HACK'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.