prometheus/web/ui
Julius Volz dff78eb508
Switch from Reach Router to React Router (#9273)
We want to upgrade to React 17, but Reach Router does not work with React 17:
https://github.com/reach/router/issues/429

Also, the Reach + React Router projects announced an intention to join forces
and just continue as React Router:
https://reacttraining.com/blog/reach-react-router-future/

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-08-30 14:05:49 +02:00
..
module add lezer-promql module (#9229) 2021-08-29 15:16:25 +02:00
react-app Switch from Reach Router to React Router (#9273) 2021-08-30 14:05:49 +02:00
static Add option for the number of ticks in PromConsole.Graph (#9223) 2021-08-20 08:24:31 +02:00
templates Fix JS/CSS asset paths for classic /config page (#9202) 2021-08-13 18:10:31 +02:00
assets_generate.go Add new Go build tags. 2021-08-27 10:24:14 +02:00
doc.go Remove inline Go vendor dir 2021-02-11 11:53:22 +01:00
README.md Update more web/ui/README.md bits for new UI (#6197) 2019-10-25 10:19:21 +02:00
ui.go Add new Go build tags. 2021-08-27 10:24:14 +02:00

The ui directory contains static files and templates used in the web UI. For easier distribution they are statically compiled into the Prometheus binary using the vfsgen library (c.f. Makefile).

During development it is more convenient to always use the files on disk to directly see changes without recompiling. To make this work, remove the builtinassets build tag in the flags entry in .promu.yml, and then make build (or build Prometheus using go build ./cmd/prometheus).

This will serve all files from your local filesystem. This is for development purposes only.