| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- // Code generated by go-bindata.
- // sources:
- // pub/index.css
- // pub/index.html
- // pub/index.js
- // DO NOT EDIT!
- package web
- import (
- "bytes"
- "compress/gzip"
- "fmt"
- "io"
- "strings"
- "os"
- "time"
- "io/ioutil"
- "path"
- "path/filepath"
- )
- func bindataRead(data, name string) ([]byte, error) {
- gz, err := gzip.NewReader(strings.NewReader(data))
- if err != nil {
- return nil, fmt.Errorf("Read %q: %v", name, err)
- }
- var buf bytes.Buffer
- _, err = io.Copy(&buf, gz)
- clErr := gz.Close()
- if err != nil {
- return nil, fmt.Errorf("Read %q: %v", name, err)
- }
- if clErr != nil {
- return nil, err
- }
- return buf.Bytes(), nil
- }
- type asset struct {
- bytes []byte
- info os.FileInfo
- }
- type bindataFileInfo struct {
- name string
- size int64
- mode os.FileMode
- modTime time.Time
- }
- func (fi bindataFileInfo) Name() string {
- return fi.name
- }
- func (fi bindataFileInfo) Size() int64 {
- return fi.size
- }
- func (fi bindataFileInfo) Mode() os.FileMode {
- return fi.mode
- }
- func (fi bindataFileInfo) ModTime() time.Time {
- return fi.modTime
- }
- func (fi bindataFileInfo) IsDir() bool {
- return false
- }
- func (fi bindataFileInfo) Sys() interface{} {
- return nil
- }
- 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"
- func indexCssBytes() ([]byte, error) {
- return bindataRead(
- _indexCss,
- "index.css",
- )
- }
- func indexCss() (*asset, error) {
- bytes, err := indexCssBytes()
- if err != nil {
- return nil, err
- }
- info := bindataFileInfo{name: "index.css", size: 912, mode: os.FileMode(420), modTime: time.Unix(1435805882, 0)}
- a := &asset{bytes: bytes, info: info}
- return a, nil
- }
- 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"
- func indexHtmlBytes() ([]byte, error) {
- return bindataRead(
- _indexHtml,
- "index.html",
- )
- }
- func indexHtml() (*asset, error) {
- bytes, err := indexHtmlBytes()
- if err != nil {
- return nil, err
- }
- info := bindataFileInfo{name: "index.html", size: 796, mode: os.FileMode(420), modTime: time.Unix(1435932485, 0)}
- a := &asset{bytes: bytes, info: info}
- return a, nil
- }
- 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"
- func indexJsBytes() ([]byte, error) {
- return bindataRead(
- _indexJs,
- "index.js",
- )
- }
- func indexJs() (*asset, error) {
- bytes, err := indexJsBytes()
- if err != nil {
- return nil, err
- }
- info := bindataFileInfo{name: "index.js", size: 1350, mode: os.FileMode(420), modTime: time.Unix(1435934318, 0)}
- a := &asset{bytes: bytes, info: info}
- return a, nil
- }
- // Asset loads and returns the asset for the given name.
- // It returns an error if the asset could not be found or
- // could not be loaded.
- func Asset(name string) ([]byte, error) {
- cannonicalName := strings.Replace(name, "\\", "/", -1)
- if f, ok := _bindata[cannonicalName]; ok {
- a, err := f()
- if err != nil {
- return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
- }
- return a.bytes, nil
- }
- return nil, fmt.Errorf("Asset %s not found", name)
- }
- // MustAsset is like Asset but panics when Asset would return an error.
- // It simplifies safe initialization of global variables.
- func MustAsset(name string) []byte {
- a, err := Asset(name)
- if (err != nil) {
- panic("asset: Asset(" + name + "): " + err.Error())
- }
- return a
- }
- // AssetInfo loads and returns the asset info for the given name.
- // It returns an error if the asset could not be found or
- // could not be loaded.
- func AssetInfo(name string) (os.FileInfo, error) {
- cannonicalName := strings.Replace(name, "\\", "/", -1)
- if f, ok := _bindata[cannonicalName]; ok {
- a, err := f()
- if err != nil {
- return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
- }
- return a.info, nil
- }
- return nil, fmt.Errorf("AssetInfo %s not found", name)
- }
- // AssetNames returns the names of the assets.
- func AssetNames() []string {
- names := make([]string, 0, len(_bindata))
- for name := range _bindata {
- names = append(names, name)
- }
- return names
- }
- // _bindata is a table, holding each asset generator, mapped to its name.
- var _bindata = map[string]func() (*asset, error){
- "index.css": indexCss,
- "index.html": indexHtml,
- "index.js": indexJs,
- }
- // AssetDir returns the file names below a certain
- // directory embedded in the file by go-bindata.
- // For example if you run go-bindata on data/... and data contains the
- // following hierarchy:
- // data/
- // foo.txt
- // img/
- // a.png
- // b.png
- // then AssetDir("data") would return []string{"foo.txt", "img"}
- // AssetDir("data/img") would return []string{"a.png", "b.png"}
- // AssetDir("foo.txt") and AssetDir("notexist") would return an error
- // AssetDir("") will return []string{"data"}.
- func AssetDir(name string) ([]string, error) {
- node := _bintree
- if len(name) != 0 {
- cannonicalName := strings.Replace(name, "\\", "/", -1)
- pathList := strings.Split(cannonicalName, "/")
- for _, p := range pathList {
- node = node.Children[p]
- if node == nil {
- return nil, fmt.Errorf("Asset %s not found", name)
- }
- }
- }
- if node.Func != nil {
- return nil, fmt.Errorf("Asset %s not found", name)
- }
- rv := make([]string, 0, len(node.Children))
- for childName := range node.Children {
- rv = append(rv, childName)
- }
- return rv, nil
- }
- type bintree struct {
- Func func() (*asset, error)
- Children map[string]*bintree
- }
- var _bintree = &bintree{nil, map[string]*bintree{
- "index.css": &bintree{indexCss, map[string]*bintree{
- }},
- "index.html": &bintree{indexHtml, map[string]*bintree{
- }},
- "index.js": &bintree{indexJs, map[string]*bintree{
- }},
- }}
- // RestoreAsset restores an asset under the given directory
- func RestoreAsset(dir, name string) error {
- data, err := Asset(name)
- if err != nil {
- return err
- }
- info, err := AssetInfo(name)
- if err != nil {
- return err
- }
- err = os.MkdirAll(_filePath(dir, path.Dir(name)), os.FileMode(0755))
- if err != nil {
- return err
- }
- err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
- if err != nil {
- return err
- }
- err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
- if err != nil {
- return err
- }
- return nil
- }
- // RestoreAssets restores an asset under the given directory recursively
- func RestoreAssets(dir, name string) error {
- children, err := AssetDir(name)
- // File
- if err != nil {
- return RestoreAsset(dir, name)
- }
- // Dir
- for _, child := range children {
- err = RestoreAssets(dir, path.Join(name, child))
- if err != nil {
- return err
- }
- }
- return nil
- }
- func _filePath(dir, name string) string {
- cannonicalName := strings.Replace(name, "\\", "/", -1)
- return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
- }
|