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.
src/reclame
# compiled output
/dist
/tmp

View File

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

View File

@ -12,15 +12,15 @@ import {TopmenuService} from '../../topmenu.service';
})
export class PouleComponent implements OnInit {
protected teams: any[] = [];
protected times: any[] = [];
protected teamtotaltimes: {};
public teams: any[] = [];
public times: any[] = [];
public teamtotaltimes: {};
protected maxRaces = 0;
public maxRaces = 0;
private timesIndexed: {};
// these are the best two times for each team, indexed by their id
protected bestTwo: {};
protected maxLaps = 0;
public bestTwo: {};
public maxLaps = 0;
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() {
this.teams = [];
this.times = [];

View File

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

View File

@ -1,7 +1,7 @@
<div id="reclamespinner">
<button id="goleftbutton" (click)="goRight()"><</button>
<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>
<button id="gorightbutton" (click)="goLeft()">></button>
</div>

View File

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

View File

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

Binary file not shown.