Skip to content

Commit 8efd88e

Browse files
authored
Merge pull request #39 from aorith/feat/ui-refactor
feat!: big refactor - overall refactor of the frontend - fixed reqbuild edge cases - reqbuild can exclude headers - sequence diagram is generated using github.com/aorith/svg-sequence - timelines generated using https://github.com/aorith/svg-timeline - improved vcl log tree formatting - headers are now "correctly" classified as received or processed - implemented local log history of previous parsings - added log examples parsable with a single click - dropped dark mode :(
2 parents 64037d8 + e3a11e7 commit 8efd88e

File tree

114 files changed

+6211
-5073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+6211
-5073
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
varnishlog-parser
2+
13
# If you prefer the allow list template instead of the deny list, see community template:
24
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
35
#

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ before:
66
builds:
77
- env:
88
- CGO_ENABLED=0
9+
main: ./cmd/server
910
goos:
1011
- linux
1112
- darwin
1213
ldflags:
13-
- -X github.com/aorith/varnishlog-parser/cmd.Version={{.Version}}
14+
- -X main.version={{.Version}}
1415
archives:
1516
- format: tar.gz
1617
id: varnishlog_parser

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
ARG VERSION=dev
66
RUN --mount=type=bind,target=. go mod download \
7-
&& CGO_ENABLED=0 go build -ldflags="-X github.com/aorith/varnishlog-parser/cmd.Version=${VERSION}" -o /varnishlog-parser
7+
&& CGO_ENABLED=0 go build -ldflags="-X main.version=${VERSION}" -o /varnishlog-parser cmd/server/varnishlog-parser.go
88

99
FROM scratch
1010

@@ -13,4 +13,4 @@ COPY --from=builder /varnishlog-parser /
1313
USER 65534:65534
1414

1515
ENTRYPOINT ["/varnishlog-parser"]
16-
CMD ["server"]
16+
CMD [""]

Makefile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
watch:
2-
@templ generate -watch -cmd "go run . server --port=8080"
1+
SHELL := bash
32

3+
.PHONY: run
4+
run:
5+
go run ./cmd/server --port=8080
6+
7+
.PHONY: test
48
test:
59
@go test -v -timeout=5s -vet=all -count=1 ./...
610

7-
update_templ:
8-
@go install github.com/a-h/templ/cmd/templ@latest
9-
@go get -u github.com/a-h/templ
11+
.PHONY: fmt
12+
fmt:
13+
@goimports -local $(shell go list -m) -w .
14+
@gofumpt -l -w .
1015

11-
PHONY: watch test update_templ
16+
.PHONY: ensure-spdx
17+
ensure-spdx:
18+
find . -type f -name "*.go" -exec sh -c 'head -1 {} | grep -q SPDX || echo "Missing SPDX on file {}"' \;

0 commit comments

Comments
 (0)