diff --git a/internal/gateway/handlers/register/forms.templ b/internal/gateway/handlers/register/forms.templ index 0d084a08c..fdea2661a 100644 --- a/internal/gateway/handlers/register/forms.templ +++ b/internal/gateway/handlers/register/forms.templ @@ -72,8 +72,9 @@ templ formRegisterPasskey(action, method string, data RegisterPasskeyData) { @ui.ProfileCard(data.Address, data.Name, data.Handle, data.CreationBlock) + @ui.SelectCoins()
- @ui.CreatePasskey(data.Address, data.Handle, data.Challenge) + @ui.InputPasskey(data.Address, data.Handle, data.Challenge) Cancel diff --git a/internal/gateway/handlers/register/forms_templ.go b/internal/gateway/handlers/register/forms_templ.go index 7c533f5e0..211dab30d 100644 --- a/internal/gateway/handlers/register/forms_templ.go +++ b/internal/gateway/handlers/register/forms_templ.go @@ -144,11 +144,19 @@ func formRegisterPasskey(action, method string, data RegisterPasskeyData) templ. if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = ui.CreatePasskey(data.Address, data.Handle, data.Challenge).Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.SelectCoins().Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = ui.InputPasskey(data.Address, data.Handle, data.Challenge).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/gateway/handlers/register/ui/form_card.templ b/internal/gateway/handlers/register/ui/form_card.templ deleted file mode 100644 index 7a8993205..000000000 --- a/internal/gateway/handlers/register/ui/form_card.templ +++ /dev/null @@ -1,46 +0,0 @@ -package ui - -templ FormCard(action string, method string) { -
- -
-
-
-
- - - Cancel - - - Next - - - -
- -
-
-} diff --git a/internal/gateway/handlers/register/ui/form_card_templ.go b/internal/gateway/handlers/register/ui/form_card_templ.go deleted file mode 100644 index 03e404e95..000000000 --- a/internal/gateway/handlers/register/ui/form_card_templ.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by templ - DO NOT EDIT. - -// templ: version: v0.2.793 -package ui - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - -func FormCard(action string, method 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() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
Cancel Next
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - return templ_7745c5c3_Err - }) -} - -var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/ui/input_handle.templ b/internal/gateway/handlers/register/ui/input_handle.templ index 96dc5a04d..7cbfb2706 100644 --- a/internal/gateway/handlers/register/ui/input_handle.templ +++ b/internal/gateway/handlers/register/ui/input_handle.templ @@ -12,10 +12,29 @@ func (s InputHandleState) string() string { return string(s) } -templ InputHandle(handle string) { +templ InputHandle() {
} + +templ InputHandleError() { + +
+ +
+
+ +
+
+} + +templ InputHandleValid() { + +
+ +
+
+} diff --git a/internal/gateway/handlers/register/ui/input_handle_templ.go b/internal/gateway/handlers/register/ui/input_handle_templ.go index 39af2cbbc..7ee1c3447 100644 --- a/internal/gateway/handlers/register/ui/input_handle_templ.go +++ b/internal/gateway/handlers/register/ui/input_handle_templ.go @@ -20,7 +20,7 @@ func (s InputHandleState) string() string { return string(s) } -func InputHandle(handle string) templ.Component { +func InputHandle() 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 { @@ -49,4 +49,62 @@ func InputHandle(handle string) templ.Component { }) } +func InputHandleError() 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() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + +func InputHandleValid() 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() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/ui/input_name.templ b/internal/gateway/handlers/register/ui/input_name.templ new file mode 100644 index 000000000..b41db7df4 --- /dev/null +++ b/internal/gateway/handlers/register/ui/input_name.templ @@ -0,0 +1,34 @@ +package ui + +type InputNameState string + +const ( + InputNameStateInitial InputNameState = "inital" + InputNameStateValid InputNameState = "valid" + InputNameStateInvalid InputNameState = "invalid" +) + +func (s InputNameState) string() string { + return string(s) +} + +templ InputName() { +
+ + +
+} + +templ InputNameError() { +
+ + +
+} + +templ InputNameValid() { +
+ + +
+} diff --git a/internal/gateway/handlers/register/ui/input_name_templ.go b/internal/gateway/handlers/register/ui/input_name_templ.go new file mode 100644 index 000000000..7c80dcddb --- /dev/null +++ b/internal/gateway/handlers/register/ui/input_name_templ.go @@ -0,0 +1,110 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.793 +package ui + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +type InputNameState string + +const ( + InputNameStateInitial InputNameState = "inital" + InputNameStateValid InputNameState = "valid" + InputNameStateInvalid InputNameState = "invalid" +) + +func (s InputNameState) string() string { + return string(s) +} + +func InputName() 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() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + +func InputNameError() 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() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var2 := templ.GetChildren(ctx) + if templ_7745c5c3_Var2 == nil { + templ_7745c5c3_Var2 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + +func InputNameValid() 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() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/ui/name_input.templ b/internal/gateway/handlers/register/ui/name_input.templ deleted file mode 100644 index d84071e28..000000000 --- a/internal/gateway/handlers/register/ui/name_input.templ +++ /dev/null @@ -1,8 +0,0 @@ -package ui - -templ NameInput(name string) { -
- - -
-} diff --git a/internal/gateway/handlers/register/ui/name_input_templ.go b/internal/gateway/handlers/register/ui/name_input_templ.go deleted file mode 100644 index cd08a2587..000000000 --- a/internal/gateway/handlers/register/ui/name_input_templ.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by templ - DO NOT EDIT. - -// templ: version: v0.2.793 -package ui - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - -func NameInput(name 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() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - return templ_7745c5c3_Err - }) -} - -var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/views/form_credential.templ b/internal/gateway/handlers/register/views/form_credential.templ deleted file mode 100644 index 42e054388..000000000 --- a/internal/gateway/handlers/register/views/form_credential.templ +++ /dev/null @@ -1,30 +0,0 @@ - -package views - - -templ formRegisterPasskey(action, method string, data RegisterPasskeyData) { -
- - -
-
- @ui.ProfileCard(data.Address, data.Name, data.Handle, data.CreationBlock) -
-
-
- @ui.CreatePasskey(data.Address, data.Handle, data.Challenge) - - - Cancel - -
- -
-
-} - diff --git a/internal/gateway/handlers/register/views/form_credential_templ.go b/internal/gateway/handlers/register/views/form_credential_templ.go deleted file mode 100644 index e1f95b7c0..000000000 --- a/internal/gateway/handlers/register/views/form_credential_templ.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by templ - DO NOT EDIT. - -// templ: version: v0.2.793 - -package views - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - -func formRegisterPasskey(action, method string, data RegisterPasskeyData) 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() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = ui.ProfileCard(data.Address, data.Name, data.Handle, data.CreationBlock).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = ui.CreatePasskey(data.Address, data.Handle, data.Challenge).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" Cancel
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - return templ_7745c5c3_Err - }) -} - -var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/views/form_profile.templ b/internal/gateway/handlers/register/views/form_profile.templ deleted file mode 100644 index d3e556c94..000000000 --- a/internal/gateway/handlers/register/views/form_profile.templ +++ /dev/null @@ -1,56 +0,0 @@ - -package views - -import ( - "math/rand" - "time" - "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/internal/gateway/handlers/register/ui" -) - -func HandleProfileFormView(c echo.Context) error { - dat := CreateProfileData{ - FirstNumber: 1, - LastNumber: 2, - } - return response.TemplEcho(c, ProfileFormView(dat)) -} - - -templ FormRegisterPasskey(action, method string) { -
- - -
-
- @ui.ProfileCard(data.Address, data.Name, data.Handle, data.CreationBlock) -
-
-
- @ui.CreatePasskey(data.Address, data.Handle, data.Challenge) - - - Cancel - -
- -
-
-} - - -// randomNumbers returns two random numbers whose sum is less than or equal to 10 -func randomNumbers() (int, int) { - rand.Seed(time.Now().UnixNano()) - firstNumber := rand.Intn(10) - lastNumber := rand.Intn(10) - for firstNumber+lastNumber > 10 { - lastNumber = rand.Intn(10) - } - return firstNumber, lastNumber -} diff --git a/internal/gateway/handlers/register/views/form_profile_templ.go b/internal/gateway/handlers/register/views/form_profile_templ.go deleted file mode 100644 index 91f600b25..000000000 --- a/internal/gateway/handlers/register/views/form_profile_templ.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by templ - DO NOT EDIT. - -// templ: version: v0.2.793 - -package views - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - -import ( - "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/internal/gateway/handlers/register/ui" - "math/rand" - "time" -) - -func HandleProfileFormView(c echo.Context) error { - dat := CreateProfileData{ - FirstNumber: 1, - LastNumber: 2, - } - return response.TemplEcho(c, ProfileFormView(dat)) -} - -func FormRegisterPasskey(action, method 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() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = ui.ProfileCard(data.Address, data.Name, data.Handle, data.CreationBlock).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = ui.CreatePasskey(data.Address, data.Handle, data.Challenge).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" Cancel
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - return templ_7745c5c3_Err - }) -} - -// randomNumbers returns two random numbers whose sum is less than or equal to 10 -func randomNumbers() (int, int) { - rand.Seed(time.Now().UnixNano()) - firstNumber := rand.Intn(10) - lastNumber := rand.Intn(10) - for firstNumber+lastNumber > 10 { - lastNumber = rand.Intn(10) - } - return firstNumber, lastNumber -} - -var _ = templruntime.GeneratedTemplate diff --git a/internal/gateway/handlers/register/views/loading.templ b/internal/gateway/handlers/register/views/loading.templ deleted file mode 100644 index 980d3d41a..000000000 --- a/internal/gateway/handlers/register/views/loading.templ +++ /dev/null @@ -1,2 +0,0 @@ -package views - diff --git a/internal/gateway/handlers/register/views/loading_templ.go b/internal/gateway/handlers/register/views/loading_templ.go deleted file mode 100644 index fcc6a1a57..000000000 --- a/internal/gateway/handlers/register/views/loading_templ.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by templ - DO NOT EDIT. - -// templ: version: v0.2.793 -package views - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - -var _ = templruntime.GeneratedTemplate