-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix in error pipe * fix undelegation * fix bug in file export * small fix for op decode preview * voting dashboard * bakers info * bakers list * Voting dashboard * fix for scrollbars * set mainnet * add roll count to bakers-list * code for nxt voting period * added columns for bakers list * bakers-list minor edit * fix USD price * fix for testing vote * add sorting in bakers list * add show all to bakers list * fix sorting for empty names * supermajority info * added Angular Material and sort module * fix issue #23 * hide toggle * fix bug in import service * fix for promotion * fix getBallotVotes * fix toggle * add 2 new public bakers * Athens * change public node * Revert "Athens" This reverts commit 5c54f40. * Revert "Revert "Athens"" This reverts commit 1f0c362. * Revert "change public node" This reverts commit 8b9e21c. * fix manager_pubkey * faster KT import * fix tests for TzrateService * fix BalanceService tests * add test for v2 encryption * update error pipe * add custom gas/storage limits for transfer * update version to 1.3.1 * baker list update
- Loading branch information
Showing
171 changed files
with
4,338 additions
and
322 deletions.
There are no files selected for viewing
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
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
126 changes: 126 additions & 0 deletions
126
src/app/components/bakers-list/bakers-list.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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<!-- | ||
<div class="container" *ngIf="this.walletService.wallet"> | ||
--> | ||
<div class="container"> | ||
<!-- Title --> | ||
<div class="row bottom-separator"> | ||
<div class="col-lg-12"> | ||
<h1 class="page-header"> Bakers List </h1> | ||
</div> | ||
</div> | ||
|
||
<!-- Subheading --> | ||
<div class="row row-subheading"> | ||
<div class="col-lg-12"> | ||
<h4> | ||
<p>Here, you can easily view the public bakers vote and participation</p> | ||
</h4> | ||
</div> | ||
</div> | ||
|
||
<br> | ||
|
||
<button type="button" class="btn btn-outline-light btn-sm btn-balance show-more" aria-label="More" (click)="toggleShowAll()"> | ||
{{ showBtn }} | ||
</button> | ||
|
||
<br> | ||
|
||
<div class="tableSection"> | ||
<div class="table-responsive"> | ||
<table class="table" matSort (matSortChange)="sortData($event)"> | ||
<thead> | ||
<tr> | ||
<th scope="col" mat-sort-header="name"> Name </th> | ||
<th scope="col" mat-sort-header="roll"> Rolls </th> | ||
<th scope="col"> Identity </th> | ||
<th scope="col" *ngIf="this.showColumn.Proposal"> Proposal Period </th> | ||
<th scope="col" *ngIf="this.showColumn.Exploration"> Exploration </th> | ||
<th scope="col" *ngIf="this.showColumn.Testing"> Testing </th> | ||
<th scope="col" *ngIf="this.showColumn.Promotion"> Promotion </th> | ||
<!-- <th scope="col">‰</th> -- | ||
<th scope="col" mat-sort-header="identity"> Identity </th> | ||
<th scope="col" mat-sort-header="proposal" *ngIf="this.showColumn.Proposal"> Proposal Period </th> | ||
<th scope="col" mat-sort-header="exploration" *ngIf="this.showColumn.Exploration"> Exploration </th> | ||
<th scope="col" mat-sort-header="testing" *ngIf="this.showColumn.Testing"> Testing </th> | ||
<th scope="col" mat-sort-header="promotion" *ngIf="this.showColumn.Promotion"> Promotion </th> | ||
--> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<ng-container *ngFor="let baker of bakersList"> | ||
<tr *ngIf="baker.baker_name || showAll"> | ||
<td> | ||
<img *ngIf="baker.image" [src]="baker.image" alt="Baker image" height="21" width="21"> {{ baker.baker_name }} | ||
</td> | ||
<td> {{ baker.rolls }} </td> | ||
<!-- <td> {{ baker.rolls / currentParticipation.total_votes * 1000 | number:'1.0-2' }} ‰ </td> --> | ||
<td> {{ baker.identity }} </td> | ||
<td *ngIf="this.showColumn.Proposal"> {{ baker.vote }} </td> | ||
<td *ngIf="this.showColumn.Exploration"> {{ baker.vote2 }} </td> | ||
<td *ngIf="this.showColumn.Testing"> </td> | ||
<td *ngIf="this.showColumn.Promotion"> {{ baker.vote3 }} </td> | ||
</tr> | ||
</ng-container> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<br> | ||
|
||
<!-- | ||
<input type="checkbox" (change)="toggleShowAll()"> Show all | ||
<div class="tableSection" *ngIf="bakersList"> | ||
<div class="table-responsive"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th scope="col" class="column-sort" (click)="sortName()">Name ▼</th> | ||
<th scope="col" class="column-sort" (click)="sortRolls()">Rolls ▼</th> | ||
<!-- <th scope="col">‰</th> -- | ||
<th scope="col">Identity</th> | ||
<th scope="col" *ngIf="this.showColumn.Proposal">Proposal Period</th> | ||
<th scope="col" *ngIf="this.showColumn.Exploration">Exploration</th> | ||
<th scope="col" *ngIf="this.showColumn.Testing">Testing</th> | ||
<th scope="col" *ngIf="this.showColumn.Promotion">Promotion</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<ng-container *ngFor="let baker of bakersList"> | ||
<tr *ngIf="baker.baker_name || showAll"> | ||
<td> | ||
<img *ngIf="baker.image" [src]="baker.image" alt="Baker image" height="21" width="21"> {{ baker.baker_name }} | ||
</td> | ||
<td> {{ baker.rolls }} </td> | ||
<!-- <td> {{ baker.rolls / currentParticipation.total_votes * 1000 | number:'1.0-2' }} ‰ </td> -- | ||
<td> {{ baker.identity }} </td> | ||
<td *ngIf="this.showColumn.Proposal"> {{ baker.vote }} </td> | ||
<td *ngIf="this.showColumn.Exploration"> {{ baker.vote2 }} </td> | ||
<td *ngIf="this.showColumn.Testing"> </td> | ||
<td *ngIf="this.showColumn.Promotion"> </td> | ||
</tr> | ||
</ng-container> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
--> | ||
</div> | ||
|
||
<!-- Default message - No account created -- | ||
<div class="container" *ngIf="!this.walletService.wallet"> | ||
<div class="row bottom-separator-no-account"> | ||
<div class="col-lg-12"> | ||
<h1 class="page-header-no-account"> Votes for Protocol amendments proposals </h1> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<p> | ||
Connect to your wallet and inform your baker of your preferred choice via tezvote's smart-contract. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
--> |
Oops, something went wrong.