From 3b66b981be1018b9d7af321dfbc449a85e189a90 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 25 Oct 2026 18:14:44 -0400 Subject: [PATCH] fix(devices): copy buttons via component method (copyFromId) under CSP build --- templates/admin_templ.go | 2 +- templates/annotations_banner.templ | 2 +- templates/annotations_banner_templ.go | 2 +- templates/audio_reader.templ | 2 +- templates/audio_reader_templ.go | 8 ++++---- templates/book_detail.templ | 6 +++--- templates/book_detail_modals_templ.go | 2 +- templates/book_detail_templ.go | 12 ++++++------ templates/devices.templ | 4 ++-- templates/devices_templ.go | 8 ++++---- templates/reader_templ.go | 6 +++--- web/src/book-detail.ts | 3 +++ web/src/device-management.ts | 4 ++++ 13 files changed, 34 insertions(+), 27 deletions(-) diff --git a/templates/admin_templ.go b/templates/admin_templ.go index b9a6bf9a..03af9757 100644 --- a/templates/admin_templ.go +++ b/templates/admin_templ.go @@ -207,7 +207,7 @@ func Admin(user User, stats AdminStats) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "Scan Complete!
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 20, "Scan Complete!
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/annotations_banner.templ b/templates/annotations_banner.templ index 31a918ad..3eb37804 100644 --- a/templates/annotations_banner.templ +++ b/templates/annotations_banner.templ @@ -99,7 +99,7 @@ templ AnnotationsBanner(book handlers.MediaDetail) {
diff --git a/templates/annotations_banner_templ.go b/templates/annotations_banner_templ.go index 8bbd0103..1f443e43 100644 --- a/templates/annotations_banner_templ.go +++ b/templates/annotations_banner_templ.go @@ -50,7 +50,7 @@ func AnnotationsBanner(book handlers.MediaDetail) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "

Loading…

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "

Loading…

Markdown supported

Export annotations

Notes and highlights, as markdown files.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/audio_reader.templ b/templates/audio_reader.templ index e5f68439..7f1c3c43 100644 --- a/templates/audio_reader.templ +++ b/templates/audio_reader.templ @@ -644,7 +644,7 @@ templ AudioReader(user User, metadata ReaderMetadata) { -