|
@@ -1,15 +1,60 @@
|
1
|
1
|
webpackJsonp([4],{
|
2
|
2
|
|
3
|
|
-/***/ 100:
|
|
3
|
+/***/ 101:
|
|
4
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+"use strict";
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
|
|
8
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
|
9
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
10
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
11
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13
|
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
|
+};
|
|
16
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
17
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
18
|
+};
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+/**
|
|
22
|
+ * Generated class for the Tab4Page page.
|
|
23
|
+ *
|
|
24
|
+ * See https://ionicframework.com/docs/components/#navigation for more info on
|
|
25
|
+ * Ionic pages and navigation.
|
|
26
|
+ */
|
|
27
|
+var Tab4Page = /** @class */ (function () {
|
|
28
|
+ function Tab4Page(navCtrl, navParams) {
|
|
29
|
+ this.navCtrl = navCtrl;
|
|
30
|
+ this.navParams = navParams;
|
|
31
|
+ }
|
|
32
|
+ Tab4Page.prototype.ionViewDidLoad = function () {
|
|
33
|
+ console.log('ionViewDidLoad Tab4Page');
|
|
34
|
+ };
|
|
35
|
+ Tab4Page = __decorate([
|
|
36
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
37
|
+ selector: 'page-tab4',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n Generated template for the Tab4Page page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>tab4</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
|
|
38
|
+ }),
|
|
39
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
40
|
+ ], Tab4Page);
|
|
41
|
+ return Tab4Page;
|
|
42
|
+}());
|
|
43
|
+
|
|
44
|
+//# sourceMappingURL=tab4.js.map
|
|
45
|
+
|
|
46
|
+/***/ }),
|
|
47
|
+
|
|
48
|
+/***/ 102:
|
4
|
49
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
50
|
|
6
|
51
|
"use strict";
|
7
|
52
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
|
8
|
53
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
9
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(157);
|
10
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(101);
|
11
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(102);
|
12
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(99);
|
|
54
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
|
|
55
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(103);
|
|
56
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(104);
|
|
57
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(101);
|
13
|
58
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
14
|
59
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
15
|
60
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -33,7 +78,7 @@ var TabsPage = /** @class */ (function () {
|
33
|
78
|
}
|
34
|
79
|
TabsPage = __decorate([
|
35
|
80
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
36
|
|
- selector: 'page-tabs',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/'<ion-tabs>\n <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>\n <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>\n <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>\n <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
|
|
81
|
+ selector: 'page-tabs',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/'<ion-tabs>\n <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>\n <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>\n <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>\n <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
|
37
|
82
|
}),
|
38
|
83
|
__metadata("design:paramtypes", [])
|
39
|
84
|
], TabsPage);
|
|
@@ -44,13 +89,14 @@ var TabsPage = /** @class */ (function () {
|
44
|
89
|
|
45
|
90
|
/***/ }),
|
46
|
91
|
|
47
|
|
-/***/ 101:
|
|
92
|
+/***/ 103:
|
48
|
93
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
49
|
94
|
|
50
|
95
|
"use strict";
|
51
|
96
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
|
52
|
97
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
53
|
98
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
99
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
54
|
100
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
55
|
101
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
56
|
102
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -62,6 +108,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
62
|
108
|
};
|
63
|
109
|
|
64
|
110
|
|
|
111
|
+
|
65
|
112
|
/**
|
66
|
113
|
* Generated class for the WalletPage page.
|
67
|
114
|
*
|
|
@@ -69,18 +116,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
69
|
116
|
* Ionic pages and navigation.
|
70
|
117
|
*/
|
71
|
118
|
var WalletPage = /** @class */ (function () {
|
72
|
|
- function WalletPage(navCtrl, navParams) {
|
|
119
|
+ function WalletPage(navCtrl, navParams, transactionService) {
|
73
|
120
|
this.navCtrl = navCtrl;
|
74
|
121
|
this.navParams = navParams;
|
|
122
|
+ this.transactionService = transactionService;
|
75
|
123
|
}
|
76
|
124
|
WalletPage.prototype.ionViewDidLoad = function () {
|
77
|
125
|
console.log('ionViewDidLoad WalletPage');
|
78
|
126
|
};
|
|
127
|
+ WalletPage.prototype.createTransaction = function () {
|
|
128
|
+ this.transactionService.createTransaction(this.transaction);
|
|
129
|
+ };
|
79
|
130
|
WalletPage = __decorate([
|
80
|
131
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
81
|
|
- selector: 'page-wallet',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/'<!--\n Generated template for the WalletPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>Wallet</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n\n \n <ion-item>\n <ion-label>Name</ion-label>\n <ion-select [(ngModel)]="name">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n <ion-item>\n <ion-label>current balance</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <ion-item>\n <ion-label>Public Key</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <br>\n <br>\n <div class = "bar bar-subheader bar-assertive">\n <h2 class = "title">Payment</h2>\n </div>\n <ion-item>\n <ion-label>From</ion-label>\n <ion-select [(ngModel)]="name">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n <ion-item>\n <ion-label>To</ion-label>\n <ion-select [(ngModel)]="to">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n \n <ion-item>\n <ion-label>Amount</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <br>\n <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
|
|
132
|
+ selector: 'page-wallet',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/'<!--\n Generated template for the WalletPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>Wallet</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n\n \n <ion-item>\n <ion-label>Name</ion-label>\n <ion-select [(ngModel)]="name">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n <ion-item>\n <ion-label>current balance</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <ion-item>\n <ion-label>Public Key</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <br>\n <br>\n <div class = "bar bar-subheader bar-assertive">\n <h2 class = "title">Payment</h2>\n </div>\n <ion-item>\n <ion-label>From</ion-label>\n <ion-select [(ngModel)]="name">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n <ion-item>\n <ion-label>To</ion-label>\n <ion-select [(ngModel)]="to">\n <ion-option value="navya">navya</ion-option>\n <ion-option value="aleena">aleena</ion-option>\n </ion-select>\n </ion-item>\n \n <ion-item>\n <ion-label>Amount</ion-label>\n <ion-input></ion-input>\n </ion-item>\n <br>\n <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
|
82
|
133
|
}),
|
83
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
134
|
+ __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 */]])
|
84
|
135
|
], WalletPage);
|
85
|
136
|
return WalletPage;
|
86
|
137
|
}());
|
|
@@ -89,13 +140,14 @@ var WalletPage = /** @class */ (function () {
|
89
|
140
|
|
90
|
141
|
/***/ }),
|
91
|
142
|
|
92
|
|
-/***/ 102:
|
|
143
|
+/***/ 104:
|
93
|
144
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
94
|
145
|
|
95
|
146
|
"use strict";
|
96
|
147
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
|
97
|
148
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
98
|
149
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
150
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
99
|
151
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
100
|
152
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
101
|
153
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -107,6 +159,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
107
|
159
|
};
|
108
|
160
|
|
109
|
161
|
|
|
162
|
+
|
110
|
163
|
/**
|
111
|
164
|
* Generated class for the TransactionPage page.
|
112
|
165
|
*
|
|
@@ -114,18 +167,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
114
|
167
|
* Ionic pages and navigation.
|
115
|
168
|
*/
|
116
|
169
|
var TransactionPage = /** @class */ (function () {
|
117
|
|
- function TransactionPage(navCtrl, navParams) {
|
|
170
|
+ function TransactionPage(navCtrl, navParams, transactionService) {
|
118
|
171
|
this.navCtrl = navCtrl;
|
119
|
172
|
this.navParams = navParams;
|
|
173
|
+ this.transactionService = transactionService;
|
120
|
174
|
}
|
121
|
175
|
TransactionPage.prototype.ionViewDidLoad = function () {
|
122
|
176
|
console.log('ionViewDidLoad TransactionPage');
|
123
|
177
|
};
|
|
178
|
+ TransactionPage.prototype.getAllTransactions = function () {
|
|
179
|
+ var _this = this;
|
|
180
|
+ this.transactionService.getAllTransactions().subscribe(function (transactions) {
|
|
181
|
+ _this.transactions = transactions;
|
|
182
|
+ });
|
|
183
|
+ };
|
124
|
184
|
TransactionPage = __decorate([
|
125
|
185
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
126
|
|
- selector: 'page-transaction',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n Generated template for the TransactionPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>Transaction</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
|
186
|
+ selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n Generated template for the TransactionPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>Transaction</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
127
|
187
|
}),
|
128
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
|
188
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
|
|
189
|
+ __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
129
|
190
|
], TransactionPage);
|
130
|
191
|
return TransactionPage;
|
131
|
192
|
}());
|
|
@@ -134,7 +195,7 @@ var TransactionPage = /** @class */ (function () {
|
134
|
195
|
|
135
|
196
|
/***/ }),
|
136
|
197
|
|
137
|
|
-/***/ 114:
|
|
198
|
+/***/ 116:
|
138
|
199
|
/***/ (function(module, exports) {
|
139
|
200
|
|
140
|
201
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -147,28 +208,28 @@ function webpackEmptyAsyncContext(req) {
|
147
|
208
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
148
|
209
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
149
|
210
|
module.exports = webpackEmptyAsyncContext;
|
150
|
|
-webpackEmptyAsyncContext.id = 114;
|
|
211
|
+webpackEmptyAsyncContext.id = 116;
|
151
|
212
|
|
152
|
213
|
/***/ }),
|
153
|
214
|
|
154
|
|
-/***/ 156:
|
|
215
|
+/***/ 158:
|
155
|
216
|
/***/ (function(module, exports, __webpack_require__) {
|
156
|
217
|
|
157
|
218
|
var map = {
|
158
|
219
|
"../pages/tab4/tab4.module": [
|
159
|
|
- 279,
|
|
220
|
+ 280,
|
160
|
221
|
3
|
161
|
222
|
],
|
162
|
223
|
"../pages/tabs/tabs.module": [
|
163
|
|
- 280,
|
|
224
|
+ 281,
|
164
|
225
|
2
|
165
|
226
|
],
|
166
|
227
|
"../pages/transaction/transaction.module": [
|
167
|
|
- 281,
|
|
228
|
+ 282,
|
168
|
229
|
1
|
169
|
230
|
],
|
170
|
231
|
"../pages/wallet/wallet.module": [
|
171
|
|
- 282,
|
|
232
|
+ 283,
|
172
|
233
|
0
|
173
|
234
|
]
|
174
|
235
|
};
|
|
@@ -183,19 +244,19 @@ function webpackAsyncContext(req) {
|
183
|
244
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
184
|
245
|
return Object.keys(map);
|
185
|
246
|
};
|
186
|
|
-webpackAsyncContext.id = 156;
|
|
247
|
+webpackAsyncContext.id = 158;
|
187
|
248
|
module.exports = webpackAsyncContext;
|
188
|
249
|
|
189
|
250
|
/***/ }),
|
190
|
251
|
|
191
|
|
-/***/ 157:
|
|
252
|
+/***/ 159:
|
192
|
253
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
193
|
254
|
|
194
|
255
|
"use strict";
|
195
|
256
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
196
|
257
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
197
|
258
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
198
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(158);
|
|
259
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
|
199
|
260
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
200
|
261
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
201
|
262
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -235,7 +296,7 @@ var HomePage = /** @class */ (function () {
|
235
|
296
|
};
|
236
|
297
|
HomePage = __decorate([
|
237
|
298
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
238
|
|
- selector: 'page-home',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n ZipCoin BlockChain\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n <ion-list>\n <ion-item-sliding *ngFor="let block of blocks">\n <ion-item>\n <ion-card>\n <ion-card-header>\n Block #: {{block.blockNumber}}\n </ion-card-header>\n <ion-card-content>\n <div>Nonce: {{ block.nonce }}</div>\n <div>Data: {{ block.transactionList }}</div>\n <div>Previous Hash: {{ block.previousHash }}</div>\n <div>Current Hash: {{ block.currentHash }}</div>\n <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n </ion-card-content>\n </ion-card>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
|
|
299
|
+ selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n ZipCoin BlockChain\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n <ion-list>\n <ion-item-sliding *ngFor="let block of blocks">\n <ion-item>\n <ion-card>\n <ion-card-header>\n Block #: {{block.blockNumber}}\n </ion-card-header>\n <ion-card-content>\n <div>Nonce: {{ block.nonce }}</div>\n <div>Data: {{ block.transactionList }}</div>\n <div>Previous Hash: {{ block.previousHash }}</div>\n <div>Current Hash: {{ block.currentHash }}</div>\n <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n </ion-card-content>\n </ion-card>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
|
239
|
300
|
}),
|
240
|
301
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
241
|
302
|
], HomePage);
|
|
@@ -252,12 +313,12 @@ var HomePage = /** @class */ (function () {
|
252
|
313
|
|
253
|
314
|
/***/ }),
|
254
|
315
|
|
255
|
|
-/***/ 158:
|
|
316
|
+/***/ 160:
|
256
|
317
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
257
|
318
|
|
258
|
319
|
"use strict";
|
259
|
320
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
|
260
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(159);
|
|
321
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(78);
|
261
|
322
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
262
|
323
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
263
|
324
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -296,13 +357,13 @@ var BlockService = /** @class */ (function () {
|
296
|
357
|
|
297
|
358
|
/***/ }),
|
298
|
359
|
|
299
|
|
-/***/ 203:
|
|
360
|
+/***/ 204:
|
300
|
361
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
301
|
362
|
|
302
|
363
|
"use strict";
|
303
|
364
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
304
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(204);
|
305
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(224);
|
|
365
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
|
|
366
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
306
|
367
|
|
307
|
368
|
|
308
|
369
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -310,7 +371,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
310
|
371
|
|
311
|
372
|
/***/ }),
|
312
|
373
|
|
313
|
|
-/***/ 224:
|
|
374
|
+/***/ 225:
|
314
|
375
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
315
|
376
|
|
316
|
377
|
"use strict";
|
|
@@ -318,16 +379,17 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
318
|
379
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
319
|
380
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
320
|
381
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
|
321
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
|
322
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(202);
|
323
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
|
324
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(159);
|
325
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(158);
|
326
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(157);
|
327
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(101);
|
328
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(102);
|
329
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(100);
|
330
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(99);
|
|
382
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
|
383
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(203);
|
|
384
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(279);
|
|
385
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
|
|
386
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
|
|
387
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
|
|
388
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(103);
|
|
389
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(104);
|
|
390
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(102);
|
|
391
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
|
|
392
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
|
331
|
393
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
332
|
394
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
333
|
395
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -347,6 +409,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
347
|
409
|
|
348
|
410
|
|
349
|
411
|
|
|
412
|
+
|
350
|
413
|
var AppModule = /** @class */ (function () {
|
351
|
414
|
function AppModule() {
|
352
|
415
|
}
|
|
@@ -385,6 +448,7 @@ var AppModule = /** @class */ (function () {
|
385
|
448
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
386
|
449
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
387
|
450
|
__WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
|
|
451
|
+ __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
|
388
|
452
|
{ provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
|
389
|
453
|
]
|
390
|
454
|
})
|
|
@@ -396,16 +460,16 @@ var AppModule = /** @class */ (function () {
|
396
|
460
|
|
397
|
461
|
/***/ }),
|
398
|
462
|
|
399
|
|
-/***/ 278:
|
|
463
|
+/***/ 279:
|
400
|
464
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
401
|
465
|
|
402
|
466
|
"use strict";
|
403
|
467
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
404
|
468
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
405
|
469
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
406
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
|
407
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
|
408
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(100);
|
|
470
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
|
|
471
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
|
472
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(102);
|
409
|
473
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
410
|
474
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
411
|
475
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -431,7 +495,7 @@ var MyApp = /** @class */ (function () {
|
431
|
495
|
});
|
432
|
496
|
}
|
433
|
497
|
MyApp = __decorate([
|
434
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
|
|
498
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
|
435
|
499
|
}),
|
436
|
500
|
__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 */]])
|
437
|
501
|
], MyApp);
|
|
@@ -442,13 +506,13 @@ var MyApp = /** @class */ (function () {
|
442
|
506
|
|
443
|
507
|
/***/ }),
|
444
|
508
|
|
445
|
|
-/***/ 99:
|
|
509
|
+/***/ 50:
|
446
|
510
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
447
|
511
|
|
448
|
512
|
"use strict";
|
449
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
|
|
513
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
|
450
|
514
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
451
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
515
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(78);
|
452
|
516
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
453
|
517
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
454
|
518
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -460,32 +524,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
460
|
524
|
};
|
461
|
525
|
|
462
|
526
|
|
463
|
|
-/**
|
464
|
|
- * Generated class for the Tab4Page page.
|
465
|
|
- *
|
466
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
467
|
|
- * Ionic pages and navigation.
|
468
|
|
- */
|
469
|
|
-var Tab4Page = /** @class */ (function () {
|
470
|
|
- function Tab4Page(navCtrl, navParams) {
|
471
|
|
- this.navCtrl = navCtrl;
|
472
|
|
- this.navParams = navParams;
|
|
527
|
+var TransactionService = /** @class */ (function () {
|
|
528
|
+ function TransactionService(http) {
|
|
529
|
+ this.http = http;
|
|
530
|
+ this.API = 'http://localhost:8080/api/v1';
|
|
531
|
+ this.TRANSACTION_API = this.API + '/transactions';
|
473
|
532
|
}
|
474
|
|
- Tab4Page.prototype.ionViewDidLoad = function () {
|
475
|
|
- console.log('ionViewDidLoad Tab4Page');
|
|
533
|
+ TransactionService.prototype.createTransaction = function (transaction) {
|
|
534
|
+ return this.http.post(this.TRANSACTION_API, transaction);
|
476
|
535
|
};
|
477
|
|
- Tab4Page = __decorate([
|
478
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
479
|
|
- selector: 'page-tab4',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n Generated template for the Tab4Page page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>tab4</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
|
480
|
|
- }),
|
481
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
482
|
|
- ], Tab4Page);
|
483
|
|
- return Tab4Page;
|
|
536
|
+ TransactionService.prototype.getAllTransactions = function () {
|
|
537
|
+ return this.http.get(this.TRANSACTION_API);
|
|
538
|
+ };
|
|
539
|
+ TransactionService = __decorate([
|
|
540
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
|
541
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
|
|
542
|
+ ], TransactionService);
|
|
543
|
+ return TransactionService;
|
484
|
544
|
}());
|
485
|
545
|
|
486
|
|
-//# sourceMappingURL=tab4.js.map
|
|
546
|
+//# sourceMappingURL=transaction-service.js.map
|
487
|
547
|
|
488
|
548
|
/***/ })
|
489
|
549
|
|
490
|
|
-},[203]);
|
|
550
|
+},[204]);
|
491
|
551
|
//# sourceMappingURL=main.js.map
|