use new image server on SongItem.vue

This commit is contained in:
geoffrey45
2022-05-04 01:45:29 +03:00
parent 1e7af1a800
commit 88e143ae2f
2 changed files with 17 additions and 1 deletions
+8 -1
View File
@@ -9,7 +9,11 @@
<div class="flex">
<div
class="album-art image rounded"
:style="{ backgroundImage: `url(&quot;${props.song.image}&quot;` }"
:style="{
backgroundImage: `url(&quot;${
imguri + props.song.image
}&quot;`,
}"
@click="emitUpdate(props.song)"
>
<div
@@ -64,10 +68,12 @@ import { ContextSrc } from "../../composables/enums";
import { ref } from "vue";
import trackContext from "../../contexts/track_context";
import { Track } from "../../interfaces.js";
import { paths } from "../../config";
const contextStore = useContextStore();
const modalStore = useModalStore();
const context_on = ref(false);
const imguri = paths.images.thumb
const showContextMenu = (e: Event) => {
e.preventDefault();
@@ -118,6 +124,7 @@ function emitUpdate(track: Track) {
width: 45px;
background-color: red;
}
@include tablet-landscape {
grid-template-columns: 1.5rem 1.5fr 1fr 1.5fr;
}
+9
View File
@@ -0,0 +1,9 @@
const paths = {
api: "",
images: {
thumb: "http://0.0.0.0:9877/thumb/",
artist: "http://0.0.0.0:9877/artist/",
},
};
export { paths };