Ready for deployment?

This commit is contained in:
Joachim 2018-09-13 22:14:41 +02:00
parent 227226d89e
commit dc7a8f5f8d
8 changed files with 27 additions and 20 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files. # See http://help.github.com/ignore-files/ for more about ignoring files.
src/reclame
# compiled output # compiled output
/dist /dist
/tmp /tmp

View File

@ -21,7 +21,8 @@
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets", "src/assets",
"src/assets/sounds" "src/assets/sounds",
"src/reclame"
], ],
"styles": [ "styles": [
"src/styles.scss", "src/styles.scss",

View File

@ -12,15 +12,15 @@ import {TopmenuService} from '../../topmenu.service';
}) })
export class PouleComponent implements OnInit { export class PouleComponent implements OnInit {
protected teams: any[] = []; public teams: any[] = [];
protected times: any[] = []; public times: any[] = [];
protected teamtotaltimes: {}; public teamtotaltimes: {};
protected maxRaces = 0; public maxRaces = 0;
private timesIndexed: {}; private timesIndexed: {};
// these are the best two times for each team, indexed by their id // these are the best two times for each team, indexed by their id
protected bestTwo: {}; public bestTwo: {};
protected maxLaps = 0; public maxLaps = 0;
constructor(private championshipService: ChampionshipService, private route: ActivatedRoute, private topmenuService: TopmenuService) { constructor(private championshipService: ChampionshipService, private route: ActivatedRoute, private topmenuService: TopmenuService) {
} }
@ -48,6 +48,13 @@ export class PouleComponent implements OnInit {
} }
get poule() {
return this.topmenuService.poule$.value;
}
get tier() {
return this.topmenuService.tier$.value;
}
private loadData() { private loadData() {
this.teams = []; this.teams = [];
this.times = []; this.times = [];

View File

@ -12,10 +12,10 @@ import {TopmenuService} from '../../topmenu.service';
}) })
export class TierComponent implements OnInit { export class TierComponent implements OnInit {
protected tier: number; public tier: number;
protected poules: number[] = []; public poules: number[] = [];
protected idChampionship: number; public idChampionship: number;
protected tierTimes: any[]; public tierTimes: any[];
constructor(private route: ActivatedRoute, private championshipService: ChampionshipService, private topmenuService: TopmenuService) { constructor(private route: ActivatedRoute, private championshipService: ChampionshipService, private topmenuService: TopmenuService) {
} }

View File

@ -1,7 +1,7 @@
<div id="reclamespinner"> <div id="reclamespinner">
<button id="goleftbutton" (click)="goRight()"><</button> <button id="goleftbutton" (click)="goRight()"><</button>
<div id="reclamecontainer"> <div id="reclamecontainer">
<img (click)="react(image)" class="reclameitem" src="/assets/{{image}}" *ngFor="let image of images"/> <img (click)="react(image)" class="reclameitem" src="/reclame/{{image}}" *ngFor="let image of images"/>
</div> </div>
<button id="gorightbutton" (click)="goLeft()">></button> <button id="gorightbutton" (click)="goLeft()">></button>
</div> </div>

View File

@ -8,15 +8,12 @@ import {timer} from 'rxjs';
}) })
export class ReclamespinnerComponent implements OnInit { export class ReclamespinnerComponent implements OnInit {
protected images: string[] = []; public images: string[] = [];
constructor() { constructor() {
this.images.push('Victoria.jpg'); for (let i = 1; i <= 14; i++) {
this.images.push('basta.png'); this.images.push(i + '.jpg');
this.images.push('Pasta Basta.png'); }
this.images.push('stoked.png');
this.images.push('VDV.jpg');
this.images.push('Slagerij Pieters.jpg');
} }
ngOnInit() { ngOnInit() {

View File

@ -14,7 +14,7 @@ import {TopmenuService} from '../topmenu.service';
export class TopmenuComponent implements OnInit { export class TopmenuComponent implements OnInit {
private idChampionship: number; private idChampionship: number;
protected tiers: number[] = []; public tiers: number[] = [];
constructor(private championshipService: ChampionshipService, constructor(private championshipService: ChampionshipService,
private route: ActivatedRoute, private route: ActivatedRoute,

Binary file not shown.