#103 Fix OG images

This commit is contained in:
Alan Grainger
2025-06-10 15:13:08 +12:00
parent 155f029737
commit 518a905ee8
6 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -2,9 +2,9 @@
<p align="center" width="100%"> <p align="center" width="100%">
<a href="https://hub.docker.com/r/alangrainger/immich-public-proxy/tags"> <a href="https://hub.docker.com/r/alangrainger/immich-public-proxy/tags">
<img alt="Docker pulls" src="https://badgen.net/docker/pulls/alangrainger/immich-public-proxy?v1.11.2&icon=docker&label=docker%20pulls&color=green&scale=1.1"></a> <img alt="Docker pulls" src="https://badgen.net/docker/pulls/alangrainger/immich-public-proxy?v1.11.3&icon=docker&label=docker%20pulls&color=green&scale=1.1"></a>
<a href="https://github.com/alangrainger/immich-public-proxy/releases/latest"> <a href="https://github.com/alangrainger/immich-public-proxy/releases/latest">
<img alt="Latest release" src="https://badgen.net/github/release/alangrainger/immich-public-proxy?v1.11.2&scale=1.1"></a> <img alt="Latest release" src="https://badgen.net/github/release/alangrainger/immich-public-proxy?v1.11.3&scale=1.1"></a>
<a href="https://immich-demo.note.sx/share/gJfs8l4LcJJrBUpjhMnDoKXFt1Tm5vKXPbXl8BgwPtLtEBCOOObqbQdV5i0oun5hZjQ"><img alt="Open demo gallery" src="https://badgen.net/static/↗🖼️/live%20demo/green?scale=1.1"></a> <a href="https://immich-demo.note.sx/share/gJfs8l4LcJJrBUpjhMnDoKXFt1Tm5vKXPbXl8BgwPtLtEBCOOObqbQdV5i0oun5hZjQ"><img alt="Open demo gallery" src="https://badgen.net/static/↗🖼️/live%20demo/green?scale=1.1"></a>
</p> </p>
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "immich-public-proxy", "name": "immich-public-proxy",
"version": "1.11.2", "version": "1.11.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "immich-public-proxy", "name": "immich-public-proxy",
"version": "1.11.2", "version": "1.11.3",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"dependencies": { "dependencies": {
"archiver": "^7.0.1", "archiver": "^7.0.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "immich-public-proxy", "name": "immich-public-proxy",
"version": "1.11.2", "version": "1.11.3",
"scripts": { "scripts": {
"dev": "ts-node src/index.ts", "dev": "ts-node src/index.ts",
"build": "npx tsc", "build": "npx tsc",
+1 -1
View File
@@ -64,7 +64,7 @@ class LGallery {
this.items this.items
.slice(this.index, this.index + PER_PAGE) .slice(this.index, this.index + PER_PAGE)
.forEach(item => { .forEach(item => {
this.element.insertAdjacentHTML('beforeend', item + '\n') this.element.insertAdjacentHTML('beforeend', item.html + '\n')
}) })
this.index += PER_PAGE this.index += PER_PAGE
this.lightGallery.refresh() this.lightGallery.refresh()
+4 -1
View File
@@ -132,7 +132,10 @@ class Render {
'</a>' '</a>'
].join('') ].join('')
items.push(itemHtml) items.push({
html: itemHtml,
thumbnailUrl
})
} }
res.render('gallery', { res.render('gallery', {
items, items,
+1 -1
View File
@@ -32,7 +32,7 @@
<% <%
// Load the first 50 thumbnails, then load more as the user scrolls. See web.js // Load the first 50 thumbnails, then load more as the user scrolls. See web.js
items.slice(0, 50).forEach(item => { items.slice(0, 50).forEach(item => {
%><%- item %> %><%- item.html %>
<% }) %> <% }) %>
</div> </div>
<script src="/share/static/web.js"></script> <script src="/share/static/web.js"></script>