diff --git a/templates/dashboard.templ b/templates/dashboard.templ index 45ba0fa..0617cc8 100644 --- a/templates/dashboard.templ +++ b/templates/dashboard.templ @@ -9,6 +9,7 @@ templ Dashboard(user User) { Dashboard - Bookmann + - - + Header(user, "/dashboard")
@@ -404,12 +386,6 @@ templ Dashboard(user User) { alert('Media viewer coming soon!'); } - function logout() { - localStorage.removeItem('token'); - localStorage.removeItem('user'); - window.location.href = '/'; - } - // Load libraries on page load document.addEventListener('DOMContentLoaded', function() { loadTheme(); diff --git a/templates/dashboard_templ.go b/templates/dashboard_templ.go index 14f52f1..1210836 100644 --- a/templates/dashboard_templ.go +++ b/templates/dashboard_templ.go @@ -29,20 +29,7 @@ func Dashboard(user User) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Dashboard - Bookmann

Your Ebook Library

Manage your ebook collection and reading progress

Loading your ebooks...
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Dashboard - BookmannHeader(user, \"/dashboard\")

Your Media Library

Browse and manage your media collections

Loading your media libraries...
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }