Skip to content

Commit

Permalink
bump templ and fix vcllogtree log records
Browse files Browse the repository at this point in the history
  • Loading branch information
aorith committed Jan 3, 2025
1 parent 6748b14 commit e1e98a3
Show file tree
Hide file tree
Showing 17 changed files with 137 additions and 121 deletions.
5 changes: 5 additions & 0 deletions assets/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,11 @@ table.headers-table tbody tr.hdr-type th abbr {
font-size: var(--code-font-size);
}

.logMsg {
color: var(--fg-1);
font-style: italic;
}

.s2xx,
.s3xx,
.s4xx,
Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module github.com/aorith/varnishlog-parser

go 1.22.7
go 1.23

toolchain go1.23.4

require (
github.com/a-h/templ v0.2.793
github.com/a-h/templ v0.3.819
github.com/go-echarts/go-echarts/v2 v2.4.6
github.com/spf13/cobra v1.8.1
)
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/a-h/templ v0.2.793 h1:Io+/ocnfGWYO4VHdR0zBbf39PQlnzVCVVD+wEEs6/qY=
github.com/a-h/templ v0.2.793/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w=
github.com/a-h/templ v0.3.819 h1:KDJ5jTFN15FyJnmSmo2gNirIqt7hfvBD2VXVDTySckM=
github.com/a-h/templ v0.3.819/go.mod h1:iDJKJktpttVKdWoTkRNNLcllRI+BlpopJc+8au3gOUo=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
2 changes: 1 addition & 1 deletion pkg/render/vcltree.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func renderTxTree(s *rowBuilder, tx *vsl.Transaction, visited map[string]bool, c
case vsl.LengthRecord:
s.addRow(r.Tag(), "", record.Size().String(), "")
case vsl.VCLLogRecord:
s.addRow(r.Tag(), "", record.Key()+": "+record.Value(), "")
s.addRow(r.Tag(), "", record.String(), "logMsg")
case vsl.StatusRecord:
s.addRow(r.Tag(), "", r.Value(), statusCSSClass(record.Status()))

Expand Down
8 changes: 4 additions & 4 deletions pkg/server/templates/content/tab_error_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 27 additions & 27 deletions pkg/server/templates/content/tab_headers_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions pkg/server/templates/content/tab_overview_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e1e98a3

Please sign in to comment.