archive/staticResources.go

259 lines
17 KiB
Go
Raw Normal View History

2017-08-13 01:57:08 +00:00
// Code generated by go-bindata.
// sources:
// static/archive.js
// static/style.css
// DO NOT EDIT!
package archive
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func bindataRead(data []byte, name string) ([]byte, error) {
gz, err := gzip.NewReader(bytes.NewBuffer(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
}
2017-12-10 01:21:02 +00:00
var _archiveJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x56\x7f\x6f\xdb\x38\x12\xfd\xdb\x01\xf2\x1d\xa6\x3c\x23\x96\x22\x47\xb2\x73\x68\x0f\xb1\x23\x07\xbd\x36\xbd\xcb\x22\xed\x02\x9b\xf4\x9f\x35\xd5\x80\x95\xc6\x96\x1a\x99\x52\x49\x2a\x75\xda\xcd\x77\x5f\x90\xa2\xe4\x9f\xc9\xc2\xb1\xec\x98\x8f\xf3\xde\x3c\x72\x86\x0c\x8e\x81\x89\x38\xcd\x1e\xd0\xff\x26\xe1\x38\x80\xc3\x83\xc3\x83\x07\x26\x80\xe5\x02\x59\xf2\x78\x5d\xb0\x04\x13\x08\x61\xc6\x72\x89\xe3\x66\xb4\x1b\xa7\x4c\xbd\x15\xc8\x20\x84\xa4\x88\xab\x05\x72\xe5\xcf\x51\x5d\xe6\xa8\xbf\xfe\xf7\xf1\x2a\x71\x88\xc6\x30\x81\x8c\xb8\xe3\x7a\xd6\xfb\xcb\x0f\x6f\x3f\x5f\xdf\xde\x7d\xf8\xfd\xd3\xed\xdd\xcd\xd5\x9f\x97\x10\xc2\xf0\xd4\x04\x9d\x55\x3c\x56\x59\xc1\x21\x2e\x8a\xfb\x0c\xef\x24\x2a\xe7\x1e\x1f\xfb\xf0\xc0\xf2\x0a\x5d\xf8\x75\x78\xd0\x69\x89\x6a\x0c\x84\xa0\x21\x1e\x09\x89\x67\x50\x1e\x19\x03\x2e\xcb\x4c\xa0\x0c\x6f\x98\xea\xc3\xe9\x00\x6e\xb0\x84\xd3\xc1\xeb\x33\x18\x9c\x8d\x06\xaf\x47\xc3\xd3\x31\x94\x4c\xa5\x61\x60\x44\x3d\xed\xa3\x8e\x73\x64\x42\x47\xfe\x07\xd6\x15\xd9\x6d\x5a\xf5\x61\x30\x84\xdf\x18\x87\xe1\xd9\x7f\x06\x30\x18\x8c\xcc\x1f\x7c\xbe\x7d\xb7\x46\x08\xcf\x30\xce\xeb\x64\x6b\x3e\x6d\x54\xc9\x84\x92\xeb\xd6\xd6\x40\x5f\x96\x79\xa6\x1c\x32\x06\xe2\xfa\x0b\x56\x3a\x4d\x20\x67\xe9\xc2\x2f\x10\xa8\x2a\xc1\x61\xd9\xc0\x42\x4d\xf9\xa4\xf3\xec\xcc\x0a\x01\x8e\x8e\x9c\x41\x08\x83\x3e\xe8\x34\x0c\x89\x9f\x23\x9f\xab\x74\x0c\x19\xbc\x0a\x43\xc0\x31\x78\x5e\x56\x0b\xe9\x64\x33\x70\x0c\x68\x9a\x45\xd3\x41\x04\x61\x08\xad\xca\x4e\xc7\xb2\xb5\x80\x61\xa4\x89\x3a\x4f\x87\x07\xe6\x6d\x87\x79\x95\xe7\x3b\x46\xa7\xd9\x3c\xcd\xb3\x79\xaa\x1c\xa9\x84\x0b\xbf\x3a\x36\xed\x4a\xe4\x09\xca\x58\xef\xb6\x26\x31\x69\xe9\x6c\xb8\x04\xe3\x22\xc1\xcf\x7f\x5c\xbd\x2b\x16\x65\xc1\x91\x2b\x47\xfa\x02\xcb\x9c\xc5\xe8\x04\xd4\x0b\xe6\x7d\x20\x40\x5c\x93\xf4\x93\x7e\xac\xa4\x48\x25\xf4\x7f\x9d\x15\xde\xa1\x53\x9a\xd4\xaf\x93\xf6\x41\xa5\x79\x8e\xd6\x9e\x11\xb8\x0e\x3d\xf6\x3d\xd7\x84\xef\x0e\xcf\x65\xc9\x38\xc4\x39\x93\x32\xa4\x44\x3e\x4a\x4a\x26\xdd\xd3\xf3\x40\xff\x3c\x21\xee\x06\x89\xf1\x2a\xa0\x53\x67\x97\xc9\xa5\xd2\x59\xb1\xb8\x74\xe4\xd4\x9f\x51\x30\xef\x9b\x69\xbd\x75\x22\xa2\xb2\x05\x4a\xc5\x16\x25\x99\x4c\x37\x07\xe4\x9d\x59\xf1\xbb\x84\x4c\xba\x43\xb0\x3a\xf6\x43\xd2\xc5\x9a\xd4\xfd\x10\x49\x26\xa3\xee\xbf\x2d\x24\xb2\x9f\x3d\x2d\xc8\xdd\xb1\x6f\x3a\x38\x39\x1b\xd1\x13\x2a\xa3\xe3\x0b\x1a\x19\x7f\x9e\x15\xdd\x1d\x36\xb1\x76\xe2\x1c\xe5\x8a\x8e\xa7\x5f\xa8\x8c\xbc\x0b\x7a\x34\x57\x74\x5c\x5b\xbd\x69\xb4\xee\x27\x74\x2d\x0e\xd9\x89\x73\xac\x5f\xcd\x3a\xed\x5d\xa5\xe7\xe7\x1a\xda\x6c\x51\x4e\xbf\x50\x4e\x05\x3d\x8f\x8e\xf7\x85\x99\xbf\xac\x20\x55\xaa\x94\x17\x23\x1a\xd0\xc0\xf7\x2e\x5c\x67\x4a\xe5\x5f\xe7\x91\x0d\xc4\x20\x15\x38\x0b\x29\xe9\x0e\x29\x01\x81\x79\x48\x09\x2f\x04\xce\x50\x08\x14\x36\x2e\x9b\x74\x4f\xb7\xc3\x2e\xd8\x9c\xa3\x1a\xd1\x0b\xdf\x4b\x78\xe8\x4c\xbf\xd0\x73\x88\xea\x2c\xdb\x42\x59\x30\x15\xa7\x7d\x58\x0c\xb7\xea\x73\x8d\x96\x80\x07\x06\x06\x1e\x10\x4a\x26\xd3\x8f\x6f\xff\xf7\xe9\xf2\x36\x02\x3d\x60\x6b\xcf\xd1\x01\x3c\x20\x5a\x08\xa9\x0b\x5a\x8b\xd9\x29\xe1\x59\xc1\xd5\x4d\xf6\x13\x9d\x38\x65\x7c\x8e\xab\xd6\x15\x57\x42\xff\x0e\xe1\x7a\x73\x23\x1a\x2e\xb3\x9f\x68\xba\xae\x69\x2c\x2d\x2e\x0c\x4d\x93\xb0\xb2\x57\xd3\x77\x0e\x0b\x53\xd2\x80\xb9\xc4\x6d\xa8\xd7\xb0\x8e\x6d\xf3\x39\x3c\x68\x47\xbd\x10\x6a\x89\xb6\x19\xac\x9d\x2f\x2b\x55\xfd\x26\x80\x6b\x51\xed\xf9\xe6\x4b\xf5\x98\xe3\x94\x34\xf9\x92\x08\x42\x20\xc4\xb3\x78\x8f\x94\x4b\xb2\x63\x8e\x2a\xe6\xf3\x1c\x3f\x22\xaf\x9c\x95\x31\xdd\xb8\xe0\x8a\x65\x1c\xc5\x4b\x67\xe6\x02\x79\x75\xd2\x22\x6b\xbb\x56\x33\x6b\x35\x7e\x92\xc9\x32\x67\x8f\xfa\x28\x7a\x7e\x2c\x84\xde\xd7\xbc\x88\xef\x7b\x2e\x5c\x40\x8f\x17\x1c\x7b\x30\x6a\x7e\x7b\xbe\x25\x5f\x67\x1c\x1d\x5e\xac\x74\xe7\x19\x47\x7d\x16\xad\x2c\xc9\x38\x47\xf1\xff\xdb\x8f\xd7\xcd\x41\x43\x39\x69\x8c\x33\xe8\x29\x2f\xb4\x4d\x9b\x9d\x40\x8f\x9c\xb4\x34\x98\x90\x49\x0f\x3c\x58\xe1\x3d\xe8\x35\xfd\x61\x67\x11\x5a\x46\x08\xeb\x19\xfe\xb7\x22\xe3\x2d\xf1\x66\x2a\x05\xd7\x97\x16\xeb\xbc\xdd\x6d\x1b\xb7\x99\x8d\x23\xc5\x6c\x19\x0d\xdb\xbe\xf0\x28\x51\x35\x
2017-08-13 01:57:08 +00:00
func archiveJsBytes() ([]byte, error) {
return bindataRead(
_archiveJs,
"archive.js",
)
}
func archiveJs() (*asset, error) {
bytes, err := archiveJsBytes()
if err != nil {
return nil, err
}
2017-12-10 01:21:02 +00:00
info := bindataFileInfo{name: "archive.js", size: 3292, mode: os.FileMode(488), modTime: time.Unix(1512868694, 0)}
2017-08-13 01:57:08 +00:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2017-12-10 01:21:02 +00:00
var _styleCss = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x57\x4b\x6f\xdb\xb8\x13\x3f\xdb\x80\xbf\xc3\xa0\xbe\xfc\xff\xa9\x65\xcb\x6e\x9a\x87\x72\xd9\x36\x0f\x6c\xb1\xed\x76\x81\xb6\xe7\x82\x92\xc6\x16\x11\x8a\xd4\x92\x94\x1f\x29\xf2\xdd\x17\x7c\x48\xa2\x14\xbb\x28\xf6\xb0\x3e\x38\x11\x35\x33\xfc\xcd\xeb\x37\xe3\xc5\x19\x10\x99\x15\x74\x8b\x0b\xa5\x0f\x0c\xe7\x99\x52\x70\xb6\x98\x8c\x27\xe3\xc5\x19\xfc\x45\x36\x08\xf6\xdc\x9f\x15\xba\x64\xf0\x63\x32\x1e\x89\x2d\xca\x35\x13\xbb\xe8\x90\xa8\x4c\x0a\xc6\x6e\x26\xe3\xe7\x46\x62\x96\x8a\xfc\x60\xc5\x4a\x22\x37\x94\x27\xf1\x4d\x45\xf2\x9c\xf2\x4d\x12\xdf\xa4\x42\xe6\x28\x93\xf8\x66\x32\x1e\xad\x05\xd7\xd1\x9a\x94\x94\x1d\x92\x57\x5f\x70\x23\x10\xbe\x7d\x78\x35\x7b\x27\x29\x61\x33\x45\xb8\x8a\x14\x4a\xba\x6e\x45\x15\x7d\xc2\x64\xb9\xaa\xf6\xcd\x6d\xc4\xde\x92\x09\x26\x64\x02\x29\xab\xd1\x88\x66\xb5\x54\xe6\xb9\x12\x94\x6b\x94\x8d\x6c\xcd\xfa\x90\x26\xe3\x91\x47\x15\x31\x5c\xeb\x64\x15\x77\x76\xe7\x25\xe5\x34\x52\x58\x11\x49\xb4\x90\x56\x31\xa7\xaa\x62\xe4\x90\x00\xe5\x8c\x72\x8c\x52\x26\xb2\x47\x63\xe5\x49\x88\x32\x81\xa5\xf9\xb7\x40\xba\x29\x74\x02\xcb\x0b\x6b\x6b\xb4\xa3\xb9\x2e\x12\x70\x96\x47\xce\x75\x77\x1b\x2c\xab\x3d\x28\xc1\x68\x0e\x39\x91\x8f\x1b\x89\x87\x40\x44\x7a\x33\xad\xcc\xf4\xee\xee\xae\x01\xa7\x90\x61\xa6\x87\xce\x3c\xfb\x9c\x7d\x24\x07\x51\x6b\x9f\xaf\x39\xb3\x4f\x91\x16\x95\x95\xaf\x84\xa2\x9a\x0a\x9e\xc0\x9a\xee\x31\x37\x37\x6a\x51\x25\x60\xa3\xe1\x70\xd9\x7f\xfd\xfd\x71\xe8\xd3\xca\xc5\xbd\x09\x5a\x02\x6f\xdc\xb3\xc3\x10\xa5\x42\x6b\x13\x87\xab\x20\x8a\xfe\xf6\x41\x39\x18\x34\xc9\x79\xdc\xb7\xf6\xe6\xa5\x5a\x55\xab\x22\x17\x3b\xde\x47\x2e\x91\x11\x4d\xb7\xd8\x60\x0f\x14\x17\x67\x70\x5b\x10\x6d\x2b\x96\xf2\x8d\x8f\xc1\x34\x2b\x88\x26\x12\x5d\xad\xec\x84\xcc\xa3\x54\x22\x79\x4c\xec\x77\x64\x0e\x6c\xaa\x0a\xaa\x31\x52\x15\xc9\x30\x81\x4a\xe2\x0d\x2c\xce\xe0\x0b\x59\x13\x49\x61\xb9\x58\xcd\xe0\xc3\x3d\x5c\x2c\x2e\xad\xd1\x17\xc2\xd1\x4e\x92\xca\x6a\xdc\x16\x52\x94\x38\x83\x07\x2a\x71\x2d\xf6\x46\xed\xea\xf5\x6b\x38\x5b\x40\xe3\x9d\xa6\x25\x2a\x4d\xca\x2a\xac\xdd\xe9\xfb\xf7\xef\x5b\xff\x0d\x60\xfb\xd2\x16\xfd\xce\xc5\x3f\x15\xcc\xe2\xf4\x0a\xa6\x68\x7c\xc1\x3f\x4f\xc6\x10\x7c\x26\xe3\xb9\x3a\xa8\x4e\xdf\xf6\x6f\x42\x35\x61\x34\x1b\x18\xd8\x48\x44\xde\x5e\xbb\xd1\x01\xa2\x69\xfc\xae\x6b\xd1\x3e\x04\x9f\x24\xd3\x03\x05\xdd\x14\xcc\xbc\xc3\xdc\xea\xa6\x24\x7b\xdc\x48\x51\xf3\x3c\xb1\xc7\x07\x64\x4c\xec\x82\xfc\x7c\x15\x82\xa5\x44\x0e\x52\x34\xaf\x48\xde\xeb\x31\xd7\x62\x61\x7d\xc4\xbd\xc2\xe2\x64\x0b\x3f\x1a\x77\xc3\x5b\x9b\x46\x19\xa5\x62\x1f\xa9\x82\xe4\x62\x67\xdb\x0f\xce\xab\x3d\xac\xcc\xd7\xf4\xf6\xf6\xd6\x08\xf4\x38\x25\xb6\xb9\x93\x58\x8a\x2d\x42\x55\x10\xae\x45\x09\x36\xbd\x0a\x52\xd4\x3b\x44\x0e\xc8\xb0\x44\xae\x1d\x3d\x3e\x7b\x10\x6b\x21\xcb\x63\xec\xd0\x43\x4a\x66\x60\xff\xce\xb3\x5a\x4a\xe4\x3a\xaa\xc8\x06\xfd\x59\xd0\xcc\x1d\x1c\xf0\x1c\x37\x72\x41\x6e\x48\x65\x35\x88\xc0\x3c\xd5\x7c\x18\x76\xb0\xa5\xd9\xe5\x39\x65\xc4\xb1\x94\xe7\xdd\x80\x53\x6c\x86\x1a\xe2\x69\xbb\x3a\x06\xcf\x5d\x1a\xf7\x3a\xca\x31\x13\x92\xd8\xc6\xe3\x62\xe8\x96\xbd\x5b\x4b\xc2\x7d\x6b\x12\xc6\x20\x9e\x2f\x15\x18\xd8\x44\xf6\x85\x93\xc2\xcc\x0c\x07\xd7\x91\x9c\x2f\x44\x83\x00\x2c\x4c\xff\xdd\x40\x3a\x62\xfc\x85\x69\xd3\xd7\x91\x42\x33\xc3\x5c\x0c\x99\x20\x3a\xb1\xf4\xd5\xc8\x4c\xdd\xeb\x54\xec\x1d\x01\x58\x4a\x5e\x5e\x06\x6c\x3f\x65\x62\x23\x5c\xed\xbb\xd1\xd1\x4d\x8e\xd1\x8b\xa2\xec\x78\xdf\x5b\xf2\xe1\xf2\x59\x6a\x1e\x3d\xd5\xb9\xc9\xd2\x3b\x72\xdc\x7a\xde\xa3\xad\x6f\x9a\x32\xaa\x0f\x90\x31\xd2\xce\xdf\x39\x17\x5d\x71\x00\x44\x3b\x4c\x1f\xa9\xa1\xf2\x3a\x2b\xa2\x8c\x30\x26\x6a\x9d\x80\xcd\x8a\x29\x5e\xfa\xf9\x4b\x43\x57\x46\xdf\xb4\x46\xa3\x52\x2b\x94\x91\xb3\x15\x28\x0c\x84\x21\x7a\x34\xb3\xfb\x84\xf0\x1f\x82\xff\x5d\xa3\x14\x12\x7e\xff\xfa\xe9\x63\xa7\x04\x10\x95\xe2\xe9\x84\x92\xe7\xc0\x50\x1a\xa2\x52\x9d\x90\xfe\x60\x42\xce\x51\xc3\xfd\xbe\x62\x42\xa2\x5c\xdc\xe7\x1b\xec\x29\x9b\xcf\x71\xe5\x3f\x05\x8f\x2a\x89\x76\xaa\xc1\x16\xa5\xa2\x82\xcf\xc0\xf7\x1b\x3b\xf4\x4d\x1c\xff\xa8\xba\xaa\x84\x34\x4c\x96\x1e\x3c\x8d\x03\xe1\x39\x7c\xae\x50\x92\xa6\xe9\x6d\xb6\xee\xa
2017-08-13 01:57:08 +00:00
func styleCssBytes() ([]byte, error) {
return bindataRead(
_styleCss,
"style.css",
)
}
func styleCss() (*asset, error) {
bytes, err := styleCssBytes()
if err != nil {
return nil, err
}
2017-12-10 01:21:02 +00:00
info := bindataFileInfo{name: "style.css", size: 4173, mode: os.FileMode(420), modTime: time.Unix(1512867917, 0)}
2017-08-13 01:57:08 +00:00
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){
"archive.js": archiveJs,
"style.css": styleCss,
}
// 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{
"archive.js": &bintree{archiveJs, map[string]*bintree{}},
"style.css": &bintree{styleCss, 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, filepath.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, filepath.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, "/")...)...)
}