Skip to content

Commit

Permalink
bump(mod/dashboard): rebuild the dashboard for the latest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Philips committed Feb 7, 2014
1 parent b4d5534 commit 102d8e5
Show file tree
Hide file tree
Showing 15 changed files with 169 additions and 405 deletions.
11 changes: 6 additions & 5 deletions mod/dashboard/build
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ npm install
bower install
grunt build

export GOPATH="${DIR}/../../"
go get github.com/jteeuwen/go-bindata/...

for i in `find dist -type f`; do
file=$(echo $i | sed 's#dist/##g' | sed 's#/#-#g')
go build github.com/jteeuwen/go-bindata
./go-bindata -nomemcopy -pkg "resources" -toc -out resources/$file.go -prefix dist $i
dirs=
for i in `find dist -type d`; do
dirs="${dirs} ${i}"
done

${GOPATH}/bin/go-bindata -nomemcopy -pkg "resources" -o resources/resources.go -prefix dist ${dirs}
4 changes: 2 additions & 2 deletions mod/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func memoryFileServer(w http.ResponseWriter, req *http.Request) {
file = file + ".html"
}
upath = path.Join(dir, file)
b, ok := resources.File("/" + upath)
b, err := resources.Asset(upath)

if ok == false {
if err != nil {
http.Error(w, upath+": File not found", http.StatusNotFound)
return
}
Expand Down
11 changes: 0 additions & 11 deletions mod/dashboard/resources/bindata-file.go

This file was deleted.

7 changes: 0 additions & 7 deletions mod/dashboard/resources/bindata-toc.go

This file was deleted.

38 changes: 0 additions & 38 deletions mod/dashboard/resources/browser.html.go

This file was deleted.

38 changes: 0 additions & 38 deletions mod/dashboard/resources/index.html.go

This file was deleted.

Loading

0 comments on commit 102d8e5

Please sign in to comment.