diff --git a/flake.lock b/flake.lock index 6e136355501a7bd20ed340e161b8a9c3bb6f2232..eccc824d5034aa76ec5866d590642faa2328afa9 100644 --- a/flake.lock +++ b/flake.lock @@ -41,11 +41,11 @@ } }, "nixpkgs": { "locked": { - "lastModified": 1719379843, + "lastModified": 1704161960, - "narHash": "sha256-u+D+IOAMMl70+CJ9NKB+RMrASjInuIWMHzjLWQjPZ6c=", + "narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b3f3c1b13fb08f3828442ee86630362e81136bbc", + "rev": "63143ac2c9186be6d9da6035fa22620018c85932", "type": "github" }, "original": { diff --git a/internal/html/base_templ.go b/internal/html/base_templ.go index 0b87e44d4764b49ce838f55d7aeb9709ff78c75b..b107255de7763dbd8c9f95f4491a2d389c07e5c4 100644 --- a/internal/html/base_templ.go +++ b/internal/html/base_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.707 +// templ: version: v0.2.501 package html //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -35,7 +35,7 @@ } var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(bc.Title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 14, Col: 20} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `base.templ`, Line: 13, Col: 20} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -45,33 +45,32 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
-import "github.com/a-h/templ"
+// Code generated by templ - DO NOT EDIT.
import "io"
- templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(rcc.Commit.Signature)
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var12)
if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+import "github.com/a-h/templ"
import "context"
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
}
+ var templ_7745c5c3_Var13 string
+ templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(rcc.Commit.Signature)
+ if templ_7745c5c3_Err != nil {
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 20, Col: 65}
+import "github.com/a-h/templ"
import "context"
// Code generated by templ - DO NOT EDIT.
+ templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("<%s>", rcc.Commit.Email))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -153,23 +195,23 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var10 string
+ var templ_7745c5c3_Var14 string
+func RepoCommit(rcc RepoCommitContext) templ.Component {
import "context"
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 25, Col: 27}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 24, Col: 27}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var11 string
+ var templ_7745c5c3_Var15 string
-import "context"
+func RepoCommit(rcc RepoCommitContext) templ.Component {
import "bytes"
if templ_7745c5c3_Err != nil {
-import "io"
+ return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -177,8 +219,8 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var13 string
+ var templ_7745c5c3_Var17 string
- templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("<%s>", rcc.Commit.Email))
+ templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("<%s>", rcc.Commit.Email))
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 25, Col: 223}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 24, Col: 223}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -199,13 +241,9 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+// Code generated by templ - DO NOT EDIT.
import "bytes"
-package html
+import "io"
+// Code generated by templ - DO NOT EDIT.
import "bytes"
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+import "bytes"
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 26, Col: 99}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 25, Col: 99}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -228,14 +268,15 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var16 string
+ var templ_7745c5c3_Var19 string
-import "fmt"
+
+// templ: version: v0.2.707
if templ_7745c5c3_Err != nil {
-// Code generated by templ - DO NOT EDIT.
+
-// Code generated by templ - DO NOT EDIT.
+package html
}
-// Code generated by templ - DO NOT EDIT.
+
-
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -248,28 +289,24 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
-import "github.com/dustin/go-humanize"
+
+import "context"
- templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(string(file.Action[0]))
+ templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(string(file.Action[0]))
if templ_7745c5c3_Err != nil {
-import "github.com/dustin/go-humanize"
+import "bytes"
}
+
// Code generated by templ - DO NOT EDIT.
-type RepoCommitContext struct {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -277,17 +313,19 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+
import "github.com/dustin/go-humanize"
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+
// Code generated by templ - DO NOT EDIT.
- Commit git.Commit
+
if templ_7745c5c3_Err != nil {
-// Code generated by templ - DO NOT EDIT.
+
// Code generated by templ - DO NOT EDIT.
-import "context"
+// templ: version: v0.2.707
}
+
// Code generated by templ - DO NOT EDIT.
-func RepoCommit(rcc RepoCommitContext) templ.Component {
+package html
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -300,11 +338,11 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+
// Code generated by templ - DO NOT EDIT.
- templ_7745c5c3_Var1 = templ.NopComponent
+import "context"
-// Code generated by templ - DO NOT EDIT.
-import "bytes"
+func RepoCommit(rcc RepoCommitContext) templ.Component {
if templ_7745c5c3_Err != nil {
+
// Code generated by templ - DO NOT EDIT.
- templ_7745c5c3_Var2 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
+import "bytes"
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
// Code generated by templ - DO NOT EDIT.
- if !templ_7745c5c3_IsBuffer {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
if file.From.Path != "" && file.To.Path != "" {
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
package html
+
- templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(" -> ")
-// Code generated by templ - DO NOT EDIT.
templ_7745c5c3_Buffer = templ.GetBuffer()
// Code generated by templ - DO NOT EDIT.
- templ_7745c5c3_Err = repoHeaderComponent(rcc.RepoHeaderComponentContext).Render(ctx, templ_7745c5c3_Buffer)
import "go.jolheiser.com/ugit/internal/git"
-package html
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
+
-// Code generated by templ - DO NOT EDIT.
templ_7745c5c3_Buffer = templ.GetBuffer()
-// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
}
// Code generated by templ - DO NOT EDIT.
- return templ_7745c5c3_Err
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 16, Col: 229}
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -360,10 +393,9 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- BaseContext
+
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
- templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(file.To.Path)
+ templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinStringErrs(file.To.Path)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 40, Col: 221}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_commit.templ`, Line: 39, Col: 221}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/internal/html/repo_file.templ b/internal/html/repo_file.templ
index e31026280cd03dd8e5c864f63de3c00ec997885a..e4381fb9bf72f85ca22551ba96fd26162f2543a0 100644
--- a/internal/html/repo_file.templ
+++ b/internal/html/repo_file.templ
@@ -1,23 +1,21 @@
package html
type RepoFileContext struct {
- BaseContext
+ BaseContext
RepoHeaderComponentContext
RepoBreadcrumbComponentContext
+type RepoFileContext struct {
- Code string
+ Path string
}
templ RepoFile(rfc RepoFileContext) {
@base(rfc.BaseContext) {
@repoHeaderComponent(rfc.RepoHeaderComponentContext)
- @repoBreadcrumbComponent(rfc.RepoBreadcrumbComponentContext)
- { " - " }
+ { rfc.Path }{ " - " }
raw
-package html
RepoBreadcrumbComponentContext
- @templ.Raw(rfc.Code)
-
+ RepoBreadcrumbComponentContext
}
}
+
diff --git a/internal/html/repo_file_templ.go b/internal/html/repo_file_templ.go
index 4961bacf5b64ddfdf7bbdb6bc1573620dafacffb..88dbeae0330d101bf8f595c9c87a8ea5d9b6e44e 100644
--- a/internal/html/repo_file_templ.go
+++ b/internal/html/repo_file_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
+// templ: version: v0.2.501
package html
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -14,9 +14,8 @@ type RepoFileContext struct {
BaseContext
RepoHeaderComponentContext
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
-// Code generated by templ - DO NOT EDIT.
package html
+ Path string
}
func RepoFile(rfc RepoFileContext) templ.Component {
@@ -42,30 +41,47 @@ templ_7745c5c3_Err = repoHeaderComponent(rfc.RepoHeaderComponentContext).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
-// templ: version: v0.2.707
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "context"
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
// templ: version: v0.2.707
+import "bytes"
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "io"
if templ_7745c5c3_Err != nil {
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_file.templ`, Line: 13, Col: 19}
// templ: version: v0.2.707
-import "github.com/a-h/templ"
+// templ: version: v0.2.707
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
// templ: version: v0.2.707
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
// templ: version: v0.2.707
+import "github.com/a-h/templ"
// templ: version: v0.2.707
-import "bytes"
+// templ: version: v0.2.707
-package html
+import "github.com/a-h/templ"
+ templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(" - ")
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_file.templ`, Line: 15, Col: 10}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_file.templ`, Line: 13, Col: 28}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+import "github.com/a-h/templ"
package html
// templ: version: v0.2.707
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
+ return templ_7745c5c3_Err
+ }
+ templ_7745c5c3_Var5 := `raw`
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var5)
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -86,8 +101,68 @@ templ_7745c5c3_Err = base(rfc.BaseContext).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/internal/html/repo_log_templ.go b/internal/html/repo_log_templ.go
index 849921182d97d92a86e61d4977af41a2faa6c31b..10536ea61e6fa0c7f9f0a3ebb8fa92059d9597a0 100644
--- a/internal/html/repo_log_templ.go
+++ b/internal/html/repo_log_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
+// templ: version: v0.2.501
package html
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -64,7 +64,8 @@ }
var templ_7745c5c3_Var4 string
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(commit.Short())
if templ_7745c5c3_Err != nil {
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+// Code generated by templ - DO NOT EDIT.
+import "bytes"
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
@@ -82,7 +83,7 @@ }
var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(commit.Summary())
if templ_7745c5c3_Err != nil {
-import "github.com/a-h/templ"
+import "github.com/dustin/go-humanize"
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil {
@@ -95,7 +96,7 @@ }
var templ_7745c5c3_Var6 string
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(commit.Details())
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 24, Col: 59}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 23, Col: 59}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
if templ_7745c5c3_Err != nil {
@@ -109,8 +110,9 @@ } else {
var templ_7745c5c3_Var7 string
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(commit.Message)
if templ_7745c5c3_Err != nil {
-import "context"
+// Code generated by templ - DO NOT EDIT.
// Code generated by templ - DO NOT EDIT.
+
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
if templ_7745c5c3_Err != nil {
@@ -124,7 +126,7 @@ }
var templ_7745c5c3_Var8 string
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(commit.Author)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 32, Col: 25}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 31, Col: 25}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
if templ_7745c5c3_Err != nil {
@@ -133,7 +135,7 @@ }
var templ_7745c5c3_Var9 string
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(" ")
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 32, Col: 32}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 31, Col: 32}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
if templ_7745c5c3_Err != nil {
@@ -155,7 +157,7 @@ }
var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("<%s>", commit.Email))
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 32, Col: 213}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_log.templ`, Line: 31, Col: 213}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
if templ_7745c5c3_Err != nil {
@@ -165,13 +167,8 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" 0 {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+package html
package html
// Code generated by templ - DO NOT EDIT.
+type RepoRefsContext struct {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var3)
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -58,13 +67,15 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+import "go.jolheiser.com/ugit/internal/git"
//lint:file-ignore SA4006 This context is only used if a nested component is present.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+// Code generated by templ - DO NOT EDIT.
// Code generated by templ - DO NOT EDIT.
+import "github.com/a-h/templ"
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 20, Col: 61}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 19, Col: 61}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -71,40 +83,62 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+package html
import "context"
package html
+import "io"
+ }
+ templ_7745c5c3_Var6 := `tree`
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var6)
+package html
import "context"
return templ_7745c5c3_Err
}
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+ if templ_7745c5c3_Err != nil {
+package html
import "io"
+ }
+ var templ_7745c5c3_Var7 string
+type RepoRefsContext struct {
//lint:file-ignore SA4006 This context is only used if a nested component is present.
+ if templ_7745c5c3_Err != nil {
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 20, Col: 234}
+package html
import "bytes"
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 21, Col: 234}
+ return templ_7745c5c3_Err
}
import "github.com/a-h/templ"
+
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
// Code generated by templ - DO NOT EDIT.
+ if templ_7745c5c3_Var1 == nil {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var8)))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
-import "github.com/a-h/templ"
+// Code generated by templ - DO NOT EDIT.
+// Code generated by templ - DO NOT EDIT.
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var6 templ.SafeURL = templ.SafeURL(fmt.Sprintf("/%s/log/%s", rrc.RepoHeaderComponentContext.Name, branch))
+ templ_7745c5c3_Var9 := `log`
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var6)))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var9)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">log")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -119,7 +153,16 @@ if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if len(rrc.Tags) > 0 {
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Tags
")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ templ_7745c5c3_Var10 := `Tags`
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var10)
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -128,15 +171,16 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
-import "context"
// Code generated by templ - DO NOT EDIT.
+ defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
- templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(tag.Name)
+ templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(tag.Name)
if templ_7745c5c3_Err != nil {
-import "context"
+// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.707
+import "github.com/a-h/templ"
}
+ BaseContext
import "context"
-package html
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -144,58 +188,94 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">tree")
+ templ_7745c5c3_Var13 := `tree`
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var13)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+package html
import "context"
+package html
import "io"
+ }
+ var templ_7745c5c3_Var14 string
+ templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(" ")
+package html
import "context"
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 29, Col: 222}
+package html
import "bytes"
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
if templ_7745c5c3_Err != nil {
+package html
import "io"
}
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+// Code generated by templ - DO NOT EDIT.
if templ_7745c5c3_Err != nil {
package html
+import "context"
+package html
import "io"
}
-import "github.com/a-h/templ"
+// Code generated by templ - DO NOT EDIT.
+// Code generated by templ - DO NOT EDIT.
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+ RepoHeaderComponentContext
import "io"
-
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var10)))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var16)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">log")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if tag.Signature != "" {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
import "io"
+import "github.com/a-h/templ"
+ return templ_7745c5c3_Err
+ }
+// Code generated by templ - DO NOT EDIT.
//lint:file-ignore SA4006 This context is only used if a nested component is present.
+// Code generated by templ - DO NOT EDIT.
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var17)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
import "io"
-import "bytes"
+import "github.com/a-h/templ"
- templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(tag.Signature)
+ return templ_7745c5c3_Err
+ }
+ var templ_7745c5c3_Var18 string
+ templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(tag.Signature)
if templ_7745c5c3_Err != nil {
-import "bytes"
// Code generated by templ - DO NOT EDIT.
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(string(templ_7745c5c3_Var4)))
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -212,13 +293,14 @@ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- var templ_7745c5c3_Var12 string
+ var templ_7745c5c3_Var19 string
+ Branches []string
import "bytes"
-import "io"
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 35, Col: 51}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `repo_refs.templ`, Line: 34, Col: 51}
}
// Code generated by templ - DO NOT EDIT.
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/internal/html/repo_search_templ.go b/internal/html/repo_search_templ.go
index 159e001eafb423bfd3e5965bb942f5e7457a1617..3e5ccf2d643ae81c51cdd8b4dea85a81629d032f 100644
--- a/internal/html/repo_search_templ.go
+++ b/internal/html/repo_search_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.707
+// templ: version: v0.2.501
package html
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -64,6 +64,11 @@ if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
//lint:file-ignore SA4006 This context is only used if a nested component is present.
+import "bytes"
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
package html
templ_7745c5c3_Err = repoSearchResult(sc.RepoHeaderComponentContext.Name, sc.RepoHeaderComponentContext.Ref, results).Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
@@ -75,8 +80,18 @@ if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if len(sc.DedupeResults()) == 0 {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("")
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
+ return templ_7745c5c3_Err
+ }
// Code generated by templ - DO NOT EDIT.
+import "io"
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var3)
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -90,7 +105,20 @@ templ_7745c5c3_Err = base(sc.BaseContext).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("