-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/284 new ui statics page (#288)
- Loading branch information
Showing
13 changed files
with
100 additions
and
126 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
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
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
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
77 changes: 13 additions & 64 deletions
77
src/app/components/statistics/statistics-details/statistics-details.component.html
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,65 +1,14 @@ | ||
<div | ||
class="card col-xs-12 col-lg-6 col-md-8 col-md-offset-2 col-lg-offset-3" | ||
style="padding: 0" | ||
> | ||
<div class="card-header"> | ||
<div class="card-header-contents"> | ||
<h3 *ngIf="state.header" style="margin: 0"> | ||
{{ state.header }} | ||
</h3> | ||
<h4 *ngIf="state.subHeader" style="margin: 0"> | ||
{{ state.subHeader }} | ||
</h4> | ||
</div> | ||
</div> | ||
<div> | ||
<div *ngIf="state.error"> | ||
<app-error-indicator (retry)="(retry)"> </app-error-indicator> | ||
</div> | ||
<div> | ||
<app-pagination | ||
*ngIf="!state.error && !state.loading" | ||
class="col-md-1-2" | ||
[page]="state.page" | ||
[pageSize]="state.pageSize" | ||
[totalItems]="state.totalItems" | ||
[nextEnabled]="!state.loading" | ||
(pageChanged)="pageChanged($event)" | ||
> | ||
</app-pagination> | ||
</div> | ||
</div> | ||
<div *ngIf="!state.error"> | ||
<div *ngIf="state.loading"> | ||
{{ "LOADING" | translate }} | ||
</div> | ||
<div *ngIf="!state.loading"> | ||
<div *ngFor="let list of splitList(); let listIndex = index" class=""> | ||
<div *ngFor="let model of list; let i = index" class="card-row"> | ||
<app-statistics-value | ||
class="col-md-1-1" | ||
[index]="rowIndex(i, listIndex)" | ||
[label]="model.label" | ||
[value]="model.value" | ||
> | ||
</app-statistics-value> | ||
</div> | ||
</div> | ||
<div *ngIf="state.loading" class="center-block"> | ||
<app-loading-indicator></app-loading-indicator> | ||
</div> | ||
<div> | ||
<app-pagination | ||
*ngIf="!state.error && !state.loading" | ||
class="col-md-1-2" | ||
[page]="state.page" | ||
[pageSize]="state.pageSize" | ||
[totalItems]="state.totalItems" | ||
[nextEnabled]="!state.loading" | ||
(pageChanged)="pageChanged($event)" | ||
> | ||
</app-pagination> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- <div class="modal-header"> | ||
<h4 class="modal-title">Hi there!</h4> | ||
<button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> --> | ||
<div class="modal-body"> | ||
<app-statistics-card [item]="item" [dialog]="true"> | ||
</app-statistics-card> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-link" (click)="activeModal.close('Close click')">Close</button> | ||
</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
22 changes: 7 additions & 15 deletions
22
src/app/components/statistics/statistics-value/statistics-value.component.html
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,15 +1,7 @@ | ||
<div class="row"> | ||
<div class="col-xs-8"> | ||
<span style="margin-right:10px"> | ||
<strong>{{index | number:'2.0-0'}}</strong> | ||
</span> | ||
<span> | ||
<strong> | ||
{{label}} | ||
</strong> | ||
</span> | ||
</div> | ||
<div class="col-xs-4 text-center"> | ||
{{value}} | ||
</div> | ||
</div> | ||
<div class="d-flex flex-row justify-content-between p-2"> | ||
<div class="d-flex flex-row"> | ||
<div class="mr-4 ml-1">{{index}}</div> | ||
<div>{{label}}</div> | ||
</div> | ||
<div class="mr-4">{{value}}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
.row { | ||
padding: 10px 25px; | ||
} | ||
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,9 +1,11 @@ | ||
<div *ngIf="anyStatistics" class="row"> | ||
<div class="col-md-6 col-lg-4" style="margin-top:20px" [class.hidden]="!canShowItem(item)" *ngFor="let item of statisticsState"> | ||
<app-statistics-card *ngIf="canShowItem(item)" [item]="item"> | ||
</app-statistics-card> | ||
<div class="container-fluid"> | ||
<div *ngIf="anyStatistics" class="row"> | ||
<div class="col-md-6 col-lg-4 mb-4" [class.hidden]="!canShowItem(item)" *ngFor="let item of statisticsState"> | ||
<app-statistics-card *ngIf="canShowItem(item)" [item]="item" [sliceNumber]="5"> | ||
</app-statistics-card> | ||
</div> | ||
</div> | ||
<div *ngIf="!anyStatistics"> | ||
<app-loading-indicator></app-loading-indicator> | ||
</div> | ||
</div> | ||
<div *ngIf="!anyStatistics"> | ||
<app-loading-indicator></app-loading-indicator> | ||
</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
7582e8c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: