From 5da573c0079444a2018c595604130b06adabe2d4 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 6 Apr 2026 16:02:45 -0400 Subject: [PATCH] fix: change script tags from 'defer' to 'type=module' for ES modules Change script loading from deprecated 'defer' attribute to 'type=module' for main.js across all templates. This ensures proper ES module loading and is required for the reader module system to work correctly. --- templates/header_templ.go | 2 +- templates/index_templ.go | 2 +- templates/login_templ.go | 2 +- templates/register_templ.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/header_templ.go b/templates/header_templ.go index f9d50cc..9bffcda 100644 --- a/templates/header_templ.go +++ b/templates/header_templ.go @@ -67,7 +67,7 @@ func Header(user User, currentPath string) templ.Component { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/index_templ.go b/templates/index_templ.go index efb24ff..cb9a424 100644 --- a/templates/index_templ.go +++ b/templates/index_templ.go @@ -29,7 +29,7 @@ func Index(loggedIn bool) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Bookhoard - Home

📚 Bookhoard

Your personal ebook management system. Track reading progress, organize your library, and enjoy beautiful themes.

Why Bookhoard?

Discover the features that make ebook management effortless

📖

Reading Progress

Track your reading progress across all your ebooks with detailed statistics.

🎨

Beautiful Themes

Choose from 11 stunning themes including Tokyo Night, Dracula, and Catppuccin variants.

Fast & Modern

Built with Go and HTMX for lightning-fast performance and smooth interactions.

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

📚 Bookhoard

Your personal ebook management system. Track reading progress, organize your library, and enjoy beautiful themes.

Why Bookhoard?

Discover the features that make ebook management effortless

📖

Reading Progress

Track your reading progress across all your ebooks with detailed statistics.

🎨

Beautiful Themes

Choose from 11 stunning themes including Tokyo Night, Dracula, and Catppuccin variants.

Fast & Modern

Built with Go and HTMX for lightning-fast performance and smooth interactions.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/login_templ.go b/templates/login_templ.go index e80ffdd..62a0e8e 100644 --- a/templates/login_templ.go +++ b/templates/login_templ.go @@ -29,7 +29,7 @@ func Login(sessionExpired bool, deleted bool) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Login

Login to Bookhoard

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

Login to Bookhoard

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/register_templ.go b/templates/register_templ.go index f7a1965..fab96bd 100644 --- a/templates/register_templ.go +++ b/templates/register_templ.go @@ -29,7 +29,7 @@ func Register() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Register

Register for Bookhoard

Password Requirements:

  • At least 8 characters
  • One uppercase letter
  • One lowercase letter
  • One number
  • One special character
  • Passwords match

Already have an account? Login

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

Register for Bookhoard

Password Requirements:

  • At least 8 characters
  • One uppercase letter
  • One lowercase letter
  • One number
  • One special character
  • Passwords match

Already have an account? Login

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }