mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
use new image server on SongItem.vue
This commit is contained in:
@@ -9,7 +9,11 @@
|
|||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div
|
<div
|
||||||
class="album-art image rounded"
|
class="album-art image rounded"
|
||||||
:style="{ backgroundImage: `url("${props.song.image}"` }"
|
:style="{
|
||||||
|
backgroundImage: `url("${
|
||||||
|
imguri + props.song.image
|
||||||
|
}"`,
|
||||||
|
}"
|
||||||
@click="emitUpdate(props.song)"
|
@click="emitUpdate(props.song)"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -64,10 +68,12 @@ import { ContextSrc } from "../../composables/enums";
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import trackContext from "../../contexts/track_context";
|
import trackContext from "../../contexts/track_context";
|
||||||
import { Track } from "../../interfaces.js";
|
import { Track } from "../../interfaces.js";
|
||||||
|
import { paths } from "../../config";
|
||||||
|
|
||||||
const contextStore = useContextStore();
|
const contextStore = useContextStore();
|
||||||
const modalStore = useModalStore();
|
const modalStore = useModalStore();
|
||||||
const context_on = ref(false);
|
const context_on = ref(false);
|
||||||
|
const imguri = paths.images.thumb
|
||||||
|
|
||||||
const showContextMenu = (e: Event) => {
|
const showContextMenu = (e: Event) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -118,6 +124,7 @@ function emitUpdate(track: Track) {
|
|||||||
width: 45px;
|
width: 45px;
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet-landscape {
|
@include tablet-landscape {
|
||||||
grid-template-columns: 1.5rem 1.5fr 1fr 1.5fr;
|
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