mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-11 15:55:58 +00:00
refactor(library view): apply suggestions from code review
This commit is contained in:
parent
fd75671d88
commit
e93541d4de
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>{{ Name }}</h1>
|
||||
<h1>
|
||||
<span>{{ Name }}</span>
|
||||
</h1>
|
||||
<div class="cardsContainer">
|
||||
<v-card
|
||||
v-for="item in Items"
|
||||
@ -10,10 +12,10 @@
|
||||
>
|
||||
<v-img class="cardImage" :src="imageLink(item.Id)" />
|
||||
<v-card-title>
|
||||
{{ item.Name }}
|
||||
<span>{{ item.Name }}</span>
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
{{ item.ProductionYear }}
|
||||
<span>{{ item.ProductionYear }}</span>
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</div>
|
||||
@ -53,8 +55,7 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
imageLink(id: string) {
|
||||
const url = `${this.$axios.defaults.baseURL}/Items/${id}/Images/Primary`;
|
||||
return url;
|
||||
return `${this.$axios.defaults.baseURL}/Items/${id}/Images/Primary`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user