Loading package-lock.json +1 −1 Original line number Original line Diff line number Diff line { { "name": "tabooh", "name": "tabooh", "version": "2.2.1", "version": "2.2.2", "lockfileVersion": 1, "lockfileVersion": 1, "requires": true, "requires": true, "dependencies": { "dependencies": { Loading src/app/game/game.component.ts +11 −1 Original line number Original line Diff line number Diff line Loading @@ -8,6 +8,7 @@ import {SocketDataService} from '../dao/socketDataService'; import {Subject} from 'rxjs'; import {Subject} from 'rxjs'; import {takeUntil} from 'rxjs/operators'; import {takeUntil} from 'rxjs/operators'; import {ViewModus} from '../dao/viewModus'; import {ViewModus} from '../dao/viewModus'; import {HttpErrorResponse} from '@angular/common/http'; @Component({ @Component({ selector: 'app-game', selector: 'app-game', Loading Loading @@ -102,10 +103,14 @@ export class GameComponent implements OnInit, OnDestroy { this.subNewCard = this.socketDataService.getNewCard(this.sessionName) this.subNewCard = this.socketDataService.getNewCard(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) .subscribe(data => { .subscribe(data => { if (data === -1) { console.log('Öffne POP UP'); } else { this.service.getCard({cardID: data}).then(value => { this.service.getCard({cardID: data}).then(value => { this.fillNewCard(value); this.fillNewCard(value); this.fillGamestatus(); this.fillGamestatus(); }); }); } }); }); this.subEndRound = this.socketDataService.getNewRound(this.sessionName) this.subEndRound = this.socketDataService.getNewRound(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) Loading Loading @@ -232,7 +237,12 @@ export class GameComponent implements OnInit, OnDestroy { if (status) { if (status) { this.fillNewCard(value); this.fillNewCard(value); } } }).catch(reason => console.log(reason)); }).catch((err: HttpErrorResponse) => { console.log(err); if (err.status === 502) { console.log('Keine neuen Karten mehr'); } }); } } fillNewCard(value: any): void { fillNewCard(value: any): void { Loading src/app/guesser/guesser.component.ts +4 −0 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,11 @@ export class GuesserComponent implements OnInit, OnDestroy { this.subNewCard = this.socketDataService.getNewCard(this.sessionName) this.subNewCard = this.socketDataService.getNewCard(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) .subscribe(data => { .subscribe(data => { if (data === -1) { console.log('Öffne POP UP'); } else { this.fillGamestatus(); this.fillGamestatus(); } }); }); this.subEndRound = this.socketDataService.getEndRound(this.sessionName) this.subEndRound = this.socketDataService.getEndRound(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) Loading src/app/overview/overview.component.ts +5 −0 Original line number Original line Diff line number Diff line Loading @@ -8,6 +8,7 @@ import {Subject} from 'rxjs'; import {takeUntil} from 'rxjs/operators'; import {takeUntil} from 'rxjs/operators'; import {ViewModus} from '../dao/viewModus'; import {ViewModus} from '../dao/viewModus'; import {Location} from '@angular/common'; import {Location} from '@angular/common'; import {HttpErrorResponse} from '@angular/common/http'; @Component({ @Component({ selector: 'app-overview', selector: 'app-overview', Loading Loading @@ -207,6 +208,10 @@ export class OverviewComponent implements OnInit, OnDestroy { const audio = '../../../assets/sounds/state-change_confirm-up.ogg'; const audio = '../../../assets/sounds/state-change_confirm-up.ogg'; this.playAudio(audio); this.playAudio(audio); }); }); }).catch((err: HttpErrorResponse) => { if (err.status === 502) { console.log('POP UP HIER ÖFFNEN'); } }); }); } } Loading Loading
package-lock.json +1 −1 Original line number Original line Diff line number Diff line { { "name": "tabooh", "name": "tabooh", "version": "2.2.1", "version": "2.2.2", "lockfileVersion": 1, "lockfileVersion": 1, "requires": true, "requires": true, "dependencies": { "dependencies": { Loading
src/app/game/game.component.ts +11 −1 Original line number Original line Diff line number Diff line Loading @@ -8,6 +8,7 @@ import {SocketDataService} from '../dao/socketDataService'; import {Subject} from 'rxjs'; import {Subject} from 'rxjs'; import {takeUntil} from 'rxjs/operators'; import {takeUntil} from 'rxjs/operators'; import {ViewModus} from '../dao/viewModus'; import {ViewModus} from '../dao/viewModus'; import {HttpErrorResponse} from '@angular/common/http'; @Component({ @Component({ selector: 'app-game', selector: 'app-game', Loading Loading @@ -102,10 +103,14 @@ export class GameComponent implements OnInit, OnDestroy { this.subNewCard = this.socketDataService.getNewCard(this.sessionName) this.subNewCard = this.socketDataService.getNewCard(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) .subscribe(data => { .subscribe(data => { if (data === -1) { console.log('Öffne POP UP'); } else { this.service.getCard({cardID: data}).then(value => { this.service.getCard({cardID: data}).then(value => { this.fillNewCard(value); this.fillNewCard(value); this.fillGamestatus(); this.fillGamestatus(); }); }); } }); }); this.subEndRound = this.socketDataService.getNewRound(this.sessionName) this.subEndRound = this.socketDataService.getNewRound(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) Loading Loading @@ -232,7 +237,12 @@ export class GameComponent implements OnInit, OnDestroy { if (status) { if (status) { this.fillNewCard(value); this.fillNewCard(value); } } }).catch(reason => console.log(reason)); }).catch((err: HttpErrorResponse) => { console.log(err); if (err.status === 502) { console.log('Keine neuen Karten mehr'); } }); } } fillNewCard(value: any): void { fillNewCard(value: any): void { Loading
src/app/guesser/guesser.component.ts +4 −0 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,11 @@ export class GuesserComponent implements OnInit, OnDestroy { this.subNewCard = this.socketDataService.getNewCard(this.sessionName) this.subNewCard = this.socketDataService.getNewCard(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) .subscribe(data => { .subscribe(data => { if (data === -1) { console.log('Öffne POP UP'); } else { this.fillGamestatus(); this.fillGamestatus(); } }); }); this.subEndRound = this.socketDataService.getEndRound(this.sessionName) this.subEndRound = this.socketDataService.getEndRound(this.sessionName) .pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe)) Loading
src/app/overview/overview.component.ts +5 −0 Original line number Original line Diff line number Diff line Loading @@ -8,6 +8,7 @@ import {Subject} from 'rxjs'; import {takeUntil} from 'rxjs/operators'; import {takeUntil} from 'rxjs/operators'; import {ViewModus} from '../dao/viewModus'; import {ViewModus} from '../dao/viewModus'; import {Location} from '@angular/common'; import {Location} from '@angular/common'; import {HttpErrorResponse} from '@angular/common/http'; @Component({ @Component({ selector: 'app-overview', selector: 'app-overview', Loading Loading @@ -207,6 +208,10 @@ export class OverviewComponent implements OnInit, OnDestroy { const audio = '../../../assets/sounds/state-change_confirm-up.ogg'; const audio = '../../../assets/sounds/state-change_confirm-up.ogg'; this.playAudio(audio); this.playAudio(audio); }); }); }).catch((err: HttpErrorResponse) => { if (err.status === 502) { console.log('POP UP HIER ÖFFNEN'); } }); }); } } Loading