mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 07:32:19 +00:00
Add favicon (#839)
* Add favicon * Fix the node version * Update bindata.go
This commit is contained in:
parent
02484d18b0
commit
3f60d01592
2
Makefile
2
Makefile
@ -60,7 +60,7 @@ assets:
|
||||
-@$(GO) get -u github.com/jteeuwen/go-bindata/...
|
||||
# Using "-mode 420" and "-modtime 1" to make assets make target deterministic.
|
||||
# It sets all file permissions and time stamps to 420 and 1
|
||||
@go-bindata $(bindata_flags) -mode 420 -modtime 1 -pkg ui -o ui/bindata.go ui/app/index.html ui/app/script.js
|
||||
@go-bindata $(bindata_flags) -mode 420 -modtime 1 -pkg ui -o ui/bindata.go ui/app/index.html ui/app/script.js ui/app/favicon.ico
|
||||
@go-bindata $(bindata_flags) -mode 420 -modtime 1 -pkg deftmpl -o template/internal/deftmpl/bindata.go template/default.tmpl
|
||||
|
||||
promu:
|
||||
|
@ -1,3 +1,3 @@
|
||||
FROM node:latest
|
||||
FROM node:6.10
|
||||
|
||||
RUN npm install -g elm@0.18.0 elm-format@0.6.1-alpha elm-test@0.18.3
|
||||
|
BIN
ui/app/favicon.ico
Normal file
BIN
ui/app/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
File diff suppressed because one or more lines are too long
@ -58,6 +58,10 @@ func Register(r *route.Router, reloadCh chan<- struct{}) {
|
||||
serveAsset(w, req, "ui/app/script.js")
|
||||
}))
|
||||
|
||||
r.Get("/favicon.ico", ihf("app", func(w http.ResponseWriter, req *http.Request) {
|
||||
serveAsset(w, req, "ui/app/favicon.ico")
|
||||
}))
|
||||
|
||||
r.Post("/-/reload", func(w http.ResponseWriter, req *http.Request) {
|
||||
w.Write([]byte("Reloading configuration file..."))
|
||||
reloadCh <- struct{}{}
|
||||
|
Loading…
Reference in New Issue
Block a user