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