From 0a775b78b7029644e7381b356a47d8caaf7b6a54 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:28:51 -0500 Subject: [PATCH] fact: use foundation --- plugins/emojy/upload_templ.go | 2 +- plugins/fact/fact.templ | 39 +++++++++++++++++++---------------- plugins/fact/fact_templ.go | 20 +++++++++--------- 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/plugins/emojy/upload_templ.go b/plugins/emojy/upload_templ.go index de98377..bf337d0 100644 --- a/plugins/emojy/upload_templ.go +++ b/plugins/emojy/upload_templ.go @@ -31,7 +31,7 @@ func (p *EmojyPlugin) uploadIndex() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/plugins/fact/fact.templ b/plugins/fact/fact.templ index 8becc55..4ddcd53 100644 --- a/plugins/fact/fact.templ +++ b/plugins/fact/fact.templ @@ -3,26 +3,29 @@ package fact import "fmt" templ (p *FactoidPlugin) factIndex() { -
+
+
+
+

Factoid

+
+
-
-
+
+
-
- +
+
-
+
} @@ -30,11 +33,11 @@ templ (p *FactoidPlugin) factIndex() { templ (p *FactoidPlugin) searchResults(facts []*Factoid) { - - - - - + + + + + @@ -46,10 +49,10 @@ templ (p *FactoidPlugin) searchResults(facts []*Factoid) { } templ (p *FactoidPlugin) searchResult(fact *Factoid) { - - - - - + + + + + } \ No newline at end of file diff --git a/plugins/fact/fact_templ.go b/plugins/fact/fact_templ.go index f469454..494d945 100644 --- a/plugins/fact/fact_templ.go +++ b/plugins/fact/fact_templ.go @@ -25,7 +25,7 @@ func (p *FactoidPlugin) factIndex() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Fact

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -49,7 +49,7 @@ func (p *FactoidPlugin) searchResults(facts []*Factoid) templ.Component { templ_7745c5c3_Var2 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
FactTidbitOwnerCount
FactTidbitOwnerCount
{ fact.Fact }{ fact.Tidbit }{ fact.Owner }{ fmt.Sprint(fact.Count) }
{ fact.Fact }{ fact.Tidbit }{ fact.Owner }{ fmt.Sprint(fact.Count) }
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
FactTidbitOwnerCount
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -83,53 +83,53 @@ func (p *FactoidPlugin) searchResult(fact *Factoid) templ.Component { templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
FactTidbitOwnerCount
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(fact.Fact) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 49, Col: 37} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 52, Col: 23} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(fact.Tidbit) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 50, Col: 39} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 53, Col: 25} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(fact.Owner) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 51, Col: 38} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 54, Col: 24} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprint(fact.Count)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 52, Col: 50} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `plugins/fact/fact.templ`, Line: 55, Col: 36} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil {