Add google authentication
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package ersteller_lib
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
. "maragu.dev/gomponents"
|
||||
)
|
||||
|
||||
type Language string
|
||||
|
||||
const (
|
||||
En Language = "en"
|
||||
)
|
||||
|
||||
type NavItem struct {
|
||||
Label string
|
||||
Url string
|
||||
}
|
||||
|
||||
type WebsiteMetaData struct {
|
||||
AppTitle string
|
||||
Title string
|
||||
Lang Language
|
||||
Description string
|
||||
NavItems []NavItem
|
||||
}
|
||||
|
||||
type PageWebsiteMetaData struct {
|
||||
AppTitle string
|
||||
Title string
|
||||
Lang Language
|
||||
Description string
|
||||
NavItems []NavItem
|
||||
ScriptSrcs []string
|
||||
StyleSrcs []string
|
||||
ActiveNavPath string
|
||||
HideNavigation bool
|
||||
UserEmail string
|
||||
}
|
||||
|
||||
type CreatePageFunc func(c echo.Context, metadata PageWebsiteMetaData, content ...Node) error
|
||||
Reference in New Issue
Block a user