|
@@ -22,10 +22,10 @@ webpackEmptyAsyncContext.id = 115;
|
22
|
22
|
|
23
|
23
|
var map = {
|
24
|
24
|
"../pages/payment/payment.module": [
|
25
|
|
- 158
|
|
25
|
+ 159
|
26
|
26
|
],
|
27
|
27
|
"../pages/transactions/transactions.module": [
|
28
|
|
- 159
|
|
28
|
+ 158
|
29
|
29
|
],
|
30
|
30
|
"../pages/wallet/wallet.module": [
|
31
|
31
|
160
|
|
@@ -52,12 +52,11 @@ module.exports = webpackAsyncContext;
|
52
|
52
|
|
53
|
53
|
"use strict";
|
54
|
54
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
55
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentPageModule", function() { return PaymentPageModule; });
|
|
55
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
|
56
|
56
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
57
|
57
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
58
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(81);
|
|
58
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(58);
|
59
|
59
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
|
60
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
|
61
|
60
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
62
|
61
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
63
|
62
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -68,28 +67,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
68
|
67
|
|
69
|
68
|
|
70
|
69
|
|
71
|
|
-
|
72
|
|
-var PaymentPageModule = /** @class */ (function () {
|
73
|
|
- function PaymentPageModule() {
|
|
70
|
+var TransactionPageModule = /** @class */ (function () {
|
|
71
|
+ function TransactionPageModule() {
|
74
|
72
|
}
|
75
|
|
- PaymentPageModule = __decorate([
|
|
73
|
+ TransactionPageModule = __decorate([
|
76
|
74
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
|
77
|
75
|
declarations: [
|
78
|
|
- __WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */],
|
79
|
|
- __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__["a" /* TransactionComponent */]
|
|
76
|
+ __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
|
80
|
77
|
],
|
81
|
78
|
imports: [
|
82
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */]),
|
|
79
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
|
83
|
80
|
],
|
84
|
81
|
providers: [
|
85
|
82
|
__WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
|
86
|
83
|
],
|
87
|
84
|
})
|
88
|
|
- ], PaymentPageModule);
|
89
|
|
- return PaymentPageModule;
|
|
85
|
+ ], TransactionPageModule);
|
|
86
|
+ return TransactionPageModule;
|
90
|
87
|
}());
|
91
|
88
|
|
92
|
|
-//# sourceMappingURL=payment.module.js.map
|
|
89
|
+//# sourceMappingURL=transactions.module.js.map
|
93
|
90
|
|
94
|
91
|
/***/ }),
|
95
|
92
|
|
|
@@ -98,11 +95,12 @@ var PaymentPageModule = /** @class */ (function () {
|
98
|
95
|
|
99
|
96
|
"use strict";
|
100
|
97
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
101
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
|
|
98
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentPageModule", function() { return PaymentPageModule; });
|
102
|
99
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
103
|
100
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
104
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(58);
|
|
101
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(81);
|
105
|
102
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
|
|
103
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
|
106
|
104
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
107
|
105
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
108
|
106
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -113,26 +111,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
113
|
111
|
|
114
|
112
|
|
115
|
113
|
|
116
|
|
-var TransactionPageModule = /** @class */ (function () {
|
117
|
|
- function TransactionPageModule() {
|
|
114
|
+
|
|
115
|
+var PaymentPageModule = /** @class */ (function () {
|
|
116
|
+ function PaymentPageModule() {
|
118
|
117
|
}
|
119
|
|
- TransactionPageModule = __decorate([
|
|
118
|
+ PaymentPageModule = __decorate([
|
120
|
119
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
|
121
|
120
|
declarations: [
|
122
|
|
- __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
|
|
121
|
+ __WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */],
|
|
122
|
+ __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__["a" /* TransactionComponent */]
|
123
|
123
|
],
|
124
|
124
|
imports: [
|
125
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
|
|
125
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */]),
|
126
|
126
|
],
|
127
|
127
|
providers: [
|
128
|
128
|
__WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
|
129
|
129
|
],
|
130
|
130
|
})
|
131
|
|
- ], TransactionPageModule);
|
132
|
|
- return TransactionPageModule;
|
|
131
|
+ ], PaymentPageModule);
|
|
132
|
+ return PaymentPageModule;
|
133
|
133
|
}());
|
134
|
134
|
|
135
|
|
-//# sourceMappingURL=transactions.module.js.map
|
|
135
|
+//# sourceMappingURL=payment.module.js.map
|
136
|
136
|
|
137
|
137
|
/***/ }),
|
138
|
138
|
|
|
@@ -165,7 +165,7 @@ var WalletPageModule = /** @class */ (function () {
|
165
|
165
|
__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
|
166
|
166
|
],
|
167
|
167
|
imports: [
|
168
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
|
|
168
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
|
169
|
169
|
],
|
170
|
170
|
providers: [
|
171
|
171
|
__WEBPACK_IMPORTED_MODULE_3__providers_wallet_service__["a" /* WalletService */],
|
|
@@ -220,7 +220,7 @@ var WalletPage = /** @class */ (function () {
|
220
|
220
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["m" /* Component */])({
|
221
|
221
|
selector: 'page-wallet',template:/*ion-inline-start:"/Users/yauhenip/Projects/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-refresher (ionRefresh)="doRefresh($event);">\n <ion-refresher-content\n pullingText="Pull to refresh"\n pullingIcon="arrow-dropdown"\n refreshingSpinner="circles"\n refreshingText="...fetching...">\n </ion-refresher-content>\n </ion-refresher>\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/yauhenip/Projects/blueCoin-UI/src/pages/wallet/wallet.html"*/,
|
222
|
222
|
}),
|
223
|
|
- __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 */]])
|
|
223
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]])
|
224
|
224
|
], WalletPage);
|
225
|
225
|
return WalletPage;
|
226
|
226
|
}());
|
|
@@ -300,7 +300,7 @@ var HomePage = /** @class */ (function () {
|
300
|
300
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
301
|
301
|
selector: 'page-home',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/home/home.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>Blockchain</h2>\n <div>\n <ion-item>\n <ion-label color="primary" stacked>Blockchain</ion-label>\n <ion-input type="number" placeholder="Block"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Nonce</ion-label>\n <ion-input type="number" placeholder="Nonce"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Transaction Data</ion-label>\n <p></p>\n <ion-input type="number" placeholder="Data"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label color="primary" stacked>Hash</ion-label>\n <ion-input type="number" disabled placeholder="Hash"></ion-input>\n </ion-item>\n <button ion-button block>Mine</button></div>\n <!-- <div id="block1chain1well" class="well well-success">\n <form class="form-horizontal">\n <div class="form-group">\n <label for="block1chain1number" class="col-sm-2 control-label">Block:</label>\n <div class="col-sm-10">\n <div class="input-group">\n <span class="input-group-addon">#</span>\n <input id="block1chain1number" type="text" value="1" onkeyup="updateHash(1, 1);" class="form-control"></div>\n </div></div><div class="form-group">\n <label for="block1chain1nonce" class="col-sm-2 control-label">Nonce:</label>\n <div class="col-sm-10"><input id="block1chain1nonce" type="text" value="72608" onkeyup="updateHash(1, 1);" class="form-control"></div>\n </div><div class="form-group"><label for="block1chain1data" class="col-sm-2 control-label">Data:</label>\n <div class="col-sm-10">\n <textarea id="block1chain1data" rows="10" onkeyup="updateHash(1, 1);" class="form-control">\n\n </textarea></div></div><div id="state" class="form-group">\n <label for="block1chain1hash" class="col-sm-2 control-label">Hash:</label><div class="col-sm-10">\n <input id="block1chain1hash" type="text" disabled="" class="form-control">\n </div></div><div class="form-group"><div class="col-sm-2">\n <i class="icon-spinner icon-spin icon-large">\n\n </i></div><div class="col-sm-10">\n <button id="block1chain1mineButton" data-style="expand-right" class="btn btn-primary ladda-button">\n <span class="ladda-label">Mine</span></button></div></div></form></div> -->'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/home/home.html"*/
|
302
|
302
|
}),
|
303
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
|
|
303
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]])
|
304
|
304
|
], HomePage);
|
305
|
305
|
return HomePage;
|
306
|
306
|
}());
|
|
@@ -339,9 +339,9 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
339
|
339
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_wallet_wallet_module__ = __webpack_require__(160);
|
340
|
340
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__ = __webpack_require__(201);
|
341
|
341
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__ = __webpack_require__(204);
|
342
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(159);
|
|
342
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(158);
|
343
|
343
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_payment_payment__ = __webpack_require__(81);
|
344
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(158);
|
|
344
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(159);
|
345
|
345
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__ = __webpack_require__(41);
|
346
|
346
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__ = __webpack_require__(48);
|
347
|
347
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -382,15 +382,15 @@ var AppModule = /** @class */ (function () {
|
382
|
382
|
__WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__["TransactionPageModule"],
|
383
|
383
|
__WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__["PaymentPageModule"],
|
384
|
384
|
__WEBPACK_IMPORTED_MODULE_5__angular_common_http__["b" /* HttpClientModule */],
|
385
|
|
- __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
|
|
385
|
+ __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["d" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
|
386
|
386
|
links: [
|
387
|
|
- { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] },
|
388
|
387
|
{ loadChildren: '../pages/transactions/transactions.module#TransactionPageModule', name: 'TransactionPage', segment: 'transactions', priority: 'low', defaultHistory: [] },
|
|
388
|
+ { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] },
|
389
|
389
|
{ loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
|
390
|
390
|
]
|
391
|
391
|
})
|
392
|
392
|
],
|
393
|
|
- bootstrap: [__WEBPACK_IMPORTED_MODULE_3_ionic_angular__["a" /* IonicApp */]],
|
|
393
|
+ bootstrap: [__WEBPACK_IMPORTED_MODULE_3_ionic_angular__["b" /* IonicApp */]],
|
394
|
394
|
entryComponents: [
|
395
|
395
|
__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
|
396
|
396
|
__WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
|
|
@@ -403,7 +403,7 @@ var AppModule = /** @class */ (function () {
|
403
|
403
|
__WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__["a" /* SplashScreen */],
|
404
|
404
|
__WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__["a" /* TransactionService */],
|
405
|
405
|
__WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__["a" /* WalletService */],
|
406
|
|
- { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["b" /* IonicErrorHandler */] },
|
|
406
|
+ { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicErrorHandler */] },
|
407
|
407
|
]
|
408
|
408
|
})
|
409
|
409
|
], AppModule);
|
|
@@ -492,7 +492,7 @@ var MyApp = /** @class */ (function () {
|
492
|
492
|
MyApp = __decorate([
|
493
|
493
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/app/app.html"*/
|
494
|
494
|
}),
|
495
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
|
495
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
496
|
496
|
], MyApp);
|
497
|
497
|
return MyApp;
|
498
|
498
|
}());
|
|
@@ -620,7 +620,7 @@ var TransactionPage = /** @class */ (function () {
|
620
|
620
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
621
|
621
|
selector: 'page-transactions',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/transactions/transactions.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n Blockchain\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n \n<ion-content padding>\n <ion-refresher (ionRefresh)="doRefresh($event);">\n <ion-refresher-content\n pullingText="Pull to refresh"\n pullingIcon="arrow-dropdown"\n refreshingSpinner="circles"\n refreshingText="...fetching...">\n </ion-refresher-content>\n </ion-refresher>\n <ion-list>\n <ion-item *ngFor="let transaction of transactions">\n <ion-card>\n <ion-card-content>\n Date: <h4>{{transaction.timestamp}}</h4>\n Sender: <h4>{{transaction.fromId}}</h4>\n Receiver: <h4>{{transaction.toId}}</h4>\n Amount: <h4>{{transaction.amount}}</h4>\n TransactionId<h4>{{transaction.transactionId}}</h4>\n </ion-card-content>\n</ion-card>\n </ion-item>\n </ion-list>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/transactions/transactions.html"*/,
|
622
|
622
|
}),
|
623
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
|
623
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
624
|
624
|
], TransactionPage);
|
625
|
625
|
return TransactionPage;
|
626
|
626
|
}());
|
|
@@ -653,13 +653,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
653
|
653
|
|
654
|
654
|
|
655
|
655
|
|
|
656
|
+
|
656
|
657
|
var PaymentPage = /** @class */ (function () {
|
657
|
|
- function PaymentPage(navCtrl, navParams, http, transfer, walletService) {
|
|
658
|
+ function PaymentPage(navCtrl, navParams, http, transfer, walletService, alertCtrl) {
|
658
|
659
|
this.navCtrl = navCtrl;
|
659
|
660
|
this.navParams = navParams;
|
660
|
661
|
this.http = http;
|
661
|
662
|
this.transfer = transfer;
|
662
|
663
|
this.walletService = walletService;
|
|
664
|
+ this.alertCtrl = alertCtrl;
|
663
|
665
|
//trans: TransactionComponent = new TransactionComponent(this.fromId, this.toId, this.amount);
|
664
|
666
|
this.trans = { fromId: '', toId: '', amount: '' };
|
665
|
667
|
this.navCtrl = navCtrl;
|
|
@@ -681,17 +683,22 @@ var PaymentPage = /** @class */ (function () {
|
681
|
683
|
console.log(this.trans);
|
682
|
684
|
this.transfer.postTransactions("checkTx", this.trans).subscribe(function (data) { return console.log(data); });
|
683
|
685
|
};
|
|
686
|
+ PaymentPage.prototype.doAlert = function () {
|
|
687
|
+ var alert = this.alertCtrl.create({
|
|
688
|
+ //title: 'Payment',
|
|
689
|
+ subTitle: 'Payment is completed!',
|
|
690
|
+ buttons: ['Ok']
|
|
691
|
+ });
|
|
692
|
+ alert.present();
|
|
693
|
+ };
|
684
|
694
|
PaymentPage = __decorate([
|
685
|
695
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
686
|
|
- selector: 'page-payment',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>BlueCoin</ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <div padding>\n </div>\n <ion-item>\n \n <ion-label color="primary" stacked>Please select your ID</ion-label>\n <!-- <ion-input type="string" [(ngModel)]="trans.fromId"></ion-input> // Can type ID manually-->\n \n <ion-select [(ngModel)]="trans.fromId" interface="popover">\n <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n </ion-select>\n </ion-item>\n \n \n <ion-item >\n <ion-label color="primary" stacked >Who would you like to receive BlueCoin?</ion-label>\n <!-- <ion-input type="string"[(ngModel)]="trans.fromId"></ion-input> Can type ID mamaully-->\n <ion-select [(ngModel)]="trans.toId" interface="popover" >\n <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n </ion-select>\n </ion-item>\n\n <ion-item>\n <ion-label color="primary" stacked>Amount</ion-label>\n <ion-input type="number" placeholder="Enter Amount" [(ngModel)]="trans.amount" interface="popover"></ion-input>\n </ion-item>\n\n <button ion-button (click) = "transferMoney()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/,
|
|
696
|
+ selector: 'page-payment',template:/*ion-inline-start:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>BlueCoin</ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <div padding>\n </div>\n <ion-item>\n \n <ion-label color="primary" stacked>Please select your ID</ion-label>\n <!-- <ion-input type="string" [(ngModel)]="trans.fromId"></ion-input> // Can type ID manually-->\n \n <ion-select [(ngModel)]="trans.fromId" interface="popover">\n <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n </ion-select>\n </ion-item>\n \n \n <ion-item >\n <ion-label color="primary" stacked >Who would you like to receive BlueCoin?</ion-label>\n <!-- <ion-input type="string"[(ngModel)]="trans.fromId"></ion-input> Can type ID mamaully-->\n <ion-select [(ngModel)]="trans.toId" interface="popover" >\n <ion-option *ngFor="let wallet of wallets" value="{{wallet.publicId}}">{{wallet.name}}</ion-option>\n </ion-select>\n </ion-item>\n\n <ion-item>\n <ion-label color="primary" stacked>Amount</ion-label>\n <ion-input type="number" placeholder="Enter Amount" [(ngModel)]="trans.amount" interface="popover"></ion-input>\n </ion-item>\n\n <button ion-button (click) = "transferMoney()" (click)="doAlert()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/yauhenip/Projects/blueCoin-UI/src/pages/payment/payment.html"*/,
|
687
|
697
|
}),
|
688
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */],
|
689
|
|
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
|
690
|
|
- __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */],
|
691
|
|
- __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
|
692
|
|
- __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */]])
|
|
698
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */]) === "function" && _d || Object, typeof (_e = typeof __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_4__providers_wallet_service__["a" /* WalletService */]) === "function" && _e || Object, typeof (_f = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */]) === "function" && _f || Object])
|
693
|
699
|
], PaymentPage);
|
694
|
700
|
return PaymentPage;
|
|
701
|
+ var _a, _b, _c, _d, _e, _f;
|
695
|
702
|
}());
|
696
|
703
|
|
697
|
704
|
//# sourceMappingURL=payment.js.map
|