Moving out the stats GUI and checking for the error handler.

This commit is contained in:
Zoe Roux 2019-12-15 23:14:49 +01:00
parent 019efafc46
commit fe9e6e7e50
2 changed files with 23 additions and 26 deletions

View File

@ -8,14 +8,6 @@
<div class="spinner-border align-self-center" role="status"></div> <div class="spinner-border align-self-center" role="status"></div>
</div> </div>
<div id="hover">
<div class="back">
<a mat-icon-button matTooltipPosition="below" matTooltip="Back" (click)="back()">
<mat-icon>arrow_back</mat-icon>
</a>
<h5>{{this.item.showTitle}}</h5>
</div>
<mat-card class="d-none w-25 m-5" [ngClass]="{'d-block': this.displayStats}"> <mat-card class="d-none w-25 m-5" [ngClass]="{'d-block': this.displayStats}">
<mat-card-header style="margin-bottom: 0.5rem;"> <mat-card-header style="margin-bottom: 0.5rem;">
<h4 style="align-self: center; margin-bottom: 0;">Stats</h4> <h4 style="align-self: center; margin-bottom: 0;">Stats</h4>
@ -35,10 +27,18 @@
Audio Codec: <span style="float: right">{{this.item.audios[0].codec}} <i class="material-icons" style="vertical-align: middle; font-size: 14px">{{getSupportedFeature("audio")}}</i></span> Audio Codec: <span style="float: right">{{this.item.audios[0].codec}} <i class="material-icons" style="vertical-align: middle; font-size: 14px">{{getSupportedFeature("audio")}}</i></span>
<br /> <br />
Subtitle Codec: <span style="float: right">{{this.selectedSubtitle ? this.selectedSubtitle.codec : "none"}} <i class="material-icons" style="vertical-align: middle; font-size: 14px">{{getSupportedFeature("subtitle")}}</i></span> Subtitle Codec: <span style="float: right">{{this.selectedSubtitle ? this.selectedSubtitle.codec : "none"}} <i class="material-icons" style="vertical-align: middle; font-size: 14px">{{getSupportedFeature("subtitle")}}</i></span>
<br/> <br />
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
<div id="hover">
<div class="back">
<a mat-icon-button matTooltipPosition="below" matTooltip="Back" (click)="back()">
<mat-icon>arrow_back</mat-icon>
</a>
<h5>{{this.item.showTitle}}</h5>
</div>
<div class="controller container-fluid" id="controller"> <div class="controller container-fluid" id="controller">
<div class="img d-none d-sm-block"> <div class="img d-none d-sm-block">
<img src="poster/{{this.item.showSlug}}" /> <img src="poster/{{this.item.showSlug}}" />

View File

@ -78,9 +78,6 @@ namespace Kyoo
app.UseSpa(spa => app.UseSpa(spa =>
{ {
// To learn more about options for serving an Angular SPA from ASP.NET Core,
// see https://go.microsoft.com/fwlink/?linkid=864501
spa.Options.SourcePath = "ClientApp"; spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment()) if (env.IsDevelopment())