diff --git a/Makefile b/Makefile index 6b2525056..2b088ab09 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Pulse Makefile for development -.PHONY: build run dev frontend backend all clean +.PHONY: build run dev frontend backend all clean dev-hot # Build everything all: frontend backend @@ -32,6 +32,9 @@ run: build dev: frontend backend sudo systemctl restart pulse-backend +dev-hot: + ./scripts/dev-hot.sh + # Clean build artifacts clean: rm -f pulse @@ -39,4 +42,4 @@ clean: # Quick rebuild and restart for development restart: frontend backend - sudo systemctl restart pulse-backend \ No newline at end of file + sudo systemctl restart pulse-backend diff --git a/README.md b/README.md index 1abad8ff7..537cdfa2e 100644 --- a/README.md +++ b/README.md @@ -504,12 +504,14 @@ journalctl -u pulse -f ### Quick Start - Hot Reload (Recommended) ```bash -# Best development experience with instant frontend updates -./scripts/hot-dev.sh -# Frontend: http://localhost:5173 (hot reload) -# Backend: http://localhost:7655 +# Launch Vite + Go with automatic frontend proxying +make dev-hot +# Frontend HMR: http://127.0.0.1:5173 +# Backend API: http://127.0.0.1:7655 (served via the Go app) ``` +The backend now detects `FRONTEND_DEV_SERVER` and proxies requests straight to the Vite dev server. Edit files under `frontend-modern/src/` and the browser refreshes instantly—no manual rebuilds or service restarts required. Use `CTRL+C` to stop both processes. + ### Production-like Development ```bash # Watches files and rebuilds/embeds frontend into Go binary @@ -565,4 +567,4 @@ See Pulse in action with our [complete screenshot gallery →](docs/SCREENSHOTS. ## License -MIT - See [LICENSE](LICENSE) \ No newline at end of file +MIT - See [LICENSE](LICENSE) diff --git a/docs/frontend-style-guide.md b/docs/frontend-style-guide.md new file mode 100644 index 000000000..ff585105b --- /dev/null +++ b/docs/frontend-style-guide.md @@ -0,0 +1,82 @@ +# Frontend UI Style Guide + +This project now ships a handful of shared primitives to keep typography and form layouts consistent. The snippets below show the preferred usage. + +## Section headers + +Use `SectionHeader` for any inline card titles, modal headings, or sub-section titles instead of ad-hoc `
+ Use HTTPS on port 8006 for Proxmox VE and 8007 for PBS. +
+- Custom rules apply specific thresholds to guests matching filter conditions. - Rules are evaluated in priority order (higher number = higher priority). -
-- No custom alert rules defined yet. Create rules from the Dashboard by applying filters and clicking "Create Alert". -
-