Resolved linting issues

This commit is contained in:
2022-08-15 21:10:46 +02:00
parent 2a9fc87350
commit d545fccdc3
2 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
:key="_route.route" :key="_route.route"
:route="_route" :route="_route"
:active="activeRoute" :active="activeRoute"
:useStroke="_route?.useStroke" :use-stroke="_route?.useStroke"
/> />
<slot></slot> <slot></slot>
</ul> </ul>

View File

@@ -245,6 +245,18 @@
requested.value = status; requested.value = status;
} }
function setBackdrop(): void {
if (
!media.value?.backdrop ||
!backdropElement.value?.style ||
backdropElement.value?.style?.backgroundImage !== ""
)
return;
const backdropURL = `${ASSET_URL}${ASSET_SIZES[1]}${media.value.backdrop}`;
backdropElement.value.style.backgroundImage = `url(${backdropURL})`;
}
function getCredits( function getCredits(
type: MediaTypes.Movie | MediaTypes.Show type: MediaTypes.Movie | MediaTypes.Show
): Promise<IMediaCredits> { ): Promise<IMediaCredits> {
@@ -293,18 +305,6 @@
.then(setBackdrop); .then(setBackdrop);
} }
function setBackdrop(): void {
if (
!media.value?.backdrop ||
!backdropElement.value?.style ||
backdropElement.value?.style?.backgroundImage !== ""
)
return;
const backdropURL = `${ASSET_URL}${ASSET_SIZES[1]}${media.value.backdrop}`;
backdropElement.value.style.backgroundImage = `url(${backdropURL})`;
}
function sendRequest() { function sendRequest() {
request(props.id, props.type).then(resp => request(props.id, props.type).then(resp =>
setRequested(resp?.success || false) setRequested(resp?.success || false)