mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
fix coderefactor bot raised issues
This commit is contained in:
parent
6e8a9be06a
commit
dd257e919d
@ -104,7 +104,6 @@ onUpdated(() => {
|
||||
|
||||
&::before {
|
||||
content: "∕";
|
||||
font-size: small;
|
||||
margin-right: $smaller;
|
||||
color: $gray2;
|
||||
font-size: 1rem;
|
||||
|
@ -42,7 +42,7 @@ const { query: folderQuery } = storeToRefs(folder);
|
||||
const { query: albumQuery } = storeToRefs(album);
|
||||
|
||||
const props = defineProps<{
|
||||
page: Routes | string;
|
||||
page: typeof Routes | string;
|
||||
}>();
|
||||
const inputRef = ref<HTMLElement>();
|
||||
|
||||
@ -100,7 +100,6 @@ if (source) {
|
||||
|
||||
.header-input {
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
font-size: 1rem;
|
||||
|
@ -11,8 +11,8 @@ export default async function favoriteHandler(
|
||||
flag: boolean | undefined,
|
||||
type: favType,
|
||||
itemhash: string,
|
||||
setter: (x?: any) => void,
|
||||
remover: (x?: any) => void
|
||||
setter: (x?: unknown) => void,
|
||||
remover: (x?: unknown) => void
|
||||
) {
|
||||
const queue = useQueueStore();
|
||||
const is_current =
|
||||
|
@ -8,7 +8,6 @@ const {
|
||||
albumartists: albumArtistsUrl,
|
||||
albumbio: albumBioUrl,
|
||||
albumsByArtistUrl,
|
||||
favAlbums,
|
||||
} = paths.api;
|
||||
|
||||
const getAlbumData = async (hash: string, ToastStore: typeof useNotifStore) => {
|
||||
|
@ -1,4 +1,4 @@
|
||||
let development = import.meta.env.DEV;
|
||||
const development = import.meta.env.DEV;
|
||||
const dev_url = "http://localhost:1970";
|
||||
|
||||
const baseApiUrl = development ? dev_url : "";
|
||||
|
@ -1,6 +0,0 @@
|
||||
const itemWidth = 160;
|
||||
const itemMarginBottom = 24;
|
||||
|
||||
export default (containerWidth = 0, containerHeight = 0) => {
|
||||
return Math.floor(containerWidth / itemWidth);
|
||||
};
|
@ -1,6 +1,4 @@
|
||||
import { Track } from "@/interfaces";
|
||||
import queue from "@/stores/queue";
|
||||
import { toRef } from "vue";
|
||||
|
||||
export default function createTrackProps(track: Track) {
|
||||
return {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* @returns a string with commas in between each artist
|
||||
*/
|
||||
export default (artists: string[]) => {
|
||||
let result: string[] = [];
|
||||
const result: string[] = [];
|
||||
|
||||
artists.forEach((i, index, artists) => {
|
||||
if (index !== artists.length - 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user