design
This commit is contained in:
parent
b947419805
commit
7fea7f7746
|
@ -97,7 +97,7 @@
|
|||
|
||||
<p-dialog [showHeader]="false" [(visible)]="stopping" [modal]="true" [responsive]="false" [width]="300" [height]="100"
|
||||
[minY]="70" [closeOnEscape]="false" [closable]="false">
|
||||
Discovery is being stopped...
|
||||
<div class="ui-dialog-text-center">Discovery is being stopped...</div>
|
||||
</p-dialog>
|
||||
|
||||
|
||||
|
|
|
@ -153,3 +153,7 @@
|
|||
opacity: .20;
|
||||
filter: Alpha(Opacity=50);
|
||||
}
|
||||
.ui-dialog-text-center{
|
||||
padding-top: 50px;
|
||||
text-align: center;
|
||||
}
|
|
@ -79,22 +79,28 @@
|
|||
|
||||
<p-tabPanel header="Health">
|
||||
|
||||
<div class="ui-g-10 ui-g-offset-2">Count :
|
||||
<div class="ui-g">
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Count </div>
|
||||
<input type="number" pInputText [(ngModel)]="count" min="1" max="50">
|
||||
</div>
|
||||
<div class="ui-g-10 ui-g-offset-2">Interval :
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Interval </div>
|
||||
<input type="number" pInputText [(ngModel)]="interval" min="1" max="10">
|
||||
</div>
|
||||
<div class="ui-g-10 ui-g-offset-2">Deadline :
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Deadline </div>
|
||||
<input type="number" pInputText [(ngModel)]="deadline" min="1" max="10">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<button type="button" pButton label="Ping" (click)="doPing()" class="ui-button-secondary ui-pingbn-position"></button>
|
||||
<br />
|
||||
<p-progressSpinner *ngIf="pingWaiting"></p-progressSpinner>
|
||||
|
||||
<textarea style="width: 100%; height: 250px; background-color: black; color:#fff;" *ngIf="!pingWaiting && pingResult"
|
||||
pInputTextarea autoResize="autoResize" [(ngModel)]="pingResultRaw"></textarea>
|
||||
<div class="ui-ping-result-textarea">
|
||||
<p-progressSpinner *ngIf="pingWaiting"></p-progressSpinner>
|
||||
<textarea *ngIf="!pingWaiting && pingResult" pInputTextarea autoResize="autoResize" [(ngModel)]="pingResultRaw"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</p-tabPanel>
|
||||
</p-tabView>
|
||||
|
|
|
@ -18,11 +18,7 @@
|
|||
.detail-content {
|
||||
min-width: 500px !important;
|
||||
}
|
||||
.ui-pingbn-position{
|
||||
float: right;
|
||||
margin-top: -28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.detail-content-meta-title {
|
||||
padding-left: 10px;
|
||||
margin : 0;
|
||||
|
@ -53,3 +49,38 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.ui-ping-row{
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border-bottom: 1px solid #d8dae2;
|
||||
.title{
|
||||
width: 60px;
|
||||
margin-left: 10px;
|
||||
position: relative;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.ui-pingbn-position{
|
||||
float: right;
|
||||
margin-top: -28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.ui-ping-result-textarea{
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
p-progressSpinner{
|
||||
margin-top: 50px;
|
||||
}
|
||||
textarea{
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
background-color: black;
|
||||
color:#fff;
|
||||
}
|
||||
}
|
|
@ -62,17 +62,22 @@
|
|||
|
||||
<p-tabPanel header="Health" *ngIf="service.port.metaPortType.key === 'TCP'">
|
||||
|
||||
<div class="ui-g-10 ui-g-offset-2">Count :
|
||||
<div class="ui-g">
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Count </div>
|
||||
<input type="number" pInputText [(ngModel)]="count" min="1" max="50">
|
||||
</div>
|
||||
<div class="ui-g-10 ui-g-offset-2">Interval :
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Interval </div>
|
||||
<input type="number" pInputText [(ngModel)]="interval" min="1" max="10">
|
||||
</div>
|
||||
<div class="ui-g-10 ui-g-offset-2">Deadline :
|
||||
<div class="ui-ping-row">
|
||||
<div class="title">Deadline </div>
|
||||
<input type="number" pInputText [(ngModel)]="deadline" min="1" max="10">
|
||||
</div>
|
||||
|
||||
<button type="button" pButton label="Ping" (click)="doPing()" class="ui-button-secondary"></button>
|
||||
</div>
|
||||
<button type="button" pButton label="Ping" (click)="doPing()" class="ui-button-secondary ui-pingbn-position"></button>
|
||||
<div class="ui-ping-result">
|
||||
<p-progressSpinner *ngIf="pingWaiting"></p-progressSpinner>
|
||||
<p-table [value]="pingResult.responses | objectKeys" *ngIf="!pingWaiting && pingResult">
|
||||
<ng-template pTemplate="header">
|
||||
|
@ -93,6 +98,9 @@
|
|||
</tr>
|
||||
</ng-template>
|
||||
</p-table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</p-tabPanel>
|
||||
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
.detail-content {
|
||||
min-width: 500px !important;
|
||||
}
|
||||
.ui-pingbn-position{
|
||||
float: right;
|
||||
margin-top: -28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.detail-content-meta-title > ul{
|
||||
-webkit-margin-before: 0.5em;
|
||||
-webkit-margin-after: 1em;
|
||||
|
@ -52,3 +47,32 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.ui-ping-row{
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border-bottom: 1px solid #d8dae2;
|
||||
.title{
|
||||
width: 60px;
|
||||
margin-left: 10px;
|
||||
position: relative;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.ui-pingbn-position{
|
||||
float: right;
|
||||
margin-top: -28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.ui-ping-result{
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
p-progressSpinner{
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user