package web
import (
"fmt"
"github.com/TecharoHQ/anubis"
"github.com/TecharoHQ/anubis/lib/config"
"github.com/TecharoHQ/anubis/lib/localization"
"github.com/TecharoHQ/anubis/xess"
"github.com/google/uuid"
)
templ base(title string, body templ.Component, impressum *config.Impressum, challenge any, ogTags map[string]string, localizer *localization.SimpleLocalizer) {
{ title }
for key, value := range ogTags {
}
@templ.JSONScript("anubis_version", anubis.Version)
@templ.JSONScript("anubis_challenge", challenge)
@templ.JSONScript("anubis_base_prefix", anubis.BasePrefix)
@templ.JSONScript("anubis_public_url", anubis.PublicUrl)
@honeypotLink(fmt.Sprintf("%shoneypot/%s/init", anubis.APIPrefix, uuid.NewString()))
{ title }
@body
}
templ errorPage(message, mail, code string, localizer *localization.SimpleLocalizer) {
}
templ StaticHappy(localizer *localization.SimpleLocalizer) {
{ localizer.T("static_check_endpoint") }
}
templ bench(localizer *localization.SimpleLocalizer) {
{ localizer.T("loading") }
}