From 6aa0ea277b891c2d5fd321f4383d14b0754b8e81 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 25 May 2023 14:28:56 +0200 Subject: [PATCH] #22 --- Website/interaction.js | 2 +- docker-compose.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Website/interaction.js b/Website/interaction.js index ad2fa12..f470d92 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -111,7 +111,7 @@ function CreatePublication(publication, connector){ var publicationElement = document.createElement('publication'); publicationElement.setAttribute("id", publication.internalId); var img = document.createElement('img'); - img.src = `data:image;base64,${publication.posterBase64}`; + img.src = `imageCache/${publication.coverFileNameInCache}`; publicationElement.appendChild(img); var info = document.createElement('publication-information'); var connectorName = document.createElement('connector-name'); diff --git a/docker-compose.yaml b/docker-compose.yaml index b669d45..a3ea646 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ image: glax/tranga-api:latest container_name: tranga-api volumes: - - ./tranga:/usr/share/Tranga-API + - ./tranga:/usr/share/Tranga-API #1 when replacing ./tranga replace #2 with same value - ./Manga:/Manga ports: - 6531:80 @@ -12,4 +12,6 @@ image: glax/tranga-website:latest container_name: tranga-website ports: - - 9555:80 \ No newline at end of file + - 9555:80 + volumes: + - ./tranga/imageCache:/usr/share/nginx/html/imageCache #2 when replacing Point to same value as #1/imageCache \ No newline at end of file