|
@@ -124,7 +124,7 @@ var WalletPage = /** @class */ (function () {
|
124
|
124
|
};
|
125
|
125
|
WalletPage = __decorate([
|
126
|
126
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["m" /* Component */])({
|
127
|
|
- selector: 'page-wallet',template:/*ion-inline-start:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/wallet/wallet.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>ZipCoin Blue Wallet</ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <ion-list>\n <ion-item *ngFor="let wallet of wallets">\n <h2>{{wallet.name}}</h2>\n </ion-item>\n </ion-list>\n</ion-content>'/*ion-inline-end:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/wallet/wallet.html"*/,
|
|
127
|
+ selector: 'page-wallet',template:/*ion-inline-start:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/wallet/wallet.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>ZipCoin Blue Wallet</ion-title>\n </ion-navbar>\n</ion-header>\nç\n<ion-content padding>\n <ion-list>\n <ion-item *ngFor="let wallet of wallets">\n <ion-card>\n <ion-card-header>\n Name: <h2>{{wallet.name}}</h2>\n </ion-card-header>\n <ion-card-content>\n Balance: <h2>{{wallet.amount}}</h2>\n Public Key: <h2>{{wallet.publicId}}</h2>\n \n </ion-card-content>\n </ion-card>\n </ion-item>\n </ion-list>\n \n</ion-content>'/*ion-inline-end:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/wallet/wallet.html"*/,
|
128
|
128
|
}),
|
129
|
129
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]])
|
130
|
130
|
], WalletPage);
|
|
@@ -160,7 +160,7 @@ var WalletService = /** @class */ (function () {
|
160
|
160
|
this.WALLET_API = this.API + '/user';
|
161
|
161
|
}
|
162
|
162
|
WalletService.prototype.getWalletAmount = function () {
|
163
|
|
- return this.http.get(this.API + '/get');
|
|
163
|
+ return this.http.get(this.API + '/wallets');
|
164
|
164
|
};
|
165
|
165
|
WalletService = __decorate([
|
166
|
166
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
|
@@ -237,14 +237,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
237
|
237
|
var AboutPage = /** @class */ (function () {
|
238
|
238
|
function AboutPage(navCtrl) {
|
239
|
239
|
this.navCtrl = navCtrl;
|
|
240
|
+ this.API = "localhost:8080/";
|
240
|
241
|
}
|
|
242
|
+ AboutPage.prototype.transferMoney = function () {
|
|
243
|
+ return this.API + "wallet/" + "{Id}";
|
|
244
|
+ };
|
241
|
245
|
AboutPage = __decorate([
|
242
|
246
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
243
|
|
- selector: 'page-about',template:/*ion-inline-start:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/about/about.html"*/'<<ion-header>\n <ion-navbar>\n <ion-title>BlueCoin</ion-title>\n </ion-navbar>\n </ion-header>\n \n <ion-content padding>\n <h2>Wallet</h2>\n <ion-item>\n <ion-label color="primary" stacked>Public ID</ion-label>\n <ion-input type="number" placeholder="public ID"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Private ID</ion-label>\n <ion-input type="number" placeholder="private ID"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Amount</ion-label>\n <ion-input type="number" placeholder="Data"></ion-input>\n </ion-item>\n <button ion-button block>Send BlueCoin</button>\n '/*ion-inline-end:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/about/about.html"*/
|
|
247
|
+ selector: 'page-about',template:/*ion-inline-start:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/about/about.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>BlueCoin</ion-title>\n </ion-navbar>\n </ion-header>\n \n <ion-content padding>\n <h2>Payment</h2>\n <ion-item>\n <ion-label color="primary" stacked>Your ID</ion-label>\n <ion-input type="number" placeholder="Your ID"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Receiver ID</ion-label>\n <ion-input type="number" placeholder="Receiver ID"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Amount</ion-label>\n <ion-input type="number" placeholder="Amount"></ion-input>\n </ion-item>\n <button ion-button (click)=\'transferMoney()\' block>Send BlueCoin</button>\n '/*ion-inline-end:"/Users/tennesseeg/passionproject/blueCoin-UI/src/pages/about/about.html"*/
|
244
|
248
|
}),
|
245
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
|
|
249
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]) === "function" && _a || Object])
|
246
|
250
|
], AboutPage);
|
247
|
251
|
return AboutPage;
|
|
252
|
+ var _a;
|
248
|
253
|
}());
|
249
|
254
|
|
250
|
255
|
//# sourceMappingURL=about.js.map
|