123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- webpackJsonp([0],{
-
- /***/ 115:
- /***/ (function(module, exports) {
-
- function webpackEmptyAsyncContext(req) {
- // Here Promise.resolve().then() is used instead of new Promise() to prevent
- // uncatched exception popping up in devtools
- return Promise.resolve().then(function() {
- throw new Error("Cannot find module '" + req + "'.");
- });
- }
- webpackEmptyAsyncContext.keys = function() { return []; };
- webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
- module.exports = webpackEmptyAsyncContext;
- webpackEmptyAsyncContext.id = 115;
-
- /***/ }),
-
- /***/ 157:
- /***/ (function(module, exports, __webpack_require__) {
-
- var map = {
- "../pages/payment/payment.module": [
- 161
- ],
- "../pages/transactions/transactions.module": [
- 158
- ],
- "../pages/wallet/wallet.module": [
- 159
- ]
- };
- function webpackAsyncContext(req) {
- var ids = map[req];
- if(!ids)
- return Promise.reject(new Error("Cannot find module '" + req + "'."));
- return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {
- return __webpack_require__(ids[0]);
- });
- };
- webpackAsyncContext.keys = function webpackAsyncContextKeys() {
- return Object.keys(map);
- };
- webpackAsyncContext.id = 157;
- module.exports = webpackAsyncContext;
-
- /***/ }),
-
- /***/ 158:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(57);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
-
-
-
-
- var TransactionPageModule = /** @class */ (function () {
- function TransactionPageModule() {
- }
- TransactionPageModule = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
- declarations: [
- __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
- ],
- imports: [
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
- ],
- providers: [
- __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
- ],
- })
- ], TransactionPageModule);
- return TransactionPageModule;
- }());
-
- //# sourceMappingURL=transactions.module.js.map
-
- /***/ }),
-
- /***/ 159:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(160);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_wallet_service__ = __webpack_require__(80);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
-
-
-
-
- var WalletPageModule = /** @class */ (function () {
- function WalletPageModule() {
- }
- WalletPageModule = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
- declarations: [
- __WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
- ],
- imports: [
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
- ],
- providers: [
- __WEBPACK_IMPORTED_MODULE_3__providers_wallet_service__["a" /* WalletService */],
- ],
- })
- ], WalletPageModule);
- return WalletPageModule;
- }());
-
- //# sourceMappingURL=wallet.module.js.map
-
- /***/ }),
-
- /***/ 160:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__ = __webpack_require__(80);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(18);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
-
- var WalletPage = /** @class */ (function () {
- function WalletPage(navCtrl, navParams, walletService) {
- this.navCtrl = navCtrl;
- this.navParams = navParams;
- this.walletService = walletService;
- }
- WalletPage.prototype.ionViewDidLoad = function () {
- var _this = this;
- this.walletService.getWalletAmount().subscribe(function (wallets) {
- _this.wallets = wallets;
- });
- };
- WalletPage.prototype.doRefresh = function (refresher) {
- this.ionViewDidLoad();
- refresher.complete();
- };
- ;
- WalletPage = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["m" /* Component */])({
- selector: 'page-wallet',template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/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/tennesseeg/blueCoin/blueCoin-UI/src/pages/wallet/wallet.html"*/,
- }),
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]) === "function" && _c || Object])
- ], WalletPage);
- return WalletPage;
- var _a, _b, _c;
- }());
-
- //# sourceMappingURL=wallet.js.map
-
- /***/ }),
-
- /***/ 161:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaymentPageModule", function() { return PaymentPageModule; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(81);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
-
-
-
-
-
- var PaymentPageModule = /** @class */ (function () {
- function PaymentPageModule() {
- }
- PaymentPageModule = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
- declarations: [
- __WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */],
- __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__["a" /* TransactionComponent */]
- ],
- imports: [
- __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__payment__["a" /* PaymentPage */]),
- ],
- providers: [
- __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
- ],
- })
- ], PaymentPageModule);
- return PaymentPageModule;
- }());
-
- //# sourceMappingURL=payment.module.js.map
-
- /***/ }),
-
- /***/ 205:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__payment_payment__ = __webpack_require__(81);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__transactions_transactions__ = __webpack_require__(57);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(160);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_home__ = __webpack_require__(206);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
-
-
-
- var TabsPage = /** @class */ (function () {
- function TabsPage() {
- this.tab1Root = __WEBPACK_IMPORTED_MODULE_4__home_home__["a" /* HomePage */];
- this.tab2Root = __WEBPACK_IMPORTED_MODULE_0__payment_payment__["a" /* PaymentPage */];
- this.tab3Root = __WEBPACK_IMPORTED_MODULE_1__transactions_transactions__["a" /* TransactionPage */];
- this.tab4Root = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
- }
- TabsPage = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_3__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/pages/tabs/tabs.html"*/'<ion-tabs>\n <!-- <ion-tab [root]="tab1Root" tabTitle="Blockchain" tabIcon="cube"></ion-tab> -->\n <ion-tab [root]="tab2Root" tabTitle="Payment" tabIcon="send"></ion-tab>\n <ion-tab [root]="tab3Root" tabTitle="Blockchain" tabIcon="cube"></ion-tab>\n <ion-tab [root]="tab4Root" tabTitle="Wallet" tabIcon="logo-usd"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/pages/tabs/tabs.html"*/
- }),
- __metadata("design:paramtypes", [])
- ], TabsPage);
- return TabsPage;
- }());
-
- //# sourceMappingURL=tabs.js.map
-
- /***/ }),
-
- /***/ 206:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
- var HomePage = /** @class */ (function () {
- function HomePage(navCtrl) {
- this.navCtrl = navCtrl;
- }
- HomePage.prototype.ionViewDidLoad = function () {
- };
- HomePage = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
- selector: 'page-home',template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/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/tennesseeg/blueCoin/blueCoin-UI/src/pages/home/home.html"*/
- }),
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
- ], HomePage);
- return HomePage;
- }());
-
- //# sourceMappingURL=home.js.map
-
- /***/ }),
-
- /***/ 207:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(208);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(228);
-
-
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
- //# sourceMappingURL=main.js.map
-
- /***/ }),
-
- /***/ 228:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__pages_transactions_transactions__ = __webpack_require__(57);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(276);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common_http__ = __webpack_require__(47);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(206);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_tabs_tabs__ = __webpack_require__(205);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_wallet_wallet_module__ = __webpack_require__(159);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__ = __webpack_require__(201);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__ = __webpack_require__(204);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(158);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_payment_payment__ = __webpack_require__(81);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(161);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__ = __webpack_require__(41);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__ = __webpack_require__(80);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var AppModule = /** @class */ (function () {
- function AppModule() {
- }
- AppModule = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
- declarations: [
- __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
- __WEBPACK_IMPORTED_MODULE_7__pages_tabs_tabs__["a" /* TabsPage */]
- ],
- imports: [
- __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__["a" /* BrowserModule */],
- __WEBPACK_IMPORTED_MODULE_8__pages_wallet_wallet_module__["WalletPageModule"],
- __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__["TransactionPageModule"],
- __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__["PaymentPageModule"],
- __WEBPACK_IMPORTED_MODULE_5__angular_common_http__["b" /* HttpClientModule */],
- __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
- links: [
- { loadChildren: '../pages/transactions/transactions.module#TransactionPageModule', name: 'TransactionPage', segment: 'transactions', priority: 'low', defaultHistory: [] },
- { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] },
- { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] }
- ]
- })
- ],
- bootstrap: [__WEBPACK_IMPORTED_MODULE_3_ionic_angular__["a" /* IonicApp */]],
- entryComponents: [
- __WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */],
- __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
- __WEBPACK_IMPORTED_MODULE_7__pages_tabs_tabs__["a" /* TabsPage */],
- __WEBPACK_IMPORTED_MODULE_0__pages_transactions_transactions__["a" /* TransactionPage */],
- __WEBPACK_IMPORTED_MODULE_12__pages_payment_payment__["a" /* PaymentPage */],
- ],
- providers: [
- __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__["a" /* StatusBar */],
- __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__["a" /* SplashScreen */],
- __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__["a" /* TransactionService */],
- __WEBPACK_IMPORTED_MODULE_15__providers_wallet_service__["a" /* WalletService */],
- { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["b" /* IonicErrorHandler */] },
- ]
- })
- ], AppModule);
- return AppModule;
- }());
-
- //# sourceMappingURL=app.module.js.map
-
- /***/ }),
-
- /***/ 258:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionComponent; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
- /**
- * Generated class for the TransactionComponent component.
- *
- * See https://angular.io/api/core/Component for more info on Angular
- * Components.
- */
- var TransactionComponent = /** @class */ (function () {
- function TransactionComponent(fromId, toId, amount) {
- this.fromId = fromId;
- this.toId = toId;
- this.amount = amount;
- }
- TransactionComponent = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
- selector: 'transaction',template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/components/transaction/transaction.html"*/'<!-- Generated template for the TransactionComponent component -->\n<div>\n {{text}}\n</div>\n'/*ion-inline-end:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/components/transaction/transaction.html"*/
- }),
- __metadata("design:paramtypes", [String, String, Number])
- ], TransactionComponent);
- return TransactionComponent;
- }());
-
- //# sourceMappingURL=transaction.js.map
-
- /***/ }),
-
- /***/ 276:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(201);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(204);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(205);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
-
-
-
- var MyApp = /** @class */ (function () {
- function MyApp(platform, statusBar, splashScreen) {
- this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__["a" /* TabsPage */];
- platform.ready().then(function () {
- // Okay, so the platform is ready and our plugins are available.
- // Here you can do any higher level native things you might need.
- statusBar.styleDefault();
- splashScreen.hide();
- });
- }
- MyApp = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/app/app.html"*/
- }),
- __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 */]])
- ], MyApp);
- return MyApp;
- }());
-
- //# sourceMappingURL=app.component.js.map
-
- /***/ }),
-
- /***/ 41:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(47);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
- var TransactionService = /** @class */ (function () {
- function TransactionService(http) {
- this.http = http;
- this.API = 'http://localhost:8080/';
- }
- TransactionService.prototype.getTransactions = function () {
- return this.http.get(this.API + 'transactions');
- };
- ;
- TransactionService.prototype.postTransactions = function (path, data) {
- return this.http.post(this.API + path, data);
- };
- TransactionService = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
- ], TransactionService);
- return TransactionService;
- }());
-
- //# sourceMappingURL=transaction-service.js.map
-
- /***/ }),
-
- /***/ 57:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(41);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
-
- var TransactionPage = /** @class */ (function () {
- function TransactionPage(navCtrl, navParams, transactionsService) {
- this.navCtrl = navCtrl;
- this.navParams = navParams;
- this.transactionsService = transactionsService;
- }
- TransactionPage.prototype.ionViewDidLoad = function () {
- var _this = this;
- this.transactionsService.getTransactions().subscribe(function (transactions) {
- _this.transactions = transactions;
- });
- };
- TransactionPage.prototype.doRefresh = function (refresher) {
- this.ionViewDidLoad();
- refresher.complete();
- };
- ;
- TransactionPage = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
- selector: 'page-transactions',template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/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/tennesseeg/blueCoin/blueCoin-UI/src/pages/transactions/transactions.html"*/,
- }),
- __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 */]])
- ], TransactionPage);
- return TransactionPage;
- }());
-
- //# sourceMappingURL=transactions.js.map
-
- /***/ }),
-
- /***/ 80:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletService; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(47);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
- var WalletService = /** @class */ (function () {
- function WalletService(http) {
- this.http = http;
- this.API = 'http://localhost:8080';
- }
- WalletService.prototype.getWalletAmount = function () {
- return this.http.get(this.API + '/wallets');
- };
- WalletService = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
- ], WalletService);
- return WalletService;
- }());
-
- //# sourceMappingURL=wallet-service.js.map
-
- /***/ }),
-
- /***/ 81:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PaymentPage; });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(47);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- 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;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };
-
-
-
-
- var PaymentPage = /** @class */ (function () {
- function PaymentPage(navCtrl, navParams, http, transfer) {
- this.navCtrl = navCtrl;
- this.navParams = navParams;
- this.http = http;
- this.transfer = transfer;
- //trans: TransactionComponent = new TransactionComponent(this.fromId, this.toId, this.amount);
- this.trans = { fromId: '', toId: '', amount: '' };
- this.navCtrl = navCtrl;
- // this.fromId = document.getElementByIdaa;
- // this.toId ='';
- // this.amount = 0;
- }
- PaymentPage.prototype.ionViewDidLoad = function () {
- console.log('ionViewDidLoad PaymentPage');
- };
- PaymentPage.prototype.transferMoney = function () {
- console.log(this.fromId);
- console.log(this.toId);
- console.log(this.amount);
- console.log(this.trans);
- this.transfer.postTransactions("checkTx", this.trans).subscribe(function (data) { return console.log(data); });
- };
- PaymentPage = __decorate([
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
- selector: 'page-payment',template:/*ion-inline-start:"/Users/tennesseeg/blueCoin/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">\n <ion-option value="15b9ef7d26485fae2ecdc74f8f9f465e0c082fe19a996aef2f1daf712aec5751">Vince</ion-option>\n <ion-option value="9e3123b4c696cb7d9d906a6ec2813d6e6fed5af58b49c4e5f849b7adcb00486c">Tennessee</ion-option>\n <ion-option value="625ef69f8ef7318876d5c5e31c045f4cc2c89ec01949a3af3789be1f45405342">Mexi</ion-option>\n <ion-option value="9b1e8a94fcdb88c8391ec1200718b3ddd73fb631b9c6b5d56619852a47833665">Eugene</ion-option>\n <ion-option value="4b2166f22897c2e85fbab852ae252ee2990231d9692aa7fcc8535cf74c571efd">Clement</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">\n <ion-option value="15b9ef7d26485fae2ecdc74f8f9f465e0c082fe19a996aef2f1daf712aec5751">Vince</ion-option>\n <ion-option value="9e3123b4c696cb7d9d906a6ec2813d6e6fed5af58b49c4e5f849b7adcb00486c">Tennessee</ion-option>\n <ion-option value="625ef69f8ef7318876d5c5e31c045f4cc2c89ec01949a3af3789be1f45405342">Mexi</ion-option>\n <ion-option value="9b1e8a94fcdb88c8391ec1200718b3ddd73fb631b9c6b5d56619852a47833665">Eugene</ion-option>\n <ion-option value="4b2166f22897c2e85fbab852ae252ee2990231d9692aa7fcc8535cf74c571efd">Clement</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" ></ion-input>\n </ion-item>\n\n <button ion-button (click) = "transferMoney()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/tennesseeg/blueCoin/blueCoin-UI/src/pages/payment/payment.html"*/,
- }),
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */], __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */]])
- ], PaymentPage);
- return PaymentPage;
- }());
-
- //# sourceMappingURL=payment.js.map
-
- /***/ })
-
- },[207]);
- //# sourceMappingURL=main.js.map
|