csv -> xlsx
This commit is contained in:
@@ -3,7 +3,7 @@ package pages
|
||||
import (
|
||||
"github.com/b2dennis/meshi/ui/components/table"
|
||||
"github.com/b2dennis/meshi/ui/components/card"
|
||||
"github.com/b2dennis/meshi/csv"
|
||||
"github.com/b2dennis/meshi/xlsx"
|
||||
)
|
||||
|
||||
var weekdays = [7]string{
|
||||
@@ -16,7 +16,7 @@ var weekdays = [7]string{
|
||||
"Sonntag",
|
||||
}
|
||||
|
||||
templ Home(plan csv.Plan) {
|
||||
templ Home(plan xlsx.Plan) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -25,7 +25,7 @@ templ Home(plan csv.Plan) {
|
||||
<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">
|
||||
<body class="w-full min-h-screen flex items-center justify-center">
|
||||
@card.Card(card.Props{Class: "w-4/5 h-4/5"}) {
|
||||
@table.Table() {
|
||||
@table.Header() {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user