1 |
- {"version":3,"sources":["../../node_modules/@angular/core/esm5 lazy","../../src lazy","../../src/pages/transactions/transactions.module.ts","../../src/pages/wallet/wallet.module.ts","../../src/pages/wallet/wallet.ts","../../src/pages/payment/payment.module.ts","../../src/pages/tabs/tabs.ts","../../src/pages/home/home.ts","../../src/app/main.ts","../../src/app/app.module.ts","../../src/components/transaction/transaction.ts","../../src/app/app.component.ts","../../src/providers/transaction-service.ts","../../src/pages/transactions/transactions.ts","../../src/providers/wallet-service.ts","../../src/pages/payment/payment.ts"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kC;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,qC;;;;;;;;;;;;;;;;;;;;ACvByC;AACO;AACC;AACwB;AAczE;IAAA;IAAoC,CAAC;IAAxB,qBAAqB;QAXjC,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACb,sEAAe;aACf;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,sEAAe,CAAC;aAC1C;YACD,SAAS,EAAE;gBACT,0FAAkB;aACnB;SACF,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAAA;AAAH;;;;;;;;;;;;;;;;;;;;;ACjBO;AACO;AACV;AACyB;AAa/D;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAX5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;YACD,SAAS,EAAE;gBACT,gFAAa;aACd;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH;;;;;;;;;;;;;;;;;;;;;;AChBkC;AACrB;AACe;AASzD;IAGE,oBAAm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AsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 115;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/esm5 lazy\n// module id = 115\n// module chunks = 0","var map = {\n\t\"../pages/payment/payment.module\": [\n\t\t161\n\t],\n\t\"../pages/transactions/transactions.module\": [\n\t\t158\n\t],\n\t\"../pages/wallet/wallet.module\": [\n\t\t159\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids)\n\t\treturn Promise.reject(new Error(\"Cannot find module '\" + req + \"'.\"));\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(ids[0]);\n\t});\n};\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 157;\nmodule.exports = webpackAsyncContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 157\n// module chunks = 0","import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { TransactionPage } from './transactions';\nimport { TransactionService } from '../../providers/transaction-service';\n\n\n@NgModule({\n declarations: [\n TransactionPage,\n ],\n imports: [\n IonicPageModule.forChild(TransactionPage),\n ],\n providers: [\n TransactionService,\n ],\n})\nexport class TransactionPageModule {}\n\n\n// WEBPACK FOOTER //\n// ./src/pages/transactions/transactions.module.ts","import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\nimport { WalletService } from '../../providers/wallet-service';\n\n@NgModule({\n declarations: [\n WalletPage,\n ],\n imports: [\n IonicPageModule.forChild(WalletPage),\n ],\n providers: [\n WalletService,\n ],\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts","import { WalletService } from '../../providers/wallet-service';\nimport { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n\n\n@IonicPage()\n@Component({\n selector: 'page-wallet',\n templateUrl: 'wallet.html',\n})\nexport class WalletPage {\n private wallets: Array<any>;\n\n constructor(public navCtrl: NavController, public navParams: NavParams, public walletService: WalletService) {\n }\n\n ionViewDidLoad() {\n this.walletService.getWalletAmount().subscribe(wallets => {\n this.wallets = wallets;\n })\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.ts","import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { PaymentPage } from './payment';\nimport { TransactionService } from '../../providers/transaction-service';\nimport { TransactionComponent } from '../../components/transaction/transaction';\n\n\n@NgModule({\n declarations: [\n PaymentPage,\n TransactionComponent\n ],\n imports: [\n IonicPageModule.forChild(PaymentPage), \n ],\n providers: [\n TransactionService,\n ],\n})\nexport class PaymentPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/payment/payment.module.ts","import { PaymentPage } from '../payment/payment';\nimport { TransactionPage } from '../transactions/transactions';\nimport { WalletPage } from '../wallet/wallet';\nimport { Component } from '@angular/core';\nimport { HomePage } from '../home/home';\n\n\n@Component({\n templateUrl: 'tabs.html'\n})\nexport class TabsPage {\n\n tab1Root = HomePage;\n tab2Root = PaymentPage;\n tab3Root = TransactionPage;\n tab4Root = WalletPage;\n\n constructor() {\n\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/tabs/tabs.ts","\nimport { Component } from '@angular/core';\nimport { NavController } from 'ionic-angular';\n\n@Component({\n selector: 'page-home',\n templateUrl: 'home.html'\n})\nexport class HomePage {\n\n constructor(public navCtrl: NavController, ) {\n\n }\nionViewDidLoad(){\n\n \n}\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/home/home.ts","import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app.module';\n\nplatformBrowserDynamic().bootstrapModule(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/main.ts","import { TransactionPage } from '../pages/transactions/transactions';\nimport { NgModule, ErrorHandler } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';\nimport { MyApp } from './app.component';\nimport { HttpClientModule } from '@angular/common/http';\nimport { HomePage } from '../pages/home/home';\nimport { TabsPage } from '../pages/tabs/tabs';\nimport { WalletPageModule } from '../pages/wallet/wallet.module';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { TransactionPageModule } from '../pages/transactions/transactions.module';\nimport { PaymentPage } from '../pages/payment/payment';\nimport { PaymentPageModule } from '../pages/payment/payment.module';\nimport { TransactionService } from '../providers/transaction-service';\nimport { WalletService } from '../providers/wallet-service';\n\n\n@NgModule({\n declarations: [\n MyApp,\n HomePage,\n TabsPage\n \n ],\n imports: [\n BrowserModule,\n WalletPageModule,\n TransactionPageModule,\n PaymentPageModule,\n HttpClientModule,\n IonicModule.forRoot(MyApp)\n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n HomePage,\n TabsPage,\n TransactionPage,\n PaymentPage,\n ],\n providers: [\n StatusBar,\n SplashScreen,\n TransactionService,\n WalletService,\n {provide: ErrorHandler, useClass: IonicErrorHandler},\n \n ]\n})\nexport class AppModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component } from '@angular/core';\n\n/**\n * Generated class for the TransactionComponent component.\n *\n * See https://angular.io/api/core/Component for more info on Angular\n * Components.\n */\n@Component({\n selector: 'transaction',\n templateUrl: 'transaction.html'\n})\nexport class TransactionComponent {\n fromId: string;\n toId: string;\n amount: number;\n\n constructor(fromId: string,toId: string, amount: number ) {\n this.fromId = fromId;\n this.toId = toId;\n this.amount = amount;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/transaction/transaction.ts","import { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { TabsPage } from '../pages/tabs/tabs';\n\n@Component({\n templateUrl: 'app.html'\n})\nexport class MyApp {\n rootPage:any = TabsPage;\n\n constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {\n platform.ready().then(() => {\n // Okay, so the platform is ready and our plugins are available.\n // Here you can do any higher level native things you might need.\n statusBar.styleDefault();\n splashScreen.hide();\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","import { Injectable, transition } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient } from '@angular/common/http';\n\n\n@Injectable()\nexport class TransactionService {\n \n\n public API = 'http://localhost:8080/';\n \n\n constructor(public http: HttpClient) {\n }\n\n getTransactions(): Observable<any> {\n return this.http.get(this.API + 'transactions');\n }\n; \n postTransactions(path: string, data: any): Observable<any> {\n return this.http.post(this.API + path, data);\n\n }\n \n}\n\n\n// WEBPACK FOOTER //\n// ./src/providers/transaction-service.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { TransactionService } from '../../providers/transaction-service';\n\n\n@IonicPage()\n@Component({\n selector: 'page-transactions',\n templateUrl: 'transactions.html',\n})\nexport class TransactionPage {\n private transactions: Array<any>;\n \n constructor(public navCtrl: NavController, public navParams: NavParams, public transactionsService: TransactionService) {\n }\n\n ionViewDidLoad() {\n this.transactionsService.getTransactions().subscribe(transactions => {\n this.transactions = transactions;\n })\n }\n doRefresh(refresher) {\n this.ionViewDidLoad();\n refresher.complete();\n };\n\n \n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/transactions/transactions.ts","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable()\nexport class WalletService {\n public API = 'http://localhost:8080';\n \n\n constructor(public http: HttpClient) {\n }\n\n getWalletAmount(): Observable<any> {\n return this.http.get(this.API + '/wallets');\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./src/providers/wallet-service.ts","\nimport { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams} from 'ionic-angular';\nimport { HttpClient } from '@angular/common/http';\nimport { TransactionService } from '../../providers/transaction-service';\n\n\n@IonicPage()\n@Component({\n selector: 'page-payment',\n templateUrl: 'payment.html',\n})\n\n\nexport class PaymentPage {\n fromId: any;\n toId: any;\n amount: any;\n //trans: TransactionComponent = new TransactionComponent(this.fromId, this.toId, this.amount);\n trans = {fromId: '', toId: '', amount: ''};\n\n constructor(public navCtrl: NavController, public navParams: NavParams, private http: HttpClient, public transfer: TransactionService) {\n this.navCtrl = navCtrl;\n// this.fromId = document.getElementByIdaa;\n// this.toId ='';\n// this.amount = 0;\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad PaymentPage');\n }\n transferMoney(){\n\n console.log(this.fromId);\n console.log(this.toId);\n console.log(this.amount);\n console.log(this.trans);\n this.transfer.postTransactions(\"checkTx\", this.trans).subscribe(data => console.log(data))\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/payment/payment.ts"],"sourceRoot":""}
|