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
+4 -4
View File
@@ -16,9 +16,9 @@
<SongItem
:track="item.track"
:index="index + 1"
:isCurrent="queue.currentid === item.track.id"
:isCurrent="queue.currenttrackhash === item.track.trackhash"
:isCurrentPlaying="
queue.currentid === item.track.id && queue.playing
queue.currenttrackhash === item.track.trackhash && queue.playing
"
@playThis="playFromQueue(index)"
/>
@@ -29,10 +29,10 @@
<script setup lang="ts">
import { computed, onMounted } from "vue";
import SongItem from "@/components/shared/SongItem.vue";
import { isMedium, isSmall } from "@/stores/content-width";
import useQStore from "@/stores/queue";
import { createTrackProps } from "@/utils";
import SongItem from "@/components/shared/SongItem.vue";
import { isSmall, isMedium } from "@/stores/content-width";
const itemHeight = 64;
const queue = useQStore();