|
@@ -1,612 +0,0 @@
|
1
|
|
-webpackJsonp([4],{
|
2
|
|
-
|
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:
|
49
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
50
|
|
-
|
51
|
|
-"use strict";
|
52
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
|
53
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
54
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
55
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
56
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
57
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
58
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
59
|
|
- 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;
|
60
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
61
|
|
-};
|
62
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
63
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
64
|
|
-};
|
65
|
|
-
|
66
|
|
-
|
67
|
|
-
|
68
|
|
-/**
|
69
|
|
- * Generated class for the TransactionPage page.
|
70
|
|
- *
|
71
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
72
|
|
- * Ionic pages and navigation.
|
73
|
|
- */
|
74
|
|
-var TransactionPage = /** @class */ (function () {
|
75
|
|
- function TransactionPage(navCtrl, navParams, transactionService) {
|
76
|
|
- this.navCtrl = navCtrl;
|
77
|
|
- this.navParams = navParams;
|
78
|
|
- this.transactionService = transactionService;
|
79
|
|
- this.getAllTransactions();
|
80
|
|
- }
|
81
|
|
- TransactionPage.prototype.ionViewDidLoad = function () {
|
82
|
|
- console.log('ionViewDidLoad TransactionPage');
|
83
|
|
- };
|
84
|
|
- TransactionPage.prototype.getAllTransactions = function () {
|
85
|
|
- var _this = this;
|
86
|
|
- this.transactionService.getAllTransactions().subscribe(function (transactions) {
|
87
|
|
- _this.transactions = transactions;
|
88
|
|
- });
|
89
|
|
- };
|
90
|
|
- TransactionPage = __decorate([
|
91
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
92
|
|
- selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Transaction</ion-title>\n </ion-navbar>\n\n</ion-header>\n<ion-content padding>\n\n <ion-list>\n <ion-item-sliding *ngFor="let transaction of transactions">\n <ion-item>\n <ion-card>\n <ion-card-header>\n Transaction #: {{transaction.transactionId}}\n </ion-card-header>\n <ion-card-content>\n <div>Sender: {{ transaction.sender }}</div>\n <div>Recipient: {{ transaction.recipient }}</div>\n <div>Amount: {{ transaction.amount }}</div>\n </ion-card-content>\n </ion-card>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
93
|
|
- }),
|
94
|
|
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]) === "function" && _c || Object])
|
95
|
|
- ], TransactionPage);
|
96
|
|
- return TransactionPage;
|
97
|
|
- var _a, _b, _c;
|
98
|
|
-}());
|
99
|
|
-
|
100
|
|
-//# sourceMappingURL=transaction.js.map
|
101
|
|
-
|
102
|
|
-/***/ }),
|
103
|
|
-
|
104
|
|
-/***/ 103:
|
105
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
106
|
|
-
|
107
|
|
-"use strict";
|
108
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
|
109
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
110
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
|
111
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(104);
|
112
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(102);
|
113
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(101);
|
114
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
115
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
116
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
117
|
|
- 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;
|
118
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
119
|
|
-};
|
120
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
121
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
122
|
|
-};
|
123
|
|
-
|
124
|
|
-
|
125
|
|
-
|
126
|
|
-
|
127
|
|
-
|
128
|
|
-var TabsPage = /** @class */ (function () {
|
129
|
|
- function TabsPage() {
|
130
|
|
- this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
|
131
|
|
- this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
|
132
|
|
- this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
|
133
|
|
- this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
|
134
|
|
- }
|
135
|
|
- TabsPage = __decorate([
|
136
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
137
|
|
- 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"*/,
|
138
|
|
- }),
|
139
|
|
- __metadata("design:paramtypes", [])
|
140
|
|
- ], TabsPage);
|
141
|
|
- return TabsPage;
|
142
|
|
-}());
|
143
|
|
-
|
144
|
|
-//# sourceMappingURL=tabs.js.map
|
145
|
|
-
|
146
|
|
-/***/ }),
|
147
|
|
-
|
148
|
|
-/***/ 104:
|
149
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
150
|
|
-
|
151
|
|
-"use strict";
|
152
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
|
153
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
154
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
155
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
156
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
157
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
158
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
159
|
|
- 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;
|
160
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
161
|
|
-};
|
162
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
163
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
164
|
|
-};
|
165
|
|
-
|
166
|
|
-
|
167
|
|
-
|
168
|
|
-/**
|
169
|
|
- * Generated class for the WalletPage page.
|
170
|
|
- *
|
171
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
172
|
|
- * Ionic pages and navigation.
|
173
|
|
- */
|
174
|
|
-var WalletPage = /** @class */ (function () {
|
175
|
|
- function WalletPage(navCtrl, navParams, transactionService) {
|
176
|
|
- this.navCtrl = navCtrl;
|
177
|
|
- this.navParams = navParams;
|
178
|
|
- this.transactionService = transactionService;
|
179
|
|
- }
|
180
|
|
- WalletPage.prototype.ionViewDidLoad = function () {
|
181
|
|
- console.log('ionViewDidLoad WalletPage');
|
182
|
|
- };
|
183
|
|
- WalletPage.prototype.createTransaction = function () {
|
184
|
|
- this.transactionService.createTransaction(this.transaction);
|
185
|
|
- };
|
186
|
|
- WalletPage = __decorate([
|
187
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
188
|
|
- 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="ann">Ann</ion-option>\n <ion-option value="sen">Sen</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="ann">Ann</ion-option>\n <ion-option value="sen">Sen</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="ann">Ann</ion-option>\n <ion-option value="sen">Sen</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"*/,
|
189
|
|
- }),
|
190
|
|
- __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 */]])
|
191
|
|
- ], WalletPage);
|
192
|
|
- return WalletPage;
|
193
|
|
-}());
|
194
|
|
-
|
195
|
|
-//# sourceMappingURL=wallet.js.map
|
196
|
|
-
|
197
|
|
-/***/ }),
|
198
|
|
-
|
199
|
|
-<<<<<<< HEAD
|
200
|
|
-=======
|
201
|
|
-/***/ 104:
|
202
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
203
|
|
-
|
204
|
|
-"use strict";
|
205
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
|
206
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
207
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
208
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
209
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
210
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
211
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
212
|
|
- 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;
|
213
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
214
|
|
-};
|
215
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
216
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
217
|
|
-};
|
218
|
|
-
|
219
|
|
-
|
220
|
|
-
|
221
|
|
-/**
|
222
|
|
- * Generated class for the TransactionPage page.
|
223
|
|
- *
|
224
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
225
|
|
- * Ionic pages and navigation.
|
226
|
|
- */
|
227
|
|
-var TransactionPage = /** @class */ (function () {
|
228
|
|
- function TransactionPage(navCtrl, navParams, transactionService) {
|
229
|
|
- this.navCtrl = navCtrl;
|
230
|
|
- this.navParams = navParams;
|
231
|
|
- this.transactionService = transactionService;
|
232
|
|
- this.getAllTransactions();
|
233
|
|
- }
|
234
|
|
- TransactionPage.prototype.ionViewDidLoad = function () {
|
235
|
|
- console.log('ionViewDidLoad TransactionPage');
|
236
|
|
- };
|
237
|
|
- TransactionPage.prototype.getAllTransactions = function () {
|
238
|
|
- var _this = this;
|
239
|
|
- this.transactionService.getAllTransactions().subscribe(function (transactions) {
|
240
|
|
- _this.transactions = transactions;
|
241
|
|
- });
|
242
|
|
- };
|
243
|
|
- TransactionPage = __decorate([
|
244
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
245
|
|
- selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Transaction</ion-title>\n </ion-navbar>\n\n</ion-header>\n<ion-content padding>\n\n <ion-list>\n <ion-item-sliding *ngFor="let transaction of transactions">\n <ion-item>\n <ion-card>\n <ion-card-header>\n Transaction #: {{transaction.transactionId}}\n </ion-card-header>\n <ion-card-content>\n <div>Sender: {{ transaction.sender }}</div>\n <div>Recipient: {{ transaction.recipient }}</div>\n <div>Amount: {{ transaction.amount }}</div>\n </ion-card-content>\n </ion-card>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
246
|
|
- }),
|
247
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
|
248
|
|
- __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
249
|
|
- ], TransactionPage);
|
250
|
|
- return TransactionPage;
|
251
|
|
-}());
|
252
|
|
-
|
253
|
|
-//# sourceMappingURL=transaction.js.map
|
254
|
|
-
|
255
|
|
-/***/ }),
|
256
|
|
-
|
257
|
|
->>>>>>> posttransaction
|
258
|
|
-/***/ 116:
|
259
|
|
-/***/ (function(module, exports) {
|
260
|
|
-
|
261
|
|
-function webpackEmptyAsyncContext(req) {
|
262
|
|
- // Here Promise.resolve().then() is used instead of new Promise() to prevent
|
263
|
|
- // uncatched exception popping up in devtools
|
264
|
|
- return Promise.resolve().then(function() {
|
265
|
|
- throw new Error("Cannot find module '" + req + "'.");
|
266
|
|
- });
|
267
|
|
-}
|
268
|
|
-webpackEmptyAsyncContext.keys = function() { return []; };
|
269
|
|
-webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
270
|
|
-module.exports = webpackEmptyAsyncContext;
|
271
|
|
-webpackEmptyAsyncContext.id = 116;
|
272
|
|
-
|
273
|
|
-/***/ }),
|
274
|
|
-
|
275
|
|
-/***/ 158:
|
276
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
277
|
|
-
|
278
|
|
-var map = {
|
279
|
|
- "../pages/tab4/tab4.module": [
|
280
|
|
- 280,
|
281
|
|
- 3
|
282
|
|
- ],
|
283
|
|
- "../pages/tabs/tabs.module": [
|
284
|
|
- 282,
|
285
|
|
- 2
|
286
|
|
- ],
|
287
|
|
- "../pages/transaction/transaction.module": [
|
288
|
|
- 281,
|
289
|
|
- 1
|
290
|
|
- ],
|
291
|
|
- "../pages/wallet/wallet.module": [
|
292
|
|
- 283,
|
293
|
|
- 0
|
294
|
|
- ]
|
295
|
|
-};
|
296
|
|
-function webpackAsyncContext(req) {
|
297
|
|
- var ids = map[req];
|
298
|
|
- if(!ids)
|
299
|
|
- return Promise.reject(new Error("Cannot find module '" + req + "'."));
|
300
|
|
- return __webpack_require__.e(ids[1]).then(function() {
|
301
|
|
- return __webpack_require__(ids[0]);
|
302
|
|
- });
|
303
|
|
-};
|
304
|
|
-webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
305
|
|
- return Object.keys(map);
|
306
|
|
-};
|
307
|
|
-webpackAsyncContext.id = 158;
|
308
|
|
-module.exports = webpackAsyncContext;
|
309
|
|
-
|
310
|
|
-/***/ }),
|
311
|
|
-
|
312
|
|
-/***/ 159:
|
313
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
314
|
|
-
|
315
|
|
-"use strict";
|
316
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
317
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
318
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
319
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
|
320
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
321
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
322
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
323
|
|
- 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;
|
324
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
325
|
|
-};
|
326
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
327
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
328
|
|
-};
|
329
|
|
-
|
330
|
|
-
|
331
|
|
-
|
332
|
|
-var HomePage = /** @class */ (function () {
|
333
|
|
- function HomePage(navCtrl, blockService) {
|
334
|
|
- this.navCtrl = navCtrl;
|
335
|
|
- this.blockService = blockService;
|
336
|
|
- this.block = {};
|
337
|
|
- this.getAllBlocks();
|
338
|
|
- }
|
339
|
|
- HomePage.prototype.getBlock = function (id) {
|
340
|
|
- var _this = this;
|
341
|
|
- this.blockService.getBlock(id).subscribe(function (block) {
|
342
|
|
- _this.block = block;
|
343
|
|
- });
|
344
|
|
- };
|
345
|
|
- HomePage.prototype.getAllBlocks = function () {
|
346
|
|
- var _this = this;
|
347
|
|
- this.blockService.getAllBlocks().subscribe(function (blocks) {
|
348
|
|
- _this.blocks = blocks;
|
349
|
|
- });
|
350
|
|
- };
|
351
|
|
- HomePage.prototype.getMinedBlock = function (id) {
|
352
|
|
- var _this = this;
|
353
|
|
- this.blockService.getMinedBlock(id).subscribe(function (minedBlock) {
|
354
|
|
- _this.block = minedBlock;
|
355
|
|
- });
|
356
|
|
- };
|
357
|
|
- HomePage = __decorate([
|
358
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
359
|
|
- 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"*/
|
360
|
|
- }),
|
361
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
362
|
|
- ], HomePage);
|
363
|
|
- return HomePage;
|
364
|
|
-}());
|
365
|
|
-
|
366
|
|
-//make payment
|
367
|
|
-//block view
|
368
|
|
-//2 pull down list of username and pay other user "blank zips"
|
369
|
|
-// transaction are order by date
|
370
|
|
-// pay tab how many coins``
|
371
|
|
-// 4 tabs block,pay,
|
372
|
|
-//# sourceMappingURL=home.js.map
|
373
|
|
-
|
374
|
|
-/***/ }),
|
375
|
|
-
|
376
|
|
-/***/ 160:
|
377
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
378
|
|
-
|
379
|
|
-"use strict";
|
380
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
|
381
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(78);
|
382
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
383
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
384
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
385
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
386
|
|
- 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;
|
387
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
388
|
|
-};
|
389
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
390
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
391
|
|
-};
|
392
|
|
-
|
393
|
|
-
|
394
|
|
-var BlockService = /** @class */ (function () {
|
395
|
|
- function BlockService(http) {
|
396
|
|
- this.http = http;
|
397
|
|
- this.API = 'http://localhost:8080/api/v1';
|
398
|
|
- this.BLOCK_API = this.API + '/blocks';
|
399
|
|
- }
|
400
|
|
- BlockService.prototype.getBlock = function (id) {
|
401
|
|
- return this.http.get(this.BLOCK_API + '/' + id);
|
402
|
|
- };
|
403
|
|
- BlockService.prototype.getMinedBlock = function (id) {
|
404
|
|
- return this.http.get(this.BLOCK_API + '/' + id + '/' + 'mine');
|
405
|
|
- };
|
406
|
|
- BlockService.prototype.getAllBlocks = function () {
|
407
|
|
- return this.http.get(this.BLOCK_API);
|
408
|
|
- };
|
409
|
|
- BlockService = __decorate([
|
410
|
|
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
411
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
|
412
|
|
- ], BlockService);
|
413
|
|
- return BlockService;
|
414
|
|
-}());
|
415
|
|
-
|
416
|
|
-//# sourceMappingURL=block-service.js.map
|
417
|
|
-
|
418
|
|
-/***/ }),
|
419
|
|
-
|
420
|
|
-/***/ 204:
|
421
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
422
|
|
-
|
423
|
|
-"use strict";
|
424
|
|
-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
425
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
|
426
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
427
|
|
-
|
428
|
|
-
|
429
|
|
-Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
430
|
|
-//# sourceMappingURL=main.js.map
|
431
|
|
-
|
432
|
|
-/***/ }),
|
433
|
|
-
|
434
|
|
-/***/ 225:
|
435
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
436
|
|
-
|
437
|
|
-"use strict";
|
438
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
439
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
440
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
441
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
|
442
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
443
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(203);
|
444
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(279);
|
445
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
|
446
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
|
447
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
|
448
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(104);
|
449
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(102);
|
450
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(103);
|
451
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
|
452
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
|
453
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
454
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
455
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
456
|
|
- 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;
|
457
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
458
|
|
-};
|
459
|
|
-
|
460
|
|
-
|
461
|
|
-
|
462
|
|
-
|
463
|
|
-
|
464
|
|
-
|
465
|
|
-
|
466
|
|
-
|
467
|
|
-
|
468
|
|
-
|
469
|
|
-
|
470
|
|
-
|
471
|
|
-
|
472
|
|
-
|
473
|
|
-var AppModule = /** @class */ (function () {
|
474
|
|
- function AppModule() {
|
475
|
|
- }
|
476
|
|
- AppModule = __decorate([
|
477
|
|
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
|
478
|
|
- declarations: [
|
479
|
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
480
|
|
- __WEBPACK_IMPORTED_MODULE_8__pages_home_home__["a" /* HomePage */],
|
481
|
|
- __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
482
|
|
- __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
483
|
|
- __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
484
|
|
- __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
|
485
|
|
- ],
|
486
|
|
- imports: [
|
487
|
|
- __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
488
|
|
- __WEBPACK_IMPORTED_MODULE_6__angular_common_http__["b" /* HttpClientModule */],
|
489
|
|
- __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
|
490
|
|
- links: [
|
491
|
|
- { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
|
492
|
|
- { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
|
493
|
|
- { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
|
494
|
|
- { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
|
495
|
|
- ]
|
496
|
|
- })
|
497
|
|
- ],
|
498
|
|
- bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
|
499
|
|
- entryComponents: [
|
500
|
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
501
|
|
- __WEBPACK_IMPORTED_MODULE_8__pages_home_home__["a" /* HomePage */],
|
502
|
|
- __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
503
|
|
- __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
504
|
|
- __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
505
|
|
- __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
|
506
|
|
- ],
|
507
|
|
- providers: [
|
508
|
|
- __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
509
|
|
- __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
510
|
|
- __WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
|
511
|
|
- __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
|
512
|
|
- { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
|
513
|
|
- ]
|
514
|
|
- })
|
515
|
|
- ], AppModule);
|
516
|
|
- return AppModule;
|
517
|
|
-}());
|
518
|
|
-
|
519
|
|
-//# sourceMappingURL=app.module.js.map
|
520
|
|
-
|
521
|
|
-/***/ }),
|
522
|
|
-
|
523
|
|
-/***/ 279:
|
524
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
525
|
|
-
|
526
|
|
-"use strict";
|
527
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
528
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
529
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
530
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
|
531
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
532
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(103);
|
533
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
534
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
535
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
536
|
|
- 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;
|
537
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
538
|
|
-};
|
539
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
540
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
541
|
|
-};
|
542
|
|
-
|
543
|
|
-
|
544
|
|
-
|
545
|
|
-
|
546
|
|
-
|
547
|
|
-var MyApp = /** @class */ (function () {
|
548
|
|
- function MyApp(platform, statusBar, splashScreen) {
|
549
|
|
- this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__["a" /* TabsPage */];
|
550
|
|
- platform.ready().then(function () {
|
551
|
|
- // Okay, so the platform is ready and our plugins are available.
|
552
|
|
- // Here you can do any higher level native things you might need.
|
553
|
|
- statusBar.styleDefault();
|
554
|
|
- splashScreen.hide();
|
555
|
|
- });
|
556
|
|
- }
|
557
|
|
- MyApp = __decorate([
|
558
|
|
- 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"*/
|
559
|
|
- }),
|
560
|
|
- __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])
|
561
|
|
- ], MyApp);
|
562
|
|
- return MyApp;
|
563
|
|
- var _a, _b, _c;
|
564
|
|
-}());
|
565
|
|
-
|
566
|
|
-//# sourceMappingURL=app.component.js.map
|
567
|
|
-
|
568
|
|
-/***/ }),
|
569
|
|
-
|
570
|
|
-/***/ 50:
|
571
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
572
|
|
-
|
573
|
|
-"use strict";
|
574
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
|
575
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
576
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(78);
|
577
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
578
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
579
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
580
|
|
- 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;
|
581
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
582
|
|
-};
|
583
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
584
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
585
|
|
-};
|
586
|
|
-
|
587
|
|
-
|
588
|
|
-var TransactionService = /** @class */ (function () {
|
589
|
|
- function TransactionService(http) {
|
590
|
|
- this.http = http;
|
591
|
|
- this.API = 'http://localhost:8080/api/v1';
|
592
|
|
- this.TRANSACTION_API = this.API + '/transactions';
|
593
|
|
- }
|
594
|
|
- TransactionService.prototype.createTransaction = function (transaction) {
|
595
|
|
- return this.http.post(this.TRANSACTION_API, transaction);
|
596
|
|
- };
|
597
|
|
- TransactionService.prototype.getAllTransactions = function () {
|
598
|
|
- return this.http.get(this.TRANSACTION_API);
|
599
|
|
- };
|
600
|
|
- TransactionService = __decorate([
|
601
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
602
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
|
603
|
|
- ], TransactionService);
|
604
|
|
- return TransactionService;
|
605
|
|
-}());
|
606
|
|
-
|
607
|
|
-//# sourceMappingURL=transaction-service.js.map
|
608
|
|
-
|
609
|
|
-/***/ })
|
610
|
|
-
|
611
|
|
-},[204]);
|
612
|
|
-//# sourceMappingURL=main.js.map
|