|
@@ -1,13 +1,14 @@
|
1
|
|
-webpackJsonp([7],{
|
|
1
|
+webpackJsonp([8],{
|
2
|
2
|
|
3
|
|
-/***/ 102:
|
|
3
|
+/***/ 103:
|
4
|
4
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
5
|
|
6
|
6
|
"use strict";
|
7
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignUpPage; });
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamsPage; });
|
8
|
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__(18);
|
10
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_api_api__ = __webpack_require__(78);
|
|
9
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
10
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__ = __webpack_require__(33);
|
|
11
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__team_home_team_home__ = __webpack_require__(104);
|
11
|
12
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
12
|
13
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
13
|
14
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -19,59 +20,62 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
19
|
20
|
};
|
20
|
21
|
|
21
|
22
|
|
|
23
|
+//import { TeamHomePage } from '../team-home/team-home';
|
|
24
|
+
|
22
|
25
|
|
23
|
26
|
/**
|
24
|
|
- * Generated class for the SignUpPage page.
|
|
27
|
+ * Generated class for the TeamsPage page.
|
25
|
28
|
*
|
26
|
29
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
27
|
30
|
* Ionic pages and navigation.
|
28
|
31
|
*/
|
29
|
|
-var SignUpPage = /** @class */ (function () {
|
30
|
|
- function SignUpPage(navCtrl, navParams, apiProvider) {
|
|
32
|
+var TeamsPage = /** @class */ (function () {
|
|
33
|
+ function TeamsPage(navCtrl, navParams, leagueServiceProvider) {
|
31
|
34
|
this.navCtrl = navCtrl;
|
32
|
35
|
this.navParams = navParams;
|
33
|
|
- this.apiProvider = apiProvider;
|
34
|
|
- this.user = {};
|
|
36
|
+ this.leagueServiceProvider = leagueServiceProvider;
|
|
37
|
+ this.teams = [];
|
|
38
|
+ this.league = {};
|
|
39
|
+ this.league = this.navParams.data;
|
35
|
40
|
}
|
36
|
|
- // ngOnInit(){
|
37
|
|
- // this.loadUsers();
|
38
|
|
- // }
|
39
|
|
- // loadUsers(){
|
40
|
|
- // this.apiProvider.getUsers().subscribe(data => this.user =data["_embedded"]["users"],
|
41
|
|
- // err => {
|
42
|
|
- // console.log(err);
|
43
|
|
- // });
|
44
|
|
- // }
|
45
|
|
- SignUpPage.prototype.ionViewDidLoad = function () {
|
46
|
|
- console.log('ionViewDidLoad SignUpPage');
|
|
41
|
+ TeamsPage.prototype.ionViewDidLoad = function () {
|
|
42
|
+ var _this = this;
|
|
43
|
+ //console.log('ionViewDidLoad TeamsPage');
|
|
44
|
+ var leag = this.navParams.data;
|
|
45
|
+ //console.log(leag);
|
|
46
|
+ this.leagueServiceProvider.getleagueData(leag.id).subscribe(function (data) {
|
|
47
|
+ _this.teams = data.teams;
|
|
48
|
+ // let seasons = data[0];
|
|
49
|
+ console.log(_this.teams);
|
|
50
|
+ });
|
47
|
51
|
};
|
48
|
|
- SignUpPage.prototype.test = function (createAccountInfo) {
|
49
|
|
- console.log(createAccountInfo);
|
50
|
|
- this.apiProvider.saveUser(createAccountInfo).subscribe(console.log);
|
|
52
|
+ TeamsPage.prototype.itemTapped = function (_$event, team) {
|
|
53
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__team_home_team_home__["a" /* TeamHomePage */], { team: team, league: this.league });
|
51
|
54
|
};
|
52
|
|
- SignUpPage = __decorate([
|
|
55
|
+ TeamsPage = __decorate([
|
53
|
56
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
54
|
|
- selector: 'page-sign-up',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/sign-up/sign-up.html"*/'<!--\n Generated template for the SignUpPage 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 color="primary">\n <ion-title>sign-up</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <div class="signUp-box">\n <form #registerForm="ngForm" (ng-submit)="test(registerForm.value)">\n <ion-row>\n <ion-col>\n <ion-list inset>\n <ion-item>\n <ion-input type="text" placeholder="Username" name="username" required [(ngModel)]="Username" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="text" placeholder="Email" name="email" required [(ngModel)]="Email" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n </ion-item>\n </ion-list>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class="signup-col">\n <button ion-button class="submit-btn" type="submit" (click)="test(registerForm.value)">Create Account</button>\n </ion-col>\n </ion-row>\n </form>\n \n </div>\n\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/sign-up/sign-up.html"*/,
|
|
57
|
+ selector: 'page-teams',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/teams/teams.html"*/'<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>{{league.name}} Teams</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content>\n <button *ngFor="let team of teams" ion-item (click)="itemTapped($event, team)">{{team.name}}</button>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/teams/teams.html"*/,
|
55
|
58
|
}),
|
56
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_api_api__["a" /* ApiProvider */]])
|
57
|
|
- ], SignUpPage);
|
58
|
|
- return SignUpPage;
|
|
59
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__["a" /* LeagueServiceProvider */]])
|
|
60
|
+ ], TeamsPage);
|
|
61
|
+ return TeamsPage;
|
59
|
62
|
}());
|
60
|
63
|
|
61
|
|
-//# sourceMappingURL=sign-up.js.map
|
|
64
|
+//# sourceMappingURL=teams.js.map
|
62
|
65
|
|
63
|
66
|
/***/ }),
|
64
|
67
|
|
65
|
|
-/***/ 103:
|
|
68
|
+/***/ 104:
|
66
|
69
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
67
|
70
|
|
68
|
71
|
"use strict";
|
69
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyTeamsPage; });
|
|
72
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamHomePage; });
|
70
|
73
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
71
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
72
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tournaments_tournaments__ = __webpack_require__(50);
|
73
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_api_api__ = __webpack_require__(78);
|
74
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__sign_up_sign_up__ = __webpack_require__(102);
|
|
74
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
75
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__team_details_team_details__ = __webpack_require__(105);
|
|
76
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_teams_my_teams__ = __webpack_require__(51);
|
|
77
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__team_schedule_team_schedule__ = __webpack_require__(106);
|
|
78
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__standings_standings__ = __webpack_require__(107);
|
75
|
79
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
76
|
80
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
77
|
81
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -86,49 +90,52 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
86
|
90
|
|
87
|
91
|
|
88
|
92
|
|
|
93
|
+
|
89
|
94
|
/**
|
90
|
|
- * Generated class for the MyTeamsPage page.
|
|
95
|
+ * Generated class for the TeamHomePage page.
|
91
|
96
|
*
|
92
|
97
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
93
|
98
|
* Ionic pages and navigation.
|
94
|
99
|
*/
|
95
|
|
-var MyTeamsPage = /** @class */ (function () {
|
96
|
|
- function MyTeamsPage(navCtrl, navParams, apiProvider, toastCtrl) {
|
|
100
|
+var TeamHomePage = /** @class */ (function () {
|
|
101
|
+ function TeamHomePage(navCtrl, navParams) {
|
97
|
102
|
this.navCtrl = navCtrl;
|
98
|
103
|
this.navParams = navParams;
|
99
|
|
- this.apiProvider = apiProvider;
|
100
|
|
- this.toastCtrl = toastCtrl;
|
|
104
|
+ this.team = {};
|
|
105
|
+ this.league = {};
|
|
106
|
+ this.teamDetailTab = __WEBPACK_IMPORTED_MODULE_2__team_details_team_details__["a" /* TeamDetailsPage */];
|
|
107
|
+ this.teamScheduleTab = __WEBPACK_IMPORTED_MODULE_4__team_schedule_team_schedule__["a" /* TeamSchedulePage */];
|
|
108
|
+ this.standingsTab = __WEBPACK_IMPORTED_MODULE_5__standings_standings__["a" /* StandingsPage */];
|
|
109
|
+ this.team = this.navParams.get("team");
|
|
110
|
+ this.league = this.navParams.get("league");
|
101
|
111
|
}
|
102
|
|
- MyTeamsPage.prototype.myButton = function () {
|
103
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__tournaments_tournaments__["a" /* TournamentsPage */]);
|
104
|
|
- };
|
105
|
|
- MyTeamsPage.prototype.ionViewDidLoad = function () {
|
106
|
|
- console.log('ionViewDidLoad MyTeamsPage');
|
|
112
|
+ TeamHomePage.prototype.ionViewDidLoad = function () {
|
|
113
|
+ console.log(this.league.name);
|
107
|
114
|
};
|
108
|
|
- MyTeamsPage.prototype.createAccount = function () {
|
109
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__sign_up_sign_up__["a" /* SignUpPage */]);
|
|
115
|
+ TeamHomePage.prototype.goHome = function () {
|
|
116
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__my_teams_my_teams__["a" /* MyTeamsPage */]);
|
110
|
117
|
};
|
111
|
|
- MyTeamsPage = __decorate([
|
|
118
|
+ TeamHomePage = __decorate([
|
112
|
119
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
113
|
|
- selector: 'page-my-teams',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/my-teams/my-teams.html"*/'<!--\n Generated template for the MyTeamsPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n <ion-navbar color="primary">\n <button menuToggle ion- button icon-only>\n <ion-icon name ="menu"></ion-icon>\n </button>\n <ion-title text-center>MyApp</ion-title>\n </ion-navbar>\n <ion-toolbar color="secondary">\n <ion-title text-center><span style ="color:red">my-teams</span></ion-title>\n </ion-toolbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h4>Welcome to my page</h4>\n <div class="login-box">\n <form #registerForm="ngForm" (ng-submit)="myButton()">\n <ion-row>\n <ion-col>\n <ion-list inset>\n <ion-item>\n <ion-input type="text" placeholder="Username" name="name" required [(ngModel)]="Username" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n </ion-item>\n </ion-list>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class="signup-col">\n <button ion-button class="submit-btn" full type="submit" [disabled]="!registerForm.form.valid">Login</button>\n </ion-col>\n </ion-row>\n </form>\n <ion-row>\n <ion-col color="secondary">\n <button ion-button class="register-btn" block clear (click)="createAccount()">Create Account</button>\n </ion-col>\n </ion-row>\n </div>\n \n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/my-teams/my-teams.html"*/,
|
|
120
|
+ selector: 'page-team-home',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-home/team-home.html"*/'<!--\n Generated template for the TeamHomePage 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 color="primary">\n <ion-title>{{team.name}}</ion-title>\n <ion-buttons end>\n <button ion-button icon-only (click)="goHome()">\n <ion-icon name="home"></ion-icon>\n </button>\n </ion-buttons>\n </ion-navbar>\n \n</ion-header>\n\n<ion-tabs>\n <ion-tab tabTitle="TeamBasicInfo" [root]="teamDetailTab" [rootParams]="team" tabIcon="football"></ion-tab>\n <ion-tab tabTitle="Fixtures" [root]="teamScheduleTab" [rootParams]="team" tabIcon="football"></ion-tab>\n <ion-tab tabTitle="Standings" [root]="standingsTab" [rootParams]="league" tabIcon="podium"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-home/team-home.html"*/,
|
114
|
121
|
}),
|
115
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_3__providers_api_api__["a" /* ApiProvider */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* ToastController */]])
|
116
|
|
- ], MyTeamsPage);
|
117
|
|
- return MyTeamsPage;
|
|
122
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */]])
|
|
123
|
+ ], TeamHomePage);
|
|
124
|
+ return TeamHomePage;
|
118
|
125
|
}());
|
119
|
126
|
|
120
|
|
-//# sourceMappingURL=my-teams.js.map
|
|
127
|
+//# sourceMappingURL=team-home.js.map
|
121
|
128
|
|
122
|
129
|
/***/ }),
|
123
|
130
|
|
124
|
|
-/***/ 104:
|
|
131
|
+/***/ 105:
|
125
|
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
126
|
133
|
|
127
|
134
|
"use strict";
|
128
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamsPage; });
|
|
135
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamDetailsPage; });
|
129
|
136
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
130
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
131
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__team_home_team_home__ = __webpack_require__(105);
|
|
137
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
138
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__ = __webpack_require__(33);
|
132
|
139
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
133
|
140
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
134
|
141
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -142,49 +149,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
142
|
149
|
|
143
|
150
|
|
144
|
151
|
/**
|
145
|
|
- * Generated class for the TeamsPage page.
|
|
152
|
+ * Generated class for the TeamDetailsPage page.
|
146
|
153
|
*
|
147
|
154
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
148
|
155
|
* Ionic pages and navigation.
|
149
|
156
|
*/
|
150
|
|
-var TeamsPage = /** @class */ (function () {
|
151
|
|
- function TeamsPage(navCtrl, navParams) {
|
|
157
|
+var TeamDetailsPage = /** @class */ (function () {
|
|
158
|
+ function TeamDetailsPage(navCtrl, navParams, leagueServiceProvider) {
|
152
|
159
|
this.navCtrl = navCtrl;
|
153
|
160
|
this.navParams = navParams;
|
154
|
|
- this.teams = [
|
155
|
|
- { id: 1, name: "Manchester United" },
|
156
|
|
- { id: 2, name: "Arsenal" },
|
157
|
|
- { id: 3, name: "Chelsea" }
|
158
|
|
- ];
|
|
161
|
+ this.leagueServiceProvider = leagueServiceProvider;
|
|
162
|
+ this.team = this.navParams.data;
|
159
|
163
|
}
|
160
|
|
- TeamsPage.prototype.ionViewDidLoad = function () {
|
161
|
|
- console.log('ionViewDidLoad TeamsPage');
|
162
|
|
- };
|
163
|
|
- TeamsPage.prototype.itemTapped = function (_$event, team) {
|
164
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__team_home_team_home__["a" /* TeamHomePage */], team);
|
|
164
|
+ TeamDetailsPage.prototype.ionViewDidLoad = function () {
|
|
165
|
+ console.log(this.team.name);
|
165
|
166
|
};
|
166
|
|
- TeamsPage = __decorate([
|
|
167
|
+ TeamDetailsPage = __decorate([
|
167
|
168
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
168
|
|
- selector: 'page-teams',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/teams/teams.html"*/'<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>teams</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content>\n <button *ngFor="let team of teams" ion-item (click)="itemTapped($event, team)">{{team.name}}</button>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/teams/teams.html"*/,
|
|
169
|
+ selector: 'page-team-details',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-details/team-details.html"*/'<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>{{team.name}}</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h2 text-center>Team Detail</h2>\n <h5>Name: {{team.name}}</h5>\n <p>\n ShortName: {{team.shortName}}<br><br>\n tla: {{team.tla}}<br><br>\n Address: {{team.address}}<br><br>\n Phone: {{team.phone}}<br><br>\n Website: {{team.website}}<br><br>\n Email: {{team.email}}<br><br>\n Founded: {{team.founded}}<br><br>\n ClubColors: {{team.clubColors}}<br><br>\n LastUpdated: {{team.lastUpdated}}<br><br>\n </p>\n\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-details/team-details.html"*/,
|
169
|
170
|
}),
|
170
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
171
|
|
- ], TeamsPage);
|
172
|
|
- return TeamsPage;
|
|
171
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__["a" /* LeagueServiceProvider */]])
|
|
172
|
+ ], TeamDetailsPage);
|
|
173
|
+ return TeamDetailsPage;
|
173
|
174
|
}());
|
174
|
175
|
|
175
|
|
-//# sourceMappingURL=teams.js.map
|
|
176
|
+//# sourceMappingURL=team-details.js.map
|
176
|
177
|
|
177
|
178
|
/***/ }),
|
178
|
179
|
|
179
|
|
-/***/ 105:
|
|
180
|
+/***/ 106:
|
180
|
181
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
181
|
182
|
|
182
|
183
|
"use strict";
|
183
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamHomePage; });
|
|
184
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamSchedulePage; });
|
184
|
185
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
185
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
186
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__team_details_team_details__ = __webpack_require__(106);
|
187
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__standings_standings__ = __webpack_require__(107);
|
|
186
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
187
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__ = __webpack_require__(33);
|
188
|
188
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
189
|
189
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
190
|
190
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -197,43 +197,53 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
197
|
197
|
|
198
|
198
|
|
199
|
199
|
|
200
|
|
-
|
201
|
200
|
/**
|
202
|
|
- * Generated class for the TeamHomePage page.
|
|
201
|
+ * Generated class for the TeamSchedulePage page.
|
203
|
202
|
*
|
204
|
203
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
205
|
204
|
* Ionic pages and navigation.
|
206
|
205
|
*/
|
207
|
|
-var TeamHomePage = /** @class */ (function () {
|
208
|
|
- function TeamHomePage(navCtrl, navParams) {
|
|
206
|
+var TeamSchedulePage = /** @class */ (function () {
|
|
207
|
+ function TeamSchedulePage(navCtrl, navParams, leagueServiceApi) {
|
209
|
208
|
this.navCtrl = navCtrl;
|
210
|
209
|
this.navParams = navParams;
|
211
|
|
- this.teamDetailTab = __WEBPACK_IMPORTED_MODULE_2__team_details_team_details__["a" /* TeamDetailsPage */];
|
212
|
|
- this.standingsTab = __WEBPACK_IMPORTED_MODULE_3__standings_standings__["a" /* StandingsPage */];
|
|
210
|
+ this.leagueServiceApi = leagueServiceApi;
|
|
211
|
+ this.team = {};
|
|
212
|
+ this.matches = [];
|
|
213
|
+ this.team = this.navParams.data;
|
213
|
214
|
}
|
214
|
|
- TeamHomePage.prototype.ionViewDidLoad = function () {
|
215
|
|
- console.log('ionViewDidLoad TeamHomePage');
|
|
215
|
+ TeamSchedulePage.prototype.ionViewDidLoad = function () {
|
|
216
|
+ var _this = this;
|
|
217
|
+ console.log('ionViewDidLoad StandingsPage');
|
|
218
|
+ var matches = this.navParams.data;
|
|
219
|
+ this.leagueServiceApi.getTeamMatches(matches.id).subscribe(function (data) {
|
|
220
|
+ _this.matches = data.matches;
|
|
221
|
+ console.log(_this.matches);
|
|
222
|
+ });
|
216
|
223
|
};
|
217
|
|
- TeamHomePage = __decorate([
|
|
224
|
+ TeamSchedulePage = __decorate([
|
218
|
225
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
219
|
|
- selector: 'page-team-home',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-home/team-home.html"*/'<!--\n Generated template for the TeamHomePage 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>team-home</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n<ion-tabs>\n <ion-tab tabTitle="Team" [root]="teamDetailTab" tabIcon="football"></ion-tab>\n <ion-tab tabTitle="Standings" [root]="standingsTab" tabIcon="podium"></ion-tab>\n</ion-tabs>'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-home/team-home.html"*/,
|
|
226
|
+ selector: 'page-team-schedule',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-schedule/team-schedule.html"*/'<!--\n Generated template for the TeamSchedulePage 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>teamSchedule</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h2>Fixture Page</h2>\n <h5>Name: {{team.name}}</h5>\n \n <p *ngFor="let match of matches">\n <span [class.highlight]="team.name === match.homeTeam.name">{{match.homeTeam.name}}</span> \n vs \n <span [class.highlight]="team.name === match.awayTeam.name">{{match.awayTeam.name}}</span>\n </p>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-schedule/team-schedule.html"*/,
|
220
|
227
|
}),
|
221
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
222
|
|
- ], TeamHomePage);
|
223
|
|
- return TeamHomePage;
|
|
228
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */],
|
|
229
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */],
|
|
230
|
+ __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__["a" /* LeagueServiceProvider */]])
|
|
231
|
+ ], TeamSchedulePage);
|
|
232
|
+ return TeamSchedulePage;
|
224
|
233
|
}());
|
225
|
234
|
|
226
|
|
-//# sourceMappingURL=team-home.js.map
|
|
235
|
+//# sourceMappingURL=team-schedule.js.map
|
227
|
236
|
|
228
|
237
|
/***/ }),
|
229
|
238
|
|
230
|
|
-/***/ 106:
|
|
239
|
+/***/ 107:
|
231
|
240
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
232
|
241
|
|
233
|
242
|
"use strict";
|
234
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TeamDetailsPage; });
|
|
243
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StandingsPage; });
|
235
|
244
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
236
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
245
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
246
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__ = __webpack_require__(33);
|
237
|
247
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
238
|
248
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
239
|
249
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -245,43 +255,54 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
245
|
255
|
};
|
246
|
256
|
|
247
|
257
|
|
|
258
|
+
|
248
|
259
|
/**
|
249
|
|
- * Generated class for the TeamDetailsPage page.
|
|
260
|
+ * Generated class for the StandingsPage page.
|
250
|
261
|
*
|
251
|
262
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
252
|
263
|
* Ionic pages and navigation.
|
253
|
264
|
*/
|
254
|
|
-var TeamDetailsPage = /** @class */ (function () {
|
255
|
|
- function TeamDetailsPage(navCtrl, navParams) {
|
|
265
|
+var StandingsPage = /** @class */ (function () {
|
|
266
|
+ function StandingsPage(navCtrl, navParams, leagueServiceApi) {
|
256
|
267
|
this.navCtrl = navCtrl;
|
257
|
268
|
this.navParams = navParams;
|
258
|
|
- this.team = {};
|
259
|
|
- this.team = this.navParams.data;
|
260
|
|
- console.log('nav params', navParams);
|
|
269
|
+ this.leagueServiceApi = leagueServiceApi;
|
|
270
|
+ this.standings = [];
|
|
271
|
+ //this.team = this.navParams.get("team").data;
|
|
272
|
+ this.league = this.navParams.data;
|
261
|
273
|
}
|
262
|
|
- TeamDetailsPage.prototype.ionViewDidLoad = function () {
|
263
|
|
- console.log('ionViewDidLoad TeamDetailsPage');
|
|
274
|
+ StandingsPage.prototype.ionViewDidLoad = function () {
|
|
275
|
+ var _this = this;
|
|
276
|
+ console.log(this.league.name);
|
|
277
|
+ var table = this.navParams.data;
|
|
278
|
+ this.leagueServiceApi.getLeasgueStandings(table.id).subscribe(function (data) {
|
|
279
|
+ _this.standings = data.standings[0].table;
|
|
280
|
+ console.log(_this.standings);
|
|
281
|
+ });
|
264
|
282
|
};
|
265
|
|
- TeamDetailsPage = __decorate([
|
|
283
|
+ StandingsPage = __decorate([
|
266
|
284
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
267
|
|
- selector: 'page-team-details',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-details/team-details.html"*/'<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>{{team.name}}</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h2>Team Detail</h2>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/team-details/team-details.html"*/,
|
|
285
|
+ selector: 'page-standings',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/standings/standings.html"*/'<!--\n Generated template for the StandingsPage 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>standings</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding >\n <!-- <ion-scroll scrollY="true" style="width: 100%; height: 100%;"> -->\n <div >\n <table>\n <tr>\n <td class="col">Club</td>\n <td class="col">MP</td>\n <td class="col">W</td>\n <td class="col">D</td>\n <td class="col">L</td>\n <td class="col">Pts</td>\n <td class="col">GF</td>\n <td class="col">GA</td>\n <td class="col">GD</td>\n </tr>\n <tr *ngFor="let stats of standings"> \n <td class="col">{{stats.team.name}}</td>\n <td class="col">{{stats.playedGames}}</td>\n <td class="col">{{stats.won}}</td>\n <td class="col">{{stats.draw}}</td>\n <td class="col">{{stats.lost}}</td>\n <td class="col">{{stats.points}}</td>\n <td class="col">{{stats.goalsFor}}</td>\n <td class="col">{{stats.goalsAgainst}}</td>\n <td class="col">{{stats.goalDifference}}</td>\n </tr>\n </table>\n </div>\n <!-- </ion-scroll> -->\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/standings/standings.html"*/,
|
268
|
286
|
}),
|
269
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
270
|
|
- ], TeamDetailsPage);
|
271
|
|
- return TeamDetailsPage;
|
|
287
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */],
|
|
288
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */],
|
|
289
|
+ __WEBPACK_IMPORTED_MODULE_2__providers_league_service_league_service__["a" /* LeagueServiceProvider */]])
|
|
290
|
+ ], StandingsPage);
|
|
291
|
+ return StandingsPage;
|
272
|
292
|
}());
|
273
|
293
|
|
274
|
|
-//# sourceMappingURL=team-details.js.map
|
|
294
|
+//# sourceMappingURL=standings.js.map
|
275
|
295
|
|
276
|
296
|
/***/ }),
|
277
|
297
|
|
278
|
|
-/***/ 107:
|
|
298
|
+/***/ 108:
|
279
|
299
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
280
|
300
|
|
281
|
301
|
"use strict";
|
282
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StandingsPage; });
|
|
302
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignUpPage; });
|
283
|
303
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
284
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
|
304
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
305
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_api_api__ = __webpack_require__(80);
|
285
|
306
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
286
|
307
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
287
|
308
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -293,34 +314,50 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
293
|
314
|
};
|
294
|
315
|
|
295
|
316
|
|
|
317
|
+
|
296
|
318
|
/**
|
297
|
|
- * Generated class for the StandingsPage page.
|
|
319
|
+ * Generated class for the SignUpPage page.
|
298
|
320
|
*
|
299
|
321
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
300
|
322
|
* Ionic pages and navigation.
|
301
|
323
|
*/
|
302
|
|
-var StandingsPage = /** @class */ (function () {
|
303
|
|
- function StandingsPage(navCtrl, navParams) {
|
|
324
|
+var SignUpPage = /** @class */ (function () {
|
|
325
|
+ function SignUpPage(navCtrl, navParams, apiProvider) {
|
304
|
326
|
this.navCtrl = navCtrl;
|
305
|
327
|
this.navParams = navParams;
|
|
328
|
+ this.apiProvider = apiProvider;
|
|
329
|
+ this.user = {};
|
306
|
330
|
}
|
307
|
|
- StandingsPage.prototype.ionViewDidLoad = function () {
|
308
|
|
- console.log('ionViewDidLoad StandingsPage');
|
|
331
|
+ // ngOnInit(){
|
|
332
|
+ // this.loadUsers();
|
|
333
|
+ // }
|
|
334
|
+ // loadUsers(){
|
|
335
|
+ // this.apiProvider.getUsers().subscribe(data => this.user =data["_embedded"]["users"],
|
|
336
|
+ // err => {
|
|
337
|
+ // console.log(err);
|
|
338
|
+ // });
|
|
339
|
+ // }
|
|
340
|
+ SignUpPage.prototype.ionViewDidLoad = function () {
|
|
341
|
+ console.log('ionViewDidLoad SignUpPage');
|
309
|
342
|
};
|
310
|
|
- StandingsPage = __decorate([
|
|
343
|
+ SignUpPage.prototype.test = function (createAccountInfo) {
|
|
344
|
+ console.log(createAccountInfo);
|
|
345
|
+ this.apiProvider.saveUser(createAccountInfo).subscribe(console.log);
|
|
346
|
+ };
|
|
347
|
+ SignUpPage = __decorate([
|
311
|
348
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
312
|
|
- selector: 'page-standings',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/standings/standings.html"*/'<!--\n Generated template for the StandingsPage 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>standings</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h2>Standing Page</h2>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/standings/standings.html"*/,
|
|
349
|
+ selector: 'page-sign-up',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/sign-up/sign-up.html"*/'<!--\n Generated template for the SignUpPage 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 color="primary">\n <ion-title>sign-up</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <div class="signUp-box">\n <form #registerForm="ngForm" (ng-submit)="test(registerForm.value)">\n <ion-row>\n <ion-col>\n <ion-list inset>\n <ion-item>\n <ion-input type="text" placeholder="Username" name="username" required [(ngModel)]="Username" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="text" placeholder="Email" name="email" required [(ngModel)]="Email" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n </ion-item>\n </ion-list>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class="signup-col">\n <button ion-button class="submit-btn" type="submit" (click)="test(registerForm.value)">Create Account</button>\n </ion-col>\n </ion-row>\n </form>\n \n </div>\n\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/sign-up/sign-up.html"*/,
|
313
|
350
|
}),
|
314
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
|
315
|
|
- ], StandingsPage);
|
316
|
|
- return StandingsPage;
|
|
351
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_api_api__["a" /* ApiProvider */]])
|
|
352
|
+ ], SignUpPage);
|
|
353
|
+ return SignUpPage;
|
317
|
354
|
}());
|
318
|
355
|
|
319
|
|
-//# sourceMappingURL=standings.js.map
|
|
356
|
+//# sourceMappingURL=sign-up.js.map
|
320
|
357
|
|
321
|
358
|
/***/ }),
|
322
|
359
|
|
323
|
|
-/***/ 119:
|
|
360
|
+/***/ 120:
|
324
|
361
|
/***/ (function(module, exports) {
|
325
|
362
|
|
326
|
363
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -333,40 +370,44 @@ function webpackEmptyAsyncContext(req) {
|
333
|
370
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
334
|
371
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
335
|
372
|
module.exports = webpackEmptyAsyncContext;
|
336
|
|
-webpackEmptyAsyncContext.id = 119;
|
|
373
|
+webpackEmptyAsyncContext.id = 120;
|
337
|
374
|
|
338
|
375
|
/***/ }),
|
339
|
376
|
|
340
|
|
-/***/ 161:
|
|
377
|
+/***/ 162:
|
341
|
378
|
/***/ (function(module, exports, __webpack_require__) {
|
342
|
379
|
|
343
|
380
|
var map = {
|
344
|
381
|
"../pages/my-teams/my-teams.module": [
|
345
|
|
- 283,
|
346
|
|
- 6
|
|
382
|
+ 284,
|
|
383
|
+ 7
|
347
|
384
|
],
|
348
|
385
|
"../pages/sign-up/sign-up.module": [
|
349
|
|
- 282,
|
350
|
|
- 5
|
|
386
|
+ 285,
|
|
387
|
+ 6
|
351
|
388
|
],
|
352
|
389
|
"../pages/standings/standings.module": [
|
353
|
|
- 284,
|
354
|
|
- 4
|
|
390
|
+ 286,
|
|
391
|
+ 5
|
355
|
392
|
],
|
356
|
393
|
"../pages/team-details/team-details.module": [
|
357
|
|
- 286,
|
358
|
|
- 3
|
|
394
|
+ 287,
|
|
395
|
+ 4
|
359
|
396
|
],
|
360
|
397
|
"../pages/team-home/team-home.module": [
|
361
|
|
- 285,
|
|
398
|
+ 288,
|
|
399
|
+ 3
|
|
400
|
+ ],
|
|
401
|
+ "../pages/team-schedule/team-schedule.module": [
|
|
402
|
+ 289,
|
362
|
403
|
2
|
363
|
404
|
],
|
364
|
405
|
"../pages/teams/teams.module": [
|
365
|
|
- 287,
|
|
406
|
+ 290,
|
366
|
407
|
1
|
367
|
408
|
],
|
368
|
409
|
"../pages/tournaments/tournaments.module": [
|
369
|
|
- 288,
|
|
410
|
+ 291,
|
370
|
411
|
0
|
371
|
412
|
]
|
372
|
413
|
};
|
|
@@ -381,67 +422,18 @@ function webpackAsyncContext(req) {
|
381
|
422
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
382
|
423
|
return Object.keys(map);
|
383
|
424
|
};
|
384
|
|
-webpackAsyncContext.id = 161;
|
|
425
|
+webpackAsyncContext.id = 162;
|
385
|
426
|
module.exports = webpackAsyncContext;
|
386
|
427
|
|
387
|
428
|
/***/ }),
|
388
|
429
|
|
389
|
|
-/***/ 162:
|
390
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
391
|
|
-
|
392
|
|
-"use strict";
|
393
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LeagueServiceProvider; });
|
394
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(79);
|
395
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
396
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
397
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
398
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
399
|
|
- 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;
|
400
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
401
|
|
-};
|
402
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
403
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
404
|
|
-};
|
405
|
|
-
|
406
|
|
-
|
407
|
|
-/*
|
408
|
|
- Generated class for the LeagueServiceProvider provider.
|
409
|
|
-
|
410
|
|
- See https://angular.io/guide/dependency-injection for more info on providers
|
411
|
|
- and Angular DI.
|
412
|
|
-*/
|
413
|
|
-var LeagueServiceProvider = /** @class */ (function () {
|
414
|
|
- function LeagueServiceProvider(http) {
|
415
|
|
- this.http = http;
|
416
|
|
- this.apiUrl = 'http://api.football-data.org/v2/competitions/';
|
417
|
|
- this.httpOptions = {
|
418
|
|
- headers: new __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["c" /* HttpHeaders */]({
|
419
|
|
- 'X-Auth-Token': 'd550e63aaf6349f78dd2199f9d2dc115'
|
420
|
|
- })
|
421
|
|
- };
|
422
|
|
- console.log('Hello LeagueServiceProvider Provider');
|
423
|
|
- }
|
424
|
|
- LeagueServiceProvider.prototype.load = function () {
|
425
|
|
- return this.http.get(this.apiUrl, this.httpOptions);
|
426
|
|
- };
|
427
|
|
- LeagueServiceProvider = __decorate([
|
428
|
|
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
429
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
|
430
|
|
- ], LeagueServiceProvider);
|
431
|
|
- return LeagueServiceProvider;
|
432
|
|
-}());
|
433
|
|
-
|
434
|
|
-//# sourceMappingURL=league-service.js.map
|
435
|
|
-
|
436
|
|
-/***/ }),
|
437
|
|
-
|
438
|
|
-/***/ 206:
|
|
430
|
+/***/ 208:
|
439
|
431
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
440
|
432
|
|
441
|
433
|
"use strict";
|
442
|
434
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
443
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(207);
|
444
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(227);
|
|
435
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(209);
|
|
436
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(229);
|
445
|
437
|
|
446
|
438
|
|
447
|
439
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -449,27 +441,29 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
449
|
441
|
|
450
|
442
|
/***/ }),
|
451
|
443
|
|
452
|
|
-/***/ 227:
|
|
444
|
+/***/ 229:
|
453
|
445
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
454
|
446
|
|
455
|
447
|
"use strict";
|
456
|
448
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
457
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
|
449
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(27);
|
458
|
450
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
459
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(18);
|
460
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common_http__ = __webpack_require__(79);
|
461
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(274);
|
462
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_status_bar__ = __webpack_require__(202);
|
463
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_native_splash_screen__ = __webpack_require__(205);
|
464
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_teams_teams__ = __webpack_require__(104);
|
465
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_my_teams_my_teams__ = __webpack_require__(103);
|
466
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_tournaments_tournaments__ = __webpack_require__(50);
|
467
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_team_details_team_details__ = __webpack_require__(106);
|
|
451
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(15);
|
|
452
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common_http__ = __webpack_require__(163);
|
|
453
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__(276);
|
|
454
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_status_bar__ = __webpack_require__(204);
|
|
455
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_native_splash_screen__ = __webpack_require__(207);
|
|
456
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_teams_teams__ = __webpack_require__(103);
|
|
457
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_my_teams_my_teams__ = __webpack_require__(51);
|
|
458
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_tournaments_tournaments__ = __webpack_require__(52);
|
|
459
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_team_details_team_details__ = __webpack_require__(105);
|
468
|
460
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_standings_standings__ = __webpack_require__(107);
|
469
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_team_home_team_home__ = __webpack_require__(105);
|
470
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_league_service_league_service__ = __webpack_require__(162);
|
471
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_api_api__ = __webpack_require__(78);
|
472
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_sign_up_sign_up__ = __webpack_require__(102);
|
|
461
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_team_home_team_home__ = __webpack_require__(104);
|
|
462
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_league_service_league_service__ = __webpack_require__(33);
|
|
463
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__providers_api_api__ = __webpack_require__(80);
|
|
464
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__pages_sign_up_sign_up__ = __webpack_require__(108);
|
|
465
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__angular_http__ = __webpack_require__(164);
|
|
466
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__pages_team_schedule_team_schedule__ = __webpack_require__(106);
|
473
|
467
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
474
|
468
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
475
|
469
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -492,6 +486,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
492
|
486
|
|
493
|
487
|
|
494
|
488
|
|
|
489
|
+
|
|
490
|
+
|
495
|
491
|
var AppModule = /** @class */ (function () {
|
496
|
492
|
function AppModule() {
|
497
|
493
|
}
|
|
@@ -504,19 +500,22 @@ var AppModule = /** @class */ (function () {
|
504
|
500
|
__WEBPACK_IMPORTED_MODULE_9__pages_tournaments_tournaments__["a" /* TournamentsPage */],
|
505
|
501
|
__WEBPACK_IMPORTED_MODULE_10__pages_team_details_team_details__["a" /* TeamDetailsPage */],
|
506
|
502
|
__WEBPACK_IMPORTED_MODULE_11__pages_standings_standings__["a" /* StandingsPage */],
|
|
503
|
+ __WEBPACK_IMPORTED_MODULE_17__pages_team_schedule_team_schedule__["a" /* TeamSchedulePage */],
|
507
|
504
|
__WEBPACK_IMPORTED_MODULE_12__pages_team_home_team_home__["a" /* TeamHomePage */],
|
508
|
505
|
__WEBPACK_IMPORTED_MODULE_15__pages_sign_up_sign_up__["a" /* SignUpPage */]
|
509
|
506
|
],
|
510
|
507
|
imports: [
|
511
|
508
|
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
512
|
509
|
__WEBPACK_IMPORTED_MODULE_3__angular_common_http__["b" /* HttpClientModule */],
|
|
510
|
+ __WEBPACK_IMPORTED_MODULE_16__angular_http__["b" /* HttpModule */],
|
513
|
511
|
__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* MyApp */], {}, {
|
514
|
512
|
links: [
|
515
|
|
- { loadChildren: '../pages/sign-up/sign-up.module#SignUpPageModule', name: 'SignUpPage', segment: 'sign-up', priority: 'low', defaultHistory: [] },
|
516
|
513
|
{ loadChildren: '../pages/my-teams/my-teams.module#MyTeamsPageModule', name: 'MyTeamsPage', segment: 'my-teams', priority: 'low', defaultHistory: [] },
|
|
514
|
+ { loadChildren: '../pages/sign-up/sign-up.module#SignUpPageModule', name: 'SignUpPage', segment: 'sign-up', priority: 'low', defaultHistory: [] },
|
517
|
515
|
{ loadChildren: '../pages/standings/standings.module#StandingsPageModule', name: 'StandingsPage', segment: 'standings', priority: 'low', defaultHistory: [] },
|
518
|
|
- { loadChildren: '../pages/team-home/team-home.module#TeamHomePageModule', name: 'TeamHomePage', segment: 'team-home', priority: 'low', defaultHistory: [] },
|
519
|
516
|
{ loadChildren: '../pages/team-details/team-details.module#TeamDetailsPageModule', name: 'TeamDetailsPage', segment: 'team-details', priority: 'low', defaultHistory: [] },
|
|
517
|
+ { loadChildren: '../pages/team-home/team-home.module#TeamHomePageModule', name: 'TeamHomePage', segment: 'team-home', priority: 'low', defaultHistory: [] },
|
|
518
|
+ { loadChildren: '../pages/team-schedule/team-schedule.module#TeamSchedulePageModule', name: 'TeamSchedulePage', segment: 'team-schedule', priority: 'low', defaultHistory: [] },
|
520
|
519
|
{ loadChildren: '../pages/teams/teams.module#TeamsPageModule', name: 'TeamsPage', segment: 'teams', priority: 'low', defaultHistory: [] },
|
521
|
520
|
{ loadChildren: '../pages/tournaments/tournaments.module#TournamentsPageModule', name: 'TournamentsPage', segment: 'tournaments', priority: 'low', defaultHistory: [] }
|
522
|
521
|
]
|
|
@@ -530,6 +529,7 @@ var AppModule = /** @class */ (function () {
|
530
|
529
|
__WEBPACK_IMPORTED_MODULE_9__pages_tournaments_tournaments__["a" /* TournamentsPage */],
|
531
|
530
|
__WEBPACK_IMPORTED_MODULE_10__pages_team_details_team_details__["a" /* TeamDetailsPage */],
|
532
|
531
|
__WEBPACK_IMPORTED_MODULE_11__pages_standings_standings__["a" /* StandingsPage */],
|
|
532
|
+ __WEBPACK_IMPORTED_MODULE_17__pages_team_schedule_team_schedule__["a" /* TeamSchedulePage */],
|
533
|
533
|
__WEBPACK_IMPORTED_MODULE_12__pages_team_home_team_home__["a" /* TeamHomePage */],
|
534
|
534
|
__WEBPACK_IMPORTED_MODULE_15__pages_sign_up_sign_up__["a" /* SignUpPage */]
|
535
|
535
|
],
|
|
@@ -549,17 +549,17 @@ var AppModule = /** @class */ (function () {
|
549
|
549
|
|
550
|
550
|
/***/ }),
|
551
|
551
|
|
552
|
|
-/***/ 274:
|
|
552
|
+/***/ 276:
|
553
|
553
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
554
|
554
|
|
555
|
555
|
"use strict";
|
556
|
556
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
557
|
557
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
558
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
559
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
|
560
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(205);
|
561
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_my_teams_my_teams__ = __webpack_require__(103);
|
562
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_tournaments_tournaments__ = __webpack_require__(50);
|
|
558
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
559
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(204);
|
|
560
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(207);
|
|
561
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_my_teams_my_teams__ = __webpack_require__(51);
|
|
562
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_tournaments_tournaments__ = __webpack_require__(52);
|
563
|
563
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
564
|
564
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
565
|
565
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -605,13 +605,13 @@ var MyApp = /** @class */ (function () {
|
605
|
605
|
this.nav.push(__WEBPACK_IMPORTED_MODULE_5__pages_tournaments_tournaments__["a" /* TournamentsPage */]);
|
606
|
606
|
};
|
607
|
607
|
__decorate([
|
608
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* Nav */]),
|
609
|
|
- __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* Nav */])
|
|
608
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* Nav */]),
|
|
609
|
+ __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* Nav */])
|
610
|
610
|
], MyApp.prototype, "nav", void 0);
|
611
|
611
|
MyApp = __decorate([
|
612
|
612
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/app/app.html"*/'<ion-menu [content]="content">\n <ion-header>\n <ion-toolbar>\n <ion-title>Menu</ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list>\n <ion-list>\n <ion-list-header>NAvigate</ion-list-header>\n <button menuClose ion-item (click)="goHome()">go home</button> \n <button menuClose ion-item (click)="goToTournaments()">go to tournamets</button>\n </ion-list>\n </ion-list>\n </ion-content>\n\n</ion-menu>\n\n<!-- Disable swipe-to-go-back because it\'s poor UX to combine STGB with side menus -->\n<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/app/app.html"*/
|
613
|
613
|
}),
|
614
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
|
614
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
|
615
|
615
|
], MyApp);
|
616
|
616
|
return MyApp;
|
617
|
617
|
}());
|
|
@@ -620,15 +620,138 @@ var MyApp = /** @class */ (function () {
|
620
|
620
|
|
621
|
621
|
/***/ }),
|
622
|
622
|
|
623
|
|
-/***/ 50:
|
|
623
|
+/***/ 33:
|
|
624
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
625
|
+
|
|
626
|
+"use strict";
|
|
627
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LeagueServiceProvider; });
|
|
628
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(163);
|
|
629
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
|
630
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
631
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
632
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
633
|
+ 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;
|
|
634
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
635
|
+};
|
|
636
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
637
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
638
|
+};
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+/*
|
|
642
|
+ Generated class for the LeagueServiceProvider provider.
|
|
643
|
+
|
|
644
|
+ See https://angular.io/guide/dependency-injection for more info on providers
|
|
645
|
+ and Angular DI.
|
|
646
|
+*/
|
|
647
|
+var LeagueServiceProvider = /** @class */ (function () {
|
|
648
|
+ function LeagueServiceProvider(http) {
|
|
649
|
+ this.http = http;
|
|
650
|
+ this.apiUrl = 'http://api.football-data.org/v2/competitions/';
|
|
651
|
+ this.apiUrl2 = 'http://api.football-data.org/v2/teams/';
|
|
652
|
+ this.httpOptions = {
|
|
653
|
+ headers: new __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["c" /* HttpHeaders */]({
|
|
654
|
+ 'X-Auth-Token': 'd550e63aaf6349f78dd2199f9d2dc115'
|
|
655
|
+ })
|
|
656
|
+ };
|
|
657
|
+ console.log('Hello LeagueServiceProvider Provider');
|
|
658
|
+ }
|
|
659
|
+ LeagueServiceProvider.prototype.load = function () {
|
|
660
|
+ return this.http.get(this.apiUrl, this.httpOptions);
|
|
661
|
+ // return new Promise(resolve => {
|
|
662
|
+ // this.http.get(`${this.apiUrl, this.httpOptions}`).subscribe(res => resolve(res.json()));
|
|
663
|
+ // });
|
|
664
|
+ };
|
|
665
|
+ LeagueServiceProvider.prototype.getleagueData = function (tournamentId) {
|
|
666
|
+ var url = this.apiUrl + tournamentId + '/teams';
|
|
667
|
+ console.log(url);
|
|
668
|
+ return this.http.get(this.apiUrl + tournamentId + '/teams', this.httpOptions);
|
|
669
|
+ };
|
|
670
|
+ LeagueServiceProvider.prototype.getTeamMatches = function (teamId) {
|
|
671
|
+ return this.http.get(this.apiUrl2 + teamId + '/matches', this.httpOptions);
|
|
672
|
+ };
|
|
673
|
+ LeagueServiceProvider.prototype.getLeasgueStandings = function (tournamentId) {
|
|
674
|
+ return this.http.get(this.apiUrl + tournamentId + '/standings', this.httpOptions);
|
|
675
|
+ };
|
|
676
|
+ LeagueServiceProvider = __decorate([
|
|
677
|
+ Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
|
678
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
|
|
679
|
+ ], LeagueServiceProvider);
|
|
680
|
+ return LeagueServiceProvider;
|
|
681
|
+}());
|
|
682
|
+
|
|
683
|
+//# sourceMappingURL=league-service.js.map
|
|
684
|
+
|
|
685
|
+/***/ }),
|
|
686
|
+
|
|
687
|
+/***/ 51:
|
|
688
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
689
|
+
|
|
690
|
+"use strict";
|
|
691
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyTeamsPage; });
|
|
692
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
|
693
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
694
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tournaments_tournaments__ = __webpack_require__(52);
|
|
695
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_api_api__ = __webpack_require__(80);
|
|
696
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__sign_up_sign_up__ = __webpack_require__(108);
|
|
697
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
698
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
699
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
700
|
+ 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;
|
|
701
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
702
|
+};
|
|
703
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
704
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
705
|
+};
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+/**
|
|
712
|
+ * Generated class for the MyTeamsPage page.
|
|
713
|
+ *
|
|
714
|
+ * See https://ionicframework.com/docs/components/#navigation for more info on
|
|
715
|
+ * Ionic pages and navigation.
|
|
716
|
+ */
|
|
717
|
+var MyTeamsPage = /** @class */ (function () {
|
|
718
|
+ function MyTeamsPage(navCtrl, navParams, apiProvider, toastCtrl) {
|
|
719
|
+ this.navCtrl = navCtrl;
|
|
720
|
+ this.navParams = navParams;
|
|
721
|
+ this.apiProvider = apiProvider;
|
|
722
|
+ this.toastCtrl = toastCtrl;
|
|
723
|
+ }
|
|
724
|
+ MyTeamsPage.prototype.myButton = function () {
|
|
725
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__tournaments_tournaments__["a" /* TournamentsPage */]);
|
|
726
|
+ };
|
|
727
|
+ MyTeamsPage.prototype.ionViewDidLoad = function () {
|
|
728
|
+ console.log('ionViewDidLoad MyTeamsPage');
|
|
729
|
+ };
|
|
730
|
+ MyTeamsPage.prototype.createAccount = function () {
|
|
731
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__sign_up_sign_up__["a" /* SignUpPage */]);
|
|
732
|
+ };
|
|
733
|
+ MyTeamsPage = __decorate([
|
|
734
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
735
|
+ selector: 'page-my-teams',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/my-teams/my-teams.html"*/'<!--\n Generated template for the MyTeamsPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n <ion-navbar color="primary">\n <button menuToggle ion- button icon-only>\n <ion-icon name ="menu"></ion-icon>\n </button>\n <ion-title text-center>MyApp</ion-title>\n </ion-navbar>\n <ion-toolbar color="secondary">\n <ion-title text-center><span style ="color:red">my-teams</span></ion-title>\n </ion-toolbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <h4>Welcome to my page</h4>\n <div class="login-box">\n <form #registerForm="ngForm" (ng-submit)="myButton()">\n <ion-row>\n <ion-col>\n <ion-list inset>\n <ion-item>\n <ion-input type="text" placeholder="Username" name="name" required [(ngModel)]="Username" ></ion-input>\n </ion-item>\n <ion-item>\n <ion-input type="password" placeholder="Password" name="password" required [(ngModel)]="password"></ion-input>\n </ion-item>\n </ion-list>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col class="signup-col">\n <button ion-button class="submit-btn" full type="submit" (click)="myButton()" [disabled]="!registerForm.form.valid">Login</button>\n </ion-col>\n </ion-row>\n </form>\n <ion-row>\n <ion-col color="secondary">\n <button ion-button class="register-btn" block clear (click)="createAccount()">Create Account</button>\n </ion-col>\n </ion-row>\n </div>\n \n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/my-teams/my-teams.html"*/,
|
|
736
|
+ }),
|
|
737
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */], __WEBPACK_IMPORTED_MODULE_3__providers_api_api__["a" /* ApiProvider */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* ToastController */]])
|
|
738
|
+ ], MyTeamsPage);
|
|
739
|
+ return MyTeamsPage;
|
|
740
|
+}());
|
|
741
|
+
|
|
742
|
+//# sourceMappingURL=my-teams.js.map
|
|
743
|
+
|
|
744
|
+/***/ }),
|
|
745
|
+
|
|
746
|
+/***/ 52:
|
624
|
747
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
625
|
748
|
|
626
|
749
|
"use strict";
|
627
|
750
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TournamentsPage; });
|
628
|
751
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
629
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(18);
|
630
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__teams_teams__ = __webpack_require__(104);
|
631
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_league_service_league_service__ = __webpack_require__(162);
|
|
752
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(15);
|
|
753
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__teams_teams__ = __webpack_require__(103);
|
|
754
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_league_service_league_service__ = __webpack_require__(33);
|
632
|
755
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
633
|
756
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
634
|
757
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -649,16 +772,33 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
649
|
772
|
* Ionic pages and navigation.
|
650
|
773
|
*/
|
651
|
774
|
var TournamentsPage = /** @class */ (function () {
|
652
|
|
- function TournamentsPage(navCtrl, navParams, leagueServiceProvider) {
|
|
775
|
+ function TournamentsPage(navCtrl, navParams, leagueServiceProvider, loadingController) {
|
653
|
776
|
this.navCtrl = navCtrl;
|
654
|
777
|
this.navParams = navParams;
|
655
|
778
|
this.leagueServiceProvider = leagueServiceProvider;
|
656
|
|
- this.getLeagues();
|
|
779
|
+ this.loadingController = loadingController;
|
657
|
780
|
}
|
658
|
|
- TournamentsPage.prototype.getLeagues = function () {
|
|
781
|
+ // getLeagues(){
|
|
782
|
+ // this.leagueServiceProvider.load().subscribe(data => {
|
|
783
|
+ // this.leagues = data["competitions"];
|
|
784
|
+ // });
|
|
785
|
+ // }
|
|
786
|
+ TournamentsPage.prototype.ionViewDidLoad = function () {
|
659
|
787
|
var _this = this;
|
660
|
|
- this.leagueServiceProvider.load().subscribe(function (data) {
|
661
|
|
- _this.leagues = data["competitions"];
|
|
788
|
+ //this.leagueServiceProvider.load().then(data => this.leagues = data);
|
|
789
|
+ var loader = this.loadingController.create({
|
|
790
|
+ content: 'Getting tournaments...',
|
|
791
|
+ });
|
|
792
|
+ loader.present().then(function () {
|
|
793
|
+ var areaNames = new Set(['England', 'Spain', 'Germany', 'Italy', 'France']);
|
|
794
|
+ var leaguesNames = new Set(['Premier League', 'Primera Division', 'Bundesliga', 'Serie A', 'Ligue 1']);
|
|
795
|
+ _this.leagueServiceProvider.load().subscribe(function (data) {
|
|
796
|
+ _this.leagues = data["competitions"];
|
|
797
|
+ _this.leagues = _this.leagues.filter(function (x) {
|
|
798
|
+ return areaNames.has(x.area.name) && leaguesNames.has(x.name);
|
|
799
|
+ });
|
|
800
|
+ loader.dismiss();
|
|
801
|
+ });
|
662
|
802
|
});
|
663
|
803
|
};
|
664
|
804
|
TournamentsPage.prototype.name = function (n) {
|
|
@@ -667,17 +807,17 @@ var TournamentsPage = /** @class */ (function () {
|
667
|
807
|
TournamentsPage.prototype.itemTapped1 = function () {
|
668
|
808
|
this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__teams_teams__["a" /* TeamsPage */]);
|
669
|
809
|
};
|
670
|
|
- TournamentsPage.prototype.getToteamsPage = function () {
|
671
|
|
- this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__teams_teams__["a" /* TeamsPage */]);
|
672
|
|
- };
|
673
|
|
- TournamentsPage.prototype.ionViewDidLoad = function () {
|
674
|
|
- console.log('ionViewDidLoad TournamentsPage');
|
|
810
|
+ TournamentsPage.prototype.goToTeamsPage = function (_$event, leag) {
|
|
811
|
+ this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__teams_teams__["a" /* TeamsPage */], leag);
|
675
|
812
|
};
|
676
|
813
|
TournamentsPage = __decorate([
|
677
|
814
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
678
|
|
- selector: 'page-tournaments',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/tournaments/tournaments.html"*/'\n<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>tournaments</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content color ="secondary">\n <button ion-button (click)="getToteamsPage()">test</button>\n <button ion-button class="test" *ngFor="let league of leagues" color="secondary" full (click)="name(league.name)">{{league.name}}</button>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/tournaments/tournaments.html"*/,
|
|
815
|
+ selector: 'page-tournaments',template:/*ion-inline-start:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/tournaments/tournaments.html"*/'\n<ion-header>\n\n <ion-navbar color="primary">\n <ion-title>Tournaments</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content color ="secondary">\n <!-- <button ion-item (click)="getToteamsPage($event, league)">test</button> -->\n <button class="test" *ngFor="let league of leagues" ion-item (click)="goToTeamsPage($event, league)">{{league.name}}</button>\n</ion-content>\n'/*ion-inline-end:"/Users/roym/My_Passion_Project/Passion_Project/ionic-fb/src/pages/tournaments/tournaments.html"*/,
|
679
|
816
|
}),
|
680
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */], __WEBPACK_IMPORTED_MODULE_3__providers_league_service_league_service__["a" /* LeagueServiceProvider */]])
|
|
817
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavController */],
|
|
818
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* NavParams */],
|
|
819
|
+ __WEBPACK_IMPORTED_MODULE_3__providers_league_service_league_service__["a" /* LeagueServiceProvider */],
|
|
820
|
+ __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* LoadingController */]])
|
681
|
821
|
], TournamentsPage);
|
682
|
822
|
return TournamentsPage;
|
683
|
823
|
}());
|
|
@@ -686,12 +826,12 @@ var TournamentsPage = /** @class */ (function () {
|
686
|
826
|
|
687
|
827
|
/***/ }),
|
688
|
828
|
|
689
|
|
-/***/ 78:
|
|
829
|
+/***/ 80:
|
690
|
830
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
691
|
831
|
|
692
|
832
|
"use strict";
|
693
|
833
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ApiProvider; });
|
694
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(79);
|
|
834
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(164);
|
695
|
835
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
696
|
836
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
697
|
837
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -713,10 +853,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
713
|
853
|
var ApiProvider = /** @class */ (function () {
|
714
|
854
|
function ApiProvider(http) {
|
715
|
855
|
this.http = http;
|
|
856
|
+ this.baseUrl = 'http:localhost:8080/user';
|
716
|
857
|
console.log('Hello ApiProvider Provider');
|
717
|
858
|
}
|
718
|
859
|
ApiProvider.prototype.getUsers = function () {
|
719
|
|
- return this.http.get('http:localhost:8080/user');
|
|
860
|
+ var _this = this;
|
|
861
|
+ return new Promise(function (resolve) {
|
|
862
|
+ _this.http.get(_this.baseUrl + "/all.json").subscribe(function (res) { return resolve(res.json()); });
|
|
863
|
+ });
|
720
|
864
|
};
|
721
|
865
|
ApiProvider.prototype.saveUser = function (createAccountInfo) {
|
722
|
866
|
//return this.http.post(`http://localhost:8080/user/add?username=${createAccountInfo.name}&email=${createAccountInfo.email}&password=${createAccountInfo.password}`, {})
|
|
@@ -724,15 +868,14 @@ var ApiProvider = /** @class */ (function () {
|
724
|
868
|
};
|
725
|
869
|
ApiProvider = __decorate([
|
726
|
870
|
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
727
|
|
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]) === "function" && _a || Object])
|
|
871
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Http */]])
|
728
|
872
|
], ApiProvider);
|
729
|
873
|
return ApiProvider;
|
730
|
|
- var _a;
|
731
|
874
|
}());
|
732
|
875
|
|
733
|
876
|
//# sourceMappingURL=api.js.map
|
734
|
877
|
|
735
|
878
|
/***/ })
|
736
|
879
|
|
737
|
|
-},[206]);
|
|
880
|
+},[208]);
|
738
|
881
|
//# sourceMappingURL=main.js.map
|