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) | |||
| 36 | 36 | CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH) | |
| 37 | 37 | @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)" | |
| 38 | 38 | ||
| 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)..." | |
| 41 | 41 | @cd webui && npm install --silent && npm run build | |
| 42 | 42 | @echo "Frontend build complete" | |
| 43 | 43 | ||
| @@ -108,7 +108,7 @@ clean: ## Clean build artifacts | |||
| 108 | 108 | rm -rf $(DIST_DIR) | |
| 109 | 109 | rm -f $(BINARY_NAME) | |
| 110 | 110 | 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 | |
| 112 | 112 | rm -f coverage.out coverage.html | |
| 113 | 113 | go clean -cache | |
| 114 | 114 | 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 pages | 39 | + | 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 build | 41 | @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_modules | 110 | 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 |
| 112 | rm -f coverage.out coverage.html | 112 | rm -f coverage.out coverage.html | ||
| 113 | go clean -cache | 113 | go clean -cache | ||
| 114 | go clean -testcache | 114 | go clean -testcache | ||
M assets/webui_embed.go +2 -2
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | _ "embed" | |
| 6 | 6 | ) | |
| 7 | 7 | ||
| 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. | |
| 10 | 10 | // | |
| 11 | 11 | //go:embed webui/* | |
| 12 | 12 | 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.FS | 12 | var WebUIAssets embed.FS | ||