replaced TransactionsComponent with TransactionListComponent; added TransactionComponent placeholder
This commit is contained in:
parent
a0930bd71b
commit
736b85e9df
@ -7,10 +7,12 @@ import { SplashScreen } from '@ionic-native/splash-screen';
|
|||||||
import { InsightApp } from './app.component';
|
import { InsightApp } from './app.component';
|
||||||
import { PagesModule, BlocksPage, BroadcastTxPage, NodeStatusPage, VerifyMessagePage } from '../pages';
|
import { PagesModule, BlocksPage, BroadcastTxPage, NodeStatusPage, VerifyMessagePage } from '../pages';
|
||||||
import { BlocksService, StorageService } from '../services';
|
import { BlocksService, StorageService } from '../services';
|
||||||
|
import { TransactionComponent } from '../components/transaction/transaction';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
InsightApp
|
InsightApp,
|
||||||
|
TransactionComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicModule } from 'ionic-angular';
|
import { IonicModule } from 'ionic-angular';
|
||||||
import { TransactionsComponent } from './transactions';
|
import { TransactionListComponent } from './transaction-list';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
TransactionsComponent
|
TransactionListComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule
|
IonicModule
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
TransactionsComponent
|
TransactionListComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class TransactionsComponentModule {}
|
export class TransactionListComponentModule {}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
transaction-list {
|
||||||
|
|
||||||
|
}
|
||||||
@ -4,16 +4,16 @@ import { NavController } from 'ionic-angular';
|
|||||||
import { Http } from '@angular/http';
|
import { Http } from '@angular/http';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated class for the TransactionsComponent component.
|
* Generated class for the TransactionListComponent component.
|
||||||
*
|
*
|
||||||
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||||
* for more info on Angular Components.
|
* for more info on Angular Components.
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'transactions',
|
selector: 'transaction-list',
|
||||||
templateUrl: 'transactions.html'
|
templateUrl: 'transaction-list.html'
|
||||||
})
|
})
|
||||||
export class TransactionsComponent {
|
export class TransactionListComponent {
|
||||||
|
|
||||||
public loading: boolean = true;
|
public loading: boolean = true;
|
||||||
@Input() public queryType: string;
|
@Input() public queryType: string;
|
||||||
@ -54,7 +54,7 @@ export class TransactionsComponent {
|
|||||||
|
|
||||||
public goToTx(txId: string): void {
|
public goToTx(txId: string): void {
|
||||||
this.navCtrl.push('transaction', {
|
this.navCtrl.push('transaction', {
|
||||||
'txId': txId
|
'txId': txId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
4
app/src/components/transaction/transaction.html
Normal file
4
app/src/components/transaction/transaction.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<!-- Generated template for the TransactionComponent component -->
|
||||||
|
<div>
|
||||||
|
{{text}}
|
||||||
|
</div>
|
||||||
16
app/src/components/transaction/transaction.module.ts
Normal file
16
app/src/components/transaction/transaction.module.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { IonicModule } from 'ionic-angular';
|
||||||
|
import { TransactionComponent } from './transaction';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
TransactionComponent,
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
IonicModule,
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
TransactionComponent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class TransactionComponentModule {}
|
||||||
3
app/src/components/transaction/transaction.scss
Normal file
3
app/src/components/transaction/transaction.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
transaction {
|
||||||
|
|
||||||
|
}
|
||||||
22
app/src/components/transaction/transaction.ts
Normal file
22
app/src/components/transaction/transaction.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated class for the TransactionComponent component.
|
||||||
|
*
|
||||||
|
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
|
||||||
|
* for more info on Angular Components.
|
||||||
|
*/
|
||||||
|
@Component({
|
||||||
|
selector: 'transaction',
|
||||||
|
templateUrl: 'transaction.html'
|
||||||
|
})
|
||||||
|
export class TransactionComponent {
|
||||||
|
|
||||||
|
text: string;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
console.log('Hello TransactionComponent Component');
|
||||||
|
this.text = 'Hello World';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,3 +0,0 @@
|
|||||||
transactions {
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -49,5 +49,5 @@
|
|||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-grid>
|
</ion-grid>
|
||||||
|
|
||||||
<transactions [queryType]="'address'" [queryValue]="addrStr"></transactions>
|
<transaction-list [queryType]="'address'" [queryValue]="addrStr"></transaction-list>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicPageModule } from 'ionic-angular';
|
import { IonicPageModule } from 'ionic-angular';
|
||||||
import { AddressPage } from './address';
|
import { AddressPage } from './address';
|
||||||
import { TransactionsComponentModule } from '../../components/transactions/transactions.module';
|
import { TransactionListComponentModule } from '../../components/transaction-list/transaction-list.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -9,7 +9,7 @@ import { TransactionsComponentModule } from '../../components/transactions/trans
|
|||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicPageModule.forChild(AddressPage),
|
IonicPageModule.forChild(AddressPage),
|
||||||
TransactionsComponentModule
|
TransactionListComponentModule
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
AddressPage
|
AddressPage
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
<p>Next Block <a (click)="goToNextBlock()">{{ block.height + 1 }}</a></p>
|
<p>Next Block <a (click)="goToNextBlock()">{{ block.height + 1 }}</a></p>
|
||||||
|
|
||||||
<h3>Transactions</h3>
|
<h3>Transactions</h3>
|
||||||
<transactions [queryType]="'block'" [queryValue]="block.hash"></transactions>
|
<transaction-list [queryType]="'block'" [queryValue]="block.hash"></transaction-list>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="loading">
|
<div *ngIf="loading">
|
||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { IonicPageModule } from 'ionic-angular';
|
import { IonicPageModule } from 'ionic-angular';
|
||||||
import { BlockDetailPage } from './block-detail';
|
import { BlockDetailPage } from './block-detail';
|
||||||
import { TransactionsComponentModule } from '../../components/transactions/transactions.module';
|
import { TransactionListComponentModule } from '../../components/transaction-list/transaction-list.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -9,7 +9,7 @@ import { TransactionsComponentModule } from '../../components/transactions/trans
|
|||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
IonicPageModule.forChild(BlockDetailPage),
|
IonicPageModule.forChild(BlockDetailPage),
|
||||||
TransactionsComponentModule
|
TransactionListComponentModule
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
BlockDetailPage
|
BlockDetailPage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user