rename files and set max client width on viewport

This commit is contained in:
geoffrey45
2022-06-16 15:24:56 +03:00
parent 92e2420174
commit 1cc7c933b7
13 changed files with 24 additions and 27 deletions
@@ -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 {
+7 -7
View File
@@ -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: "",
});