Resolved linting issues
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user