-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- now by default last 50 lines are showed - added copy to clipboard button - added loading spinner to indicate to users when the logs are loading app.get('/api/logs') is now app.post to allow for additional parameters (such as lines to retrieve)
- Loading branch information
1 parent
3732d13
commit a9f197e
Showing
11 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/public/1-es2015.69c7d04ec9d3867ff817.js → ...d/public/1-es2015.6bc1f7cd24dfb6add92c.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ic/runtime-es2015.8f98e80442a6fc46f61d.js → ...ic/runtime-es2015.1f02852de81190376ba1.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ublic/runtime-es5.8f98e80442a6fc46f61d.js → ...ublic/runtime-es5.1f02852de81190376ba1.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<div style="height: 100%"> | ||
<textarea style="height: 100%" matInput readonly [(ngModel)]="logs" placeholder="Logs will appear here" i18n-placeholder="Logs placeholder"></textarea> | ||
<div *ngIf="logs_loading" style="position: absolute; top: 40%; left: 50%"> | ||
<mat-spinner [diameter]="32"></mat-spinner> | ||
</div> | ||
<textarea style="height: 275px" matInput readonly [(ngModel)]="logs" placeholder="Logs will appear here" i18n-placeholder="Logs placeholder"></textarea> | ||
<div> | ||
<button style="margin-top: 12px;" [cdkCopyToClipboard]="logs" (click)="copiedLogsToClipboard()" mat-flat-button color="primary"><ng-container i18n="Copy to clipboard button text">Copy to clipboard</ng-container></button> | ||
<div style="float: right"> | ||
<ng-container i18n="Label for lines select in logger view">Lines:</ng-container> | ||
<mat-form-field style="width: 75px;"> | ||
<mat-select (selectionChange)="getLogs()" [(ngModel)]="requested_lines"> | ||
<mat-option [value]="10">10</mat-option> | ||
<mat-option [value]="25">25</mat-option> | ||
<mat-option [value]="50">50</mat-option> | ||
<mat-option [value]="100">100</mat-option> | ||
<mat-option [value]="0">All</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters