mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
rename files and set max client width on viewport
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getElem } from "./perks";
|
||||
|
||||
export default (mouseX, mouseY) => {
|
||||
export default (mouseX: number, mouseY: number) => {
|
||||
const scope = getElem("app", "id");
|
||||
const contextMenu = getElem("context-menu", "class");
|
||||
// ? compute what is the mouse position relative to the container element
|
||||
@@ -1,7 +1,6 @@
|
||||
import axios from "axios";
|
||||
import { Folder, Track } from "../interfaces";
|
||||
import state from "./state";
|
||||
import useAxios from "./useAxios";
|
||||
import { Folder, Track } from "@/interfaces";
|
||||
import state from "../state";
|
||||
import useAxios from "../useAxios";
|
||||
|
||||
export default async function (path: string) {
|
||||
interface FolderData {
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Track, AlbumInfo, Artist } from "./../interfaces";
|
||||
import { ref } from "@vue/reactivity";
|
||||
import { reactive } from "vue";
|
||||
import * as i from "../interfaces";
|
||||
|
||||
const search_query = ref("");
|
||||
|
||||
const queue = ref(
|
||||
Array<i.Track>({
|
||||
Array<Track>({
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
@@ -16,14 +16,14 @@ const queue = ref(
|
||||
const folder_song_list = ref([]);
|
||||
const folder_list = ref([]);
|
||||
|
||||
const current = ref(<i.Track>{
|
||||
const current = ref(<Track>{
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
trackid: "",
|
||||
});
|
||||
|
||||
const prev = ref(<i.Track>{
|
||||
const prev = ref(<Track>{
|
||||
title: "Nothing played yet",
|
||||
artists: ["... blah blah blah"],
|
||||
image: "http://127.0.0.1:8900/images/thumbnails/4.webp",
|
||||
@@ -31,9 +31,9 @@ const prev = ref(<i.Track>{
|
||||
});
|
||||
|
||||
const album = reactive({
|
||||
tracklist: Array<i.Track>(),
|
||||
info: <i.AlbumInfo>{},
|
||||
artists: Array<i.Artist>(),
|
||||
tracklist: Array<Track>(),
|
||||
info: <AlbumInfo>{},
|
||||
artists: Array<Artist>(),
|
||||
bio: "",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user