From 4768e066e93cf1b524988a202ed64291387bfa4d Mon Sep 17 00:00:00 2001 From: Ruidy Date: Sun, 8 Sep 2024 21:16:13 +0200 Subject: [PATCH] up templates --- internal/view/booking_by_id_templ.go | 7 ++++++- internal/view/booking_form_templ.go | 7 ++++++- internal/view/booking_lines_templ.go | 7 ++++++- internal/view/bookings_list_templ.go | 7 ++++++- internal/view/bookings_new_templ.go | 7 ++++++- internal/view/component/request_booking_form_templ.go | 7 ++++++- internal/view/index_templ.go | 7 ++++++- internal/view/layout/base_templ.go | 7 ++++++- internal/view/layout/public_templ.go | 7 ++++++- internal/view/line_item_templ.go | 10 +++++++++- internal/view/login_form_templ.go | 7 ++++++- internal/view/login_templ.go | 7 ++++++- internal/view/report_section_templ.go | 7 ++++++- internal/view/reports_templ.go | 7 ++++++- internal/view/success_templ.go | 7 ++++++- 15 files changed, 93 insertions(+), 15 deletions(-) diff --git a/internal/view/booking_by_id_templ.go b/internal/view/booking_by_id_templ.go index 93b4623..c33e7d4 100644 --- a/internal/view/booking_by_id_templ.go +++ b/internal/view/booking_by_id_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -16,6 +16,9 @@ import ( func BookingById(booking *BookingViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -406,3 +409,5 @@ func BookingById(booking *BookingViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/booking_form_templ.go b/internal/view/booking_form_templ.go index 7fe7c8d..6d171bb 100644 --- a/internal/view/booking_form_templ.go +++ b/internal/view/booking_form_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func BookingForm(booking BookingViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -212,3 +215,5 @@ func BookingForm(booking BookingViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/booking_lines_templ.go b/internal/view/booking_lines_templ.go index d295b4c..0d3ad8c 100644 --- a/internal/view/booking_lines_templ.go +++ b/internal/view/booking_lines_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -13,6 +13,9 @@ import () func BookingLines(bookings []*ListBookingsViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -142,3 +145,5 @@ func BookingLines(bookings []*ListBookingsViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/bookings_list_templ.go b/internal/view/bookings_list_templ.go index c1d4ec0..407c039 100644 --- a/internal/view/bookings_list_templ.go +++ b/internal/view/bookings_list_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -15,6 +15,9 @@ import ( func ListBookings(bookings []*ListBookingsViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -63,3 +66,5 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/bookings_new_templ.go b/internal/view/bookings_new_templ.go index def4d89..d36d7e5 100644 --- a/internal/view/bookings_new_templ.go +++ b/internal/view/bookings_new_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -13,6 +13,9 @@ import "github.com/rjNemo/rentease/internal/view/layout" func NewBooking(platforms []string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -89,3 +92,5 @@ func NewBooking(platforms []string) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/component/request_booking_form_templ.go b/internal/view/component/request_booking_form_templ.go index 8126d80..ee45108 100644 --- a/internal/view/component/request_booking_form_templ.go +++ b/internal/view/component/request_booking_form_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package component //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -54,6 +54,9 @@ func (rbvm RequestBookingViewModel) missingCommunicationMethod() bool { func RequestBookingForm(rbvm *RequestBookingViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -227,3 +230,5 @@ func RequestBookingForm(rbvm *RequestBookingViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/index_templ.go b/internal/view/index_templ.go index 5f5b82c..38a64a9 100644 --- a/internal/view/index_templ.go +++ b/internal/view/index_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -16,6 +16,9 @@ import ( func Index() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -72,3 +75,5 @@ func Index() templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/layout/base_templ.go b/internal/view/layout/base_templ.go index 509d459..6cb47b8 100644 --- a/internal/view/layout/base_templ.go +++ b/internal/view/layout/base_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package layout //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func BaseLayout() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -41,3 +44,5 @@ func BaseLayout() templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/layout/public_templ.go b/internal/view/layout/public_templ.go index 7339778..380fb2f 100644 --- a/internal/view/layout/public_templ.go +++ b/internal/view/layout/public_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package layout //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -46,6 +46,9 @@ var hvm = &HostViewModel{ func PublicLayout() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -178,3 +181,5 @@ func PublicLayout() templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/line_item_templ.go b/internal/view/line_item_templ.go index 02225e9..fe86115 100644 --- a/internal/view/line_item_templ.go +++ b/internal/view/line_item_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func LineItem(item *ItemViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -151,6 +154,9 @@ func LineItem(item *ItemViewModel) templ.Component { func LineItemForm(item *ItemViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -264,3 +270,5 @@ func LineItemForm(item *ItemViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/login_form_templ.go b/internal/view/login_form_templ.go index 687f4ad..abc8268 100644 --- a/internal/view/login_form_templ.go +++ b/internal/view/login_form_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -16,6 +16,9 @@ func isFormError(data map[string]string, key string) bool { func LoginForm(lfvm LoginFormViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -107,3 +110,5 @@ func LoginForm(lfvm LoginFormViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/login_templ.go b/internal/view/login_templ.go index e84921b..983ba40 100644 --- a/internal/view/login_templ.go +++ b/internal/view/login_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -13,6 +13,9 @@ import "github.com/rjNemo/rentease/internal/view/layout" func Login(lfvm LoginFormViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -61,3 +64,5 @@ func Login(lfvm LoginFormViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/report_section_templ.go b/internal/view/report_section_templ.go index 4f9e92d..471f5d4 100644 --- a/internal/view/report_section_templ.go +++ b/internal/view/report_section_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func ReportSection(report *ReportViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -256,3 +259,5 @@ func ReportSection(report *ReportViewModel) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/reports_templ.go b/internal/view/reports_templ.go index 9cce53e..39ee1c9 100644 --- a/internal/view/reports_templ.go +++ b/internal/view/reports_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -16,6 +16,9 @@ import ( func Reports(months []string, m int, year string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -115,3 +118,5 @@ func Reports(months []string, m int, year string) templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate diff --git a/internal/view/success_templ.go b/internal/view/success_templ.go index e960911..4a52789 100644 --- a/internal/view/success_templ.go +++ b/internal/view/success_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.2.778 package view //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func Success() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -33,3 +36,5 @@ func Success() templ.Component { return templ_7745c5c3_Err }) } + +var _ = templruntime.GeneratedTemplate