From 27605facf28eb5a63f2c0b5493dfd9d211ba6163 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Wed, 6 Jul 2022 17:53:53 +0300 Subject: [PATCH] remove unused var --- src/composables/pages/album.ts | 2 +- src/composables/pages/playlists.ts | 1 - src/composables/state.ts | 1 - src/composables/useKeyboard.ts | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/composables/pages/album.ts b/src/composables/pages/album.ts index 8318f44d..9b1b8ed8 100644 --- a/src/composables/pages/album.ts +++ b/src/composables/pages/album.ts @@ -49,7 +49,7 @@ const getAlbumArtists = async (hash: string) => { }; const getAlbumBio = async (hash: string) => { - const { data, status, error } = await useAxios({ + const { data, status } = await useAxios({ url: state.settings.uri + "/album/bio", props: { hash: hash, diff --git a/src/composables/pages/playlists.ts b/src/composables/pages/playlists.ts index e3e478b4..2fb663ba 100644 --- a/src/composables/pages/playlists.ts +++ b/src/composables/pages/playlists.ts @@ -1,4 +1,3 @@ -import axios from "axios"; import { Playlist, Track } from "../../interfaces"; import { Notification, NotifType } from "../../stores/notification"; import state from "../state"; diff --git a/src/composables/state.ts b/src/composables/state.ts index 3d8950fc..c98f5db3 100644 --- a/src/composables/state.ts +++ b/src/composables/state.ts @@ -1,4 +1,3 @@ -import { Track, AlbumInfo, Artist } from "./../interfaces"; import { ref } from "@vue/reactivity"; import { reactive } from "vue"; diff --git a/src/composables/useKeyboard.ts b/src/composables/useKeyboard.ts index 396d681a..d7825eb5 100644 --- a/src/composables/useKeyboard.ts +++ b/src/composables/useKeyboard.ts @@ -11,7 +11,7 @@ function focusSearchBox() { export default function (queue: typeof useQStore) { const q = queue(); window.addEventListener("keydown", (e: KeyboardEvent) => { - let target = e.target as HTMLElement; + const target = e.target as HTMLElement; let ctrlKey = e.ctrlKey; function FocusedOnInput(target: HTMLElement) {