|
@@ -144,65 +144,6 @@ module.exports = webpackAsyncContext;
|
144
|
144
|
|
145
|
145
|
/***/ }),
|
146
|
146
|
|
147
|
|
-/***/ 156:
|
148
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
149
|
|
-
|
150
|
|
-"use strict";
|
151
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
152
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
153
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
154
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(157);
|
155
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
156
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
157
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
158
|
|
- 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;
|
159
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
160
|
|
-};
|
161
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
162
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
163
|
|
-};
|
164
|
|
-
|
165
|
|
-
|
166
|
|
-
|
167
|
|
-var HomePage = /** @class */ (function () {
|
168
|
|
- function HomePage(navCtrl, blockService) {
|
169
|
|
- this.navCtrl = navCtrl;
|
170
|
|
- this.blockService = blockService;
|
171
|
|
- this.block = {};
|
172
|
|
- this.id = 3;
|
173
|
|
- this.getBlock();
|
174
|
|
- }
|
175
|
|
- HomePage.prototype.getBlock = function () {
|
176
|
|
- var _this = this;
|
177
|
|
- this.blockService.getBlock(this.id).subscribe(function (block) {
|
178
|
|
- _this.block = block;
|
179
|
|
- });
|
180
|
|
- };
|
181
|
|
- HomePage.prototype.btnClicked = function () {
|
182
|
|
- var _this = this;
|
183
|
|
- this.blockService.getMinedBlock(this.id).subscribe(function (block) {
|
184
|
|
- _this.block = block;
|
185
|
|
- });
|
186
|
|
- };
|
187
|
|
- HomePage = __decorate([
|
188
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
189
|
|
- selector: 'page-home',template:/*ion-inline-start:"/Users/khalils/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 <div class="well well-success col-xs-7" id="blockchain">\n <div class="list list-inset">\n <label class="item item-input"> Block #:<input type="text" disabled placeholder= "{{ block.blockNumber }}" ></label>\n <label class="item item-input"> Nonce:<input type="text" disabled placeholder= "{{ block.nonce }}" ></label>\n <label class="item item-input"> Data:<input type="text" disabled placeholder= "{{ block.transactionList }}" > </label>\n <label class="item item-input"> Hash:<input type="text" disabled placeholder= "{{ block.currentHash }}" ></label>\n <!-- <label class="item item-input"> HashPrev: <input type="text" disabled placeholder="Hash"></label> -->\n <button ion-button (click)="btnClicked()">Mine</button>\n </div>\n </div> \n\n</ion-content>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
|
190
|
|
- }),
|
191
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
192
|
|
- ], HomePage);
|
193
|
|
- return HomePage;
|
194
|
|
-}());
|
195
|
|
-
|
196
|
|
-//make payment
|
197
|
|
-//block view
|
198
|
|
-//2 pull down list of username and pay other user "blank zips"
|
199
|
|
-// transaction are order by date
|
200
|
|
-// pay tab how many coins``
|
201
|
|
-// 4 tabs block,pay,
|
202
|
|
-//# sourceMappingURL=home.js.map
|
203
|
|
-
|
204
|
|
-/***/ }),
|
205
|
|
-
|
206
|
147
|
/***/ 157:
|
207
|
148
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
208
|
149
|
|
|
@@ -314,7 +255,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
314
|
255
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(198);
|
315
|
256
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(201);
|
316
|
257
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
|
317
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(156);
|
|
258
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_block_home__ = __webpack_require__(283);
|
318
|
259
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_common_http__ = __webpack_require__(158);
|
319
|
260
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__providers_block_service__ = __webpack_require__(157);
|
320
|
261
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(100);
|
|
@@ -347,7 +288,7 @@ var AppModule = /** @class */ (function () {
|
347
|
288
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
|
348
|
289
|
declarations: [
|
349
|
290
|
__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
350
|
|
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
|
|
291
|
+ __WEBPACK_IMPORTED_MODULE_6__pages_block_home__["a" /* HomePage */],
|
351
|
292
|
__WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
352
|
293
|
__WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
353
|
294
|
__WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
|
@@ -368,7 +309,7 @@ var AppModule = /** @class */ (function () {
|
368
|
309
|
bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
|
369
|
310
|
entryComponents: [
|
370
|
311
|
__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
371
|
|
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
|
|
312
|
+ __WEBPACK_IMPORTED_MODULE_6__pages_block_home__["a" /* HomePage */],
|
372
|
313
|
__WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
373
|
314
|
__WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
374
|
315
|
__WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
|
@@ -426,22 +367,82 @@ var MyApp = /** @class */ (function () {
|
426
|
367
|
MyApp = __decorate([
|
427
|
368
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
|
428
|
369
|
}),
|
429
|
|
- __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 */]])
|
|
370
|
+ __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]) === "function" && _c || Object])
|
430
|
371
|
], MyApp);
|
431
|
372
|
return MyApp;
|
|
373
|
+ var _a, _b, _c;
|
432
|
374
|
}());
|
433
|
375
|
|
434
|
376
|
//# sourceMappingURL=app.component.js.map
|
435
|
377
|
|
436
|
378
|
/***/ }),
|
437
|
379
|
|
|
380
|
+/***/ 283:
|
|
381
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
382
|
+
|
|
383
|
+"use strict";
|
|
384
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
|
385
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
|
386
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
387
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(157);
|
|
388
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
389
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
390
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
391
|
+ 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;
|
|
392
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
393
|
+};
|
|
394
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
395
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
396
|
+};
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+var HomePage = /** @class */ (function () {
|
|
401
|
+ function HomePage(navCtrl, blockService) {
|
|
402
|
+ this.navCtrl = navCtrl;
|
|
403
|
+ this.blockService = blockService;
|
|
404
|
+ this.block = {};
|
|
405
|
+ this.id = 3;
|
|
406
|
+ this.getBlock();
|
|
407
|
+ }
|
|
408
|
+ HomePage.prototype.getBlock = function () {
|
|
409
|
+ var _this = this;
|
|
410
|
+ this.blockService.getBlock(this.id).subscribe(function (block) {
|
|
411
|
+ _this.block = block;
|
|
412
|
+ });
|
|
413
|
+ };
|
|
414
|
+ HomePage.prototype.btnClicked = function () {
|
|
415
|
+ var _this = this;
|
|
416
|
+ this.blockService.getMinedBlock(this.id).subscribe(function (block) {
|
|
417
|
+ _this.block = block;
|
|
418
|
+ });
|
|
419
|
+ };
|
|
420
|
+ HomePage = __decorate([
|
|
421
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
422
|
+ selector: 'page-home',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/block/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 <div class="well well-success col-xs-7" id="blockchain">\n <div class="list list-inset">\n <label class="item item-input"> Block #:<input type="text" disabled placeholder= "{{ block.blockNumber }}" ></label>\n <label class="item item-input"> Nonce:<input type="text" disabled placeholder= "{{ block.nonce }}" ></label>\n <label class="item item-input"> Data:<input type="text" disabled placeholder= "{{ block.transactionList }}" > </label>\n <label class="item item-input"> Hash:<input type="text" disabled placeholder= "{{ block.currentHash }}" ></label>\n <!-- <label class="item item-input"> HashPrev: <input type="text" disabled placeholder="Hash"></label> -->\n <button ion-button (click)="btnClicked()">Mine</button>\n </div>\n </div> \n\n</ion-content>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/block/home.html"*/
|
|
423
|
+ }),
|
|
424
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
|
425
|
+ ], HomePage);
|
|
426
|
+ return HomePage;
|
|
427
|
+}());
|
|
428
|
+
|
|
429
|
+//make payment
|
|
430
|
+//block view
|
|
431
|
+//2 pull down list of username and pay other user "blank zips"
|
|
432
|
+// transaction are order by date
|
|
433
|
+// pay tab how many coins``
|
|
434
|
+// 4 tabs block,pay,
|
|
435
|
+//# sourceMappingURL=home.js.map
|
|
436
|
+
|
|
437
|
+/***/ }),
|
|
438
|
+
|
438
|
439
|
/***/ 99:
|
439
|
440
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
440
|
441
|
|
441
|
442
|
"use strict";
|
442
|
443
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
|
443
|
444
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
444
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(156);
|
|
445
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__block_home__ = __webpack_require__(283);
|
445
|
446
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(100);
|
446
|
447
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(101);
|
447
|
448
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(202);
|
|
@@ -461,7 +462,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
461
|
462
|
|
462
|
463
|
var TabsPage = /** @class */ (function () {
|
463
|
464
|
function TabsPage() {
|
464
|
|
- this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
|
|
465
|
+ this.homePage = __WEBPACK_IMPORTED_MODULE_1__block_home__["a" /* HomePage */];
|
465
|
466
|
this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
|
466
|
467
|
this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
|
467
|
468
|
this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
|