Skip to content

Commit d55a154

Browse files
authored
Merge pull request #749 from damongolding/task/release
Task/release
2 parents 91f1ba1 + 7f5d402 commit d55a154

18 files changed

Lines changed: 130 additions & 46 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN bun run css && bun run js && bun run url-builder
1010

1111

1212
# Go Builder
13-
FROM --platform=$BUILDPLATFORM golang:1.26.2-bookworm AS build
13+
FROM --platform=$BUILDPLATFORM golang:1.26.3-bookworm AS build
1414

1515
ARG VERSION=demo
1616
ARG TARGETOS

config.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,12 @@
448448
},
449449
"wind": {
450450
"type": "boolean",
451-
"description": "Show the current wind speed",
451+
"description": "Show the current wind speed and wind direction (N, NE, E, etc.)",
452452
"default": false
453453
},
454454
"wind_direction": {
455455
"type": "boolean",
456-
"description": "Show wind direction as a compass heading (N, NE, E, etc.) instead of degrees",
456+
"description": "Also show wind direction as degrees",
457457
"default": false
458458
},
459459
"visibility": {

frontend/bun.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
}
2727
},
2828
"devDependencies": {
29-
"@biomejs/biome": "^2.4.13",
29+
"@biomejs/biome": "^2.4.14",
3030
"autoprefixer": "^10.5.0",
3131
"choices.js": "^11.2.3",
3232
"date-fns": "^4.1.0",
33-
"dompurify": "^3.4.1",
33+
"dompurify": "^3.4.2",
3434
"esbuild": "^0.28.0",
3535
"htmx.org": "^2.0.10",
36-
"postcss": "^8.5.12",
36+
"postcss": "^8.5.14",
3737
"postcss-cli": "^11.0.1",
3838
"postcss-nested": "^7.0.2",
3939
"typescript": "^5.9.3"

frontend/src/css/vars.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
:root {
2+
color-scheme: only light !important;
3+
24
/* colours */
35
--light-grey: #f7f9f8;
46
--mid-grey: #6d727a;

frontend/src/css/weather.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,30 @@
100100
gap: 0.2rem;
101101
align-items: center;
102102
}
103+
104+
.weather--temperature-range--value--high,
105+
.weather--temperature-range--value--low {
106+
position: relative;
107+
}
108+
109+
.weather--temperature-range--value--high::before {
110+
position: absolute;
111+
top: -0.0625rem;
112+
left: 50%;
113+
width: 0.5rem;
114+
height: 0.0625rem;
115+
content: "";
116+
background-color: rgba(255, 255, 255, 0.5);
117+
transform: translateX(-50%);
118+
}
119+
120+
.weather--temperature-range--value--low::before {
121+
position: absolute;
122+
bottom: -0.125rem;
123+
left: 50%;
124+
width: 0.5rem;
125+
height: 0.0625rem;
126+
content: "";
127+
background-color: rgba(255, 255, 255, 0.5);
128+
transform: translateX(-50%);
129+
}

frontend/src/ts/kiosk.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,15 @@ function addEventListeners(): void {
391391
}
392392
});
393393

394+
htmx.on("htmx:afterRequest", (e: HTMXEvent) => {
395+
const path = e.detail?.pathInfo?.requestPath || "";
396+
397+
// Only restart polling for asset endpoints
398+
if (path.startsWith("/asset/")) {
399+
startPolling();
400+
}
401+
});
402+
394403
htmx.on("htmx:timeout", (e: HTMXEvent) => {
395404
let currentTimeout = timeouts[e.detail.pathInfo.requestPath];
396405

@@ -517,6 +526,13 @@ async function cleanupFrames(): Promise<void> {
517526
* @throws {Error} If request lock is already set
518527
*/
519528
function setRequestLock(e: HTMXEvent): void {
529+
const path = e.detail?.pathInfo?.requestPath || "";
530+
531+
// Do not lock for non-asset requests (e.g. GIFS, live photos)
532+
if (!path.startsWith("/asset/")) {
533+
return;
534+
}
535+
520536
if (requestInFlight) {
521537
e.preventDefault();
522538
return;

frontend/src/ts/menu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ function initMenu(
185185
}
186186

187187
export {
188-
initMenu,
189188
disableAssetNavigationButtons,
190189
enableAssetNavigationButtons,
191-
showAssetOverlay,
192190
hideAssetOverlay,
191+
initMenu,
192+
showAssetOverlay,
193193
toggleAssetOverlay,
194194
toggleRedirectsOverlay,
195195
};

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/damongolding/immich-kiosk
22

3-
go 1.26.2
3+
go 1.26.3
44

55
require (
66
charm.land/lipgloss/v2 v2.0.3
@@ -13,13 +13,13 @@ require (
1313
github.com/goodsign/monday v1.0.2
1414
github.com/google/go-querystring v1.2.0
1515
github.com/google/uuid v1.6.0
16-
github.com/klauspost/compress v1.18.5
17-
github.com/labstack/echo/v5 v5.1.0
16+
github.com/klauspost/compress v1.18.6
17+
github.com/labstack/echo/v5 v5.1.1
1818
github.com/mcuadros/go-defaults v1.2.0
1919
github.com/nicksnyder/go-i18n/v2 v2.6.1
2020
github.com/oapi-codegen/runtime v1.4.0
2121
github.com/patrickmn/go-cache v2.1.0+incompatible
22-
github.com/pelletier/go-toml/v2 v2.3.0
22+
github.com/pelletier/go-toml/v2 v2.3.1
2323
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
2424
github.com/spf13/viper v1.21.0
2525
github.com/stretchr/testify v1.11.1

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ github.com/jdkato/prose v1.2.1/go.mod h1:AiRHgVagnEx2JbQRQowVBKjG0bcs/vtkGCH1dYA
171171
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
172172
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
173173
github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE=
174-
github.com/klauspost/compress v1.18.5 h1:/h1gH5Ce+VWNLSWqPzOVn6XBO+vJbCNGvjoaGBFW2IE=
175-
github.com/klauspost/compress v1.18.5/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
174+
github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=
175+
github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
176176
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
177177
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
178178
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
@@ -182,8 +182,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
182182
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
183183
github.com/kyokomi/emoji/v2 v2.2.13 h1:GhTfQa67venUUvmleTNFnb+bi7S3aocF7ZCXU9fSO7U=
184184
github.com/kyokomi/emoji/v2 v2.2.13/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
185-
github.com/labstack/echo/v5 v5.1.0 h1:MvIRydoN+p9cx/zq8Lff6YXqUW2ZaEsOMISzEGSMrBI=
186-
github.com/labstack/echo/v5 v5.1.0/go.mod h1:SyvlSdObGjRXeQfCCXW/sybkZdOOQZBmpKF0bvALaeo=
185+
github.com/labstack/echo/v5 v5.1.1 h1:4QkvKoS8ps5ch49t8b72QS9Z581ytgxhTzxuB/CBA2I=
186+
github.com/labstack/echo/v5 v5.1.1/go.mod h1:SyvlSdObGjRXeQfCCXW/sybkZdOOQZBmpKF0bvALaeo=
187187
github.com/lucasb-eyer/go-colorful v1.4.0 h1:UtrWVfLdarDgc44HcS7pYloGHJUjHV/4FwW4TvVgFr4=
188188
github.com/lucasb-eyer/go-colorful v1.4.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
189189
github.com/mailru/easyjson v0.9.1 h1:LbtsOm5WAswyWbvTEOqhypdPeZzHavpZx96/n553mR8=
@@ -250,8 +250,8 @@ github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2D
250250
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y=
251251
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
252252
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
253-
github.com/pelletier/go-toml/v2 v2.3.0 h1:k59bC/lIZREW0/iVaQR8nDHxVq8OVlIzYCOJf421CaM=
254-
github.com/pelletier/go-toml/v2 v2.3.0/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
253+
github.com/pelletier/go-toml/v2 v2.3.1 h1:MYEvvGnQjeNkRF1qUuGolNtNExTDwct51yp7olPtrEc=
254+
github.com/pelletier/go-toml/v2 v2.3.1/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
255255
github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s=
256256
github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw=
257257
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

0 commit comments

Comments
 (0)