New icons, updated assets url & action texts

This commit is contained in:
2022-03-05 13:04:06 +01:00
parent 982d8c353c
commit 8f454b54d8

View File

@@ -10,11 +10,11 @@
<img <img
class="movie-item__img is-loaded" class="movie-item__img is-loaded"
ref="poster-image" ref="poster-image"
src="~assets/placeholder.png" src="/assets/placeholder.png"
/> />
</figure> </figure>
<h1 class="movie__title" v-if="movie">{{ movie.title }}</h1> <h1 class="movie__title" v-if="movie">{{ movie.title || movie.name }}</h1>
<loading-placeholder v-else :count="1" /> <loading-placeholder v-else :count="1" />
</header> </header>
@@ -25,25 +25,21 @@
<div class="movie__actions" v-if="movie"> <div class="movie__actions" v-if="movie">
<sidebar-list-element :active="matched" :disabled="true"> <sidebar-list-element :active="matched" :disabled="true">
<IconThumbsUp v-if="matched" /> <IconThumbsUp v-if="matched" />
<IconThumbsDown v-else class="stroke" /> <IconThumbsDown v-else />
{{ !matched ? "Not yet in plex" : "Already in plex 🎉" }} {{ !matched ? "Not yet available" : "Already available 🎉" }}
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element @click="sendRequest" :active="requested"> <sidebar-list-element @click="sendRequest" :active="requested">
<IconMail /> <transition name="fade" mode="out-in">
{{ <div v-if="!requested" key="request"><IconRequest /></div>
!requested <div v-else key="requested"><IconRequested /></div>
? "Request to be downloaded?" </transition>
: "Requested to be downloaded" {{ !requested ? `Request ${this.type}?` : "Already requested" }}
}}
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element <sidebar-list-element v-if="plexId && matched" @click="openInPlex">
v-if="plexId && matched" <IconPlay />
@click="openInPlex" Open and watch in plex now!
:iconString="'⏯ '"
>
Watch in plex now!
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element <sidebar-list-element
@@ -56,19 +52,20 @@
:active="showCast" :active="showCast"
@click="() => (showCast = !showCast)" @click="() => (showCast = !showCast)"
> >
<IconProfile class="icon stroke" /> <IconProfile class="icon" />
{{ showCast ? "Hide cast" : "Show cast" }} {{ showCast ? "Hide cast" : "Show cast" }}
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element <sidebar-list-element
v-if="admin" v-if="admin === true"
@click="showTorrents = !showTorrents" @click="showTorrents = !showTorrents"
:active="showTorrents" :active="showTorrents"
> >
<IconMagnet class="rotate" /> <IconBinoculars />
Search for torrents Search for torrents
<span class="meta">{{ numberOfTorrentResults || 123 }}</span> <span class="meta">{{ numberOfTorrentResults || 123 }}</span>
</sidebar-list-element> </sidebar-list-element>
<sidebar-list-element @click="openTmdb"> <sidebar-list-element @click="openTmdb">
<IconInfo /> <IconInfo />
See more info See more info
@@ -78,8 +75,9 @@
<!-- Loading placeholder --> <!-- Loading placeholder -->
<div class="movie__actions text-input__loading" v-else> <div class="movie__actions text-input__loading" v-else>
<div <div
v-for="index in admin ? Array(4) : Array(3)"
class="movie__actions-link" class="movie__actions-link"
v-for="_ in admin ? Array(4) : Array(3)" :key="index"
> >
<div <div
class="movie__actions-text text-input__loading--line" class="movie__actions-text text-input__loading--line"
@@ -95,7 +93,10 @@
<loading-placeholder :count="5" /> <loading-placeholder :count="5" />
</div> </div>
<MovieDescription v-else :description="movie.overview" /> <MovieDescription
v-if="!loading && movie && movie.overview"
:description="movie.overview"
/>
<div class="movie__details" v-if="movie"> <div class="movie__details" v-if="movie">
<MovieDetail <MovieDetail
@@ -151,7 +152,7 @@
<!-- TORRENT LIST --> <!-- TORRENT LIST -->
<TorrentList <TorrentList
v-if="movie" v-if="movie && admin"
:show="showTorrents" :show="showTorrents"
:query="title" :query="title"
:tmdb_id="id" :tmdb_id="id"
@@ -168,8 +169,10 @@ import IconProfile from "../icons/IconProfile";
import IconThumbsUp from "../icons/IconThumbsUp"; import IconThumbsUp from "../icons/IconThumbsUp";
import IconThumbsDown from "../icons/IconThumbsDown"; import IconThumbsDown from "../icons/IconThumbsDown";
import IconInfo from "../icons/IconInfo"; import IconInfo from "../icons/IconInfo";
import IconMail from "../icons/IconMail"; import IconRequest from "../icons/IconRequest";
import IconMagnet from "../icons/IconMagnet"; import IconRequested from "../icons/IconRequested";
import IconBinoculars from "../icons/IconBinoculars";
import IconPlay from "../icons/IconPlay";
import TorrentList from "./TorrentList"; import TorrentList from "./TorrentList";
import Cast from "./Cast"; import Cast from "./Cast";
import MovieDetail from "./ui/MovieDetail"; import MovieDetail from "./ui/MovieDetail";
@@ -205,9 +208,11 @@ export default {
IconProfile, IconProfile,
IconThumbsUp, IconThumbsUp,
IconThumbsDown, IconThumbsDown,
IconMail, IconRequest,
IconRequested,
IconInfo, IconInfo,
IconMagnet, IconBinoculars,
IconPlay,
TorrentList, TorrentList,
Cast, Cast,
LoadingPlaceholder, LoadingPlaceholder,
@@ -275,7 +280,7 @@ export default {
setPosterSrc() { setPosterSrc() {
const poster = this.$refs["poster-image"]; const poster = this.$refs["poster-image"];
if (this.poster == null) { if (this.poster == null) {
poster.src = "/no-image.png"; poster.src = "/assets/no-image.svg";
return; return;
} }
@@ -308,18 +313,14 @@ export default {
.catch(error => { .catch(error => {
this.$router.push({ name: "404" }); this.$router.push({ name: "404" });
}); });
} else if (this.type == "person") { } else if (this.type == "show") {
getPerson(this.id, false) getShow(this.id, false, true)
.then(this.parseResponse) .then(this.parseResponse)
.catch(error => { .catch(error => {
this.$router.push({ name: "404" }); this.$router.push({ name: "404" });
}); });
} else { } else {
getShow(this.id, true, true) this.$router.push({ name: "404" });
.then(this.parseResponse)
.catch(error => {
this.$router.push({ name: "404" });
});
} }
}, },
beforeDestroy() { beforeDestroy() {
@@ -497,4 +498,13 @@ header {
} }
} }
} }
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.4s;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
</style> </style>