From 13ec479d36d450c14c7c4b276ccba4f5d0fd025e Mon Sep 17 00:00:00 2001 From: Prad N Date: Mon, 2 Jun 2025 12:35:12 -0700 Subject: [PATCH] master --- handlers/auth_handler.go | 4 ++-- handlers/page_handler.go | 6 +++--- pkg/cflare/d1_bindings.go | 4 ++++ pkg/cflare/d1_connection.go | 4 ++++ pkg/cflare/kv_bindings.go | 4 ++++ pkg/cflare/kv_connection.go | 4 ++++ {internal/ui => ui}/dash/cards.templ | 0 {internal/ui => ui}/dash/cards_templ.go | 0 {internal/ui => ui}/dash/charts/area_chart.templ | 0 .../ui => ui}/dash/charts/area_chart_templ.go | 4 ++-- {internal/ui => ui}/dash/charts/bar_chart.templ | 0 .../ui => ui}/dash/charts/bar_chart_templ.go | 4 ++-- .../ui => ui}/dash/charts/candle_chart.templ | 0 .../ui => ui}/dash/charts/candle_chart_templ.go | 0 {internal/ui => ui}/dash/charts/line_chart.templ | 0 .../ui => ui}/dash/charts/line_chart_templ.go | 4 ++-- {internal/ui => ui}/dash/charts/pie_chart.templ | 0 .../ui => ui}/dash/charts/pie_chart_templ.go | 4 ++-- {internal/ui => ui}/dash/scripts.templ | 0 {internal/ui => ui}/dash/scripts_templ.go | 0 {internal/ui => ui}/dash/view.templ | 2 +- {internal/ui => ui}/dash/view_templ.go | 2 +- {internal/ui => ui}/home/view.templ | 2 +- {internal/ui => ui}/home/view_templ.go | 2 +- {internal/ui => ui}/layout.templ | 0 {internal/ui => ui}/layout_templ.go | 12 ++++++------ {internal/ui => ui}/login/inputs.templ | 0 {internal/ui => ui}/login/inputs_templ.go | 6 +++--- {internal/ui => ui}/login/scripts.templ | 0 {internal/ui => ui}/login/scripts_templ.go | 0 {internal/ui => ui}/login/view.templ | 2 +- {internal/ui => ui}/login/view_templ.go | 2 +- {internal/ui => ui}/providers.templ | 0 {internal/ui => ui}/providers_templ.go | 16 ++++++++-------- {internal/ui => ui}/register/inputs.templ | 0 {internal/ui => ui}/register/inputs_templ.go | 6 +++--- {internal/ui => ui}/register/scripts.templ | 0 {internal/ui => ui}/register/scripts_templ.go | 0 {internal/ui => ui}/register/view.templ | 2 +- {internal/ui => ui}/register/view_templ.go | 2 +- {internal/ui => ui}/styles.templ | 0 {internal/ui => ui}/styles_templ.go | 0 {internal/ui => ui}/transfer/data.go | 0 {internal/ui => ui}/transfer/inputs.templ | 0 {internal/ui => ui}/transfer/inputs_templ.go | 12 ++++++------ 45 files changed, 63 insertions(+), 47 deletions(-) create mode 100644 pkg/cflare/d1_bindings.go create mode 100644 pkg/cflare/d1_connection.go create mode 100644 pkg/cflare/kv_bindings.go create mode 100644 pkg/cflare/kv_connection.go rename {internal/ui => ui}/dash/cards.templ (100%) rename {internal/ui => ui}/dash/cards_templ.go (100%) rename {internal/ui => ui}/dash/charts/area_chart.templ (100%) rename {internal/ui => ui}/dash/charts/area_chart_templ.go (91%) rename {internal/ui => ui}/dash/charts/bar_chart.templ (100%) rename {internal/ui => ui}/dash/charts/bar_chart_templ.go (91%) rename {internal/ui => ui}/dash/charts/candle_chart.templ (100%) rename {internal/ui => ui}/dash/charts/candle_chart_templ.go (100%) rename {internal/ui => ui}/dash/charts/line_chart.templ (100%) rename {internal/ui => ui}/dash/charts/line_chart_templ.go (91%) rename {internal/ui => ui}/dash/charts/pie_chart.templ (100%) rename {internal/ui => ui}/dash/charts/pie_chart_templ.go (91%) rename {internal/ui => ui}/dash/scripts.templ (100%) rename {internal/ui => ui}/dash/scripts_templ.go (100%) rename {internal/ui => ui}/dash/view.templ (96%) rename {internal/ui => ui}/dash/view_templ.go (99%) rename {internal/ui => ui}/home/view.templ (97%) rename {internal/ui => ui}/home/view_templ.go (99%) rename {internal/ui => ui}/layout.templ (100%) rename {internal/ui => ui}/layout_templ.go (97%) rename {internal/ui => ui}/login/inputs.templ (100%) rename {internal/ui => ui}/login/inputs_templ.go (97%) rename {internal/ui => ui}/login/scripts.templ (100%) rename {internal/ui => ui}/login/scripts_templ.go (100%) rename {internal/ui => ui}/login/view.templ (89%) rename {internal/ui => ui}/login/view_templ.go (99%) rename {internal/ui => ui}/providers.templ (100%) rename {internal/ui => ui}/providers_templ.go (95%) rename {internal/ui => ui}/register/inputs.templ (100%) rename {internal/ui => ui}/register/inputs_templ.go (97%) rename {internal/ui => ui}/register/scripts.templ (100%) rename {internal/ui => ui}/register/scripts_templ.go (100%) rename {internal/ui => ui}/register/view.templ (96%) rename {internal/ui => ui}/register/view_templ.go (99%) rename {internal/ui => ui}/styles.templ (100%) rename {internal/ui => ui}/styles_templ.go (100%) rename {internal/ui => ui}/transfer/data.go (100%) rename {internal/ui => ui}/transfer/inputs.templ (100%) rename {internal/ui => ui}/transfer/inputs_templ.go (92%) diff --git a/handlers/auth_handler.go b/handlers/auth_handler.go index 797c1d4..2e19da6 100644 --- a/handlers/auth_handler.go +++ b/handlers/auth_handler.go @@ -2,9 +2,9 @@ package handlers import ( "github.com/labstack/echo/v4" - "github.com/sonr-io/motr/internal/ui/login" - "github.com/sonr-io/motr/internal/ui/register" "github.com/sonr-io/motr/pkg/render" + "github.com/sonr-io/motr/ui/login" + "github.com/sonr-io/motr/ui/register" ) func HandleLoginCheck(c echo.Context) error { diff --git a/handlers/page_handler.go b/handlers/page_handler.go index ebaec34..1830285 100644 --- a/handlers/page_handler.go +++ b/handlers/page_handler.go @@ -5,10 +5,10 @@ package handlers import ( "github.com/labstack/echo/v4" - "github.com/sonr-io/motr/internal/ui/home" - "github.com/sonr-io/motr/internal/ui/login" - "github.com/sonr-io/motr/internal/ui/register" + "github.com/sonr-io/motr/ui/register" "github.com/sonr-io/motr/pkg/render" + "github.com/sonr-io/motr/ui/home" + "github.com/sonr-io/motr/ui/login" ) func RenderHomePage(c echo.Context) error { diff --git a/pkg/cflare/d1_bindings.go b/pkg/cflare/d1_bindings.go new file mode 100644 index 0000000..2c4e472 --- /dev/null +++ b/pkg/cflare/d1_bindings.go @@ -0,0 +1,4 @@ +//go:build js && wasm +// +build js,wasm + +package cflare diff --git a/pkg/cflare/d1_connection.go b/pkg/cflare/d1_connection.go new file mode 100644 index 0000000..2c4e472 --- /dev/null +++ b/pkg/cflare/d1_connection.go @@ -0,0 +1,4 @@ +//go:build js && wasm +// +build js,wasm + +package cflare diff --git a/pkg/cflare/kv_bindings.go b/pkg/cflare/kv_bindings.go new file mode 100644 index 0000000..2c4e472 --- /dev/null +++ b/pkg/cflare/kv_bindings.go @@ -0,0 +1,4 @@ +//go:build js && wasm +// +build js,wasm + +package cflare diff --git a/pkg/cflare/kv_connection.go b/pkg/cflare/kv_connection.go new file mode 100644 index 0000000..2c4e472 --- /dev/null +++ b/pkg/cflare/kv_connection.go @@ -0,0 +1,4 @@ +//go:build js && wasm +// +build js,wasm + +package cflare diff --git a/internal/ui/dash/cards.templ b/ui/dash/cards.templ similarity index 100% rename from internal/ui/dash/cards.templ rename to ui/dash/cards.templ diff --git a/internal/ui/dash/cards_templ.go b/ui/dash/cards_templ.go similarity index 100% rename from internal/ui/dash/cards_templ.go rename to ui/dash/cards_templ.go diff --git a/internal/ui/dash/charts/area_chart.templ b/ui/dash/charts/area_chart.templ similarity index 100% rename from internal/ui/dash/charts/area_chart.templ rename to ui/dash/charts/area_chart.templ diff --git a/internal/ui/dash/charts/area_chart_templ.go b/ui/dash/charts/area_chart_templ.go similarity index 91% rename from internal/ui/dash/charts/area_chart_templ.go rename to ui/dash/charts/area_chart_templ.go index 72bb2ec..22feaa4 100644 --- a/internal/ui/dash/charts/area_chart_templ.go +++ b/ui/dash/charts/area_chart_templ.go @@ -44,7 +44,7 @@ func AreaChart(data []DateValue) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(d.Date) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/area_chart.templ`, Line: 14, Col: 61} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/area_chart.templ`, Line: 14, Col: 61} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -57,7 +57,7 @@ func AreaChart(data []DateValue) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", d.Value)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/area_chart.templ`, Line: 15, Col: 81} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/area_chart.templ`, Line: 15, Col: 81} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/dash/charts/bar_chart.templ b/ui/dash/charts/bar_chart.templ similarity index 100% rename from internal/ui/dash/charts/bar_chart.templ rename to ui/dash/charts/bar_chart.templ diff --git a/internal/ui/dash/charts/bar_chart_templ.go b/ui/dash/charts/bar_chart_templ.go similarity index 91% rename from internal/ui/dash/charts/bar_chart_templ.go rename to ui/dash/charts/bar_chart_templ.go index 1ddd8c5..2816295 100644 --- a/internal/ui/dash/charts/bar_chart_templ.go +++ b/ui/dash/charts/bar_chart_templ.go @@ -45,7 +45,7 @@ func BarChart(data []KeyValue) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(d.Key) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/bar_chart.templ`, Line: 15, Col: 60} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/bar_chart.templ`, Line: 15, Col: 60} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -58,7 +58,7 @@ func BarChart(data []KeyValue) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", d.Value)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/bar_chart.templ`, Line: 16, Col: 81} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/bar_chart.templ`, Line: 16, Col: 81} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/dash/charts/candle_chart.templ b/ui/dash/charts/candle_chart.templ similarity index 100% rename from internal/ui/dash/charts/candle_chart.templ rename to ui/dash/charts/candle_chart.templ diff --git a/internal/ui/dash/charts/candle_chart_templ.go b/ui/dash/charts/candle_chart_templ.go similarity index 100% rename from internal/ui/dash/charts/candle_chart_templ.go rename to ui/dash/charts/candle_chart_templ.go diff --git a/internal/ui/dash/charts/line_chart.templ b/ui/dash/charts/line_chart.templ similarity index 100% rename from internal/ui/dash/charts/line_chart.templ rename to ui/dash/charts/line_chart.templ diff --git a/internal/ui/dash/charts/line_chart_templ.go b/ui/dash/charts/line_chart_templ.go similarity index 91% rename from internal/ui/dash/charts/line_chart_templ.go rename to ui/dash/charts/line_chart_templ.go index ac19b1a..ed08922 100644 --- a/internal/ui/dash/charts/line_chart_templ.go +++ b/ui/dash/charts/line_chart_templ.go @@ -39,7 +39,7 @@ func LineChart(data []DateValue) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(d.Date) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/line_chart.templ`, Line: 9, Col: 61} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/line_chart.templ`, Line: 9, Col: 61} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -52,7 +52,7 @@ func LineChart(data []DateValue) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", d.Value)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/line_chart.templ`, Line: 10, Col: 81} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/line_chart.templ`, Line: 10, Col: 81} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/dash/charts/pie_chart.templ b/ui/dash/charts/pie_chart.templ similarity index 100% rename from internal/ui/dash/charts/pie_chart.templ rename to ui/dash/charts/pie_chart.templ diff --git a/internal/ui/dash/charts/pie_chart_templ.go b/ui/dash/charts/pie_chart_templ.go similarity index 91% rename from internal/ui/dash/charts/pie_chart_templ.go rename to ui/dash/charts/pie_chart_templ.go index b49b239..ad48683 100644 --- a/internal/ui/dash/charts/pie_chart_templ.go +++ b/ui/dash/charts/pie_chart_templ.go @@ -46,7 +46,7 @@ func PieChart(data []CategoryValue) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(d.Category) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/pie_chart.templ`, Line: 16, Col: 65} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/pie_chart.templ`, Line: 16, Col: 65} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -59,7 +59,7 @@ func PieChart(data []CategoryValue) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", d.Value)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/dash/charts/pie_chart.templ`, Line: 17, Col: 81} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/dash/charts/pie_chart.templ`, Line: 17, Col: 81} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/dash/scripts.templ b/ui/dash/scripts.templ similarity index 100% rename from internal/ui/dash/scripts.templ rename to ui/dash/scripts.templ diff --git a/internal/ui/dash/scripts_templ.go b/ui/dash/scripts_templ.go similarity index 100% rename from internal/ui/dash/scripts_templ.go rename to ui/dash/scripts_templ.go diff --git a/internal/ui/dash/view.templ b/ui/dash/view.templ similarity index 96% rename from internal/ui/dash/view.templ rename to ui/dash/view.templ index 3befa61..f717099 100644 --- a/internal/ui/dash/view.templ +++ b/ui/dash/view.templ @@ -1,7 +1,7 @@ package dash import ( - "github.com/sonr-io/motr/internal/ui" + "github.com/sonr-io/motr/ui" "github.com/sonr-io/motr/pkg/metadata" "time" ) diff --git a/internal/ui/dash/view_templ.go b/ui/dash/view_templ.go similarity index 99% rename from internal/ui/dash/view_templ.go rename to ui/dash/view_templ.go index 6522aed..bc756bf 100644 --- a/internal/ui/dash/view_templ.go +++ b/ui/dash/view_templ.go @@ -9,8 +9,8 @@ import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" import ( - "github.com/sonr-io/motr/internal/ui" "github.com/sonr-io/motr/pkg/metadata" + "github.com/sonr-io/motr/ui" "time" ) diff --git a/internal/ui/home/view.templ b/ui/home/view.templ similarity index 97% rename from internal/ui/home/view.templ rename to ui/home/view.templ index 70927dd..ef056da 100644 --- a/internal/ui/home/view.templ +++ b/ui/home/view.templ @@ -1,6 +1,6 @@ package home -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" func HomeView() templ.Component { diff --git a/internal/ui/home/view_templ.go b/ui/home/view_templ.go similarity index 99% rename from internal/ui/home/view_templ.go rename to ui/home/view_templ.go index 64d713a..5213bca 100644 --- a/internal/ui/home/view_templ.go +++ b/ui/home/view_templ.go @@ -8,7 +8,7 @@ package home import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" func HomeView() templ.Component { diff --git a/internal/ui/layout.templ b/ui/layout.templ similarity index 100% rename from internal/ui/layout.templ rename to ui/layout.templ diff --git a/internal/ui/layout_templ.go b/ui/layout_templ.go similarity index 97% rename from internal/ui/layout_templ.go rename to ui/layout_templ.go index 756f56a..bfbbdc2 100644 --- a/internal/ui/layout_templ.go +++ b/ui/layout_templ.go @@ -341,7 +341,7 @@ func NavCTA(href string, text string) templ.Component { var templ_7745c5c3_Var10 string templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(href) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 70, Col: 38} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 70, Col: 38} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) if templ_7745c5c3_Err != nil { @@ -354,7 +354,7 @@ func NavCTA(href string, text string) templ.Component { var templ_7745c5c3_Var11 string templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 70, Col: 47} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 70, Col: 47} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) if templ_7745c5c3_Err != nil { @@ -397,7 +397,7 @@ func NavItem(href string, text string) templ.Component { var templ_7745c5c3_Var13 string templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(href) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 75, Col: 35} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 75, Col: 35} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) if templ_7745c5c3_Err != nil { @@ -410,7 +410,7 @@ func NavItem(href string, text string) templ.Component { var templ_7745c5c3_Var14 string templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 75, Col: 44} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 75, Col: 44} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) if templ_7745c5c3_Err != nil { @@ -461,7 +461,7 @@ func NavLogo(title string) templ.Component { var templ_7745c5c3_Var16 string templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 82, Col: 48} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 82, Col: 48} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16)) if templ_7745c5c3_Err != nil { @@ -616,7 +616,7 @@ func Separator(text string) templ.Component { var templ_7745c5c3_Var21 string templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/layout.templ`, Line: 110, Col: 45} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/layout.templ`, Line: 110, Col: 45} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/login/inputs.templ b/ui/login/inputs.templ similarity index 100% rename from internal/ui/login/inputs.templ rename to ui/login/inputs.templ diff --git a/internal/ui/login/inputs_templ.go b/ui/login/inputs_templ.go similarity index 97% rename from internal/ui/login/inputs_templ.go rename to ui/login/inputs_templ.go index 4b0ec58..a7ac4c2 100644 --- a/internal/ui/login/inputs_templ.go +++ b/ui/login/inputs_templ.go @@ -191,7 +191,7 @@ func HandleError(value string, helpText string) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(value) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/login/inputs.templ`, Line: 36, Col: 165} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/login/inputs.templ`, Line: 36, Col: 165} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { @@ -204,7 +204,7 @@ func HandleError(value string, helpText string) templ.Component { var templ_7745c5c3_Var10 string templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(helpText) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/login/inputs.templ`, Line: 36, Col: 188} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/login/inputs.templ`, Line: 36, Col: 188} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) if templ_7745c5c3_Err != nil { @@ -246,7 +246,7 @@ func HandleSuccess(value string) templ.Component { var templ_7745c5c3_Var12 string templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(value) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/login/inputs.templ`, Line: 49, Col: 167} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/login/inputs.templ`, Line: 49, Col: 167} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/login/scripts.templ b/ui/login/scripts.templ similarity index 100% rename from internal/ui/login/scripts.templ rename to ui/login/scripts.templ diff --git a/internal/ui/login/scripts_templ.go b/ui/login/scripts_templ.go similarity index 100% rename from internal/ui/login/scripts_templ.go rename to ui/login/scripts_templ.go diff --git a/internal/ui/login/view.templ b/ui/login/view.templ similarity index 89% rename from internal/ui/login/view.templ rename to ui/login/view.templ index 42044c0..90e0850 100644 --- a/internal/ui/login/view.templ +++ b/ui/login/view.templ @@ -1,6 +1,6 @@ package login -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" templ LoginView() { diff --git a/internal/ui/login/view_templ.go b/ui/login/view_templ.go similarity index 99% rename from internal/ui/login/view_templ.go rename to ui/login/view_templ.go index d1e8206..551a393 100644 --- a/internal/ui/login/view_templ.go +++ b/ui/login/view_templ.go @@ -8,7 +8,7 @@ package login import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" func LoginView() templ.Component { diff --git a/internal/ui/providers.templ b/ui/providers.templ similarity index 100% rename from internal/ui/providers.templ rename to ui/providers.templ diff --git a/internal/ui/providers_templ.go b/ui/providers_templ.go similarity index 95% rename from internal/ui/providers_templ.go rename to ui/providers_templ.go index 556da3f..ed1c83c 100644 --- a/internal/ui/providers_templ.go +++ b/ui/providers_templ.go @@ -156,7 +156,7 @@ func Dexie() templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie", "4.0.10", "dist/dexie.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 33, Col: 67} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 33, Col: 67} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -169,7 +169,7 @@ func Dexie() templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie-export-import", "4.1.4", "dist/dexie-export-import.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 34, Col: 94} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 34, Col: 94} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { @@ -278,7 +278,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var13 string templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx.org", "1.9.12", "dist/htmx.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 127, Col: 69} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 127, Col: 69} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) if templ_7745c5c3_Err != nil { @@ -291,7 +291,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var14 string templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-include-vals", "2.0.0", "include-vals.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 128, Col: 84} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 128, Col: 84} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) if templ_7745c5c3_Err != nil { @@ -304,7 +304,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var15 string templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-path-params", "2.0.0", "path-params.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 129, Col: 82} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 129, Col: 82} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) if templ_7745c5c3_Err != nil { @@ -317,7 +317,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var16 string templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-alpine-morph", "2.0.0", "alpine-morph.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 130, Col: 84} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 130, Col: 84} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16)) if templ_7745c5c3_Err != nil { @@ -330,7 +330,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var17 string templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-sse", "2.2.2", "sse.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 131, Col: 66} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 131, Col: 66} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) if templ_7745c5c3_Err != nil { @@ -343,7 +343,7 @@ func Htmx() templ.Component { var templ_7745c5c3_Var18 string templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-ws", "2.0.2", "ws.min.js")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/providers.templ`, Line: 132, Col: 64} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/providers.templ`, Line: 132, Col: 64} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/register/inputs.templ b/ui/register/inputs.templ similarity index 100% rename from internal/ui/register/inputs.templ rename to ui/register/inputs.templ diff --git a/internal/ui/register/inputs_templ.go b/ui/register/inputs_templ.go similarity index 97% rename from internal/ui/register/inputs_templ.go rename to ui/register/inputs_templ.go index 917e863..65623ac 100644 --- a/internal/ui/register/inputs_templ.go +++ b/ui/register/inputs_templ.go @@ -123,7 +123,7 @@ func HandleError(value string, helpText string) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(value) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/register/inputs.templ`, Line: 27, Col: 165} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/register/inputs.templ`, Line: 27, Col: 165} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -136,7 +136,7 @@ func HandleError(value string, helpText string) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(helpText) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/register/inputs.templ`, Line: 27, Col: 188} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/register/inputs.templ`, Line: 27, Col: 188} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -178,7 +178,7 @@ func HandleSuccess(value string) templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(value) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/register/inputs.templ`, Line: 40, Col: 167} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/register/inputs.templ`, Line: 40, Col: 167} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { diff --git a/internal/ui/register/scripts.templ b/ui/register/scripts.templ similarity index 100% rename from internal/ui/register/scripts.templ rename to ui/register/scripts.templ diff --git a/internal/ui/register/scripts_templ.go b/ui/register/scripts_templ.go similarity index 100% rename from internal/ui/register/scripts_templ.go rename to ui/register/scripts_templ.go diff --git a/internal/ui/register/view.templ b/ui/register/view.templ similarity index 96% rename from internal/ui/register/view.templ rename to ui/register/view.templ index 6271f88..269387d 100644 --- a/internal/ui/register/view.templ +++ b/ui/register/view.templ @@ -1,6 +1,6 @@ package register -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" templ RegisterView() { diff --git a/internal/ui/register/view_templ.go b/ui/register/view_templ.go similarity index 99% rename from internal/ui/register/view_templ.go rename to ui/register/view_templ.go index 4d61606..d4a53c6 100644 --- a/internal/ui/register/view_templ.go +++ b/ui/register/view_templ.go @@ -8,7 +8,7 @@ package register import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import "github.com/sonr-io/motr/internal/ui" +import "github.com/sonr-io/motr/ui" import "github.com/sonr-io/motr/pkg/metadata" func RegisterView() templ.Component { diff --git a/internal/ui/styles.templ b/ui/styles.templ similarity index 100% rename from internal/ui/styles.templ rename to ui/styles.templ diff --git a/internal/ui/styles_templ.go b/ui/styles_templ.go similarity index 100% rename from internal/ui/styles_templ.go rename to ui/styles_templ.go diff --git a/internal/ui/transfer/data.go b/ui/transfer/data.go similarity index 100% rename from internal/ui/transfer/data.go rename to ui/transfer/data.go diff --git a/internal/ui/transfer/inputs.templ b/ui/transfer/inputs.templ similarity index 100% rename from internal/ui/transfer/inputs.templ rename to ui/transfer/inputs.templ diff --git a/internal/ui/transfer/inputs_templ.go b/ui/transfer/inputs_templ.go similarity index 92% rename from internal/ui/transfer/inputs_templ.go rename to ui/transfer/inputs_templ.go index c329a60..9174b20 100644 --- a/internal/ui/transfer/inputs_templ.go +++ b/ui/transfer/inputs_templ.go @@ -105,7 +105,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 68, Col: 29} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 68, Col: 29} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -118,7 +118,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 69, Col: 41} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 69, Col: 41} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -131,7 +131,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 70, Col: 11} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 70, Col: 11} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -149,7 +149,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 74, Col: 29} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 74, Col: 29} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -162,7 +162,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 75, Col: 41} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 75, Col: 41} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { @@ -175,7 +175,7 @@ func CoinOption(a CoinInfo) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/ui/transfer/inputs.templ`, Line: 76, Col: 11} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/transfer/inputs.templ`, Line: 76, Col: 11} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil {