-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #262 from gobitfly/nobids/smallstuff
Refactoring and fixes
- Loading branch information
Showing
9 changed files
with
274 additions
and
240 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
88 changes: 88 additions & 0 deletions
88
src/app/components/dashboard/performance-item.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,88 @@ | ||
<!-- | ||
Copyright (C) 2020 - 2023 Bitfly GmbH | ||
This file is part of Beaconchain Dashboard. | ||
Beaconchain Dashboard is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Beaconchain Dashboard is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Beaconchain Dashboard. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<div class="grid"> | ||
<div class="grid-cell left" (click)="unit.switchCurrencyPipe()"> | ||
<div class="grid"> | ||
<ion-label class="value left" [class]="performanceData.performance1d | valuestyle : 0"> | ||
{{ performanceData.performance1d | mcurrency : currency : targetCurrency }} | ||
</ion-label> | ||
</div> | ||
<div class="grid"> | ||
<ion-label class="income-title"> | ||
<span *ngIf="!todayTooltip">Today</span> | ||
<span *ngIf="todayTooltip" [tooltip]="todayTooltip" trigger="click" hideDelayAfterClick="5000">Today</span> | ||
</ion-label> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-cell" (click)="unit.switchCurrencyPipe()"> | ||
<div> | ||
<ion-label class="value right" [class]="performanceData.performance7d | valuestyle : 0"> | ||
{{ performanceData.performance7d | mcurrency : currency : targetCurrency }} | ||
</ion-label> | ||
</div> | ||
<div> | ||
<ion-label class="income-title right"> | ||
<span *ngIf="!last7DaysTooltip">Last 7d</span> | ||
<span *ngIf="last7DaysTooltip" [tooltip]="last7DaysTooltip" trigger="click" hideDelayAfterClick="5000">Last 7d</span> | ||
</ion-label> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-cell left" (click)="unit.switchCurrencyPipe()"> | ||
<div> | ||
<ion-label class="value left" [class]="performanceData.performance31d | valuestyle : 0"> | ||
{{ performanceData.performance31d | mcurrency : currency : targetCurrency }} | ||
</ion-label> | ||
</div> | ||
<div> | ||
<ion-label class="income-title"> | ||
<span *ngIf="!last31DaysTooltip">Last 31d</span> | ||
<span *ngIf="last31DaysTooltip" [tooltip]="last31DaysTooltip" trigger="click" hideDelayAfterClick="5000">Last 31d</span> | ||
</ion-label> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-cell" (click)="unit.switchCurrencyPipe()"> | ||
<div> | ||
<ion-label class="value right" [class]="performanceData.total | valuestyle : 0"> | ||
{{ performanceData.total | mcurrency : currency : targetCurrency }} | ||
</ion-label> | ||
</div> | ||
<div> | ||
<ion-label class="income-title right"> | ||
<span *ngIf="!totalTooltip">Total</span> | ||
<span *ngIf="totalTooltip" [tooltip]="totalTooltip" trigger="click" hideDelayAfterClick="5000">Total</span> | ||
</ion-label> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-cell left"> | ||
<div> | ||
<ion-label class="value left" [class]="performanceData.apr31d | valuestyle : 0"> {{ performanceData.apr31d }} % </ion-label> | ||
</div> | ||
<div> | ||
<ion-label class="income-title"> | ||
<span *ngIf="!aprTooltip">APR 31d</span> | ||
<span *ngIf="aprTooltip" [tooltip]="aprTooltip" trigger="click" hideDelayAfterClick="5000">APR 31d</span> | ||
</ion-label> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.