mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
use new image server on SongItem.vue
This commit is contained in:
@@ -9,7 +9,11 @@
|
||||
<div class="flex">
|
||||
<div
|
||||
class="album-art image rounded"
|
||||
:style="{ backgroundImage: `url("${props.song.image}"` }"
|
||||
:style="{
|
||||
backgroundImage: `url("${
|
||||
imguri + props.song.image
|
||||
}"`,
|
||||
}"
|
||||
@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;
|
||||
}
|
||||
|
||||
@@ -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 };
|
||||
Reference in New Issue
Block a user