Mexi 6 лет назад
Родитель
Сommit
767f4c5482
7 измененных файлов: 334 добавлений и 337 удалений
  1. 1
    1
      .sourcemaps/main.js.map
  2. 3
    3
      ionic.config.json
  3. 3
    3
      src/pages/payment/payment.html
  4. 100
    103
      www/build/main.js
  5. 1
    1
      www/build/main.js.map
  6. 225
    225
      www/build/vendor.js
  7. 1
    1
      www/build/vendor.js.map

+ 1
- 1
.sourcemaps/main.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 3
- 3
ionic.config.json Просмотреть файл

@@ -9,6 +9,6 @@
9 9
       "proxyUrl": "http://cors.api.com/api"
10 10
     }
11 11
   ],
12
-  
13
-  "type": "ionic-angular"
14
-}
12
+  "type": "ionic-angular",
13
+  "app_id": ""
14
+}

+ 3
- 3
src/pages/payment/payment.html Просмотреть файл

@@ -8,17 +8,17 @@
8 8
   <h2>Payment</h2>
9 9
   <ion-item>
10 10
       <ion-label color="primary" stacked>Your ID</ion-label>
11
-      <ion-input type="string" placeholder="Your ID" [(ngModel)]="fromId"></ion-input>
11
+      <ion-input type="string" placeholder="Your ID" [(ngModel)]="trans.fromId"></ion-input>
12 12
     </ion-item>
13 13
     
14 14
     <ion-item>
15 15
         <ion-label color="primary" stacked>Receiver ID</ion-label>
16
-        <ion-input type="string" placeholder="Receiver ID" [(ngModel)]="toId"></ion-input>
16
+        <ion-input type="string" placeholder="Receiver ID" [(ngModel)]="trans.toId"></ion-input>
17 17
       </ion-item>
18 18
 
19 19
       <ion-item>
20 20
           <ion-label color="primary" stacked>Amount</ion-label>
21
-          <ion-input type="number" placeholder="Amount" [(ngModel)]="amount" ></ion-input>
21
+          <ion-input type="number" placeholder="Amount" [(ngModel)]="trans.amount" ></ion-input>
22 22
         </ion-item>
23 23
 
24 24
         <button ion-button (click) = "transferMoney()">Send BlueCoin</button>

+ 100
- 103
www/build/main.js Просмотреть файл

@@ -25,7 +25,7 @@ var map = {
25 25
 		158
26 26
 	],
27 27
 	"../pages/transactions/transactions.module": [
28
-		162
28
+		159
29 29
 	],
30 30
 	"../pages/wallet/wallet.module": [
31 31
 		160
@@ -57,7 +57,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
57 57
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
58 58
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__payment__ = __webpack_require__(80);
59 59
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
60
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(159);
60
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_transaction_transaction__ = __webpack_require__(258);
61 61
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
62 62
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63 63
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -97,40 +97,42 @@ var PaymentPageModule = /** @class */ (function () {
97 97
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
98 98
 
99 99
 "use strict";
100
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionComponent; });
100
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
101
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
101 102
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
103
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
104
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(57);
105
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
102 106
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
103 107
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
104 108
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
105 109
     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;
106 110
     return c > 3 && r && Object.defineProperty(target, key, r), r;
107 111
 };
108
-var __metadata = (this && this.__metadata) || function (k, v) {
109
-    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
110
-};
111 112
 
112
-/**
113
- * Generated class for the TransactionComponent component.
114
- *
115
- * See https://angular.io/api/core/Component for more info on Angular
116
- * Components.
117
- */
118
-var TransactionComponent = /** @class */ (function () {
119
-    function TransactionComponent(fromId, toId, amount) {
120
-        this.fromId = fromId;
121
-        this.toId = toId;
122
-        this.amount = amount;
113
+
114
+
115
+
116
+var TransactionPageModule = /** @class */ (function () {
117
+    function TransactionPageModule() {
123 118
     }
124
-    TransactionComponent = __decorate([
125
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
126
-            selector: 'transaction',template:/*ion-inline-start:"/Users/clementO/Desktop/blueCoin-UI/src/components/transaction/transaction.html"*/'<!-- Generated template for the TransactionComponent component -->\n<div>\n  {{text}}\n</div>\n'/*ion-inline-end:"/Users/clementO/Desktop/blueCoin-UI/src/components/transaction/transaction.html"*/
127
-        }),
128
-        __metadata("design:paramtypes", [String, String, Number])
129
-    ], TransactionComponent);
130
-    return TransactionComponent;
119
+    TransactionPageModule = __decorate([
120
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
121
+            declarations: [
122
+                __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
123
+            ],
124
+            imports: [
125
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
126
+            ],
127
+            providers: [
128
+                __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
129
+            ],
130
+        })
131
+    ], TransactionPageModule);
132
+    return TransactionPageModule;
131 133
 }());
132 134
 
133
-//# sourceMappingURL=transaction.js.map
135
+//# sourceMappingURL=transactions.module.js.map
134 136
 
135 137
 /***/ }),
136 138
 
@@ -211,7 +213,7 @@ var WalletPage = /** @class */ (function () {
211 213
     };
212 214
     WalletPage = __decorate([
213 215
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["m" /* Component */])({
214
-            selector: 'page-wallet',template:/*ion-inline-start:"/Users/clementO/Desktop/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-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/clementO/Desktop/blueCoin-UI/src/pages/wallet/wallet.html"*/,
216
+            selector: 'page-wallet',template:/*ion-inline-start:"/Users/mexil/LABS/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-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/mexil/LABS/blueCoin-UI/src/pages/wallet/wallet.html"*/,
215 217
         }),
216 218
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_0__providers_wallet_service__["a" /* WalletService */]])
217 219
     ], WalletPage);
@@ -222,50 +224,7 @@ var WalletPage = /** @class */ (function () {
222 224
 
223 225
 /***/ }),
224 226
 
225
-/***/ 162:
226
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
227
-
228
-"use strict";
229
-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
230
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
231
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
232
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
233
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transactions__ = __webpack_require__(57);
234
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
235
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
236
-    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
237
-    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
238
-    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;
239
-    return c > 3 && r && Object.defineProperty(target, key, r), r;
240
-};
241
-
242
-
243
-
244
-
245
-var TransactionPageModule = /** @class */ (function () {
246
-    function TransactionPageModule() {
247
-    }
248
-    TransactionPageModule = __decorate([
249
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
250
-            declarations: [
251
-                __WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */],
252
-            ],
253
-            imports: [
254
-                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transactions__["a" /* TransactionPage */]),
255
-            ],
256
-            providers: [
257
-                __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
258
-            ],
259
-        })
260
-    ], TransactionPageModule);
261
-    return TransactionPageModule;
262
-}());
263
-
264
-//# sourceMappingURL=transactions.module.js.map
265
-
266
-/***/ }),
267
-
268
-/***/ 206:
227
+/***/ 205:
269 228
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
270 229
 
271 230
 "use strict";
@@ -274,7 +233,7 @@ var TransactionPageModule = /** @class */ (function () {
274 233
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__transactions_transactions__ = __webpack_require__(57);
275 234
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(161);
276 235
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
277
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_home__ = __webpack_require__(207);
236
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_home__ = __webpack_require__(206);
278 237
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
279 238
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
280 239
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -297,7 +256,7 @@ var TabsPage = /** @class */ (function () {
297 256
         this.tab4Root = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
298 257
     }
299 258
     TabsPage = __decorate([
300
-        Object(__WEBPACK_IMPORTED_MODULE_3__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/clementO/Desktop/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="cog"></ion-tab>\n  <ion-tab [root]="tab3Root" tabTitle="Transactions" tabIcon="list-box"></ion-tab>\n  <ion-tab [root]="tab4Root" tabTitle="Wallet" tabIcon="logo-usd"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"/Users/clementO/Desktop/blueCoin-UI/src/pages/tabs/tabs.html"*/
259
+        Object(__WEBPACK_IMPORTED_MODULE_3__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/mexil/LABS/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="cog"></ion-tab>\n  <ion-tab [root]="tab3Root" tabTitle="Transactions" tabIcon="list-box"></ion-tab>\n  <ion-tab [root]="tab4Root" tabTitle="Wallet" tabIcon="logo-usd"></ion-tab>\n</ion-tabs>\n'/*ion-inline-end:"/Users/mexil/LABS/blueCoin-UI/src/pages/tabs/tabs.html"*/
301 260
         }),
302 261
         __metadata("design:paramtypes", [])
303 262
     ], TabsPage);
@@ -308,7 +267,7 @@ var TabsPage = /** @class */ (function () {
308 267
 
309 268
 /***/ }),
310 269
 
311
-/***/ 207:
270
+/***/ 206:
312 271
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
313 272
 
314 273
 "use strict";
@@ -334,7 +293,7 @@ var HomePage = /** @class */ (function () {
334 293
     };
335 294
     HomePage = __decorate([
336 295
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
337
-            selector: 'page-home',template:/*ion-inline-start:"/Users/clementO/Desktop/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/clementO/Desktop/blueCoin-UI/src/pages/home/home.html"*/
296
+            selector: 'page-home',template:/*ion-inline-start:"/Users/mexil/LABS/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/mexil/LABS/blueCoin-UI/src/pages/home/home.html"*/
338 297
         }),
339 298
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]])
340 299
     ], HomePage);
@@ -345,13 +304,13 @@ var HomePage = /** @class */ (function () {
345 304
 
346 305
 /***/ }),
347 306
 
348
-/***/ 208:
307
+/***/ 207:
349 308
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
350 309
 
351 310
 "use strict";
352 311
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
353
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(209);
354
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(229);
312
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(208);
313
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(228);
355 314
 
356 315
 
357 316
 Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
@@ -359,7 +318,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
359 318
 
360 319
 /***/ }),
361 320
 
362
-/***/ 229:
321
+/***/ 228:
363 322
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
364 323
 
365 324
 "use strict";
@@ -370,12 +329,12 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
370 329
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_ionic_angular__ = __webpack_require__(18);
371 330
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(276);
372 331
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_common_http__ = __webpack_require__(47);
373
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(207);
374
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_tabs_tabs__ = __webpack_require__(206);
332
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(206);
333
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_tabs_tabs__ = __webpack_require__(205);
375 334
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_wallet_wallet_module__ = __webpack_require__(160);
376
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__ = __webpack_require__(202);
377
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__ = __webpack_require__(205);
378
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(162);
335
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__ionic_native_status_bar__ = __webpack_require__(201);
336
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_splash_screen__ = __webpack_require__(204);
337
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_transactions_transactions_module__ = __webpack_require__(159);
379 338
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_payment_payment__ = __webpack_require__(80);
380 339
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_payment_payment_module__ = __webpack_require__(158);
381 340
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_transaction_service__ = __webpack_require__(41);
@@ -421,8 +380,8 @@ var AppModule = /** @class */ (function () {
421 380
                 __WEBPACK_IMPORTED_MODULE_3_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
422 381
                     links: [
423 382
                         { loadChildren: '../pages/payment/payment.module#PaymentPageModule', name: 'PaymentPage', segment: 'payment', priority: 'low', defaultHistory: [] },
424
-                        { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] },
425
-                        { loadChildren: '../pages/transactions/transactions.module#TransactionPageModule', name: 'TransactionPage', segment: 'transactions', priority: 'low', defaultHistory: [] }
383
+                        { loadChildren: '../pages/transactions/transactions.module#TransactionPageModule', name: 'TransactionPage', segment: 'transactions', priority: 'low', defaultHistory: [] },
384
+                        { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
426 385
                     ]
427 386
                 })
428 387
             ],
@@ -450,6 +409,47 @@ var AppModule = /** @class */ (function () {
450 409
 
451 410
 /***/ }),
452 411
 
412
+/***/ 258:
413
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
414
+
415
+"use strict";
416
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionComponent; });
417
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
418
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
419
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
420
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
421
+    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;
422
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
423
+};
424
+var __metadata = (this && this.__metadata) || function (k, v) {
425
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
426
+};
427
+
428
+/**
429
+ * Generated class for the TransactionComponent component.
430
+ *
431
+ * See https://angular.io/api/core/Component for more info on Angular
432
+ * Components.
433
+ */
434
+var TransactionComponent = /** @class */ (function () {
435
+    function TransactionComponent(fromId, toId, amount) {
436
+        this.fromId = fromId;
437
+        this.toId = toId;
438
+        this.amount = amount;
439
+    }
440
+    TransactionComponent = __decorate([
441
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
442
+            selector: 'transaction',template:/*ion-inline-start:"/Users/mexil/LABS/blueCoin-UI/src/components/transaction/transaction.html"*/'<!-- Generated template for the TransactionComponent component -->\n<div>\n  {{text}}\n</div>\n'/*ion-inline-end:"/Users/mexil/LABS/blueCoin-UI/src/components/transaction/transaction.html"*/
443
+        }),
444
+        __metadata("design:paramtypes", [String, String, Number])
445
+    ], TransactionComponent);
446
+    return TransactionComponent;
447
+}());
448
+
449
+//# sourceMappingURL=transaction.js.map
450
+
451
+/***/ }),
452
+
453 453
 /***/ 276:
454 454
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
455 455
 
@@ -457,9 +457,9 @@ var AppModule = /** @class */ (function () {
457 457
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
458 458
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
459 459
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
460
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
461
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(205);
462
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(206);
460
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(201);
461
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(204);
462
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(205);
463 463
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
464 464
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
465 465
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -485,7 +485,7 @@ var MyApp = /** @class */ (function () {
485 485
         });
486 486
     }
487 487
     MyApp = __decorate([
488
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/clementO/Desktop/blueCoin-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/clementO/Desktop/blueCoin-UI/src/app/app.html"*/
488
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/mexil/LABS/blueCoin-UI/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/mexil/LABS/blueCoin-UI/src/app/app.html"*/
489 489
         }),
490 490
         __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 */]])
491 491
     ], MyApp);
@@ -524,12 +524,7 @@ var TransactionService = /** @class */ (function () {
524 524
     };
525 525
     ;
526 526
     TransactionService.prototype.postTransactions = function (path, data) {
527
-        var transaction = {
528
-            "fromId": data.fromId,
529
-            "toId": data.toId,
530
-            "amount": data.amount
531
-        };
532
-        return this.http.post(this.API + path, transaction);
527
+        return this.http.post(this.API + path, data);
533 528
     };
534 529
     TransactionService = __decorate([
535 530
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
@@ -576,7 +571,7 @@ var TransactionPage = /** @class */ (function () {
576 571
     };
577 572
     TransactionPage = __decorate([
578 573
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
579
-            selector: 'page-transactions',template:/*ion-inline-start:"/Users/clementO/Desktop/blueCoin-UI/src/pages/transactions/transactions.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      Transactions\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n  \n    <ion-content padding>\n      <ion-list>\n        <ion-item *ngFor="let transaction of transactions">\n            <ion-card>\n\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    \n      \n    </ion-content>'/*ion-inline-end:"/Users/clementO/Desktop/blueCoin-UI/src/pages/transactions/transactions.html"*/,
574
+            selector: 'page-transactions',template:/*ion-inline-start:"/Users/mexil/LABS/blueCoin-UI/src/pages/transactions/transactions.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      Transactions\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n  \n    <ion-content padding>\n      <ion-list>\n        <ion-item *ngFor="let transaction of transactions">\n            <ion-card>\n\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    \n      \n    </ion-content>'/*ion-inline-end:"/Users/mexil/LABS/blueCoin-UI/src/pages/transactions/transactions.html"*/,
580 575
         }),
581 576
         __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 */]])
582 577
     ], TransactionPage);
@@ -595,8 +590,7 @@ var TransactionPage = /** @class */ (function () {
595 590
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
596 591
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
597 592
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__(47);
598
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_transaction_transaction__ = __webpack_require__(159);
599
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__providers_transaction_service__ = __webpack_require__(41);
593
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(41);
600 594
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
601 595
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
602 596
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -610,14 +604,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
610 604
 
611 605
 
612 606
 
613
-
614 607
 var PaymentPage = /** @class */ (function () {
615 608
     function PaymentPage(navCtrl, navParams, http, transfer) {
616 609
         this.navCtrl = navCtrl;
617 610
         this.navParams = navParams;
618 611
         this.http = http;
619 612
         this.transfer = transfer;
613
+        //trans: TransactionComponent =  new TransactionComponent(this.fromId, this.toId, this.amount);
614
+        this.trans = { fromId: '', toId: '', amount: '' };
620 615
         this.navCtrl = navCtrl;
616
+        //  this.fromId = document.getElementByIdaa;
617
+        //  this.toId ='';
618
+        //  this.amount = 0;
621 619
     }
622 620
     PaymentPage.prototype.ionViewDidLoad = function () {
623 621
         console.log('ionViewDidLoad PaymentPage');
@@ -626,15 +624,14 @@ var PaymentPage = /** @class */ (function () {
626 624
         console.log(this.fromId);
627 625
         console.log(this.toId);
628 626
         console.log(this.amount);
629
-        this.trans = new __WEBPACK_IMPORTED_MODULE_3__components_transaction_transaction__["a" /* TransactionComponent */](this.fromId, this.toId, this.amount);
630 627
         console.log(this.trans);
631 628
         this.transfer.postTransactions("checkTx", this.trans).subscribe(function (data) { return console.log(data); });
632 629
     };
633 630
     PaymentPage = __decorate([
634 631
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
635
-            selector: 'page-payment',template:/*ion-inline-start:"/Users/clementO/Desktop/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  <h2>Payment</h2>\n  <ion-item>\n      <ion-label color="primary" stacked>Your ID</ion-label>\n      <ion-input type="string" placeholder="Your ID" [(ngModel)]="fromId"></ion-input>\n    </ion-item>\n    \n    <ion-item>\n        <ion-label color="primary" stacked>Receiver ID</ion-label>\n        <ion-input type="string" placeholder="Receiver ID" [(ngModel)]="toId"></ion-input>\n      </ion-item>\n\n      <ion-item>\n          <ion-label color="primary" stacked>Amount</ion-label>\n          <ion-input type="number" placeholder="Amount" [(ngModel)]="amount" ></ion-input>\n        </ion-item>\n\n        <button ion-button (click) = "transferMoney()">Send BlueCoin</button>\n</ion-content>'/*ion-inline-end:"/Users/clementO/Desktop/blueCoin-UI/src/pages/payment/payment.html"*/,
632
+            selector: 'page-payment',template:/*ion-inline-start:"/Users/mexil/LABS/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  <h2>Payment</h2>\n  <ion-item>\n      <ion-label color="primary" stacked>Your ID</ion-label>\n      <ion-input type="string" placeholder="Your ID" [(ngModel)]="trans.fromId"></ion-input>\n    </ion-item>\n    \n    <ion-item>\n        <ion-label color="primary" stacked>Receiver ID</ion-label>\n        <ion-input type="string" placeholder="Receiver ID" [(ngModel)]="trans.toId"></ion-input>\n      </ion-item>\n\n      <ion-item>\n          <ion-label color="primary" stacked>Amount</ion-label>\n          <ion-input type="number" placeholder="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/mexil/LABS/blueCoin-UI/src/pages/payment/payment.html"*/,
636 633
         }),
637
-        __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_4__providers_transaction_service__["a" /* TransactionService */]])
634
+        __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 */]])
638 635
     ], PaymentPage);
639 636
     return PaymentPage;
640 637
 }());
@@ -680,5 +677,5 @@ var WalletService = /** @class */ (function () {
680 677
 
681 678
 /***/ })
682 679
 
683
-},[208]);
680
+},[207]);
684 681
 //# sourceMappingURL=main.js.map

+ 1
- 1
www/build/main.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 225
- 225
www/build/vendor.js
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
www/build/vendor.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл