Solving a bug with shows who didn't had studios responses

This commit is contained in:
Zoe Roux 2020-02-10 01:13:55 +01:00
parent 235589f0fe
commit cfa051c5ef
4 changed files with 832 additions and 2210 deletions

3023
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,23 +26,23 @@
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",
"hls.js": "^0.12.4", "hls.js": "^0.12.4",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"popper.js": "^1.16.0", "popper.js": "^1.16.1",
"zone.js": "~0.9.1" "zone.js": "~0.9.1"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.803.22", "@angular-devkit/build-angular": "^0.803.25",
"@angular/cli": "^8.3.22", "@angular/cli": "^8.3.25",
"@angular/compiler-cli": "^8.2.14", "@angular/compiler-cli": "^8.2.14",
"@angular/language-service": "^8.2.14", "@angular/language-service": "^8.2.14",
"@types/bootstrap": "^4.3.1", "@types/bootstrap": "^4.3.1",
"@types/hls.js": "^0.12.5", "@types/hls.js": "^0.12.5",
"@types/jasmine": "~3.3.8", "@types/jasmine": "~3.3.8",
"@types/jasminewd2": "^2.0.8", "@types/jasminewd2": "^2.0.8",
"@types/jquery": "^3.3.31", "@types/jquery": "^3.3.32",
"@types/node": "~8.9.4", "@types/node": "~8.9.4",
"@types/video.js": "^7.3.3", "@types/video.js": "^7.3.3",
"codelyzer": "^5.2.1", "codelyzer": "^5.2.1",
"protractor": "~5.4.0", "protractor": "^5.4.3",
"ts-node": "~7.0.0", "ts-node": "~7.0.0",
"tslint": "~5.15.0", "tslint": "~5.15.0",
"typescript": "~3.5.3" "typescript": "~3.5.3"

View File

@ -33,17 +33,15 @@
<img src="logo/{{this.show.slug}}" /> <img src="logo/{{this.show.slug}}" />
<div> <div>
<p>Studio: <b><a routerLink="/studio/{{this.show.studio.slug}}">{{this.show.studio.name}}</a></b></p> <p>Studio: <b><a routerLink="/studio/{{this.show.studio?.slug}}">{{this.show.studio?.name}}</a></b></p>
<p>Directors: <b></b></p>
</div> </div>
</div> </div>
</div> </div>
<div class="row pt-3 d-md-none"> <div class="row pt-3 d-md-none">
<div class="col"> <div class="col">
<p class="mr-1 d-inline-block">Studio: <b><a routerLink="/studio/{{this.show.studio.slug}}">{{this.show.studio.name}}</a></b></p> <p class="mr-1 d-inline-block">Studio: <b><a routerLink="/studio/{{this.show.studio?.slug}}">{{this.show.studio?.name}}</a></b></p>
<p class="d-inline-block">Directors: <b></b></p> <div class="d-sm-none">
<div class="d-sm-none">
<p>Genres: <span *ngFor="let genre of this.show.genres; let isLast = last"><b><a routerLink="/genre/{{genre.slug}}">{{genre.name}}</a></b>{{isLast ? "" : ", "}}</span></p> <p>Genres: <span *ngFor="let genre of this.show.genres; let isLast = last"><b><a routerLink="/genre/{{genre.slug}}">{{genre.name}}</a></b>{{isLast ? "" : ", "}}</span></p>
</div> </div>
</div> </div>

View File

@ -12,7 +12,6 @@ export interface Show
genres: Genre[]; genres: Genre[];
status: string; status: string;
studio: Studio; studio: Studio;
directors: People[];
people: People[]; people: People[];
seasons: Season[]; seasons: Season[];
trailerUrl: string; trailerUrl: string;