Files
opencloud/pkg/assets/embed.go
Benedikt Kulmann b1ba52f02b Add asset generation from javascript bundle
On `make generate` the `pkg/assets/embed.go` will be generated from the
current state of the javascript app bundle in `assets/accounts.js`. So
you'll have to run `yarn build` first and then `make generate`.
2020-07-01 11:05:32 +02:00

174 lines
15 KiB
Go

// Code generated by fileb0x at "2020-06-29 17:28:18.895015 +0200 CEST m=+0.002488382" from config file "embed.yml" DO NOT EDIT.
// modification hash(2779c5cda0c9231b4f83452cd22127b5.8058aec596c5fb73022d09bb97af796e)
package assets
import (
"bytes"
"compress/gzip"
"context"
"io"
"net/http"
"os"
"path"
"golang.org/x/net/webdav"
)
var (
// CTX is a context for webdav vfs
CTX = context.Background()
// FS is a virtual memory file system
FS = webdav.NewMemFS()
// Handler is used to server files through a http handler
Handler *webdav.Handler
// HTTP is the http file system
HTTP http.FileSystem = new(HTTPFS)
)
// HTTPFS implements http.FileSystem
type HTTPFS struct {
// Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
Prefix string
}
// FileAccountsJs is "accounts.js"
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x59\x6d\x8f\xdb\xb8\x73\x7f\xdf\x4f\x21\x0b\x81\x4e\xc4\x31\xca\xee\xf5\x55\xa5\xb0\x7b\x41\xb0\x57\x04\x48\x93\x43\x92\x16\x2d\x5c\xc3\xe0\x4a\xa3\x15\x1b\x99\x14\x28\xca\xbb\x86\xcd\xef\x5e\xf0\x49\xa2\xbd\xde\xf6\xfa\x07\xfe\xaf\x2c\x3e\x0d\x87\x3f\xce\xfc\x66\x86\x6e\xa0\x65\x1c\xf2\xbc\x9d\x78\xad\x98\xe0\x39\x3a\xa6\xd3\x08\xc9\xa8\x24\xab\x55\x5a\xad\xe6\x01\x85\x01\x1d\x55\x0e\xe4\x08\xcf\x83\x90\x6a\x2c\x8f\x5a\x63\x28\x7c\x0b\xe9\x48\x88\x42\xc7\x3d\x95\x09\x90\x97\x3d\x5f\x1f\xfe\x1b\x6a\x55\x0c\x52\x28\xa1\x0e\x03\x60\x49\xa0\xe8\xe8\xf8\xf5\x89\xff\x29\xc5\x00\x52\x1d\x30\x27\x69\x58\x98\x12\x62\x66\x89\x36\xf9\x7e\xd8\x3d\x88\xfe\xce\xfd\x94\x47\x8d\x05\xe1\x05\x53\x20\xa9\x12\xf2\x74\x4a\x7f\xff\x3d\x34\x52\xcc\x08\x2f\xe8\x78\xe0\xf5\xa7\x78\xfc\xac\x27\xc5\x94\xf0\x42\x89\xef\x4a\x32\xfe\xf8\x83\x3e\xda\x29\x51\x3b\xad\x82\x0e\x49\x6d\x0e\x8f\x25\xe6\xee\x10\x82\x40\x96\xc1\x72\x84\x84\xf1\x51\x51\x5e\x1b\x2d\xbb\x3b\x28\x3b\xcc\xc2\x31\x6b\x09\x54\x41\x2e\x96\xc9\xc8\xec\x0b\x4f\xc9\x7d\xce\x4f\xa7\xf5\x06\x55\x12\xd4\x24\x79\xc2\x8a\x2d\xe3\x7b\xf1\x33\xc6\xcc\x6c\xea\xb6\xe4\x24\x1d\xa7\x71\x00\xde\x40\xf3\x5d\x51\xa9\xd2\xb0\x6e\x9e\x2d\x30\x43\x47\xd6\xe6\x29\x3c\x43\x3d\x29\xc6\x1f\x53\x42\x08\x47\xaa\x93\xe2\x29\xb1\x5b\x4a\x29\x64\x9e\xfe\x0b\x70\x07\x41\xc2\xc6\x84\xf6\x12\x68\x73\x48\xe4\xc4\xb9\x59\x82\x2a\x23\xa2\x16\xbb\xa1\x07\x05\x8d\x13\x61\xc5\x5a\x39\xa6\x2d\xbc\x48\x16\x54\x78\xc8\x91\x6e\x85\xcc\x65\xb1\x03\xd5\x89\x86\x08\x2c\x0b\x2a\x1f\x09\xab\x2a\xa7\x3e\x25\xb2\x68\xa0\x87\x47\xaa\xc0\x6c\x40\x5d\x77\x4d\x9e\x72\x8a\xa5\xdd\xb3\xb6\xbb\xd4\x84\x90\x09\xd5\x82\x2b\xc6\x27\x08\x1b\xd4\x5a\x1b\x0d\x38\x3c\x2b\xa3\x40\xd8\x07\xc9\x62\x04\xae\x88\x2c\xb6\xfe\x97\xca\xc7\x0a\xfa\x11\x92\x33\x85\xe7\xf9\xf6\x1c\x17\x38\xc6\x18\x91\xe8\xe0\xee\x08\x95\x2c\x1a\x36\x0e\x54\xd5\xdd\xfd\x73\x0d\x83\x45\xda\x8e\x20\x6d\x36\x4a\x9d\x86\xf1\x2e\x59\x26\x0b\xfa\x20\xa7\x41\xe5\x61\xd4\xc9\x42\x15\x27\xd1\xe5\x54\x06\x81\x8e\x8c\xfe\x9a\x2d\xee\x5c\xc8\x1d\xed\x8d\xb4\xae\xb0\xc6\x62\x34\xe6\x06\x3c\xc1\xe1\x2e\xd2\xae\x5c\x8e\xf1\x9f\x0c\xfa\x26\xc5\x9d\x45\xfc\x0a\x7a\xc7\x3d\xed\x27\x28\xed\x38\x36\x72\x4a\x27\x4e\xeb\x05\x21\xb7\x5b\x96\xe5\x97\x10\xf8\x0b\xf5\x33\xfd\xb5\x76\xee\xfc\x5a\xe7\x0a\x4b\x4c\x11\x66\x7a\x76\x95\x70\x9c\xa3\x92\x87\xa3\x57\xc0\xc8\x2e\xc3\xd9\x30\x95\x8f\xa5\x2a\x6a\xda\xf7\xb9\x99\xa8\x75\x6d\xd0\x35\x04\x71\x36\xdd\xef\x68\x67\x6b\xad\x55\xf1\x24\xe9\x40\x6a\x8b\xda\x44\x8e\x7a\xf1\xce\x2e\x47\xc7\x45\x81\xf6\xac\xd5\x9b\x96\x59\x32\x98\x25\xc3\x5a\x6c\x48\xc4\x74\xde\xbc\x54\xc7\x46\x6d\x05\x37\xc1\x6f\x1f\x41\xfd\x19\x3c\xf6\x6b\x8b\xf7\xa4\xc9\xb2\x26\x6f\xf2\xcf\xf9\x7a\x83\x10\xaa\xf6\x59\xb6\x5f\x11\xc3\x03\xd2\x1d\x65\x8f\x05\xca\xb2\x7c\x20\x7b\x64\x25\x1d\x48\xbf\xf8\x3c\xe9\xa2\xef\x73\x66\x18\xd0\x72\x90\x47\x03\xc2\xda\x99\x39\x0e\x00\x04\x1b\xda\x14\xad\x90\xf7\xb4\xee\x22\x9a\x35\x84\xbc\x86\xcd\x19\xcb\x46\x67\x0a\x8c\x92\x03\x56\x48\x6b\x84\x16\x5c\x76\x8e\xce\x2d\xb5\x54\xf1\x5c\x72\xce\x27\xf3\x02\xba\xc0\x65\xa8\x24\x8e\x18\x1c\x53\x74\x9c\xe3\x44\x62\x57\x62\x8a\x6b\x27\x7e\x32\x16\xbe\x16\x1b\xac\x30\x73\x46\xee\x0e\xb6\x22\x64\xf2\x36\xee\x1c\x61\xb2\x06\xda\x92\xae\xb0\x06\x3b\xf3\x5b\x96\xa5\xc2\x42\xb6\x84\x82\x76\x86\xbd\xc5\xe9\x76\x4b\x9f\x28\x53\x29\xba\x83\x42\xc2\x28\xfa\x3d\xe4\x6d\xe1\x7b\x51\xa1\x3a\xe0\xe7\x91\x89\x7b\x26\xc1\xca\x6a\xa9\x11\xbe\x1c\xf6\xd0\x87\x71\x54\x46\x92\xaf\x49\xf4\x2a\x13\x85\x69\xde\xbd\x10\x18\x60\x7b\x29\x57\xd7\xf9\xe4\x7c\xc9\x62\x66\x80\x34\xbd\x61\x01\xe1\x77\xdc\xed\x46\x31\x45\x25\xcd\x91\x5e\x6e\xf0\x69\xb9\x41\x49\xd4\x1c\x08\xd7\xe0\x7d\x76\x63\xb0\xde\x0b\xd6\x24\x37\x86\x9c\x2c\x93\xc0\x4c\xc2\x84\x4f\x7d\x8f\x17\x02\x80\x98\x22\x17\x69\x85\x53\x25\xcb\x72\x98\xa9\x20\x70\x1a\x58\x2e\x70\x3b\x60\xa7\xcd\x35\x81\xc8\x9f\x66\xaa\xe0\x92\x4d\x9c\x04\x63\x4e\x3f\x0e\x03\xf8\xe8\xf4\xa3\x83\x24\x6c\x9f\x34\x02\xc6\x84\x0b\x95\x0c\x52\xec\x59\x03\x09\x4d\x7e\xb1\x8b\x7f\x49\x9c\xac\x74\x46\x6b\xd2\x2e\x4e\x8e\xb9\xc4\xcb\x01\xdc\x1e\xb1\xdd\x19\xbe\x77\x76\xe7\x17\xbe\xa6\x96\x35\xc7\x4b\xc4\xa6\xca\x25\x00\xdc\x05\x07\x27\x41\xdc\x09\x47\xd0\x39\xac\x95\xb1\x94\xa9\x57\x5f\xe8\x0e\x36\x44\x38\xc3\xc0\x50\x18\x8b\x23\xca\xfe\x7c\x16\xf5\xec\xd5\xab\x05\xa9\x33\x90\x9d\x81\xc6\x10\xa3\x97\xba\xa0\x52\x94\xf9\x5f\x43\x75\x46\xd4\x69\x67\x22\xbf\x81\x95\xf2\xc4\xfb\xd6\x35\xf1\x8b\xb1\x6d\x97\xfc\xcd\x10\xfb\x67\x51\x97\x6a\x7d\xb3\xd1\xd5\x6d\xc2\x78\xa2\xac\xea\x96\xc6\x3f\x8b\x9a\xa8\xf5\xed\x06\xe1\xdf\x96\x91\x96\x71\xda\xf7\x07\x37\xf6\xdb\xc6\x68\xd8\x2a\x90\xae\xfd\x8f\x1b\x84\x2d\x01\x29\x79\xb8\xe7\x4a\x32\x18\x8b\x61\x1a\xbb\x1c\xa2\xfd\x9f\x97\xfd\x55\xe1\x03\x14\x13\xfc\x74\x3a\xea\x0a\xec\x6d\x92\x39\xbe\x98\x53\x28\x48\x2c\x0c\x38\x9e\x4d\x60\x11\x78\x6f\x04\x5e\x6c\x4b\xd6\xe1\x6c\xa9\x14\x42\xa5\x7a\x83\xd5\x4c\xba\x5b\xab\xa4\x57\x55\xc2\x08\x2a\x5f\xdd\x44\x1a\x7e\x36\x02\x8d\xef\xcc\x7a\xae\x85\x75\xc1\xc8\xce\x2c\x63\x29\x67\x8c\x2f\xf3\x5b\x67\x1c\x61\xb6\x32\xb3\x56\x6c\xfc\x42\xbf\xe4\xaa\xe8\x81\x3f\xaa\x0e\x85\x5c\xf0\xed\x2d\x66\x33\x51\x27\x90\xa3\xa3\x49\xbf\xaa\x5f\x7f\xe5\xef\xc3\xdc\x0a\xb1\x36\xf7\x24\xa9\x30\x47\x8b\x16\x9e\xaa\xd6\xdc\x5c\x84\x31\x5b\xb2\xba\xc5\x33\xdd\x86\x71\xef\xd7\x61\xc6\x0d\x06\xbd\x64\xaa\xd6\x98\x99\xf6\xae\x77\x34\xcd\xf2\x21\xe2\xa6\x87\x39\x58\xf8\xe4\xc3\x4b\xb3\xd9\xc7\xea\x26\x2c\x4c\xda\x28\x2c\x1e\x8a\x5a\xf0\x51\xc9\xa9\x56\x42\x92\x1e\xf7\x67\xed\x16\xf7\x6b\xba\x21\xad\xcd\xc6\x7a\x7a\x30\xee\x45\x96\x4c\xf6\x8f\x80\xa6\x71\xfd\xf1\x45\xf7\x95\x32\xe4\xda\x05\x64\x99\x8a\x37\xf5\xe7\x5d\xad\x4c\x62\x04\x84\x90\xf6\x74\xba\xb2\x25\x21\xc4\x10\xeb\xa2\xd7\xe9\x04\x05\xa7\x3b\x40\x48\x63\x55\xec\xa8\xfc\x79\x2d\x40\xfb\x34\x60\x3c\x4b\x34\xee\xae\xf6\xe6\x0a\xf7\xa8\xcc\x55\xb1\xdd\x5a\xbc\xb6\x5b\xd2\x63\x6a\xfd\xeb\x74\xca\x95\x01\xe6\x8a\x5e\x08\x61\xf5\x6a\xda\x71\x40\x58\x19\xed\xa8\xcd\xaa\x5e\xaa\x77\xf4\xf1\xd3\xe4\x5e\xf8\x31\xdf\xc5\xf5\x4b\xd4\x58\xb3\x57\xf3\x29\xac\x8a\x0f\x71\xbd\x45\x76\x66\x3b\xd3\xb3\xac\xb0\x35\x15\xb6\x89\xc6\x1c\xa9\x58\x96\xe5\x8c\xfc\x29\xc5\x8e\x8d\xe0\x72\x29\x57\x30\xed\xf2\x3a\x2c\x40\x26\x95\x08\x9b\x5d\xbb\xf0\x5c\xa2\x3b\x5a\x52\x6b\xa8\xf9\xb5\x88\x3d\x2f\xb6\xbc\xad\x9c\xd1\xcf\x0b\x4c\x10\xc6\x8f\x06\xa4\xc3\x39\xb8\x29\x3e\xfc\x2f\x29\x24\x3e\xcc\xf5\xe4\xcb\x29\xe9\xda\x31\x6d\x32\x0b\xdb\xa4\x06\xa4\x9f\x70\x18\xaf\xd8\xe7\x7a\x53\x19\x9f\xb6\xe1\xdd\xde\x34\x02\x47\x8b\x12\x2d\xae\x2a\x61\x0f\x72\x84\x1c\xe1\xd9\xf5\x64\x20\x03\x98\x89\xc0\x93\x06\x14\x83\x18\x72\xcb\x3e\xdc\x49\xf4\x72\xa4\x77\x79\x8e\xe5\xcc\x07\x52\xcf\x83\x81\x00\xa4\x36\xea\xda\xa9\x23\xf9\x8c\xef\x23\xdb\x3a\x46\x5e\x53\xde\x63\x4b\x8f\x65\x7c\x26\x43\x8c\x86\x38\x07\x09\x7b\x72\xe3\x48\xd4\x92\x88\xff\xb6\xe5\x9b\x4b\x43\xed\xa7\xe7\x0b\xdb\x13\x54\x72\x8d\xb3\x10\x65\xbb\xce\x43\xa6\xed\x8a\x12\x93\xcb\xd0\x12\xf8\xfc\x19\xe1\x95\x42\x01\x62\xb0\x80\x18\x82\x4f\x95\xcb\x5e\xea\x8e\xca\x0f\x2a\xbf\x41\x73\xaa\x69\x86\x31\xa0\x2c\xf3\xac\xfc\x2b\x14\x63\xcf\x6a\xc8\x6f\x91\xc9\xfc\xcd\xb0\xc9\xc5\x7d\xb4\xd6\x78\x54\x62\x28\x23\x33\x88\x0e\x73\x63\xcd\xda\x9f\x78\x51\x6e\x7d\xb3\x89\xc2\xd5\x79\xce\xa2\x5c\xce\xe2\x0a\x55\x15\x67\x1f\x2e\x22\xed\x69\xaf\xf1\x8b\x52\xf5\xea\x25\x18\x1d\x82\xa0\xca\x07\xab\x8e\x8d\x55\x94\xc1\xdb\xa7\x0e\x2f\x9f\xfa\xf8\x1a\x0a\x32\x8b\xae\x0a\x29\x8d\xc4\xfc\xff\x4c\x5c\x56\x2b\xae\x03\xd2\xe2\xf2\xd0\xde\x4c\xdf\xde\x56\xe2\x9f\xc9\x4d\xf5\xf6\xad\x70\x06\xcb\x5e\xa0\x23\x36\x98\x12\x76\x89\x90\x0d\xd5\x86\x37\x0a\x17\xbc\xd1\x92\x6e\x03\x6f\xdc\x7b\x46\x18\x7b\x4f\x66\x2b\x0c\x0f\x10\xfe\x72\x19\x4e\x43\xfe\x92\x22\x3c\x46\xdd\x4b\xf2\xe2\x64\xd5\x59\x36\x9e\x1b\xf4\x7b\x36\xe7\x3e\xcb\xe6\x4b\x1f\x5e\xdd\xd8\x85\xf1\xfc\x45\x68\xbc\x22\xea\xd5\xe1\x15\xa3\xfe\x7f\xef\x65\x97\x9a\x45\xab\xf1\xe5\xdb\x8f\x92\x87\x64\x54\x54\xc1\x0e\xb8\x4a\x9e\x98\xea\xc4\xa4\x12\xbb\x3c\x11\x32\xf1\x1a\xa4\x7f\x83\xc2\x5a\x6b\xec\x9e\x3d\xca\xf3\x27\xc3\x70\xf3\xfc\xf5\x9b\xe7\xee\xe6\xe7\xe7\xb5\xcb\x9b\xe7\x36\x93\x12\x2f\x6f\x71\x76\x4e\x71\x7e\x51\x59\xb6\x28\x2f\x62\x35\xbd\x69\x89\xea\x41\x02\xfd\xa9\xb5\x89\x36\xa9\xfd\xb6\x4e\x76\x3a\xa5\xe1\xf5\xc4\xb6\x51\x96\x2d\xb6\x03\x59\x06\xef\x49\x7c\x6a\x1b\xaa\x0c\x13\x85\x38\xc5\xee\x62\xfb\x2c\x8f\x73\xce\xe4\x9d\x48\x79\xf7\x01\xcc\xee\xf2\xd7\xd8\xcb\x65\x57\xd1\x36\x26\xd3\xb7\x23\xe1\x69\x26\xa7\x48\xe3\xd0\xb8\x80\xfb\xaf\xb1\x46\x74\x66\x3b\xe5\xf2\xe0\xb6\xf3\x6e\x51\xc7\xae\x2d\xa3\xd7\x2e\x3f\x23\x9f\xd9\x87\xcc\xcc\xab\x5c\xe6\x1d\x9f\x2e\xd4\x8c\x8b\x40\xe7\x9c\x65\xf4\xe2\xa5\xfc\x1b\x14\x78\x32\x75\xf3\x00\xe1\x49\xe3\x96\x71\x36\x76\x67\x6c\x36\x53\xf7\xeb\x66\x05\xce\xac\x96\x2a\xf9\xc2\xac\xc0\x9a\x95\x8c\xeb\x13\x73\xe7\x31\xaf\xce\x88\xcb\xe8\x5e\xb1\x9c\x0b\x18\x84\x9f\x73\x69\x54\xd4\xd8\x3a\xd1\xdf\x4b\x45\x67\x83\x56\x3d\x1f\xce\xe5\xab\xa1\x82\x47\xcf\x2a\xa1\x52\x35\x5a\x86\x90\x2e\xb4\x7e\xc1\x0b\xac\x37\x71\xb5\xf7\x4c\x40\x95\x82\xdd\xa0\x52\xa4\x71\x08\xb8\xf6\x95\xb1\xbc\x7c\x9a\x8e\xa1\x9a\x43\xf3\x31\x14\x9b\xa5\x29\x8a\xf0\x52\x0f\x97\x80\x7d\xfd\x5b\x4a\x8d\xe7\xe7\xdc\xc8\x52\xc2\xd5\xc7\xd1\xc3\x60\xab\x74\xae\xe6\x3f\x1a\x2a\xf7\xb4\xf8\x18\xf2\xa8\x6f\x13\x57\x6c\x07\x04\x96\x97\xc4\x39\x0f\x4c\xa5\x7d\x41\xbb\x9c\x9b\x90\x44\xa6\xc8\x94\x98\x1a\x45\x0f\x70\x2a\xbc\xf3\x63\xff\x84\x85\x47\x3c\xa1\x63\xfa\x20\x44\x0f\xd4\x54\xeb\xbe\x54\xa0\x59\x96\x8f\xa4\xc6\x35\xa1\x98\x92\xd5\x2d\xaa\x6c\x06\x94\x74\xd7\xea\x0a\x79\x27\x0b\x61\xc3\xf1\x58\xca\xaa\x07\x95\xb4\x96\x5e\x4d\xb9\x21\x81\x37\x20\xb3\x2c\xef\xfc\x27\x09\x7d\xb8\x2b\x0c\x51\xb3\xfa\x9b\x6d\xfe\xc1\x47\xa2\x2e\x7b\x70\x57\x6c\x8d\x15\xb0\x1e\x1a\x93\xa2\x09\x2b\x28\x68\x40\x7b\xb2\xba\x41\xc8\x06\xe8\xae\xd8\x8e\xb5\x18\xe0\x53\x43\x38\x32\xe4\xd3\x9e\xe5\x9c\xb9\x32\xdc\x67\xa1\x7f\xb3\xe7\xa2\x01\x4f\xa0\xae\x51\x8c\xa3\xfc\x28\xb8\x82\xe7\x30\x69\xa0\x12\xb8\x0a\x2c\x6b\x1b\xe7\x0b\xcf\xfa\xa2\xf5\xe8\x74\x4a\x27\xee\xfe\x74\x6a\x16\x88\xb6\xdb\x7f\xff\xb7\xfb\xed\xf7\xef\xdf\xb6\x1f\xbf\x7e\xf9\x71\xff\x1f\x3f\xb6\x5b\x53\xd9\x90\x2b\xfd\x08\xdb\x3f\x5f\x96\x94\x6c\xcc\x95\x29\x75\x0c\x9a\x5b\x09\x8f\x6c\x54\x20\xa1\xf9\x28\x76\x83\xe0\xc0\xd5\xf8\xea\x40\x41\x9b\x26\x67\x48\x1b\x14\xc7\x51\x7e\xf3\x53\x48\x8b\x4a\xc3\x41\x2d\xa1\x77\x31\x46\xf1\x9e\x53\xae\x1c\x97\xbd\x31\xe9\x47\xf1\xc6\x5f\x6f\x31\x76\xb4\x11\x4f\xdf\x84\x50\x08\xe9\xf2\xb5\xd5\xb5\xd1\x58\x23\xdc\x9a\x1a\x3d\xbe\x2f\xe4\x12\xe9\x44\x91\x60\x0e\xd5\x6c\x17\x71\xd1\x34\x3b\x5e\xeb\xa4\x4a\x84\x95\x7f\x4c\xb7\xc1\x7f\x91\xf2\x00\xad\x90\xf0\xd1\x16\x7d\xd5\x79\x93\xa8\xbb\xb5\xc9\x37\x79\x4d\x8d\xdd\xb7\xa8\x5c\xb7\x9b\x39\xed\xd7\x4e\x06\x90\xa3\x29\x65\xcb\xf4\xc3\x30\xa4\xee\x8d\x5c\xc6\xb5\x4d\x94\xc7\xbe\x71\xa5\xe5\x7d\x6f\x73\x8b\x2a\x64\xf3\x7d\x5b\x6c\xeb\xb3\x5c\x75\xbb\xcb\x6f\x90\xae\x64\xb1\x35\xf9\x87\xa9\x97\x86\xc1\xda\x6f\xe5\x98\x2d\xec\x58\xd7\x62\xe2\x6a\x4c\x31\x6b\xca\x94\x2e\xad\x5a\xf0\x32\x35\xc6\xf4\x76\x5f\x53\xd9\xa4\x98\x8d\x7f\xb0\x1e\xee\x1b\x66\x38\x67\x75\x8b\xe1\x59\x01\x1f\xad\xbf\xad\x37\xb8\x16\xbc\x65\x8f\xe5\x71\x92\x7d\x99\x76\x4a\x0d\x63\xf9\xee\x5d\x2f\x6a\xda\x77\x62\x54\xe5\x3f\xfd\x76\x73\x93\xea\x10\xa8\x8f\x74\x18\x3e\xf1\x56\x94\x1c\x4b\x31\x29\x18\xcb\xb5\x57\x67\x51\x60\xa0\xaa\x2b\xd3\x77\xa9\x8d\xc0\xce\x94\x4a\xb3\xae\x54\xf9\xd1\x5d\x56\x29\xf1\x85\xa7\x96\xeb\xbf\x02\x1a\x06\x72\x06\xdb\xe9\xa4\xe6\x62\x2f\x4f\x1b\xb6\x4f\xf1\x1a\xf2\xb4\xbb\x4d\xf1\xda\x4d\xdc\xe7\xe9\x7f\xf1\x24\x49\x92\x80\x56\x42\x79\x93\x8c\x6a\x6a\xdb\xc2\x0c\xa4\x68\x83\x36\x48\x6f\x34\x0e\x0f\x3a\xe1\x63\x75\xfb\xf2\xeb\xec\x07\x69\xbd\xc1\x9c\xee\x3f\x29\xd8\x2d\x30\x7c\x38\xbb\x87\x7f\xa5\x0a\x24\xa3\x7d\xc9\x0b\xd3\x74\x98\x95\xaf\x22\x16\xac\x8d\x17\xac\xc1\xe9\xbb\xd4\x6c\x61\x19\xf8\x1f\xfe\x27\x00\x00\xff\xff\xfe\xde\x2b\xee\x87\x1e\x00\x00")
func init() {
err := CTX.Err()
if err != nil {
panic(err)
}
var f webdav.File
var rb *bytes.Reader
var r *gzip.Reader
rb = bytes.NewReader(FileAccountsJs)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "accounts.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
Handler = &webdav.Handler{
FileSystem: FS,
LockSystem: webdav.NewMemLS(),
}
}
// Open a file
func (hfs *HTTPFS) Open(path string) (http.File, error) {
path = hfs.Prefix + path
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
if err != nil {
return nil, err
}
return f, nil
}
// ReadFile is adapTed from ioutil
func ReadFile(path string) ([]byte, error) {
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
if err != nil {
return nil, err
}
buf := bytes.NewBuffer(make([]byte, 0, bytes.MinRead))
// If the buffer overflows, we will get bytes.ErrTooLarge.
// Return that as an error. Any other panic remains.
defer func() {
e := recover()
if e == nil {
return
}
if panicErr, ok := e.(error); ok && panicErr == bytes.ErrTooLarge {
err = panicErr
} else {
panic(e)
}
}()
_, err = buf.ReadFrom(f)
return buf.Bytes(), err
}
// WriteFile is adapTed from ioutil
func WriteFile(filename string, data []byte, perm os.FileMode) error {
f, err := FS.OpenFile(CTX, filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
if err != nil {
return err
}
n, err := f.Write(data)
if err == nil && n < len(data) {
err = io.ErrShortWrite
}
if err1 := f.Close(); err == nil {
err = err1
}
return err
}
// WalkDirs looks for files in the given dir and returns a list of files in it
// usage for all files in the b0x: WalkDirs("", false)
func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error) {
f, err := FS.OpenFile(CTX, name, os.O_RDONLY, 0)
if err != nil {
return nil, err
}
fileInfos, err := f.Readdir(0)
if err != nil {
return nil, err
}
err = f.Close()
if err != nil {
return nil, err
}
for _, info := range fileInfos {
filename := path.Join(name, info.Name())
if includeDirsInList || !info.IsDir() {
files = append(files, filename)
}
if info.IsDir() {
files, err = WalkDirs(filename, includeDirsInList, files...)
if err != nil {
return nil, err
}
}
}
return files, nil
}