From f26e9527034f2332a0daa9042e62840ad50182d2 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Sat, 27 Aug 2022 20:02:03 +0300 Subject: [PATCH] remove unused elements from components --- src/components/LeftSidebar/NP/Progress.vue | 8 ++++--- src/components/PlaylistView/Header.vue | 21 +++++++------------ .../RightSideBar/Queue/QueueActions.vue | 5 +---- 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/components/LeftSidebar/NP/Progress.vue b/src/components/LeftSidebar/NP/Progress.vue index 24731ad9..38060e80 100644 --- a/src/components/LeftSidebar/NP/Progress.vue +++ b/src/components/LeftSidebar/NP/Progress.vue @@ -2,14 +2,14 @@ @@ -19,6 +19,8 @@ import useQStore from "../../../stores/queue"; const q = useQStore(); + +const { duration: time } = q; const seek = () => { const elem = document.getElementById("progress") as HTMLInputElement; const value = elem.value; diff --git a/src/components/PlaylistView/Header.vue b/src/components/PlaylistView/Header.vue index 181a041b..1eeebc31 100644 --- a/src/components/PlaylistView/Header.vue +++ b/src/components/PlaylistView/Header.vue @@ -4,7 +4,7 @@ ref="playlistheader" :style="[ { - backgroundImage: `url(${imguri + props.info.image})`, + backgroundImage: `url(${imguri + info.image})`, }, ]" > @@ -13,26 +13,20 @@
-
- No Tracks - {{ props.info.count }} Track - {{ props.info.count }} Tracks • - {{ formatSeconds(props.info.duration, true) }} + No Tracks + {{ info.count }} Track + {{ info.count }} Tracks • + {{ formatSeconds(info.duration, true) }}
-
{{ props.info.name }}
+
{{ info.name }}
Playlist
Last updated {{ props.info.lastUpdated }}  |  Last updated {{ info.lastUpdated }}  |   Edit
@@ -53,7 +47,6 @@ import { Playlist } from "../../interfaces"; import { useVisibility, formatSeconds } from "@/utils"; import { ContextSrc, playSources } from "@/composables/enums"; -import Option from "../shared/Option.vue"; import PlayBtnRect from "../shared/PlayBtnRect.vue"; const imguri = paths.images.playlist; diff --git a/src/components/RightSideBar/Queue/QueueActions.vue b/src/components/RightSideBar/Queue/QueueActions.vue index 5cd41725..15492daa 100644 --- a/src/components/RightSideBar/Queue/QueueActions.vue +++ b/src/components/RightSideBar/Queue/QueueActions.vue @@ -10,9 +10,7 @@ Shuffle -
-
+
@@ -21,7 +19,6 @@ import useQueueStore from "../../../stores/queue"; import ClearSvg from "@/assets/icons/delete.svg"; import ShuffleSvg from "@/assets/icons/shuffle.svg"; -import Option from "@/components/shared/Option.vue"; const queue = useQueueStore();