bindata.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. // Code generated by go-bindata.
  2. // sources:
  3. // pub/index.css
  4. // pub/index.html
  5. // pub/index.js
  6. // DO NOT EDIT!
  7. package web
  8. import (
  9. "bytes"
  10. "compress/gzip"
  11. "fmt"
  12. "io"
  13. "strings"
  14. "os"
  15. "time"
  16. "io/ioutil"
  17. "path"
  18. "path/filepath"
  19. )
  20. func bindataRead(data, name string) ([]byte, error) {
  21. gz, err := gzip.NewReader(strings.NewReader(data))
  22. if err != nil {
  23. return nil, fmt.Errorf("Read %q: %v", name, err)
  24. }
  25. var buf bytes.Buffer
  26. _, err = io.Copy(&buf, gz)
  27. clErr := gz.Close()
  28. if err != nil {
  29. return nil, fmt.Errorf("Read %q: %v", name, err)
  30. }
  31. if clErr != nil {
  32. return nil, err
  33. }
  34. return buf.Bytes(), nil
  35. }
  36. type asset struct {
  37. bytes []byte
  38. info os.FileInfo
  39. }
  40. type bindataFileInfo struct {
  41. name string
  42. size int64
  43. mode os.FileMode
  44. modTime time.Time
  45. }
  46. func (fi bindataFileInfo) Name() string {
  47. return fi.name
  48. }
  49. func (fi bindataFileInfo) Size() int64 {
  50. return fi.size
  51. }
  52. func (fi bindataFileInfo) Mode() os.FileMode {
  53. return fi.mode
  54. }
  55. func (fi bindataFileInfo) ModTime() time.Time {
  56. return fi.modTime
  57. }
  58. func (fi bindataFileInfo) IsDir() bool {
  59. return false
  60. }
  61. func (fi bindataFileInfo) Sys() interface{} {
  62. return nil
  63. }
  64. var _indexCss = "\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x52\xd1\x6a\xdc\x30\x10\x7c\xbf\xaf\x58\xb8\x87\x24\x10\x15\xc5\x69\x0e\x4e\x81\x7e\x44\xdf\xfa\x28\x4b\x2b\x9f\x88\xac\x35\x92\x8c\x7d\x29\xf9\xf7\xca\xd2\xd9\x49\xd3\x04\x52\xb0\xc1\xde\x9d\x65\x76\x67\xa6\x25\x7d\x86\xdf\x3b\x80\x56\xaa\xa7\x2e\xd0\xe8\xb5\x80\xbd\x31\xe6\x31\xd7\x0c\xf9\xc4\x8c\xec\xad\x3b\x0b\xb8\xfa\x29\x1d\x4e\xf2\x7c\x75\x0b\x51\xfa\xc8\x22\x06\xfb\x8a\x8a\xf6\x19\x05\x7c\x6f\x86\x79\x2b\x4d\x68\xbb\x53\x12\x70\xcf\xf9\xe3\xee\x65\xb7\x33\x14\xfa\x42\x95\x70\x4e\x4c\x3a\xdb\x79\x01\x0a\x7d\xc2\x50\xfa\xfb\x31\xb8\xd2\xff\x6f\xda\xfb\x4f\x69\x01\x26\xab\xd3\x49\xc0\x81\xf3\x8a\xe9\x65\xe8\x6c\x26\xe6\x20\xc7\x44\x4b\x65\x90\x5a\x5b\xdf\x09\x68\x1e\x2a\x44\x91\xa3\x90\x55\x38\x1e\x8f\xcb\x6f\x4b\x41\x63\x60\x41\x6a\x3b\xc6\x7c\x63\x05\xd5\xaa\x80\xbb\x61\x86\x48\xce\x6a\xd8\x2b\xa5\x96\x0e\x8d\xc9\x59\x9f\xd7\xf2\xe4\xb1\x42\x67\x16\x4f\x52\xd3\xb4\xd0\xe6\x5d\xe1\x90\xdf\xd0\xb5\xf2\x9a\xdf\xc2\xe5\xf9\xd6\xdc\x6c\x2a\x08\x43\x6a\x8c\xd5\x96\x7f\x69\xf8\xd1\xbc\x22\x45\xbe\xb7\x7d\xb2\x89\x59\x3f\x8c\x89\x0d\x4e\x2a\x3c\x91\xcb\x33\x65\x7c\xbb\x45\x6b\xfd\x76\xa8\xa7\xe7\x2f\x60\x55\x3f\xbc\xcb\x06\x5b\x31\x88\xf8\xa1\x76\x17\xb9\x1f\x0e\x9f\xca\xfd\xd6\x7d\x87\x26\xbd\xf3\xb2\xb9\xab\x83\x29\x64\xb7\x6d\xb2\x94\x61\xe5\xbb\xc4\xa7\xe1\xbc\x8f\x80\x32\x62\x3e\x98\x65\xa5\x37\xe8\xd2\x16\x10\x55\x4e\xcb\xaf\x6b\x7e\xf3\x57\x9d\x51\xb0\x65\x8b\x44\xc3\x96\xb8\xcd\xd8\x96\x52\xa2\x9e\x2d\xbb\x7c\x6c\xf2\x8a\x08\x4b\xb0\xbe\x9a\x83\x55\xbf\x1f\x20\x8b\x86\xab\x70\xc5\xbd\x8b\x0a\x1a\x15\x05\x59\x6f\xac\x61\x79\xf9\x13\x00\x00\xff\xff\xd4\x2f\x34\x18\x90\x03\x00\x00"
  65. func indexCssBytes() ([]byte, error) {
  66. return bindataRead(
  67. _indexCss,
  68. "index.css",
  69. )
  70. }
  71. func indexCss() (*asset, error) {
  72. bytes, err := indexCssBytes()
  73. if err != nil {
  74. return nil, err
  75. }
  76. info := bindataFileInfo{name: "index.css", size: 912, mode: os.FileMode(420), modTime: time.Unix(1435805882, 0)}
  77. a := &asset{bytes: bytes, info: info}
  78. return a, nil
  79. }
  80. var _indexHtml = "\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x9c\x92\x41\x73\xd3\x30\x10\x85\xef\xfd\x15\x8b\xce\x44\x9b\x10\x0e\xa4\xd8\x66\x86\x24\x43\x99\x29\xd0\x29\x61\x80\xa3\x6a\xaf\x63\x05\xd9\x72\xa5\x75\x13\xff\x7b\x24\xdb\x29\x4c\xe9\x09\x9f\x56\xd2\xbe\xef\xad\x9e\x9c\xbc\xd8\x7c\x59\xef\x7e\xde\x6c\xa1\xe2\xda\xc0\xcd\xb7\xf7\xd7\x1f\xd7\x20\x66\x88\xdf\x97\x6b\xc4\xcd\x6e\x03\x3f\xae\x76\x9f\xae\x61\x21\xe7\xf0\x95\x9d\xce\x19\x71\xfb\x59\x80\xa8\x98\xdb\x4b\xc4\xe3\xf1\x28\x8f\x4b\x69\xdd\x1e\x77\xb7\x78\x8a\x94\x45\x94\x4d\xe5\xcc\x0f\x1a\x59\x70\x21\xb2\x8b\x64\x30\x39\xd5\xa6\xf1\xe9\x33\x80\xc5\x6a\xb5\x1a\x75\xa1\x17\x20\xa9\x48\x15\xb1\x08\x25\x6b\x36\x94\x7d\xb0\x09\x8e\xd5\xb8\x5b\x13\x2b\x88\x9c\x19\xdd\x77\xfa\x21\x15\x6b\xdb\x30\x35\x3c\xdb\xf5\x2d\x09\xc8\xc7\x55\x2a\x98\x4e\x8c\x91\xfb\x16\xf2\x4a\x39\x4f\x9c\x76\x5c\xce\xde\x08\x9c\x40\x46\x37\xbf\xa0\x72\x54\xa6\x02\x3d\xea\xa6\xa0\x93\xcc\xbd\x17\xc3\x69\xfc\x1c\x99\x54\x78\xee\x0d\xf9\x8a\x88\xff\x1c\x70\x70\x9a\x0c\xa2\x20\x83\x7f\x80\xd3\x3d\xcb\x30\x8c\x97\x7b\x6b\xf7\x86\x54\xab\xbd\xcc\x6d\x1d\x25\xef\x4a\x55\x6b\xd3\xa7\xb7\xca\xd0\x51\xf5\x97\xaf\xe7\xf3\x97\xcb\xf9\xfc\x3f\xac\x63\x64\x78\xce\x2c\xb9\xb3\x45\x3f\xdd\xae\xb4\xae\x06\xd5\xb1\x0d\x96\xad\x21\x0e\x2a\x5b\x96\x22\x9b\x48\x89\x6e\xda\x8e\xff\xc2\x09\xd0\x45\x2a\x3a\x67\x04\xb4\x46\xe5\x54\x59\x53\x90\x4b\xc5\x36\xc4\xe9\x80\x2b\x82\x70\x06\x6c\xc1\x57\xd6\x85\x84\x45\x96\xe0\xc0\x78\x24\x16\xfa\x61\x60\xe4\x75\xfb\x68\x73\x45\xc6\xd8\x73\x03\x86\x8e\x69\x3a\x8c\xe3\x65\x17\xe3\xc2\xe7\x4e\xb7\x0c\xde\xe5\xe1\x25\x50\x1d\xd4\xe9\x69\x64\x71\x0f\x8d\xbe\xf3\x78\xb8\xef\xc8\xf5\xf8\x4a\x2e\xe4\x72\x5a\xc8\x5a\x37\xf2\xe0\xe3\x40\x23\x29\x7b\x06\x7b\x7e\xe0\xa7\x7d\x09\x8e\x99\x25\xc3\xaf\x92\x5d\xfc\x0e\x00\x00\xff\xff\x48\x15\x39\x70\x1c\x03\x00\x00"
  81. func indexHtmlBytes() ([]byte, error) {
  82. return bindataRead(
  83. _indexHtml,
  84. "index.html",
  85. )
  86. }
  87. func indexHtml() (*asset, error) {
  88. bytes, err := indexHtmlBytes()
  89. if err != nil {
  90. return nil, err
  91. }
  92. info := bindataFileInfo{name: "index.html", size: 796, mode: os.FileMode(420), modTime: time.Unix(1435805882, 0)}
  93. a := &asset{bytes: bytes, info: info}
  94. return a, nil
  95. }
  96. var _indexJs = "\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x54\x4b\x6f\x13\x31\x10\xbe\xf7\x57\x18\x51\xc9\x5e\x91\x3a\x2d\xdc\xa8\x38\xf0\x28\x42\xa8\xa2\x88\xf4\x82\x10\x87\x61\x77\x92\xb8\x78\xed\x95\xed\xed\x83\x76\xff\x3b\x33\xf6\x66\x93\x54\x08\x71\x20\x87\xac\x3d\x2f\x7f\x33\xdf\x67\xab\x65\xef\xea\x64\xbc\x53\x95\xb8\x3f\x38\xb8\x86\x20\x02\x46\xf3\x0b\xc5\x2b\xb1\xe7\x12\xa2\xf8\xea\xc4\x1e\x1f\x5a\xbd\xc2\xa4\x8e\x2b\xfe\xbc\xf1\xbd\x6b\x8c\x5b\xbd\xb5\x06\x5d\xfa\x42\x31\xaa\x3a\xa5\x8c\x1c\x56\xc7\xa8\x64\x0b\x61\x65\xdc\x51\xf2\x9d\x9c\x89\x1b\xe3\x1a\x7f\xa3\x8d\x73\x18\x3e\xa0\x59\xad\xd3\xfc\x85\x38\xca\xb5\xf5\xba\xec\x9f\x53\xfe\x70\x5a\xf0\x38\x68\xf1\x7d\xf0\xed\x2e\xa2\x3e\x98\x2d\xa8\x0e\x42\x8a\xe4\x25\xa3\x8e\xfd\x8f\x98\x02\x61\x51\x27\x95\x8e\x9d\x35\x49\xc9\xb9\xcc\x68\x02\xa6\x3e\xb8\x12\xfd\xed\xe4\xfb\xf6\x00\xeb\xa1\xf9\x73\xbb\x7c\x34\x79\x36\x08\x94\xf5\x35\x70\x88\xee\x20\xad\xd9\x9a\x0b\x1f\x6a\xb8\x82\x5b\xc5\x49\x82\x40\xd8\x97\x42\xce\xa1\x33\x73\x5a\xce\xa5\x78\x96\xd3\x67\xd9\xd9\x40\x82\xcb\xbb\x0e\x29\xe2\x2a\x7a\x27\xc9\x38\x10\xcc\xbe\xae\x91\xa6\x34\x01\xe0\xb0\x02\xa2\xc0\xa0\x42\x84\x82\xad\x9a\x97\x0f\x0f\x42\xca\xd3\xec\x3d\x54\xf2\x29\x99\x64\xa5\xaf\xc1\xd2\x54\x6c\x06\x34\xf0\xf4\x4a\x6f\x71\xed\x6f\xce\x8d\xfb\xb9\xdb\x5f\x06\x3e\xf5\x58\xb7\x1d\x39\xb9\x10\xad\x64\x55\x80\x0a\x61\x73\xce\xd4\xb0\x0f\x86\x08\xa4\x66\xe4\xd4\x12\x4d\xaf\x54\x80\x9c\xdf\xf8\xba\x6f\x89\x7e\x5d\x07\x84\x84\x67\x16\x79\xa7\x24\xc8\xaa\xca\x35\x35\xa4\x14\x94\x5c\x07\x5c\x92\x08\xa8\xfe\x68\x4e\x78\x9b\xd4\x76\x0b\x5d\x87\xae\xb9\xf4\x8a\xe0\x14\x9f\xa4\x0a\xf9\x30\xb6\x64\x39\xa5\x00\x2e\xb2\xba\xa8\x90\x8c\x35\x58\xfc\x4a\x7c\xcb\x12\x45\x82\x5c\xa0\xc5\x91\x4b\x1d\x49\x9f\x10\xf1\xb5\x6b\xce\x6e\x13\x23\x82\x51\xb9\x33\x71\x3c\x13\xdb\xcd\xc9\x8e\xe4\xb8\x74\x19\x4a\x3e\xa4\xd2\x54\x49\x92\xb4\x5a\x93\xe8\xc4\x69\x90\xe3\x14\x51\x77\x01\xaf\xa9\xf4\x3b\x5c\x42\x6f\x47\xf1\xff\x9b\x7e\x36\xe3\x2e\x14\xef\xd3\x59\x69\x52\x72\xab\x4a\x57\x66\x29\xd4\x13\x26\x78\xd4\x45\x51\x73\x66\xfb\xe0\xb1\x06\x53\x91\xd8\xe7\x8b\xc5\xa5\x9c\x6d\x54\x29\xfe\x2e\x4b\x72\x7f\x5c\x5c\x7c\xd2\xe5\xf6\x98\xe5\x9d\xba\x1f\xb3\xf8\x7f\xa8\xf6\x05\x2c\xfe\x9b\x82\xb9\xaf\x9d\xb6\x84\x58\x9b\x98\x7c\xb8\xd3\x01\x3b\x0b\x35\x2e\x12\x89\x49\xdd\x0f\x33\xe1\x7a\x6b\x89\xee\x39\x36\x26\xe5\x06\x72\xb9\xe9\x16\xf2\x6f\xa3\x76\xf5\xd8\x35\x6c\x6e\x05\x0f\x73\x7c\x7f\xa0\x69\xce\x98\xb5\x73\x3a\x10\xe9\x29\x52\xb2\xbc\x7c\xc4\x70\x59\x50\x6c\x59\x30\x05\xfc\x48\x64\x2a\x86\x8a\x3f\xbf\x03\x00\x00\xff\xff\x1d\x65\x3b\x26\x38\x05\x00\x00"
  97. func indexJsBytes() ([]byte, error) {
  98. return bindataRead(
  99. _indexJs,
  100. "index.js",
  101. )
  102. }
  103. func indexJs() (*asset, error) {
  104. bytes, err := indexJsBytes()
  105. if err != nil {
  106. return nil, err
  107. }
  108. info := bindataFileInfo{name: "index.js", size: 1336, mode: os.FileMode(420), modTime: time.Unix(1435895304, 0)}
  109. a := &asset{bytes: bytes, info: info}
  110. return a, nil
  111. }
  112. // Asset loads and returns the asset for the given name.
  113. // It returns an error if the asset could not be found or
  114. // could not be loaded.
  115. func Asset(name string) ([]byte, error) {
  116. cannonicalName := strings.Replace(name, "\\", "/", -1)
  117. if f, ok := _bindata[cannonicalName]; ok {
  118. a, err := f()
  119. if err != nil {
  120. return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
  121. }
  122. return a.bytes, nil
  123. }
  124. return nil, fmt.Errorf("Asset %s not found", name)
  125. }
  126. // MustAsset is like Asset but panics when Asset would return an error.
  127. // It simplifies safe initialization of global variables.
  128. func MustAsset(name string) []byte {
  129. a, err := Asset(name)
  130. if (err != nil) {
  131. panic("asset: Asset(" + name + "): " + err.Error())
  132. }
  133. return a
  134. }
  135. // AssetInfo loads and returns the asset info for the given name.
  136. // It returns an error if the asset could not be found or
  137. // could not be loaded.
  138. func AssetInfo(name string) (os.FileInfo, error) {
  139. cannonicalName := strings.Replace(name, "\\", "/", -1)
  140. if f, ok := _bindata[cannonicalName]; ok {
  141. a, err := f()
  142. if err != nil {
  143. return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
  144. }
  145. return a.info, nil
  146. }
  147. return nil, fmt.Errorf("AssetInfo %s not found", name)
  148. }
  149. // AssetNames returns the names of the assets.
  150. func AssetNames() []string {
  151. names := make([]string, 0, len(_bindata))
  152. for name := range _bindata {
  153. names = append(names, name)
  154. }
  155. return names
  156. }
  157. // _bindata is a table, holding each asset generator, mapped to its name.
  158. var _bindata = map[string]func() (*asset, error){
  159. "index.css": indexCss,
  160. "index.html": indexHtml,
  161. "index.js": indexJs,
  162. }
  163. // AssetDir returns the file names below a certain
  164. // directory embedded in the file by go-bindata.
  165. // For example if you run go-bindata on data/... and data contains the
  166. // following hierarchy:
  167. // data/
  168. // foo.txt
  169. // img/
  170. // a.png
  171. // b.png
  172. // then AssetDir("data") would return []string{"foo.txt", "img"}
  173. // AssetDir("data/img") would return []string{"a.png", "b.png"}
  174. // AssetDir("foo.txt") and AssetDir("notexist") would return an error
  175. // AssetDir("") will return []string{"data"}.
  176. func AssetDir(name string) ([]string, error) {
  177. node := _bintree
  178. if len(name) != 0 {
  179. cannonicalName := strings.Replace(name, "\\", "/", -1)
  180. pathList := strings.Split(cannonicalName, "/")
  181. for _, p := range pathList {
  182. node = node.Children[p]
  183. if node == nil {
  184. return nil, fmt.Errorf("Asset %s not found", name)
  185. }
  186. }
  187. }
  188. if node.Func != nil {
  189. return nil, fmt.Errorf("Asset %s not found", name)
  190. }
  191. rv := make([]string, 0, len(node.Children))
  192. for childName := range node.Children {
  193. rv = append(rv, childName)
  194. }
  195. return rv, nil
  196. }
  197. type bintree struct {
  198. Func func() (*asset, error)
  199. Children map[string]*bintree
  200. }
  201. var _bintree = &bintree{nil, map[string]*bintree{
  202. "index.css": &bintree{indexCss, map[string]*bintree{
  203. }},
  204. "index.html": &bintree{indexHtml, map[string]*bintree{
  205. }},
  206. "index.js": &bintree{indexJs, map[string]*bintree{
  207. }},
  208. }}
  209. // RestoreAsset restores an asset under the given directory
  210. func RestoreAsset(dir, name string) error {
  211. data, err := Asset(name)
  212. if err != nil {
  213. return err
  214. }
  215. info, err := AssetInfo(name)
  216. if err != nil {
  217. return err
  218. }
  219. err = os.MkdirAll(_filePath(dir, path.Dir(name)), os.FileMode(0755))
  220. if err != nil {
  221. return err
  222. }
  223. err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
  224. if err != nil {
  225. return err
  226. }
  227. err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
  228. if err != nil {
  229. return err
  230. }
  231. return nil
  232. }
  233. // RestoreAssets restores an asset under the given directory recursively
  234. func RestoreAssets(dir, name string) error {
  235. children, err := AssetDir(name)
  236. // File
  237. if err != nil {
  238. return RestoreAsset(dir, name)
  239. }
  240. // Dir
  241. for _, child := range children {
  242. err = RestoreAssets(dir, path.Join(name, child))
  243. if err != nil {
  244. return err
  245. }
  246. }
  247. return nil
  248. }
  249. func _filePath(dir, name string) string {
  250. cannonicalName := strings.Replace(name, "\\", "/", -1)
  251. return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
  252. }