refactor interfaces and references

This commit is contained in:
geoffrey45
2022-11-30 20:27:44 +03:00
committed by Mungai Njoroge
parent 4a49d48011
commit 6d8a9f880b
44 changed files with 195 additions and 171 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<img class="rounded" :src="imguri + album.image" alt="" />
<div>
<h4 class="title ellip" v-tooltip>{{ album.title }}</h4>
<div class="artist ellip">{{ album.albumartist }}</div>
<div class="artist ellip">{{ album.albumartists[0].name }}</div>
</div>
</router-link>
</template>
+2 -2
View File
@@ -8,7 +8,7 @@
}"
>
<div v-if="artists === null || artists.length === 0">
<span>{{ albumartist }}</span>
<span>{{ albumartists }}</span>
</div>
<div v-else>
<span v-for="artist in putCommas(artists)" :key="artist">{{
@@ -23,7 +23,7 @@ import { putCommas } from "@/utils";
const props = defineProps<{
artists: string[] | null;
albumartist: string | undefined;
albumartists: string | null;
small?: boolean;
smaller?: boolean;
}>();
+2 -2
View File
@@ -27,13 +27,13 @@
<div class="isSmallArtists" style="display: none">
<ArtistName
:artists="track.artist"
:albumartist="track.albumartist"
:albumartists="track.albumartist"
/>
</div>
</div>
</div>
<div class="song-artists">
<ArtistName :artists="track.artist" :albumartist="track.albumartist" />
<ArtistName :artists="track.artist" :albumartists="track.albumartist" />
</div>
<router-link
v-if="!hide_album"
+2 -2
View File
@@ -26,7 +26,7 @@
<div class="artist">
<ArtistName
:artists="track.artist"
:albumartist="track.albumartist"
:albumartists="track.albumartist"
:smaller="true"
/>
</div>
@@ -64,7 +64,7 @@ const props = defineProps<{
const queue = useQueueStore();
const context_on = ref(false);
function showMenu(e: Event) {
function showMenu(e: MouseEvent) {
showContext(e, props.track, context_on);
}