Revert "Add the module name after the path to the repo and simply name it ersteller"

This reverts commit a1b93c0eba.
This commit is contained in:
Achim Rohn
2025-11-15 11:38:04 +01:00
parent a1b93c0eba
commit 7c69f163b6
86 changed files with 251 additions and 253 deletions
+9 -9
View File
@@ -1,7 +1,7 @@
package authentication
import (
"git.gorlug.de/code/golang/ersteller-lib/ersteller"
"git.gorlug.de/code/golang/ersteller-lib"
"github.com/labstack/echo/v4"
"maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
@@ -10,22 +10,22 @@ import (
const LoginPath = "/login"
type LoginPage struct {
createPage ersteller.CreatePageFunc
LoginRoute ersteller.GetRoute
createPage ersteller_lib.CreatePageFunc
LoginRoute ersteller_lib.GetRoute
googleLoginUrl string
}
func NewLoginPage(e *echo.Echo, createPage ersteller.CreatePageFunc, googleLoginUrl string) *LoginPage {
func NewLoginPage(e *echo.Echo, createPage ersteller_lib.CreatePageFunc, googleLoginUrl string) *LoginPage {
page := &LoginPage{createPage: createPage, googleLoginUrl: googleLoginUrl}
page.LoginRoute = ersteller.NewGetRoute(LoginPath, page.Render).Add(e)
page.LoginRoute = ersteller_lib.NewGetRoute(LoginPath, page.Render).Add(e)
return page
}
func (l *LoginPage) Render(c echo.Context) error {
return l.createPage(c, ersteller.PageWebsiteMetaData{
Title: ersteller.NewI18nText(map[ersteller.Language]string{
ersteller.En: "Login",
ersteller.De: "Anmelden",
return l.createPage(c, ersteller_lib.PageWebsiteMetaData{
Title: ersteller_lib.NewI18nText(map[ersteller_lib.Language]string{
ersteller_lib.En: "Login",
ersteller_lib.De: "Anmelden",
}),
HideNavigation: true,
}, l.getLoginPage())