weekend project to make a simple web app using Typescript/Ionic/Angular.

1
  1. {"version":3,"sources":["../../node_modules/@angular/core/esm5 lazy","../../src/pages/accounts/accounts.ts","../../src lazy","../../src/pages/account/account.ts","../../src/pages/overview/overview.ts","../../src/pages/strategies/strategies.ts","../../src/pages/strategy/strategy.ts","../../src/app/main.ts","../../src/app/app.module.ts","../../src/pages/trade/trade.ts","../../src/app/app.component.ts","../../src/pages/statistics/statistics.ts"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kC;;;;;;;;;;;;;;;;;;;;;ACV0C;AACe;AACR;AAMjD;IASE,sBAAmB,OAAsB,EAAS,SAAoB;QAAnD,YAAO,GAAP,OAAO,CAAe;QAAS,cAAS,GAAT,SAAS,CAAW;QAP/D,aAAQ,GAAE;YACf,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAC;YACtB,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAC;YACvB,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAC;SAE3B,CAAC;IAGF,CAAC;IAED,qCAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC7C,CAAC;IACD,oCAAa,GAAb,UAAc,MAAM,EAAE,OAAO;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qEAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAjBU,YAAY;QAJxB,wEAAS,CAAC;YACT,QAAQ,EAAE,eAAe;WACG;SAC7B,CAAC;qBAUsE;OAT3D,YAAY,CAkBxB;IAAD,CAAC;AAAA;SAlBY,YAAY,e;;;;;;;ACRzB;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kC;;;;;;;;;;;;;;;;;;;;ACV0C;AACe;AAOzD;IAIE,qBAAm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packEmptyAsyncContext(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 = 109;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/esm5 lazy\n// module id = 109\n// module chunks = 0","import { Component } from '@angular/core';\nimport { NavController, NavParams } from 'ionic-angular';\nimport { AccountPage } from '../account/account';\n\n@Component({\n selector: 'page-accounts',\n templateUrl: 'accounts.html',\n})\nexport class AccountsPage {\n\n public accounts =[\n {id: 1, name: 'Forex'},\n {id: 2, name: 'Kraken'},\n {id: 3, name: 'Robinhood'},\n \n ];\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad AccountsPage');\n }\n accountTapped($event, account){\n this.navCtrl.push(AccountPage, account);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/accounts/accounts.ts","function webpackEmptyAsyncContext(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 = 151;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 151\n// module chunks = 0","import { Component } from '@angular/core';\nimport { NavController, NavParams } from 'ionic-angular';\n\n\n@Component({\n selector: 'page-account',\n templateUrl: 'account.html',\n})\nexport class AccountPage {\n\n public account: any = {};\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n this.account = this.navParams.data;\n console.log('**nav parama', this.navParams);\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad AccountPage');\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/account/account.ts","import { StatisticsPage } from './../statistics/statistics';\nimport { Component } from '@angular/core';\nimport { NavController } from 'ionic-angular';\n\n@Component({\n selector: 'page-overview',\n templateUrl: 'overview.html'\n})\nexport class OverviewPage {\n\n constructor(private navCtrl: NavController) {\n }\n\n\ngoToStatistics(){\nthis.navCtrl.push(StatisticsPage);\n}\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/overview/overview.ts","import { Component } from '@angular/core';\nimport { NavController, NavParams } from 'ionic-angular';\nimport { StrategyPage } from '../strategy/strategy';\n\n\n\n@Component({\n selector: 'page-strategies',\n templateUrl: 'strategies.html',\n})\nexport class StrategiesPage {\n\n public strategies =[\n {id: 1, name: 'Strategy 1'},\n {id: 2, name: 'Strategy 2'},\n {id: 3, name: 'Strategy 3'},\n {id: 4, name: 'Strategy 4'},\n\n ];\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad StrategiesPage');\n }\n\n strategyTapped($event, strategy){\n this.navCtrl.push(StrategyPage, strategy);\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/strategies/strategies.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n\n@Component({\n selector: 'page-strategy',\n templateUrl: 'strategy.html',\n})\nexport class StrategyPage {\n\n public strategy: any = {};\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n this.strategy = this.navParams.data;\n console.log('**nav params', this.navParams);\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad StrategyPage');\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/strategy/strategy.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 { AccountsPage } from './../pages/accounts/accounts';\nimport { AccountPage } from './../pages/account/account';\nimport { TradePage } from './../pages/trade/trade';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';\n\nimport { MyApp } from './app.component';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { OverviewPage } from '../pages/overview/overview';\nimport { StatisticsPage } from '../pages/statistics/statistics';\nimport { StrategiesPage } from '../pages/strategies/strategies';\nimport { StrategyPage } from '../pages/strategy/strategy';\n\n@NgModule({\n declarations: [\n MyApp,\n OverviewPage,\n StatisticsPage,\n StrategiesPage,\n StrategyPage,\n TradePage,\n AccountPage,\n AccountsPage\n ],\n imports: [\n BrowserModule,\n IonicModule.forRoot(MyApp),\n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n OverviewPage,\n StatisticsPage,\n StrategiesPage,\n StrategyPage,\n TradePage,\n AccountPage,\n AccountsPage\n ],\n providers: [\n StatusBar,\n SplashScreen,\n {provide: ErrorHandler, useClass: IonicErrorHandler}\n ]\n})\nexport class AppModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n/**\n * Generated class for the TradePage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@Component({\n selector: 'page-trade',\n templateUrl: 'trade.html',\n})\nexport class TradePage {\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad TradePage');\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/trade/trade.ts","import { Component, ViewChild } from '@angular/core';\nimport { Nav, Platform, NavController } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { OverviewPage } from '../pages/overview/overview';\nimport { StatisticsPage } from '../pages/statistics/statistics';\nimport { StrategiesPage } from '../pages/strategies/strategies';\nimport { AccountsPage } from '../pages/accounts/accounts';\n\n@Component({\n templateUrl: 'app.html'\n})\nexport class MyApp {\n @ViewChild(Nav) nav: Nav;\n\n rootPage: any = OverviewPage;\n\n pages: Array<{title: string, component: any}>;\n\n constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) {\n this.initializeApp();\n\n // used for an example of ngFor and navigation\n\n }\n\n initializeApp() {\n this.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 this.statusBar.styleDefault();\n this.splashScreen.hide();\n });\n }\n\n openPage(page) {\n // Reset the content nav to have just this page\n // we wouldn't want the back button to show in this scenario\n this.nav.setRoot(page.component);\n }\n\n goStatistics(){\n this.nav.push(StatisticsPage)\n }\n\n goToStrategies(){\n this.nav.push(StrategiesPage)\n }\n goToAccounts(){\n this.nav.push(AccountsPage)\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n\n@Component({\n selector: 'page-statistics',\n templateUrl: 'statistics.html',\n})\nexport class StatisticsPage {\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad StatisticsPage');\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/statistics/statistics.ts"],"sourceRoot":""}