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(1435932485, 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\x9c\x54\x4d\x6f\xd4\x30\x10\xbd\xf7\x57\x18\x51\xc9\xb6\x48\xbd\x2d\xdc\xa8\x38\xf0\x51\x84\x50\x45\x11\xdb\x0b\x42\x1c\x86\x64\x76\xe3\xe2\xd8\x91\xed\x74\xbb\xb4\xf9\xef\x8c\xed\xec\x57\x85\x10\x62\x0f\x1b\x7b\x66\x3c\xf3\x66\xde\xb3\xc5\x62\xb0\x75\xd4\xce\x0a\xc9\xee\x8f\x8e\x6e\xc1\x33\x8f\x41\xff\x42\xf6\x8a\x1d\xb8\x18\x2b\xbe\x3a\x26\x8f\xf3\x9d\x5a\x62\x14\xa7\x32\x7d\xde\xb8\xc1\x36\xda\x2e\xdf\x1a\x8d\x36\x7e\xa1\x18\x21\xcf\xe9\x44\x0e\xab\x43\x10\xbc\x03\xbf\xd4\xf6\x24\xba\x9e\x57\x6c\xa5\x6d\xe3\x56\x4a\x5b\x8b\xfe\x03\xea\x65\x1b\x67\x2f\xd8\x49\xce\xad\xda\xb2\x7f\x4e\xe7\xc7\xf3\x82\xc7\x42\x87\xef\xbd\xeb\xf6\x11\x0d\x5e\xef\x40\xf5\xe0\x63\x20\x2f\x19\x55\x18\x7e\x84\xe8\x09\x8b\x38\x93\x2a\xf4\x46\x47\xc1\x67\x3c\xa3\xf1\x18\x07\x6f\x4b\xf4\xb7\xb3\xef\xbb\x02\xc6\x41\xf3\xe7\x76\x53\x69\xf2\x6c\x10\x08\xe3\x6a\x48\x21\xaa\x87\xd8\x26\x6b\x4e\x7c\xac\xe0\x06\xee\x44\x3a\xc4\x08\x84\x79\xc9\xf8\x0c\x7a\x3d\xa3\xe5\x8c\xb3\x67\xf9\x78\x95\x9d\x0d\x44\xb8\x5e\xf7\x48\x11\x37\xc1\x59\x4e\xc6\x51\x2a\x30\x2b\x58\x87\x1d\x13\x29\xaa\x60\x28\x28\x28\x0f\x81\x48\x56\x95\x96\x0f\x0f\x8c\xf3\xf3\xec\x3d\x16\xfc\x29\x99\xb8\x54\xb7\x60\x68\x28\x46\x66\x33\x63\x6a\xe1\xea\x21\x14\x16\xc6\x34\xcb\xd2\x69\x68\xdd\xea\x52\xdb\x9f\xfb\xdd\xe6\x36\xb6\x1d\xd7\x5d\x4f\xce\x94\x97\x56\x5c\x56\x53\x3e\x93\xcf\x6c\xdb\x77\x5e\x13\x9d\xd4\x1a\xdf\x36\x48\xb3\x2c\x19\x20\x9f\x6f\xa8\x7e\x47\x62\x50\xb5\x47\x88\x78\x61\x30\xed\x04\x07\x2e\x0b\x46\x05\x31\x7a\xc1\x5b\x8f\x0b\x92\x04\xe5\x9f\xcc\x11\xef\xa2\xd8\x6d\xa1\xef\xd1\x36\xd7\x4e\x10\x9c\xe2\xe3\x94\x21\x17\x4b\x96\x2c\xae\xe8\xc1\x86\xa4\x35\x4a\xc4\x43\x0d\x06\xbf\x12\xfb\xbc\x44\x91\x3c\xe7\x68\x70\x62\x56\x05\x52\x2b\x04\x7c\x6d\x9b\x8b\xbb\x98\x10\xc1\xa4\xe3\x8a\x9d\x56\x6c\xb7\x39\xdb\x13\x60\x4a\x5d\x86\x92\x8b\x48\x45\x99\x38\x09\xad\xd3\x91\x2a\x6e\x07\x39\x4d\x11\x55\xef\xf1\x96\x52\xbf\xc3\x05\x0c\x66\xba\x0a\xff\xa6\xa6\xcd\xb8\x0b\xe3\x87\xec\x4a\x45\xba\xee\x44\xe9\x4a\x2f\x98\x78\x92\xf8\x9e\x64\x52\xb4\x9d\xd9\x3e\x7a\xac\xc8\x58\x04\xf7\xf9\x6a\x7e\xcd\xab\x8d\x46\xd9\xdf\x45\x4a\xee\x8f\xf3\xab\x4f\xaa\xdc\x25\xbd\x58\x8b\xfb\xe9\x54\xfa\x1f\xe5\xa1\x9c\xd9\xa1\x9e\xc3\x50\xd7\x18\xfe\x4b\xd0\xa9\xaf\xbd\xb6\x18\x6b\x75\x88\xce\xaf\x95\xc7\xde\x40\x8d\xf3\x48\x62\x12\xf7\x63\xc5\xec\x60\x0c\xd1\x3d\xc3\x46\xc7\xdc\x40\x4e\xb7\xbd\x93\xe9\xb7\x51\xbb\x78\xec\x1a\x37\xb7\x22\x0d\x73\x7a\x8d\xa0\x69\x2e\x12\x6b\x97\x54\x10\xe9\x61\x12\xbc\xbc\x83\xc4\x70\x59\x50\x6c\x59\x24\x0a\xd2\x93\x91\xa9\x18\x65\xfa\xfc\x0e\x00\x00\xff\xff\x5e\xed\x70\xa4\x46\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: 1350, mode: os.FileMode(420), modTime: time.Unix(1435934318, 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. }