csv -> xlsx

This commit is contained in:
2025-12-11 10:51:44 +00:00
parent aef0be80fc
commit d3127a29de
8 changed files with 74 additions and 43 deletions

View File

@@ -9,9 +9,9 @@ import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import (
"github.com/b2dennis/meshi/csv"
"github.com/b2dennis/meshi/ui/components/card"
"github.com/b2dennis/meshi/ui/components/table"
"github.com/b2dennis/meshi/xlsx"
)
var weekdays = [7]string{
@@ -24,7 +24,7 @@ var weekdays = [7]string{
"Sonntag",
}
func Home(plan csv.Plan) templ.Component {
func Home(plan xlsx.Plan) 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 {
@@ -45,7 +45,7 @@ func Home(plan csv.Plan) templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Menüplan</title><link href=\"/assets/css/output.css\" type=\"text/css\" rel=\"stylesheet\"></head><body class=\"w-full min-h-screen flex items-center justify-center dark bg-card\">")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Menüplan</title><link href=\"/assets/css/output.css\" type=\"text/css\" rel=\"stylesheet\"></head><body class=\"w-full min-h-screen flex items-center justify-center\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}