detached eb2b6f9

chore(build): update makefile and embed comments to reflect error/config pages

commit
eb2b6f97c7862691f017e8171709f1fcf97bc70c
author
bnema · · 2025-12-21 13:53 UTC
parent
6563395
signature
unsigned
2 files · +5 -5
M Makefile +3 -3
@@ -36,8 +36,8 @@ build: build-frontend ## Build the application (pure Go, no CGO)
3636 CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
3737 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
3838
39-build-frontend: ## Build homepage and blocked pages
40- @echo "Building webui pages (homepage + blocked)..."
39+build-frontend: ## Build homepage and error pages
40+ @echo "Building webui pages (homepage + error)..."
4141 @cd webui && npm install --silent && npm run build
4242 @echo "Frontend build complete"
4343
@@ -108,7 +108,7 @@ clean: ## Clean build artifacts
108108 rm -rf $(DIST_DIR)
109109 rm -f $(BINARY_NAME)
110110 rm -rf webui/dist webui/node_modules
111- rm -f assets/webui/homepage.min.js assets/webui/blocked.min.js assets/webui/index.html assets/webui/blocked.html assets/webui/style.css
111+ rm -f assets/webui/homepage.min.js assets/webui/error.min.js assets/webui/config.min.js assets/webui/index.html assets/webui/error.html assets/webui/config.html assets/webui/style.css
112112 rm -f coverage.out coverage.html
113113 go clean -cache
114114 go clean -testcache
@@ -36,8 +36,8 @@ build: build-frontend ## Build the application (pure Go, no CGO)
36 CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)36 CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
37 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"37 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
38 38
39-build-frontend: ## Build homepage and blocked pages39+build-frontend: ## Build homepage and error pages
40- @echo "Building webui pages (homepage + blocked)..."40+ @echo "Building webui pages (homepage + error)..."
41 @cd webui && npm install --silent && npm run build41 @cd webui && npm install --silent && npm run build
42 @echo "Frontend build complete"42 @echo "Frontend build complete"
43 43
@@ -108,7 +108,7 @@ clean: ## Clean build artifacts
108 rm -rf $(DIST_DIR)108 rm -rf $(DIST_DIR)
109 rm -f $(BINARY_NAME)109 rm -f $(BINARY_NAME)
110 rm -rf webui/dist webui/node_modules110 rm -rf webui/dist webui/node_modules
111- rm -f assets/webui/homepage.min.js assets/webui/blocked.min.js assets/webui/index.html assets/webui/blocked.html assets/webui/style.css111+ rm -f assets/webui/homepage.min.js assets/webui/error.min.js assets/webui/config.min.js assets/webui/index.html assets/webui/error.html assets/webui/config.html assets/webui/style.css
112 rm -f coverage.out coverage.html112 rm -f coverage.out coverage.html
113 go clean -cache113 go clean -cache
114 go clean -testcache114 go clean -testcache
M assets/webui_embed.go +2 -2
@@ -5,8 +5,8 @@ import (
55 _ "embed"
66 )
77
8-// WebUIAssets contains the embedded webui build output (homepage and blocked pages).
9-// Used by the scheme handler to serve dumb://home and dumb://blocked.
8+// WebUIAssets contains the embedded webui build output (homepage, error, and config pages).
9+// Used by the scheme handler to serve dumb://home, dumb://error, and dumb://config.
1010 //
1111 //go:embed webui/*
1212 var WebUIAssets embed.FS
@@ -5,8 +5,8 @@ import (
5 _ "embed"5 _ "embed"
6 )6 )
7 7
8-// WebUIAssets contains the embedded webui build output (homepage and blocked pages).8+// WebUIAssets contains the embedded webui build output (homepage, error, and config pages).
9-// Used by the scheme handler to serve dumb://home and dumb://blocked.9+// Used by the scheme handler to serve dumb://home, dumb://error, and dumb://config.
10 //10 //
11 //go:embed webui/*11 //go:embed webui/*
12 var WebUIAssets embed.FS12 var WebUIAssets embed.FS

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close