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