+ build command for makefile

This commit is contained in:
itsig0
2024-03-24 18:30:43 +01:00
parent 5e50435309
commit 1da3051c3d
6 changed files with 60 additions and 51 deletions

View File

@@ -7,3 +7,12 @@ templ:
sass:
@sass --no-source-map --watch view/stylesheets/tallytome.scss public/tallytome.css
build:
@rm -rf tmp/release/tallytome
@mkdir -p tmp/release/tallytome
@templ generate
@go build main.go
@mv main tallytome
@mv tallytome tmp/release/tallytome
@cp -r public tmp/release/tallytome

View File

@@ -31,7 +31,7 @@ func Show(hx bool) templ.Component {
templ_7745c5c3_Buffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"container\"><h1>Schön hier aber waren sie schon mal in Mordor?</h1></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -82,7 +82,7 @@ func Show(hx bool, td TrackerData) templ.Component {
templ_7745c5c3_Buffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"container\"><div id=\"trackerHeader\" class=\"grid mb-2\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -90,7 +90,7 @@ func Show(hx bool, td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -98,7 +98,7 @@ func Show(hx bool, td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"grid\"><div><h3>TP</h3>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -106,7 +106,7 @@ func Show(hx bool, td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><div><h3>Mana</h3>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -114,7 +114,7 @@ func Show(hx bool, td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div></div><button type=\"button\" hx-get=\"/hp-mana-tracker/reset\" hx-target=\"main\" hx-swap=\"innerHTML\">Reset</button></div><script>\n document.addEventListener(\"DOMContentLoaded\", (event) => {\n document.body.addEventListener(\"htmx:beforeSwap\", function(evt){\n if (evt.detail.xhr.status === 422){\n evt.detail.shouldSwap = true;\n evt.detail.isError = false;\n } \n });\n\n document.body.addEventListener(\"HPUpdated\", function() {\n var input = document.getElementById('damageInput');\n input.value = \"\";\n input.removeAttribute('aria-invalid');\n\n var errorMessage = document.getElementById('damageError');\n if (errorMessage) {\n errorMessage.parentNode.removeChild(errorMessage);\n }\n\n var savingthrow = document.getElementById('savingthrow');\n savingthrow.checked = false;\n });\n\n document.body.addEventListener(\"ManaUpdated\", function() {\n var input = document.getElementById('manaInput');\n input.value = \"\";\n input.removeAttribute('aria-invalid');\n\n var errorMessage = document.getElementById('manaError');\n if (errorMessage) {\n errorMessage.parentNode.removeChild(errorMessage);\n }\n })\n\n document.body.addEventListener(\"BaseUpdated\", function() {\n var errorMessage = document.getElementById('baseError');\n if (errorMessage) {\n errorMessage.parentNode.removeChild(errorMessage);\n }\n })\n })\n </script>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -147,7 +147,7 @@ func TrackerHeader(td TrackerData) templ.Component {
templ_7745c5c3_Var3 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 6)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"start\"><h2>Kampfrunde: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -160,7 +160,7 @@ func TrackerHeader(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 7)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h2></div><div id=\"trackerBars\" class=\"middle\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -168,7 +168,7 @@ func TrackerHeader(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 8)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><div class=\"text-right\"><button hx-get=\"/hp-mana-tracker/newround\" hx-target=\"#trackerHeader\" hx-swap=\"innerHTML\">Nächste Runde</button></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -192,7 +192,7 @@ func TrackerColumn(td TrackerData) templ.Component {
templ_7745c5c3_Var5 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 9)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div id=\"hpBar\" class=\"progress\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -200,7 +200,7 @@ func TrackerColumn(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 10)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><div id=\"manaBar\" class=\"progress\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -208,7 +208,7 @@ func TrackerColumn(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 11)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -232,7 +232,7 @@ func HPTracker(td TrackerData) templ.Component {
templ_7745c5c3_Var6 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 12)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<span class=\"progress-label\">TP: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -245,7 +245,7 @@ func HPTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 13)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("/")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -258,7 +258,7 @@ func HPTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 14)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -267,7 +267,7 @@ func HPTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 15)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -275,7 +275,7 @@ func HPTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 16)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -299,7 +299,7 @@ func ManaTracker(td TrackerData) templ.Component {
templ_7745c5c3_Var10 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 17)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<span class=\"progress-label\">Mana: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -312,7 +312,7 @@ func ManaTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 18)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("/")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -325,7 +325,7 @@ func ManaTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 19)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -334,7 +334,7 @@ func ManaTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 20)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -342,7 +342,7 @@ func ManaTracker(td TrackerData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 21)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -388,7 +388,7 @@ func BaseStats(td TrackerData, bd BaseData) templ.Component {
templ_7745c5c3_Var14 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 22)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<details id=\"baseStats\" open><summary>Standard Werte</summary><form class=\"grid\" hx-post=\"/hp-mana-tracker/update\" hx-target=\"#trackerBars\"><label>Trefferpunkte <input type=\"number\" placeholder=\"Trefferpunkte\" name=\"hp\" value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -396,7 +396,7 @@ func BaseStats(td TrackerData, bd BaseData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 23)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" required></label> <label>Mana <input type=\"number\" name=\"mana\" placeholder=\"Mana\" value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -404,7 +404,7 @@ func BaseStats(td TrackerData, bd BaseData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 24)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" required></label> <label>Regenerations % <input type=\"number\" name=\"manaregen\" placeholder=\"Regenerations %\" value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -412,12 +412,12 @@ func BaseStats(td TrackerData, bd BaseData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 25)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" required></label><div class=\"lbl-offset\"><button type=\"submit\">Go</button></div></form>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if bd.Errors != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 26)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<small id=\"baseError\" class=\"error-helper\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -430,12 +430,12 @@ func BaseStats(td TrackerData, bd BaseData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 27)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</small>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 28)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</details>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -459,17 +459,17 @@ func Hp(dd DamageData) templ.Component {
templ_7745c5c3_Var16 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 29)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form id=\"damageInputs\" hx-post=\"/hp-mana-tracker/damage\" hx-target=\"#hpBar\"><fieldset role=\"group\"><button class=\"secondary\" name=\"damage\" value=\"true\">-</button> <input id=\"damageInput\" name=\"damageInput\" type=\"number\" placeholder=\"Schaden/Heilung\" required")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if dd.Errors != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 30)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" aria-invalid=\"true\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 31)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -477,12 +477,12 @@ func Hp(dd DamageData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 32)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <button class=\"secondary\" name=\"heal\" value=\"true\">+</button></fieldset>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if dd.Errors != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 33)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<small id=\"damageError\" class=\"error-helper\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -495,22 +495,22 @@ func Hp(dd DamageData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 34)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</small>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 35)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<fieldset><label for=\"savingthrow\"><input id=\"savingthrow\" name=\"savingthrow\" type=\"checkbox\" role=\"switch\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if dd.SavingThrow != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 36)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" checked")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 37)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("> Verteidigungswurf</label></fieldset></form>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -534,17 +534,17 @@ func Mana(md ManaData) templ.Component {
templ_7745c5c3_Var18 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 38)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form id=\"manaInputs\" hx-post=\"/hp-mana-tracker/mana\" hx-target=\"#manaBar\"><fieldset role=\"group\"><button class=\"secondary\" name=\"use\" value=\"true\">-</button> <input id=\"manaInput\" name=\"manaInput\" type=\"number\" placeholder=\"Mana\" required")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if md.Errors != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 39)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" aria-invalid=\"true\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 40)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" value=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -552,12 +552,12 @@ func Mana(md ManaData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 41)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"> <button class=\"secondary\" name=\"add\" value=\"true\">+</button></fieldset>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if md.Errors != "" {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 42)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<small id=\"manaError\" class=\"error-helper\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -570,12 +570,12 @@ func Mana(md ManaData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 43)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</small>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 44)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</form>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -24,7 +24,7 @@ func Base(hx bool) templ.Component {
}
ctx = templ.ClearChildren(ctx)
if hx == false {
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html> <html lang=\"en\" data-theme=\"light\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link rel=\"stylesheet\" href=\"/tallytome.css\"><script src=\"/scripts/htmx.js\"></script><title>Tallytome</title></head><body><header>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -32,7 +32,7 @@ func Base(hx bool) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</header><main>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -40,7 +40,7 @@ func Base(hx bool) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</main></body></html>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -23,7 +23,7 @@ func footer() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>Feet</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -23,7 +23,7 @@ func header() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<nav class=\"container\"><ul class=\"brand\"><li><a class=\"\" href=\"https://itsigo.de\"><img href=\"/\" src=\"/tally-logo-no-bg.png\" height=\"50\"></a></li></ul><ul hx-target=\"main\"><li><a class=\"contrast\" hx-get=\"/\" hx-push-url=\"true\">Home</a></li><li><a class=\"contrast\" hx-get=\"/hp-mana-tracker\" hx-push-url=\"true\">TM-Tracker</a></li></ul></nav>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}