Browse Source

bump(mod/dashboard): rebuild the dashboard for the latest fixes

Brandon Philips 12 years ago
parent
commit
102d8e543d

+ 6 - 5
mod/dashboard/build

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

+ 2 - 2
mod/dashboard/dashboard.go

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

+ 0 - 11
mod/dashboard/resources/bindata-file.go

@@ -1,11 +0,0 @@
-package resources
-
-func File(name string) ([]byte, bool) {
-	data, ok := go_bindata[name]
-
-	if ok == false {
-		return nil, false
-	}
-
-	return data(), true
-}

+ 0 - 7
mod/dashboard/resources/bindata-toc.go

@@ -1,7 +0,0 @@
-package resources
-
-// Global Table of Contents map. Generated by go-bindata.
-// After startup of the program, all generated data files will
-// put themselves in this map. The key is the full filename, as
-// supplied to go-bindata.
-var go_bindata = make(map[string]func() []byte)

File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/browser.html.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/index.html.go


File diff suppressed because it is too large
+ 36 - 0
mod/dashboard/resources/resources.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/scripts-browser-modules.js.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/scripts-browser-scripts.js.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/scripts-stats-modules.js.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/scripts-stats-scripts.js.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/stats.html.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/styles-main.css.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/views-browser.html.go


File diff suppressed because it is too large
+ 0 - 10
mod/dashboard/resources/views-stats.html.go


Some files were not shown because too many files changed in this diff