mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
Small code style fixs
This commit is contained in:
parent
833458ac60
commit
d36e332bcb
@ -33,7 +33,7 @@
|
||||
{
|
||||
outline: none;
|
||||
color: inherit;
|
||||
|
||||
|
||||
&:hover
|
||||
{
|
||||
text-decoration: none !important;
|
||||
|
@ -1,20 +1,19 @@
|
||||
import { Component, Input, QueryList, ViewChild, ViewChildren } from "@angular/core";
|
||||
import { Component, Input, QueryList, ViewChildren } from "@angular/core";
|
||||
import { MatMenuTrigger } from "@angular/material/menu";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { first } from "rxjs/operators";
|
||||
import { DomSanitizer, SafeStyle } from "@angular/platform-browser";
|
||||
import { Episode } from "../../models/resources/episode";
|
||||
import { HorizontalScroller } from "../../misc/horizontal-scroller";
|
||||
import { Page } from "../../models/page";
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
|
||||
@Component({
|
||||
selector: 'app-episodes-list',
|
||||
templateUrl: './episodes-list.component.html',
|
||||
styleUrls: ['./episodes-list.component.scss']
|
||||
selector: "app-episodes-list",
|
||||
templateUrl: "./episodes-list.component.html",
|
||||
styleUrls: ["./episodes-list.component.scss"]
|
||||
})
|
||||
export class EpisodesListComponent extends HorizontalScroller
|
||||
{
|
||||
@Input() displayShowTitle: boolean = false;
|
||||
@Input() displayShowTitle = false;
|
||||
@Input() episodes: Page<Episode>;
|
||||
@ViewChildren(MatMenuTrigger) menus: QueryList<MatMenuTrigger>;
|
||||
openedIndex: number = undefined;
|
||||
@ -24,7 +23,7 @@ export class EpisodesListComponent extends HorizontalScroller
|
||||
super();
|
||||
}
|
||||
|
||||
sanitize(url: string)
|
||||
sanitize(url: string): SafeStyle
|
||||
{
|
||||
return this.sanitizer.bypassSecurityTrustStyle("url(" + url + ")");
|
||||
}
|
||||
|
@ -78,7 +78,7 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
margin-bottom: 0px;
|
||||
margin-bottom: 0;
|
||||
|
||||
&.role
|
||||
{
|
||||
|
@ -1,16 +1,17 @@
|
||||
import {Directive, ElementRef, HostListener, Input} from '@angular/core';
|
||||
import { Directive, ElementRef, HostListener, Input } from "@angular/core";
|
||||
|
||||
/* tslint:disable:directive-selector */
|
||||
@Directive({
|
||||
selector: 'img[fallback]'
|
||||
selector: "img[fallback]"
|
||||
})
|
||||
export class FallbackDirective
|
||||
export class FallbackDirective
|
||||
{
|
||||
@Input() fallback: string;
|
||||
|
||||
|
||||
constructor(private img: ElementRef) { }
|
||||
|
||||
|
||||
@HostListener("error")
|
||||
onError()
|
||||
onError(): void
|
||||
{
|
||||
const html: HTMLImageElement = this.img.nativeElement;
|
||||
html.src = this.fallback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user