mirror of https://github.com/BTCPrivate/copay.git
Some pages and services
This commit is contained in:
parent
f5c359bd45
commit
6987d994ea
|
@ -3,20 +3,25 @@ import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
|
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
|
||||||
import { Copay } from './app.component';
|
import { Copay } from './app.component';
|
||||||
|
|
||||||
import { AboutPage } from '../pages/about/about';
|
|
||||||
import { ContactPage } from '../pages/contact/contact';
|
|
||||||
import { HomePage } from '../pages/home/home';
|
import { HomePage } from '../pages/home/home';
|
||||||
|
import { ReceivePage } from '../pages/receive/receive';
|
||||||
|
import { SendPage } from '../pages/send/send';
|
||||||
|
import { SettingPage } from '../pages/setting/setting';
|
||||||
import { TabsPage } from '../pages/tabs/tabs';
|
import { TabsPage } from '../pages/tabs/tabs';
|
||||||
|
|
||||||
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 { WalletService } from '../providers/wallet-service/wallet-service';
|
||||||
|
import { StorageService } from '../providers/storage-service/storage-service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
Copay,
|
Copay,
|
||||||
AboutPage,
|
|
||||||
ContactPage,
|
|
||||||
HomePage,
|
HomePage,
|
||||||
|
ReceivePage,
|
||||||
|
SendPage,
|
||||||
|
SettingPage,
|
||||||
TabsPage
|
TabsPage
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -26,15 +31,18 @@ import { SplashScreen } from '@ionic-native/splash-screen';
|
||||||
bootstrap: [IonicApp],
|
bootstrap: [IonicApp],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
Copay,
|
Copay,
|
||||||
AboutPage,
|
|
||||||
ContactPage,
|
|
||||||
HomePage,
|
HomePage,
|
||||||
|
ReceivePage,
|
||||||
|
SendPage,
|
||||||
|
SettingPage,
|
||||||
TabsPage
|
TabsPage
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
StatusBar,
|
StatusBar,
|
||||||
SplashScreen,
|
SplashScreen,
|
||||||
{provide: ErrorHandler, useClass: IonicErrorHandler}
|
{provide: ErrorHandler, useClass: IonicErrorHandler},
|
||||||
|
WalletService,
|
||||||
|
StorageService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<ion-header>
|
|
||||||
<ion-navbar>
|
|
||||||
<ion-title>
|
|
||||||
About
|
|
||||||
</ion-title>
|
|
||||||
</ion-navbar>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content padding>
|
|
||||||
|
|
||||||
</ion-content>
|
|
|
@ -1,3 +0,0 @@
|
||||||
page-about {
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
import { Component } from '@angular/core';
|
|
||||||
import { NavController } from 'ionic-angular';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'page-about',
|
|
||||||
templateUrl: 'about.html'
|
|
||||||
})
|
|
||||||
export class AboutPage {
|
|
||||||
|
|
||||||
constructor(public navCtrl: NavController) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
<ion-header>
|
|
||||||
<ion-navbar>
|
|
||||||
<ion-title>
|
|
||||||
Contact
|
|
||||||
</ion-title>
|
|
||||||
</ion-navbar>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content>
|
|
||||||
<ion-list>
|
|
||||||
<ion-list-header>Follow us on Twitter</ion-list-header>
|
|
||||||
<ion-item>
|
|
||||||
<ion-icon name="ionic" item-left></ion-icon>
|
|
||||||
@ionicframework
|
|
||||||
</ion-item>
|
|
||||||
</ion-list>
|
|
||||||
</ion-content>
|
|
|
@ -1,3 +0,0 @@
|
||||||
page-contact {
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
import { Component } from '@angular/core';
|
|
||||||
import { NavController } from 'ionic-angular';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'page-contact',
|
|
||||||
templateUrl: 'contact.html'
|
|
||||||
})
|
|
||||||
export class ContactPage {
|
|
||||||
|
|
||||||
constructor(public navCtrl: NavController) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -5,13 +5,5 @@
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content padding>
|
<ion-content padding>
|
||||||
<h2>Welcome to Ionic!</h2>
|
|
||||||
<p>
|
|
||||||
This starter project comes with simple tabs-based layout for apps
|
|
||||||
that are going to primarily use a Tabbed UI.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Take a look at the <code>src/pages/</code> directory to add or change tabs,
|
|
||||||
update any existing page or create new pages.
|
|
||||||
</p>
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!--
|
||||||
|
Generated template for the ReceivePage page.
|
||||||
|
|
||||||
|
See http://ionicframework.com/docs/components/#navigation for more info on
|
||||||
|
Ionic pages and navigation.
|
||||||
|
-->
|
||||||
|
<ion-header>
|
||||||
|
|
||||||
|
<ion-navbar>
|
||||||
|
<ion-title>Receive</ion-title>
|
||||||
|
</ion-navbar>
|
||||||
|
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-content padding>
|
||||||
|
|
||||||
|
</ion-content>
|
|
@ -0,0 +1,3 @@
|
||||||
|
page-receive {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { NavController, NavParams } from 'ionic-angular';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated class for the ReceivePage page.
|
||||||
|
*
|
||||||
|
* See http://ionicframework.com/docs/components/#navigation for more info
|
||||||
|
* on Ionic pages and navigation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'page-receive',
|
||||||
|
templateUrl: 'receive.html',
|
||||||
|
})
|
||||||
|
export class ReceivePage {
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ionViewDidLoad() {
|
||||||
|
console.log('ionViewDidLoad ReceivePage');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!--
|
||||||
|
Generated template for the SendPage page.
|
||||||
|
|
||||||
|
See http://ionicframework.com/docs/components/#navigation for more info on
|
||||||
|
Ionic pages and navigation.
|
||||||
|
-->
|
||||||
|
<ion-header>
|
||||||
|
|
||||||
|
<ion-navbar>
|
||||||
|
<ion-title>Send</ion-title>
|
||||||
|
</ion-navbar>
|
||||||
|
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-content padding>
|
||||||
|
|
||||||
|
</ion-content>
|
|
@ -0,0 +1,3 @@
|
||||||
|
page-send {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { NavController, NavParams } from 'ionic-angular';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated class for the SendPage page.
|
||||||
|
*
|
||||||
|
* See http://ionicframework.com/docs/components/#navigation for more info
|
||||||
|
* on Ionic pages and navigation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'page-send',
|
||||||
|
templateUrl: 'send.html',
|
||||||
|
})
|
||||||
|
export class SendPage {
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ionViewDidLoad() {
|
||||||
|
console.log('ionViewDidLoad SendPage');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!--
|
||||||
|
Generated template for the SettingPage page.
|
||||||
|
|
||||||
|
See http://ionicframework.com/docs/components/#navigation for more info on
|
||||||
|
Ionic pages and navigation.
|
||||||
|
-->
|
||||||
|
<ion-header>
|
||||||
|
|
||||||
|
<ion-navbar>
|
||||||
|
<ion-title>Setting</ion-title>
|
||||||
|
</ion-navbar>
|
||||||
|
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
|
||||||
|
<ion-content padding>
|
||||||
|
|
||||||
|
</ion-content>
|
|
@ -0,0 +1,3 @@
|
||||||
|
page-setting {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { NavController, NavParams } from 'ionic-angular';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generated class for the SettingPage page.
|
||||||
|
*
|
||||||
|
* See http://ionicframework.com/docs/components/#navigation for more info
|
||||||
|
* on Ionic pages and navigation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'page-setting',
|
||||||
|
templateUrl: 'setting.html',
|
||||||
|
})
|
||||||
|
export class SettingPage {
|
||||||
|
|
||||||
|
constructor(public navCtrl: NavController, public navParams: NavParams) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ionViewDidLoad() {
|
||||||
|
console.log('ionViewDidLoad SettingPage');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
<ion-tabs>
|
<ion-tabs>
|
||||||
<ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab>
|
<ion-tab [root]="homeRoot" tabTitle="Home" tabIcon="home"></ion-tab>
|
||||||
<ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab>
|
<ion-tab [root]="receiveRoot" tabTitle="Receive" tabIcon="archive"></ion-tab>
|
||||||
<ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab>
|
<ion-tab [root]="sendRoot" tabTitle="Send" tabIcon="send"></ion-tab>
|
||||||
|
<ion-tab [root]="settingRoot" tabTitle="Setting" tabIcon="settings"></ion-tab>
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
import { AboutPage } from '../about/about';
|
|
||||||
import { ContactPage } from '../contact/contact';
|
|
||||||
import { HomePage } from '../home/home';
|
import { HomePage } from '../home/home';
|
||||||
|
import { ReceivePage } from '../receive/receive';
|
||||||
|
import { SendPage } from '../send/send';
|
||||||
|
import { SettingPage } from '../setting/setting';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'tabs.html'
|
templateUrl: 'tabs.html'
|
||||||
})
|
})
|
||||||
export class TabsPage {
|
export class TabsPage {
|
||||||
|
|
||||||
tab1Root = HomePage;
|
homeRoot = HomePage;
|
||||||
tab2Root = AboutPage;
|
receiveRoot = ReceivePage;
|
||||||
tab3Root = ContactPage;
|
sendRoot = SendPage;
|
||||||
|
settingRoot = SettingPage;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class StorageService {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
console.log('Hello StorageService Provider');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class WalletService {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
console.log('Hello WalletService Provider');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue