Manage display of book covers

This commit is contained in:
2025-10-28 18:35:36 +01:00
parent 8b8eee8210
commit b4df375e4c
20 changed files with 257 additions and 353 deletions

View File

@@ -3,6 +3,11 @@ import { useAuthStore } from './auth.store.js'
const baseUrl = "http://localhost:8080"
export function getImagePathOrDefault(path) {
return (path == "" || typeof path === 'undefined') ?
"../defaultbook.png" : "http://localhost:8080" + path;
}
function useFetch(url) {
const data = ref(null);
const error = ref(null);