generate moved and fixed

This commit is contained in:
asoseil 2017-12-16 17:07:13 +01:00
parent f8ce9d7c64
commit 052c77e2e9
3 changed files with 159 additions and 161 deletions

View File

@ -1,5 +1,3 @@
//go:generate go-bindata -pkg=realize -o=realize/bindata.go realize/assets/...
package main package main
import ( import (

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,5 @@
//go:generate go-bindata -pkg=realize -o=bindata.go assets/...
package realize package realize
import ( import (
@ -106,40 +108,40 @@ func (s *Server) Start() (err error) {
// web panel // web panel
e.GET("/", func(c echo.Context) error { e.GET("/", func(c echo.Context) error {
return s.render(c, "realize/assets/index.html", 1) return s.render(c, "assets/index.html", 1)
}) })
e.GET("/assets/js/all.min.js", func(c echo.Context) error { e.GET("/assets/js/all.min.js", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/js/all.min.js", 2) return s.render(c, "assets/assets/js/all.min.js", 2)
}) })
e.GET("/assets/css/app.css", func(c echo.Context) error { e.GET("/assets/css/app.css", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/css/app.css", 3) return s.render(c, "assets/assets/css/app.css", 3)
}) })
e.GET("/app/components/settings/index.html", func(c echo.Context) error { e.GET("/app/components/settings/index.html", func(c echo.Context) error {
return s.render(c, "realize/assets/app/components/settings/index.html", 1) return s.render(c, "assets/app/components/settings/index.html", 1)
}) })
e.GET("/app/components/project/index.html", func(c echo.Context) error { e.GET("/app/components/project/index.html", func(c echo.Context) error {
return s.render(c, "realize/assets/app/components/project/index.html", 1) return s.render(c, "assets/app/components/project/index.html", 1)
}) })
e.GET("/app/components/index.html", func(c echo.Context) error { e.GET("/app/components/index.html", func(c echo.Context) error {
return s.render(c, "realize/assets/app/components/index.html", 1) return s.render(c, "assets/app/components/index.html", 1)
}) })
e.GET("/assets/img/logo.png", func(c echo.Context) error { e.GET("/assets/img/logo.png", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/img/logo.png", 5) return s.render(c, "assets/assets/img/logo.png", 5)
}) })
e.GET("/assets/img/svg/github-logo.svg", func(c echo.Context) error { e.GET("/assets/img/svg/github-logo.svg", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/img/svg/github-logo.svg", 4) return s.render(c, "assets/assets/img/svg/github-logo.svg", 4)
}) })
e.GET("/assets/img/svg/ic_arrow_back_black_48px.svg", func(c echo.Context) error { e.GET("/assets/img/svg/ic_arrow_back_black_48px.svg", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/img/svg/ic_arrow_back_black_48px.svg", 4) return s.render(c, "assets/assets/img/svg/ic_arrow_back_black_48px.svg", 4)
}) })
e.GET("/assets/img/svg/ic_clear_white_48px.svg", func(c echo.Context) error { e.GET("/assets/img/svg/ic_clear_white_48px.svg", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/img/svg/ic_clear_white_48px.svg", 4) return s.render(c, "assets/assets/img/svg/ic_clear_white_48px.svg", 4)
}) })
e.GET("/assets/img/svg/ic_menu_white_48px.svg", func(c echo.Context) error { e.GET("/assets/img/svg/ic_menu_white_48px.svg", func(c echo.Context) error {
return s.render(c, "assets/assets/img/svg/ic_menu_white_48px.svg", 4) return s.render(c, "assets/assets/img/svg/ic_menu_white_48px.svg", 4)
}) })
e.GET("/assets/img/svg/ic_settings_black_48px.svg", func(c echo.Context) error { e.GET("/assets/img/svg/ic_settings_black_48px.svg", func(c echo.Context) error {
return s.render(c, "realize/assets/assets/img/svg/ic_settings_black_48px.svg", 4) return s.render(c, "assets/assets/img/svg/ic_settings_black_48px.svg", 4)
}) })
//websocket //websocket