json test and modification to disconnect button
This commit is contained in:
parent
f69e821f35
commit
a0ce13e23f
55
resources/raw/config.json
Normal file
55
resources/raw/config.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"users":[
|
||||
{
|
||||
"name": "Test",
|
||||
"firstName":"Toto",
|
||||
"email": "toto@mail.com",
|
||||
"password": "totopwd",
|
||||
"balance": 500.0,
|
||||
"lastTransactions": [
|
||||
{
|
||||
"from":"toto@mail.com",
|
||||
"to": "bic@mail.com",
|
||||
"amount": 10.0,
|
||||
"timestamp": 1539861600
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "lePen",
|
||||
"firstName":"Bic",
|
||||
"email": "bic@mail.com",
|
||||
"password": "bicpwd",
|
||||
"balance": 10.0,
|
||||
"lastTransactions": [
|
||||
{
|
||||
"from": "toto@mail.com",
|
||||
"to": "bic@mail.com",
|
||||
"amount": 10.0,
|
||||
"timestamp": 1539861900
|
||||
},
|
||||
{
|
||||
"from":"bic@mail.com",
|
||||
"to":"tata@mail.com",
|
||||
"amount": 200.0,
|
||||
"timestamp": 1539600000
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "tata",
|
||||
"firstName":"",
|
||||
"email": "tata@mail.com",
|
||||
"password": "tataPwd",
|
||||
"balance": 235.0,
|
||||
"lastTransactions": [
|
||||
{
|
||||
"from":"bic@mail.com",
|
||||
"to": "tata@mail.com",
|
||||
"amount": 200,
|
||||
"timestamp": 1539601200
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -8,19 +8,16 @@
|
|||
|
||||
<ion-navbar>
|
||||
<ion-title>home</ion-title>
|
||||
<ion-buttons>
|
||||
<button ion-item (click)="closeConnexion()">Disconnect</button>
|
||||
</ion-buttons>
|
||||
</ion-navbar>
|
||||
|
||||
</ion-header>
|
||||
|
||||
<ion-content padding>
|
||||
<ion-buttons>
|
||||
<button ion-item (click)="changePage('contact')">Contacts</button>
|
||||
<button ion-item (click)="changePage('buy')">Acheter de la monnaie locale</button>
|
||||
<button ion-item (click)="changePage('send')">Payer</button>
|
||||
<button ion-item (click)="changePage('history')">Historique des transactions</button>
|
||||
<button ion-button (click)="changePage('buy')">Acheter de la monnaie locale</button>
|
||||
<button ion-button (click)="changePage('send')">Payer</button>
|
||||
<button ion-button (click)="changePage('history')">Historique des transactions</button>
|
||||
<button ion-button color="danger" (click)="closeConnexion()">Disconnect</button>
|
||||
</ion-buttons>
|
||||
|
||||
</ion-content>
|
||||
|
|
|
@ -33,10 +33,6 @@ export class HomePage {
|
|||
this.navCtrl.push(BuyPage);
|
||||
break;
|
||||
}
|
||||
case 'contact':{
|
||||
this.navCtrl.push(ContactsPage);
|
||||
break;
|
||||
}
|
||||
case 'send':{
|
||||
this.navCtrl.push(SendPage);
|
||||
break;
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
<ion-content padding>
|
||||
<ion-buttons>
|
||||
<button ion-item (click)="changePage('search')">Chercher un contact</button>
|
||||
<button ion-button (click)="changePage('search')">Chercher un contact</button>
|
||||
<button ion-button (click)="changePage('contact')">Contacts</button>
|
||||
</ion-buttons>
|
||||
</ion-content>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
||||
import {SearchPage} from "../search/search";
|
||||
import {ContactsPage} from "../contacts/contacts";
|
||||
|
||||
/**
|
||||
* Generated class for the SendPage page.
|
||||
|
@ -29,6 +30,10 @@ export class SendPage {
|
|||
this.navCtrl.push(SearchPage);
|
||||
break;
|
||||
}
|
||||
case 'contact':{
|
||||
this.navCtrl.push(ContactsPage);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue