2021-05-26 12:06:18 +02:00
|
|
|
<app-network-status></app-network-status>
|
2020-12-28 10:11:25 +01:00
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center mt-5 mb-5">
|
|
|
|
<div class="col-lg-6 col-md-8 col-sm-10">
|
|
|
|
<div class="card">
|
2021-05-26 12:06:18 +02:00
|
|
|
<mat-card-title class="card-header pt-4 pb-4 text-center background-dark">
|
2020-12-28 10:11:25 +01:00
|
|
|
<a routerLink="/">
|
2021-02-03 11:52:31 +01:00
|
|
|
<h1 class="text-white">CICADA</h1>
|
2020-12-28 10:11:25 +01:00
|
|
|
</a>
|
2021-02-03 11:52:31 +01:00
|
|
|
</mat-card-title>
|
|
|
|
<div id="one" style="display: block" class="card-body p-4">
|
2020-12-28 10:11:25 +01:00
|
|
|
|
|
|
|
<div class="text-center w-75 m-auto">
|
2021-02-03 11:52:31 +01:00
|
|
|
<h4 class="text-dark-50 text-center font-weight-bold">Add Private Key</h4>
|
2020-12-28 10:11:25 +01:00
|
|
|
</div>
|
|
|
|
|
2021-02-03 11:52:31 +01:00
|
|
|
<form [formGroup]="keyForm" (ngSubmit)="onSubmit()">
|
2020-12-28 10:11:25 +01:00
|
|
|
|
2021-02-03 11:52:31 +01:00
|
|
|
<mat-form-field appearance="outline" class="full-width">
|
|
|
|
<mat-label>Private Key</mat-label>
|
2021-03-16 11:08:18 +01:00
|
|
|
<textarea matInput style="height: 30rem" formControlName="key" placeholder="Enter your private key..."
|
|
|
|
[errorStateMatcher]="matcher"></textarea>
|
2021-02-03 11:52:31 +01:00
|
|
|
<div *ngIf="submitted && keyFormStub.key.errors" class="invalid-feedback">
|
|
|
|
<mat-error *ngIf="keyFormStub.key.errors.required">Private Key is required.</mat-error>
|
2020-12-28 10:11:25 +01:00
|
|
|
</div>
|
2021-02-03 11:52:31 +01:00
|
|
|
</mat-form-field>
|
2020-12-28 10:11:25 +01:00
|
|
|
|
2021-02-03 11:52:31 +01:00
|
|
|
<button mat-raised-button matRipple color="primary" type="submit" [disabled]="loading">
|
|
|
|
<span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span>
|
|
|
|
Add Key
|
|
|
|
</button>
|
2020-12-28 10:11:25 +01:00
|
|
|
|
2021-02-03 11:52:31 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="two" style="display: none" class="card-body p-4 align-items-center">
|
2020-12-28 10:11:25 +01:00
|
|
|
|
2021-02-03 11:52:31 +01:00
|
|
|
<div class="text-center w-75 m-auto">
|
2021-03-16 11:08:18 +01:00
|
|
|
<h4 id="state" class="text-dark-50 text-center font-weight-bold"></h4>
|
|
|
|
<button mat-raised-button matRipple color="primary" type="submit" (click)="login()"> Login </button>
|
2021-02-03 11:52:31 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 text-center">
|
|
|
|
<p class="text-muted">Change private key? <a (click)="switchWindows()" class="text-muted ml-1"><b>Enter private key</b></a></p>
|
|
|
|
</div> <!-- end col-->
|
|
|
|
</div>
|
|
|
|
<!-- end row -->
|
|
|
|
</div>
|
2020-12-28 10:11:25 +01:00
|
|
|
</div>
|
2021-02-03 11:52:31 +01:00
|
|
|
</div>
|
2020-12-28 10:11:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|