added HomePage
This commit is contained in:
parent
c817f5e62c
commit
0cbff08f59
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
*.log
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { Platform, MenuController, Nav } from 'ionic-angular';
|
|||||||
import { StatusBar } from '@ionic-native/status-bar';
|
import { StatusBar } from '@ionic-native/status-bar';
|
||||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
||||||
import {
|
import {
|
||||||
|
HomePage,
|
||||||
BlocksPage,
|
BlocksPage,
|
||||||
BroadcastTxPage,
|
BroadcastTxPage,
|
||||||
NodeStatusPage,
|
NodeStatusPage,
|
||||||
@ -36,6 +37,7 @@ export class InsightApp {
|
|||||||
|
|
||||||
// set our app's pages
|
// set our app's pages
|
||||||
this.pages = [
|
this.pages = [
|
||||||
|
{ title: 'Home', component: HomePage },
|
||||||
{ title: 'Blocks', component: BlocksPage },
|
{ title: 'Blocks', component: BlocksPage },
|
||||||
{ title: 'Broadcast Transaction', component: BroadcastTxPage },
|
{ title: 'Broadcast Transaction', component: BroadcastTxPage },
|
||||||
{ title: 'Verify Signed Message', component: VerifyMessagePage },
|
{ title: 'Verify Signed Message', component: VerifyMessagePage },
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
|
|||||||
import { StatusBar } from '@ionic-native/status-bar';
|
import { StatusBar } from '@ionic-native/status-bar';
|
||||||
import { SplashScreen } from '@ionic-native/splash-screen';
|
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, HomePage, BlocksPage, BroadcastTxPage, NodeStatusPage, VerifyMessagePage } from '../pages';
|
||||||
import { BlocksService, StorageService } from '../services';
|
import { BlocksService, StorageService } from '../services';
|
||||||
import { ApiProvider } from '../providers/api/api';
|
import { ApiProvider } from '../providers/api/api';
|
||||||
import { CurrencyProvider } from '../providers/currency/currency';
|
import { CurrencyProvider } from '../providers/currency/currency';
|
||||||
@ -23,6 +23,7 @@ import { CurrencyProvider } from '../providers/currency/currency';
|
|||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
InsightApp,
|
InsightApp,
|
||||||
|
HomePage,
|
||||||
BlocksPage,
|
BlocksPage,
|
||||||
BroadcastTxPage,
|
BroadcastTxPage,
|
||||||
NodeStatusPage,
|
NodeStatusPage,
|
||||||
|
|||||||
29
app/src/pages/home/home.html
Normal file
29
app/src/pages/home/home.html
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<!--
|
||||||
|
Generated template for the HomePage page.
|
||||||
|
|
||||||
|
See http://ionicframework.com/docs/components/#navigation for more info on
|
||||||
|
Ionic pages and navigation.
|
||||||
|
-->
|
||||||
|
<ion-header>
|
||||||
|
<head-nav [title]="'Home'"></head-nav>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-content padding>
|
||||||
|
|
||||||
|
<h1>Latest Blocks</h1>
|
||||||
|
<h1>Latest Transactions</h1>
|
||||||
|
<h2>About</h2>
|
||||||
|
<p><strong>insight</strong> is an <a href="https://insight.is/"
|
||||||
|
target="_blank">open-source Bitcoin blockchain explorer</a> with complete REST and websocket APIs that can be used for writing web wallets and other apps that need more advanced blockchain queries than provided by bitcoind RPC. Check out the <a href="https://github.com/bitpay/insight-ui" target="_blank">source code</a>.</p>
|
||||||
|
<p><strong>insight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/bitpay/insight-ui/issues" target="_blank">github issue tracker</a>.</p>
|
||||||
|
<div id="powered" class="row">
|
||||||
|
<div class="powered-text">
|
||||||
|
<small class="text-muted">Powered by</small>
|
||||||
|
</div>
|
||||||
|
<a href="http://bitcore.io" target="_blank" class="bitcore" title="Bitcore"></a>
|
||||||
|
<a href="http://angularjs.org" target="_blank" class="angularjs" title="AngularJS"></a>
|
||||||
|
<a href="https://code.google.com/p/leveldb/" target="_blank" class="leveldb" title="LevelDB"></a>
|
||||||
|
<a href="http://nodejs.org" target="_blank" class="nodejs" title="NodeJs"></a>
|
||||||
|
</div>
|
||||||
|
</ion-content>
|
||||||
18
app/src/pages/home/home.module.ts
Normal file
18
app/src/pages/home/home.module.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { IonicPageModule } from 'ionic-angular';
|
||||||
|
import { HomePage } from './home';
|
||||||
|
import { HeadNavComponentModule } from '../../components/head-nav/head-nav.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
HomePage
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
IonicPageModule.forChild(HomePage),
|
||||||
|
HeadNavComponentModule
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
HomePage
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class HomePageModule {}
|
||||||
3
app/src/pages/home/home.scss
Normal file
3
app/src/pages/home/home.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
page-home {
|
||||||
|
|
||||||
|
}
|
||||||
27
app/src/pages/home/home.ts
Normal file
27
app/src/pages/home/home.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated class for the HomePage page.
|
||||||
|
*
|
||||||
|
* See http://ionicframework.com/docs/components/#navigation for more info
|
||||||
|
* on Ionic pages and navigation.
|
||||||
|
*/
|
||||||
|
@IonicPage({
|
||||||
|
name: 'home',
|
||||||
|
segment: 'home'
|
||||||
|
})
|
||||||
|
@Component({
|
||||||
|
selector: 'page-home',
|
||||||
|
templateUrl: 'home.html'
|
||||||
|
})
|
||||||
|
export class HomePage {
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ionViewDidLoad(): void {
|
||||||
|
console.log('ionViewDidLoad HomePage');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -2,4 +2,5 @@ export * from './blocksPage/blocksPage';
|
|||||||
export * from './broadcastTxPage/broadcastTxPage';
|
export * from './broadcastTxPage/broadcastTxPage';
|
||||||
export * from './nodeStatusPage/nodeStatusPage';
|
export * from './nodeStatusPage/nodeStatusPage';
|
||||||
export * from './verifyMessagePage/verifyMessagePage';
|
export * from './verifyMessagePage/verifyMessagePage';
|
||||||
|
export * from './home/home';
|
||||||
export * from './pages.module';
|
export * from './pages.module';
|
||||||
|
|||||||
@ -3,6 +3,7 @@ import { IonicModule } from 'ionic-angular';
|
|||||||
import { ComponentsModule } from '../components';
|
import { ComponentsModule } from '../components';
|
||||||
import { HeadNavComponentModule } from '../components/head-nav/head-nav.module';
|
import { HeadNavComponentModule } from '../components/head-nav/head-nav.module';
|
||||||
import {
|
import {
|
||||||
|
HomePage,
|
||||||
BlocksPage,
|
BlocksPage,
|
||||||
BroadcastTxPage,
|
BroadcastTxPage,
|
||||||
NodeStatusPage,
|
NodeStatusPage,
|
||||||
@ -11,6 +12,7 @@ import {
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
HomePage,
|
||||||
BlocksPage,
|
BlocksPage,
|
||||||
BroadcastTxPage,
|
BroadcastTxPage,
|
||||||
NodeStatusPage,
|
NodeStatusPage,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user