Add favicon (#839)

* Add favicon

* Fix the node version

* Update bindata.go
This commit is contained in:
Andrey Kuzmin 2017-06-01 10:13:20 +02:00 committed by GitHub
parent 02484d18b0
commit 3f60d01592
5 changed files with 29 additions and 2 deletions

View File

@ -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:

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

View File

@ -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{}{}