From 083f152b350b910db75da80dcb71078943cd8a2a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 11 Mar 2026 11:01:43 -0400 Subject: [PATCH] Safety backup before Path A fixes - fixing function mismatches and missing functions --- templates/admin.templ | 3 +- templates/admin_library_templ.go | 2 +- templates/admin_sidebar_templ.go | 2 +- templates/admin_templ.go | 4 +- templates/admin_users_templ.go | 2 +- templates/analytics_templ.go | 2 +- templates/api_explorer.templ | 10 +- templates/api_explorer_templ.go | 2 +- templates/bookshelf.templ | 4 +- templates/bookshelf_templ.go | 2 +- templates/collection_modal_templ.go | 2 +- templates/collection_rules_templ.go | 2 +- templates/collections.templ | 16 +-- templates/collections_templ.go | 2 +- templates/conflicts_templ.go | 2 +- templates/custom_section_templ.go | 2 +- templates/dashboard_templ.go | 16 +-- templates/devices_templ.go | 2 +- templates/docs_templ.go | 2 +- templates/error_templ.go | 2 +- templates/header.templ | 24 ++-- templates/header_templ.go | 6 +- templates/index.templ | 3 +- templates/index_templ.go | 2 +- templates/login.templ | 3 +- templates/login_templ.go | 2 +- templates/profile_form_templ.go | 2 +- templates/profile_modal_templ.go | 2 +- templates/profile_templ.go | 2 +- templates/progress_templ.go | 2 +- templates/queue_templ.go | 2 +- templates/register_templ.go | 2 +- .../restore_system_collection_modal_templ.go | 2 +- templates/toast_templ.go | 2 +- templates/unlinked_books_templ.go | 2 +- web/src/admin.ts | 2 +- web/src/analytics.ts | 5 + web/src/api-explorer-docs.ts | 2 +- web/src/api.ts | 2 +- web/src/bookshelf.ts | 2 +- web/src/collection-rules.ts | 2 +- web/src/collections.ts | 2 +- web/src/conflicts.ts | 2 +- web/src/device-management.ts | 2 +- web/src/docs.ts | 4 +- web/src/header.ts | 31 +---- web/src/index.ts | 2 +- web/src/library.ts | 2 +- web/src/linking.ts | 2 +- web/src/login.ts | 2 +- web/src/password_validation.ts | 2 +- web/src/profile-modal.ts | 2 +- web/src/profile.ts | 2 +- web/src/queue.ts | 2 +- web/src/register.ts | 2 +- web/src/search.ts | 2 +- web/src/theme.ts | 114 ++++++++++++++++-- web/src/themeDropdown.ts | 28 ----- web/src/toast-error.ts | 2 +- web/src/toast.ts | 2 +- web/src/unlinked_books.ts | 2 +- web/src/woodPaneling.ts | 100 --------------- 62 files changed, 202 insertions(+), 261 deletions(-) delete mode 100644 web/src/themeDropdown.ts delete mode 100644 web/src/woodPaneling.ts diff --git a/templates/admin.templ b/templates/admin.templ index 6e1a46f..a171290 100644 --- a/templates/admin.templ +++ b/templates/admin.templ @@ -97,7 +97,7 @@ templ Admin(user User) {
Manage Folders
Add or remove scan directories

📚 Scanning Libraries

Overall Progress 0%
Starting scan...

✅ Scan Complete!

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

Dashboard

Overview of your Bookhoard library and settings

📖

Library

Manage your ebook collection

View Library
👁️

Scan Watch Status

Auto-detecting new files

Watching 0 libraries

Quick Actions

Manage Folders
Add or remove scan directories

📚 Scanning Libraries

Overall Progress 0%
Starting scan...

✅ Scan Complete!

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/admin_users_templ.go b/templates/admin_users_templ.go index 89d6b04..21040ff 100644 --- a/templates/admin_users_templ.go +++ b/templates/admin_users_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/analytics_templ.go b/templates/analytics_templ.go index 85350ac..c31690a 100644 --- a/templates/analytics_templ.go +++ b/templates/analytics_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/api_explorer.templ b/templates/api_explorer.templ index bc65f2a..e3eec95 100644 --- a/templates/api_explorer.templ +++ b/templates/api_explorer.templ @@ -25,16 +25,16 @@ templ APIExplorer(explorer APIExplorerData) {
{ explorer.Endpoint.Response }
- - + +
} else { // Show interactive explorer with real execution
- - + +
@@ -67,7 +67,7 @@ templ APIExplorer(explorer APIExplorerData) { // APIExplorerData holds data for the API explorer component type APIExplorerData struct { - Endpoint EndpointInfo + Endpoint EndpointInfo IsLoggedIn bool } diff --git a/templates/api_explorer_templ.go b/templates/api_explorer_templ.go index 0ed4ad2..fd45a96 100644 --- a/templates/api_explorer_templ.go +++ b/templates/api_explorer_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/bookshelf.templ b/templates/bookshelf.templ index daddec7..dc08700 100644 --- a/templates/bookshelf.templ +++ b/templates/bookshelf.templ @@ -19,7 +19,7 @@ templ BookShelf(user User, libraries []LibraryData) {
- if len(libraries) == 0 { } else { @@ -30,7 +30,7 @@ templ BookShelf(user User, libraries []LibraryData) {
-
diff --git a/templates/bookshelf_templ.go b/templates/bookshelf_templ.go index a52df2c..05ce75a 100644 --- a/templates/bookshelf_templ.go +++ b/templates/bookshelf_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/collection_modal_templ.go b/templates/collection_modal_templ.go index 421ac77..7473533 100644 --- a/templates/collection_modal_templ.go +++ b/templates/collection_modal_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/collection_rules_templ.go b/templates/collection_rules_templ.go index 34a2936..d88f786 100644 --- a/templates/collection_rules_templ.go +++ b/templates/collection_rules_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/collections.templ b/templates/collections.templ index 559a5c1..b7534f8 100644 --- a/templates/collections.templ +++ b/templates/collections.templ @@ -60,7 +60,7 @@ templ Collection(user User, collections []CollectionData, errorMessage string) {
} for _, col := range collections { -
+
-
@@ -147,13 +147,13 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo
-
@@ -213,7 +213,7 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo
+

Search and select books to add to this collection.

@@ -249,10 +249,10 @@ templ CollectionDetail(user User, collection CollectionData, books []handlers.Bo
- -
diff --git a/templates/collections_templ.go b/templates/collections_templ.go index d3f4955..2cb3ebd 100644 --- a/templates/collections_templ.go +++ b/templates/collections_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/conflicts_templ.go b/templates/conflicts_templ.go index 61ce79d..393bd10 100644 --- a/templates/conflicts_templ.go +++ b/templates/conflicts_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/custom_section_templ.go b/templates/custom_section_templ.go index f4bb9f6..7e9e705 100644 --- a/templates/custom_section_templ.go +++ b/templates/custom_section_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/dashboard_templ.go b/templates/dashboard_templ.go index 033daec..740ac55 100644 --- a/templates/dashboard_templ.go +++ b/templates/dashboard_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -260,7 +260,7 @@ func CollectionCarousel(section handlers.SectionData) templ.Component { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/devices_templ.go b/templates/devices_templ.go index b882e2d..ac0ebaf 100644 --- a/templates/devices_templ.go +++ b/templates/devices_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/docs_templ.go b/templates/docs_templ.go index 572dbd0..8593811 100644 --- a/templates/docs_templ.go +++ b/templates/docs_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/error_templ.go b/templates/error_templ.go index 0291085..6bfa573 100644 --- a/templates/error_templ.go +++ b/templates/error_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.977 +// templ: version: v0.3.1001 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/templates/header.templ b/templates/header.templ index 1ce04e3..dc255bd 100644 --- a/templates/header.templ +++ b/templates/header.templ @@ -70,7 +70,7 @@ templ Header(user User, currentPath string) {

Select Theme

Select Theme

Bookshelf Background

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