diff --git a/.air.toml b/.air.toml deleted file mode 100644 index 4fa150e97..000000000 --- a/.air.toml +++ /dev/null @@ -1,51 +0,0 @@ -root = "." -testdata_dir = "testdata" -tmp_dir = "tmp" - -[build] -args_bin = [] -bin = "./tmp/main" -cmd = "go build -o ./tmp/main ./cmd/hway/main.go" -delay = 1000 -exclude_dir = ["assets", "tmp", "vendor", "testdata", "pkg/webapp/node_modules"] -exclude_file = [] -exclude_regex = ["_test.go", "_templ.go"] -exclude_unchanged = true -follow_symlink = false -full_bin = "" -include_dir = ["pkg/webapp"] -include_ext = ["go", "tpl", "templ", "html"] -include_file = [] -kill_delay = "0s" -log = "build-errors.log" -poll = false -poll_interval = 0 -post_cmd = [] -pre_cmd = ["templ generate"] -rerun = false -rerun_delay = 500 -send_interrupt = false -stop_on_error = false - -[color] -app = "" -build = "yellow" -main = "magenta" -runner = "green" -watcher = "cyan" - -[log] -main_only = false -time = false - -[misc] -clean_on_exit = false - -[proxy] -app_port = 3000 -enabled = false -proxy_port = 8787 - -[screen] -clear_on_rebuild = true -keep_scroll = true diff --git a/.gitignore b/.gitignore index bf539aa30..204014c97 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ dist # Output of the go coverage tool *.out -.air.toml tmp # Exclude embedded files !internal/files/dist @@ -85,3 +84,6 @@ sonr.wiki !devbox.lock !buf.lock + +.air.toml + diff --git a/pkg/services/credentials/scripts_templ.go b/pkg/services/credentials/scripts_templ.go index a6646451f..a12f1871e 100644 --- a/pkg/services/credentials/scripts_templ.go +++ b/pkg/services/credentials/scripts_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package credentials //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/services/payments/scripts_templ.go b/pkg/services/payments/scripts_templ.go index d75fc7134..63f0fa290 100644 --- a/pkg/services/payments/scripts_templ.go +++ b/pkg/services/payments/scripts_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package payments diff --git a/pkg/services/storage/scripts_templ.go b/pkg/services/storage/scripts_templ.go index b413849b6..aeed45ca9 100644 --- a/pkg/services/storage/scripts_templ.go +++ b/pkg/services/storage/scripts_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package storage //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/authorize_templ.go b/pkg/webapp/components/auth/authorize_templ.go index ad2c23bf7..961b0b757 100644 --- a/pkg/webapp/components/auth/authorize_templ.go +++ b/pkg/webapp/components/auth/authorize_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/create_credential_templ.go b/pkg/webapp/components/auth/create_credential_templ.go index 11f0103ea..eea1973f6 100644 --- a/pkg/webapp/components/auth/create_credential_templ.go +++ b/pkg/webapp/components/auth/create_credential_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/get_credential_templ.go b/pkg/webapp/components/auth/get_credential_templ.go index bfb597672..75368de9a 100644 --- a/pkg/webapp/components/auth/get_credential_templ.go +++ b/pkg/webapp/components/auth/get_credential_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/login_templ.go b/pkg/webapp/components/auth/login_templ.go index f7251cb92..6951af203 100644 --- a/pkg/webapp/components/auth/login_templ.go +++ b/pkg/webapp/components/auth/login_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/register_start_templ.go b/pkg/webapp/components/auth/register_start_templ.go index 35ee1d9f5..717370e4d 100644 --- a/pkg/webapp/components/auth/register_start_templ.go +++ b/pkg/webapp/components/auth/register_start_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/auth/register_templ.go b/pkg/webapp/components/auth/register_templ.go index 231cc7bcf..17449b7c6 100644 --- a/pkg/webapp/components/auth/register_templ.go +++ b/pkg/webapp/components/auth/register_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package auth //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/arch_templ.go b/pkg/webapp/components/landing/arch_templ.go index 81225c9f9..e5e8a1b2e 100644 --- a/pkg/webapp/components/landing/arch_templ.go +++ b/pkg/webapp/components/landing/arch_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/cta_templ.go b/pkg/webapp/components/landing/cta_templ.go index 8414bbef0..a3a12ab86 100644 --- a/pkg/webapp/components/landing/cta_templ.go +++ b/pkg/webapp/components/landing/cta_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/footer_templ.go b/pkg/webapp/components/landing/footer_templ.go index 2621849e4..c3000b9d2 100644 --- a/pkg/webapp/components/landing/footer_templ.go +++ b/pkg/webapp/components/landing/footer_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing diff --git a/pkg/webapp/components/landing/header_templ.go b/pkg/webapp/components/landing/header_templ.go index 2a948dbb9..bd4e740f3 100644 --- a/pkg/webapp/components/landing/header_templ.go +++ b/pkg/webapp/components/landing/header_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/hero_templ.go b/pkg/webapp/components/landing/hero_templ.go index d3cd16ae9..fb3bd7f42 100644 --- a/pkg/webapp/components/landing/hero_templ.go +++ b/pkg/webapp/components/landing/hero_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/highlights_templ.go b/pkg/webapp/components/landing/highlights_templ.go index 753f3be5f..2d3b62e7d 100644 --- a/pkg/webapp/components/landing/highlights_templ.go +++ b/pkg/webapp/components/landing/highlights_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/lowlights_templ.go b/pkg/webapp/components/landing/lowlights_templ.go index 1bd2e3dfb..ad8b1b5a7 100644 --- a/pkg/webapp/components/landing/lowlights_templ.go +++ b/pkg/webapp/components/landing/lowlights_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/landing/mission_templ.go b/pkg/webapp/components/landing/mission_templ.go index 2fccf7548..33347e3c0 100644 --- a/pkg/webapp/components/landing/mission_templ.go +++ b/pkg/webapp/components/landing/mission_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package landing //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/badges_templ.go b/pkg/webapp/components/ui/badges_templ.go index ffc481bfa..606c77c21 100644 --- a/pkg/webapp/components/ui/badges_templ.go +++ b/pkg/webapp/components/ui/badges_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/buttons_templ.go b/pkg/webapp/components/ui/buttons_templ.go index e53fd6e65..899f2633b 100644 --- a/pkg/webapp/components/ui/buttons_templ.go +++ b/pkg/webapp/components/ui/buttons_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/cards_templ.go b/pkg/webapp/components/ui/cards_templ.go index ca641cded..fdae71090 100644 --- a/pkg/webapp/components/ui/cards_templ.go +++ b/pkg/webapp/components/ui/cards_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/icon.templ b/pkg/webapp/components/ui/icon.templ index f1ba979a7..31d71e24c 100644 --- a/pkg/webapp/components/ui/icon.templ +++ b/pkg/webapp/components/ui/icon.templ @@ -22,10 +22,8 @@ const ( FaBrands FontAwesome = "fa-brands" ) -func Icon(s FontAwesome) IconFunc { - return func(name string) templ.Component { - return renderIcon(s, name) - } +func (s FontAwesome) Icon(name string) templ.Component { + return renderIcon(s, name) } func renderIcon(s FontAwesome, name string) templ.Component { @@ -39,15 +37,3 @@ func formatIconClass(s FontAwesome, name string) string { templ faIcon(class string) { } - -templ RegularIcon() { -} - -templ LightIcon() { -} - -templ ThinIcon() { -} - -templ BrandsIcon() { -} diff --git a/pkg/webapp/components/ui/icon_templ.go b/pkg/webapp/components/ui/icon_templ.go index 040e75f23..c19814e20 100644 --- a/pkg/webapp/components/ui/icon_templ.go +++ b/pkg/webapp/components/ui/icon_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -30,10 +30,8 @@ const ( FaBrands FontAwesome = "fa-brands" ) -func Icon(s FontAwesome) IconFunc { - return func(name string) templ.Component { - return renderIcon(s, name) - } +func (s FontAwesome) Icon(name string) templ.Component { + return renderIcon(s, name) } func renderIcon(s FontAwesome, name string) templ.Component { @@ -91,104 +89,4 @@ func faIcon(class string) templ.Component { }) } -func RegularIcon() 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_Var4 := templ.GetChildren(ctx) - if templ_7745c5c3_Var4 == nil { - templ_7745c5c3_Var4 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - return templ_7745c5c3_Err - }) -} - -func LightIcon() 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_Var5 := templ.GetChildren(ctx) - if templ_7745c5c3_Var5 == nil { - templ_7745c5c3_Var5 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - return templ_7745c5c3_Err - }) -} - -func ThinIcon() 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_Var6 := templ.GetChildren(ctx) - if templ_7745c5c3_Var6 == nil { - templ_7745c5c3_Var6 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - return templ_7745c5c3_Err - }) -} - -func BrandsIcon() 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_Var7 := templ.GetChildren(ctx) - if templ_7745c5c3_Var7 == nil { - templ_7745c5c3_Var7 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - return templ_7745c5c3_Err - }) -} - var _ = templruntime.GeneratedTemplate diff --git a/pkg/webapp/components/ui/layout_templ.go b/pkg/webapp/components/ui/layout_templ.go index 8aa496d19..093fe9b8b 100644 --- a/pkg/webapp/components/ui/layout_templ.go +++ b/pkg/webapp/components/ui/layout_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/panels_templ.go b/pkg/webapp/components/ui/panels_templ.go index a7df7e25c..439d6a52e 100644 --- a/pkg/webapp/components/ui/panels_templ.go +++ b/pkg/webapp/components/ui/panels_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/scripts_templ.go b/pkg/webapp/components/ui/scripts_templ.go index 86e24b9d6..71d6f3d5e 100644 --- a/pkg/webapp/components/ui/scripts_templ.go +++ b/pkg/webapp/components/ui/scripts_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/sizes_templ.go b/pkg/webapp/components/ui/sizes_templ.go index 52047ba52..09a5f47c3 100644 --- a/pkg/webapp/components/ui/sizes_templ.go +++ b/pkg/webapp/components/ui/sizes_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/components/ui/typography_templ.go b/pkg/webapp/components/ui/typography_templ.go index c0ac9d207..fc49235a8 100644 --- a/pkg/webapp/components/ui/typography_templ.go +++ b/pkg/webapp/components/ui/typography_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/models/page.go b/pkg/webapp/models/pages.go similarity index 100% rename from pkg/webapp/models/page.go rename to pkg/webapp/models/pages.go diff --git a/pkg/webapp/pages/auth_templ.go b/pkg/webapp/pages/auth_templ.go index 79fcf26db..1e9cc4ff4 100644 --- a/pkg/webapp/pages/auth_templ.go +++ b/pkg/webapp/pages/auth_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package pages //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/pages/dashboard_templ.go b/pkg/webapp/pages/dashboard_templ.go index ed2ca5ca4..4708ea891 100644 --- a/pkg/webapp/pages/dashboard_templ.go +++ b/pkg/webapp/pages/dashboard_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package pages //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/webapp/pages/landing_templ.go b/pkg/webapp/pages/landing_templ.go index 4efb12569..912b46b8f 100644 --- a/pkg/webapp/pages/landing_templ.go +++ b/pkg/webapp/pages/landing_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.793 +// templ: version: v0.2.778 package pages diff --git a/process-compose.yaml b/process-compose.yaml index a75d2524b..40f822b48 100644 --- a/process-compose.yaml +++ b/process-compose.yaml @@ -17,12 +17,3 @@ processes: max_restarts: 1 depends: - ipfs - - hway: - namespace: testnet - command: "air" - background: true - restart: never - max_restarts: 1 - depends: - - sonr