mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
refactor: move index template to routes package
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
package global
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
cdn "github.com/onsonr/sonr/pkg/nebula/assets"
|
|
||||||
"github.com/onsonr/sonr/pkg/nebula/global/state"
|
"github.com/onsonr/sonr/pkg/nebula/global/state"
|
||||||
|
"github.com/onsonr/sonr/pkg/nebula/global/styles"
|
||||||
)
|
)
|
||||||
|
|
||||||
templ IndexFile() {
|
templ IndexFile() {
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@cdn.Alpine()
|
@styles.Alpine()
|
||||||
@cdn.Htmx()
|
@styles.Htmx()
|
||||||
@cdn.Styles()
|
@styles.Styles()
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
// Code generated by templ - DO NOT EDIT.
|
// Code generated by templ - DO NOT EDIT.
|
||||||
|
|
||||||
// templ: version: v0.2.778
|
// templ: version: v0.2.778
|
||||||
package global
|
package routes
|
||||||
|
|
||||||
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
||||||
|
|
||||||
@@ -9,8 +9,8 @@ import "github.com/a-h/templ"
|
|||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
cdn "github.com/onsonr/sonr/pkg/nebula/assets"
|
|
||||||
"github.com/onsonr/sonr/pkg/nebula/global/state"
|
"github.com/onsonr/sonr/pkg/nebula/global/state"
|
||||||
|
"github.com/onsonr/sonr/pkg/nebula/global/styles"
|
||||||
)
|
)
|
||||||
|
|
||||||
func IndexFile() templ.Component {
|
func IndexFile() templ.Component {
|
||||||
@@ -38,15 +38,15 @@ func IndexFile() templ.Component {
|
|||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
templ_7745c5c3_Err = cdn.Alpine().Render(ctx, templ_7745c5c3_Buffer)
|
templ_7745c5c3_Err = styles.Alpine().Render(ctx, templ_7745c5c3_Buffer)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
templ_7745c5c3_Err = cdn.Htmx().Render(ctx, templ_7745c5c3_Buffer)
|
templ_7745c5c3_Err = styles.Htmx().Render(ctx, templ_7745c5c3_Buffer)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
templ_7745c5c3_Err = cdn.Styles().Render(ctx, templ_7745c5c3_Buffer)
|
templ_7745c5c3_Err = styles.Styles().Render(ctx, templ_7745c5c3_Buffer)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user