From 9b55fb98472dd789ba2fffa55f2dac5da2755f70 Mon Sep 17 00:00:00 2001 From: bagas Date: Thu, 15 Jan 2026 00:40:39 +0700 Subject: [PATCH] fix: view templ error --- view/admin/index/index.templ | 3 ++- view/admin/index/index_templ.go | 1 + view/admin/layout/base.templ | 2 +- view/client/auth/auth.templ | 7 +++---- view/client/auth/auth_templ.go | 2 +- view/client/auth/forgotPassword/forgotPassword.templ | 10 +++++----- view/client/auth/signup/signup.templ | 11 +++++------ view/client/auth/signup/signup_templ.go | 2 +- view/client/error/error.templ | 8 ++++---- view/client/layout/base.templ | 10 +++++----- view/client/layout/base_templ.go | 4 ++-- view/client/user/user.templ | 4 ++-- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/view/admin/index/index.templ b/view/admin/index/index.templ index 9420cd0..3196fb3 100644 --- a/view/admin/index/index.templ +++ b/view/admin/index/index.templ @@ -1,3 +1,4 @@ + package adminIndex import "github.com/fossyy/filekeeper/view/admin/layout" @@ -443,6 +444,6 @@ templ Main() { - } } diff --git a/view/admin/index/index_templ.go b/view/admin/index/index_templ.go index b6628b4..a2c2c8e 100644 --- a/view/admin/index/index_templ.go +++ b/view/admin/index/index_templ.go @@ -1,6 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.3.833 + package adminIndex //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/view/admin/layout/base.templ b/view/admin/layout/base.templ index 2506102..dfb9ffd 100644 --- a/view/admin/layout/base.templ +++ b/view/admin/layout/base.templ @@ -1,6 +1,6 @@ package layout -templ Base(){ +templ Base() { diff --git a/view/client/auth/auth.templ b/view/client/auth/auth.templ index 214f808..91ad11f 100644 --- a/view/client/auth/auth.templ +++ b/view/client/auth/auth.templ @@ -6,7 +6,7 @@ import ( ) templ form(err types.Message, title string) { - @layout.Base(title){ + @layout.Base(title) {

Sign Up

@@ -69,14 +69,13 @@ templ form(err types.Message, title string) {

Already have an account? - + Log in

-
} } diff --git a/view/client/auth/auth_templ.go b/view/client/auth/auth_templ.go index 0d2ac53..e343ae2 100644 --- a/view/client/auth/auth_templ.go +++ b/view/client/auth/auth_templ.go @@ -46,7 +46,7 @@ func form(err types.Message, title string) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "

Sign Up

  • Passwords do not match
  • Password must contain at least one uppercase letter
  • Password length must be at least 8 characters

Already have an account? Log in

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

Sign Up

  • Passwords do not match
  • Password must contain at least one uppercase letter
  • Password length must be at least 8 characters

Already have an account? Log in

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/view/client/auth/forgotPassword/forgotPassword.templ b/view/client/auth/forgotPassword/forgotPassword.templ index fd2cc15..3b5a42a 100644 --- a/view/client/auth/forgotPassword/forgotPassword.templ +++ b/view/client/auth/forgotPassword/forgotPassword.templ @@ -6,7 +6,7 @@ import ( ) templ content(title string, err types.Message) { - @layout.Base(title){ + @layout.Base(title) {

Forgot Password

@@ -53,7 +53,7 @@ templ Main(title string, err types.Message) { } templ NewPasswordForm(title string, err types.Message) { - @layout.Base(title){ + @layout.Base(title) {

Reset Password

@@ -116,13 +116,13 @@ templ NewPasswordForm(title string, err types.Message) {
-
} } templ EmailSend(title string) { - @layout.Base(title){ + @layout.Base(title) {
@@ -154,7 +154,7 @@ templ EmailSend(title string) { } templ ChangeSuccess(title string) { - @layout.Base(title){ + @layout.Base(title) {
diff --git a/view/client/auth/signup/signup.templ b/view/client/auth/signup/signup.templ index b4f03bb..a591e32 100644 --- a/view/client/auth/signup/signup.templ +++ b/view/client/auth/signup/signup.templ @@ -6,7 +6,7 @@ import ( ) templ form(err types.Message, title string) { - @layout.Base(title){ + @layout.Base(title) {

Sign Up

@@ -109,14 +109,13 @@ templ form(err types.Message, title string) {

Already have an account? - + Log in

-
} } @@ -126,7 +125,7 @@ templ Main(title string, err types.Message) { } templ EmailSend(title string) { - @layout.Base(title){ + @layout.Base(title) {