update track interface to follow server updates

+ add search debounce time
This commit is contained in:
geoffrey45
2022-09-11 20:37:29 +03:00
parent 47fc7fd705
commit f5b6791d4b
14 changed files with 50 additions and 43 deletions
@@ -10,7 +10,7 @@
<div class="np-artist ellip">
<span
v-for="artist in putCommas(
queue.currenttrack?.artists || ['♥ Hello ♥']
queue.currenttrack?.artist || ['♥ Hello ♥']
)"
>
{{ artist }}
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="tags">
<div class="title ellip">{{ track?.title || "Don't click here" }}</div>
<div class="artist ellip" v-if="track">
<span v-for="artist in putCommas(track.artists)" :key="artist">{{
<span v-for="artist in putCommas(track.artist)" :key="artist">{{
artist
}}</span>
</div>
+4 -4
View File
@@ -30,10 +30,10 @@
<script setup lang="ts">
import { onMounted } from "vue";
import QueueSvg from "../../assets/icons/queue.svg";
import SearchSvg from "../../assets/icons/search.svg";
import useSearchStore from "../../stores/search";
import useTabStore from "../../stores/tabs";
import QueueSvg from "@/assets/icons/queue.svg";
import SearchSvg from "@/assets/icons/search.svg";
import useSearchStore from "@/stores/search";
import useTabStore from "@/stores/tabs";
const search = useSearchStore();
const tabs = useTabStore();