-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 'master'
Develop See merge request papers/tezblock/tezblock-frontend!378
- Loading branch information
Showing
92 changed files
with
3,298 additions
and
1,629 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { createAction, props } from '@ngrx/store' | ||
import { NavigationEnd } from '@angular/router' | ||
|
||
const featureName = 'App' | ||
|
||
export const saveLatestRoute = createAction(`[${featureName}] Save Latest Route`, props<{ navigation: NavigationEnd }>()) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { createReducer, on } from '@ngrx/store' | ||
import { NavigationEnd } from '@angular/router' | ||
|
||
import * as actions from './app.actions' | ||
|
||
export interface State { | ||
navigationHistory: NavigationEnd[] | ||
} | ||
|
||
const initialState: State = { | ||
navigationHistory: [] | ||
} | ||
|
||
export const reducer = createReducer( | ||
initialState, | ||
on(actions.saveLatestRoute, (state, { navigation }) => ({ | ||
...state, | ||
navigationHistory: state.navigationHistory.concat(navigation) | ||
})) | ||
) |
11 changes: 7 additions & 4 deletions
11
src/app/components/address-item/address-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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
<div [ngSwitch]="isText" class="media d-flex align-items-center" (click)="inspectDetail()"> | ||
<div [ngSwitch]="isText" class="media d-flex align-items-center"> | ||
<ng-container *ngSwitchCase="true">{{ address }}</ng-container> | ||
<ng-container *ngSwitchDefault> | ||
<identicon class="mr-2" [address]="address" *ngIf="!hideIdenticon" [forceIdenticon]="forceIdenticon"></identicon> | ||
|
||
<div class="media-body"> | ||
<button type="button" class="btn p-0" [ngClass]="clickableButton ? 'btn-link' : ''"> | ||
<div class="media-body" [ngSwitch]="clickableButton"> | ||
<a *ngSwitchCase="false" class="btn p-0" role="button"> | ||
{{ showFull ? address : (address | alias) ? (address | alias) : (address | shortenString) }} | ||
</button> | ||
</a> | ||
<a *ngSwitchDefault [routerLink]="['/account', address]" class="btn btn-link p-0" role="button"> | ||
{{ showFull ? address : (address | alias) ? (address | alias) : (address | shortenString) }} | ||
</a> | ||
</div> | ||
</ng-container> | ||
</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
91 changes: 0 additions & 91 deletions
91
src/app/components/area-chart-item/area-chart-item.component.ts
This file was deleted.
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
Oops, something went wrong.