Angular web app for entering Techblox commands
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
985B

  1. <div class="wrapper">
  2. <mat-card fxFlex="80">
  3. <mat-card-title>Techblox console</mat-card-title>
  4. <mat-card-content fxLayout="column">
  5. <div class="logMessages" #logMessagesContainer>
  6. <pre>{{ logMessages }}</pre>
  7. </div>
  8. <form>
  9. <mat-form-field fxFlex="100">
  10. <input matInput type="text" placeholder="Enter a command..." [formControl]="commandControl"
  11. [matAutocomplete]="commandCompletion" (focus)="commands.length || getCommandList()"
  12. (keyup.arrowUp)="previousCommand()" (keyup.arrowDown)="nextCommand()"/>
  13. </mat-form-field>
  14. <mat-autocomplete #commandCompletion="matAutocomplete">
  15. <mat-option *ngFor="let cmd of displayedCommands" [value]="cmd.command">
  16. {{ cmd.line }}
  17. </mat-option>
  18. </mat-autocomplete>
  19. <button mat-raised-button class="mat-primary" (click)="sendCommand()">Send</button>
  20. </form>
  21. </mat-card-content>
  22. </mat-card>
  23. </div>