finnally doooo and close #11
This commit is contained in:
6 files changed
+101
-11
No files matched your search
@@ -45,7 +45,6 @@ button {
|
||||
padding: .5em 1em;
|
||||
margin-left: .5em;
|
||||
border-radius: .1em;
|
||||
background-color;
|
||||
cursor: pointer;
|
||||
background: #2196f3;
|
||||
color: #fff;
|
||||
@@ -376,10 +375,6 @@ header>div div {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
header .actions {
|
||||
/* margin-left: auto; */
|
||||
}
|
||||
|
||||
#logout {
|
||||
border-radius: 0;
|
||||
margin-left: auto;
|
||||
@@ -1010,6 +1005,10 @@ header .actions {
|
||||
padding: .3em;
|
||||
}
|
||||
|
||||
.prompt code {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.prompt div,
|
||||
.help div {
|
||||
margin-top: 1em;
|
||||
|
||||
@@ -302,17 +302,40 @@ function openEvent (event) {
|
||||
return false
|
||||
}
|
||||
|
||||
function getHash (event, hash) {
|
||||
event.preventDefault()
|
||||
|
||||
let request = new window.XMLHttpRequest()
|
||||
request.open('GET', `${window.location.pathname}?checksum=${hash}`, true)
|
||||
|
||||
request.onload = () => {
|
||||
if (request.status >= 300) {
|
||||
console.log(request.statusText)
|
||||
return
|
||||
}
|
||||
event.target.parentElement.innerHTML = request.responseText
|
||||
}
|
||||
request.onerror = (e) => console.log(e)
|
||||
request.send()
|
||||
}
|
||||
|
||||
function infoEvent (event) {
|
||||
event.preventDefault()
|
||||
if (event.currentTarget.classList.contains('disabled')) {
|
||||
return
|
||||
}
|
||||
|
||||
let dir = false
|
||||
let link
|
||||
|
||||
if (selectedItems.length) {
|
||||
link = document.getElementById(selectedItems[0]).dataset.url
|
||||
dir = document.getElementById(selectedItems[0]).dataset.dir
|
||||
} else {
|
||||
if (document.getElementById('listing') !== null) {
|
||||
dir = true
|
||||
}
|
||||
|
||||
link = window.location.pathname
|
||||
}
|
||||
|
||||
@@ -326,6 +349,10 @@ function infoEvent (event) {
|
||||
clone.getElementById('content_length').innerHTML = xml.getElementsByTagName('getcontentlength')[0].innerHTML
|
||||
clone.getElementById('last_modified').innerHTML = xml.getElementsByTagName('getlastmodified')[0].innerHTML
|
||||
|
||||
if (dir === true || dir === 'true') {
|
||||
clone.querySelector('.file-only').style.display = 'none'
|
||||
}
|
||||
|
||||
document.querySelector('body').appendChild(clone)
|
||||
document.querySelector('.overlay').classList.add('active')
|
||||
document.querySelector('.prompt').classList.add('active')
|
||||
|
||||
@@ -215,6 +215,14 @@
|
||||
<p><strong>Display Name:</strong> <span id="display_name"></span></p>
|
||||
<p><strong>Content Length:</strong> <span id="content_length"></span> Bytes</p>
|
||||
<p><strong>Last Modified:</strong> <span id="last_modified"></span></p>
|
||||
|
||||
<section class="file-only">
|
||||
<p><strong>MD5:</strong> <code id="md5"><a href="#" onclick="getHash(event, 'md5')">show</a></code></p>
|
||||
<p><strong>SHA1:</strong> <code id="sha1"><a href="#" onclick="getHash(event, 'sha1')">show</a></code></p>
|
||||
<p><strong>SHA256:</strong> <code id="sha256"><a href="#" onclick="getHash(event, 'sha256')">show</a></code></p>
|
||||
<p><strong>SHA512:</strong> <code id="sha512"><a href="#" onclick="getHash(event, 'sha512')">show</a></code></p>
|
||||
</section>
|
||||
|
||||
<div>
|
||||
<button type="submit" onclick="closePrompt(event);" class="ok">OK</button>
|
||||
</div>
|
||||
|
||||
+6
-6
@@ -411,7 +411,7 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x5a\xdf\x6f\xdb\x38\xf2\x7f\x5f\x60\xff\x87\xf9\x0a\x0b\x6c\x82\xef\xda\xba\xed\xbe\x1c\xba\xb2\x0e\xdd\x24\x8b\xed\x5d\x92\x16\x4d\xbb\x87\x7b\x32\x68\x71\x6c\xb1\xa5\x48\x2d\x49\xd9\x71\x0c\xff\xef\x07\x52\x94\x2c\x5b\x92\x7f\xa5\x39\xdc\x8f\xbe\xa4\xa2\x38\x1f\xce\x7c\x66\x38\x33\xa4\x1c\xfd\xdf\xf5\xbb\xab\x8f\xff\x78\x7f\x03\xa9\xc9\x78\xfc\xed\x37\x91\xff\xbb\x5a\xc1\x77\x64\xa2\x3f\x7d\xb8\x85\xd7\x23\x18\x5e\x49\x31\x65\xb3\xe1\x9b\x89\x96\xbc\x30\x68\x87\xd7\x6b\x3b\x1b\x09\x8d\xbf\xfd\x06\x00\x20\x32\xcc\x70\x8c\x57\xab\xe1\x3d\xc9\x70\xbd\x8e\xc2\x72\xc0\xbf\xcd\xd0\x10\x10\x24\xc3\x51\x30\x67\xb8\xc8\xa5\x32\x01\x24\x52\x18\x14\x66\x14\x2c\x18\x35\xe9\x88\xe2\x9c\x25\x38\x70\x0f\x3f\x00\x13\xcc\x30\xc2\x07\x3a\x21\x1c\x47\x3f\xfe\x00\x19\x79\x64\x59\x91\x6d\x06\x0a\x8d\xca\x3d\x91\x09\xc7\xd1\x9f\x82\xad\xb5\x92\x94\x28\x8d\x66\x14\x14\x66\x3a\xf8\x73\xfd\x8e\x33\xf1\x05\x14\xf2\x51\xa0\xcd\x92\xa3\x4e\x11\x4d\x00\xa9\xc2\xe9\x28\x58\xad\x7a\x2c\x0d\xc7\x53\xc6\x31\x23\x82\xcc\x50\x31\x61\x50\x09\xc2\xc3\x44\xeb\x50\x48\x95\x11\xce\x9e\x70\x98\x68\xfd\x52\x8b\x4c\xa5\x30\xfa\x25\x17\x28\x41\x9a\x2b\xac\x56\x03\x60\x53\x10\x08\xc3\x4f\x1a\xd5\xf0\xc1\xce\x78\xb0\xcb\x40\x10\xc0\xc0\x3a\xdf\x29\xe2\x24\xe3\xd5\x0a\xae\x1e\x1e\xda\x53\x6d\x14\x94\x33\x36\xa8\x28\x68\x29\x5f\x21\x24\x8a\xe5\xc6\x4f\x98\x13\xe5\xbc\x0a\x23\xf8\xeb\xc3\xbb\xfb\x61\x6e\x7d\x78\xf1\xfd\x6a\x05\x77\x44\xe9\x94\xf0\x72\x0d\x58\xaf\xbf\xbf\xfc\xa1\x14\xb1\xff\x16\x38\xa1\x64\x6e\xad\x1c\x41\xb0\x5a\xed\x9a\xff\xf7\xfa\xf5\x7a\x1d\x34\xc4\x26\x44\x63\xaf\xd0\xa7\x0f\xb7\xdb\xb3\x73\x85\x53\xf6\x58\xcf\xaf\x49\x7e\x5f\x8f\xaf\xd7\xc1\xcf\xde\xaa\x70\xcb\x2c\x6f\x24\x68\x95\x9c\xec\x9f\xcf\x3a\x4c\x64\x96\x49\x31\xfc\xac\x03\xa0\x38\x45\x15\xef\xc0\x7b\x67\x0d\xdf\xea\x6b\xa6\x60\xe3\x9b\x67\x2d\xca\x99\x36\x4c\xcc\xf6\xaf\x8a\x5c\xe3\x57\x59\x90\x24\x18\x6a\x95\x0c\x32\x26\xec\xff\xfb\x57\x7d\xa6\x55\x73\x14\x54\xaa\x70\x2a\x55\xf6\xea\xb3\x7e\xb1\x65\x90\x32\x23\xd5\x01\xee\x04\xad\xa9\xab\x3c\xe8\x57\xf9\xad\x98\xc9\x1b\x61\xb3\x1a\x3d\x99\xdd\xb4\x98\xc9\xa6\x2a\x24\xcf\x39\x4b\x88\x61\x87\x22\xa8\xd2\x27\x0a\x7d\x56\x8f\x26\x92\x2e\x2b\x3e\xec\x18\xaa\x78\xb3\x1d\x22\xca\xe6\xc0\xe8\x28\x30\x32\x1f\x4c\x88\x0a\x1a\xef\xaa\xf7\x71\x94\xc7\xbf\x32\x8e\x70\x57\x52\x14\x85\x79\x1c\x85\xf6\x45\x7b\xae\xc3\xd2\x48\x54\x92\xee\x42\xb9\x29\x0c\x12\x4e\xb4\x1e\x05\x19\x31\xa8\x6c\x61\x60\x89\x14\x3a\x00\x57\x66\x46\xc1\x83\x17\x2d\x21\xa2\x90\x75\x82\x88\xbc\x30\x60\x96\x39\x8e\x02\x83\x8f\x26\x80\x9c\x93\x04\x53\xc9\x29\xaa\x0a\x03\xa4\x02\x7c\xc4\xa4\x30\x08\x04\xec\xe6\x23\x82\x0e\x87\xc3\x4e\xb5\xda\xc6\x6c\xbd\xba\x95\x84\xda\x5d\x34\x1c\x76\xd9\x5d\x4f\xcd\xe3\x3e\xfb\x40\xe7\x4c\x04\x31\x29\x8c\x54\x28\x70\x61\x0d\xb3\x34\x76\xa8\xd2\x45\xac\x1f\xeb\xa0\xdb\xaf\x46\x12\x1b\x19\x81\x63\x9f\xcb\x99\x2c\xcc\x59\xec\xdf\x7a\x51\x7c\x64\x66\x6c\xe4\x98\xe4\x79\xdb\x05\xbb\x1a\xb6\xb5\xab\x03\x61\x22\x8d\x91\x59\x6f\x5c\xb5\x35\x6c\x14\x2c\xdb\x7f\x40\x10\x06\xd5\xce\x69\x99\x4e\x89\x21\x03\xaa\x64\x4e\xe5\x42\x74\x11\x91\x2b\x9c\x33\x59\xe8\x2e\x2a\xf6\xd2\x11\xeb\x62\x42\x99\xc2\xc4\x48\xb5\x1c\x13\xa5\xe4\x62\xcc\x71\x6a\xba\xc3\xd1\x41\x15\xbc\xc2\xaa\x34\x2a\x75\x98\x28\x24\x34\x51\x45\x36\xe9\x55\xc3\xda\xac\x88\x98\x21\x7c\xc7\x0c\x66\xae\x53\xfb\xa5\x16\xbb\x23\x39\x74\x51\x50\xaf\x4c\x36\x0d\x43\xd5\xeb\xad\xd7\xf6\xc1\x82\x0d\x7d\x41\x8b\x23\xce\xe2\x7a\xd0\x51\x6b\xab\x3a\xb7\x51\x48\xf6\xe8\xd5\xcc\x6e\xad\x95\xc3\x82\x1f\x19\xc0\xbb\x70\x5d\x6f\xdb\x7e\x8f\x72\x47\x61\x52\x28\x85\xc2\x0c\x6c\x92\x0e\xac\x11\x1b\xfd\x73\xfb\xd8\xa5\xe3\xb1\x3b\x46\x97\xeb\xd6\x35\x17\x28\xd3\x2e\x61\xd7\xb8\xa5\x1b\xed\xda\x03\x29\xf8\xb2\xcb\x89\x3e\x68\x89\xa0\x70\x21\xa4\xf1\x68\x97\x70\x51\x76\x52\x6f\x38\x97\x8b\x1b\xca\xcc\x65\x27\x95\x55\xd1\xb8\x71\xc5\xa6\x8f\x1d\x37\x07\xff\x80\xe1\x35\x31\x64\x78\x27\x29\x42\x90\x11\xf5\xa5\x8c\xb4\xde\x3d\xd2\xb7\x2b\x70\x11\x80\x14\x09\x67\xc9\x97\x51\x20\xa4\x79\x9b\xe5\x1c\x33\x14\x06\xe9\x05\xce\x51\x98\xcb\x9f\x4f\xde\x35\x55\x12\x79\xef\x17\x88\x15\x66\x72\x8e\x63\x85\x74\x8c\x4b\xec\xc9\xe5\x67\x46\xcb\x36\x1f\xbf\x33\x5d\x10\x0e\x46\x15\x78\x12\x17\xb6\xc0\x0f\xb4\x2c\x54\x82\x67\x9b\xfb\x51\xce\x66\x1c\xc1\x42\x41\x05\x95\x48\xfa\x0c\x7b\x4f\xe3\xa2\xcf\x36\x4d\xe6\xe7\x1b\xf5\xe0\x84\x2d\xc4\x0b\xb8\x6d\xa7\xc3\x3d\xc6\x18\x99\xa3\x38\xdf\x18\x44\x50\x64\x11\xc4\x16\x65\xcc\xc4\xd8\x17\xe0\x1e\x38\x9d\x13\x11\x7b\x99\x28\x74\x4f\x5f\x99\x00\x97\x29\x5a\xc9\xe1\xa2\xca\x1b\xa7\x10\x63\x77\xd8\xd9\xc4\xdc\x39\xe1\xa9\x54\x0b\xa2\xe8\x21\x46\xec\x64\xb0\x79\xf0\xe5\x38\xf1\x81\xb1\xc3\xcc\x49\x7c\x28\x14\x24\x3b\x9f\x11\xbb\x5e\x10\x67\x92\xe2\xd8\x6e\xe8\x17\x08\x7e\x67\xe7\x8e\x81\x67\x6c\x08\x8a\x1c\xcd\xf9\x76\x5e\x7b\xf1\x12\xc6\x75\xa3\xce\xa9\xd7\xfe\xf9\x19\x1e\xee\x9a\x7f\xa8\x0c\x43\x26\x27\x75\x85\xf5\x71\xad\x3a\xad\xeb\xef\xd9\xac\xc4\x78\x8e\xaa\xc3\x69\x47\x77\x03\x7e\x6d\xc2\xc4\xa0\x1a\xLine truncated
|
||||
var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x5a\x5f\x6f\xdb\x38\x12\x7f\x5f\x60\xbf\xc3\x9c\x6e\x81\x26\xb8\xda\xba\x64\x91\xc5\xa1\x2b\xeb\xd0\x4d\xb2\x68\xef\x92\x6c\xb1\x69\xf7\x70\x4f\x06\x2d\x8e\x2d\xb6\x14\xa9\x25\x29\x3b\x8e\xe1\xef\x7e\x20\x45\xc9\xb2\x2d\xd9\x8e\xd3\x1c\xee\x4f\x5f\x52\x51\xe4\x6f\x66\x7e\x33\x9c\x19\x52\x8e\xfe\x70\xf5\xcb\xe5\xc7\x7f\x7e\xb8\x86\xd4\x64\x3c\xfe\xf6\x9b\xc8\xff\x5d\x2c\xe0\x3b\x32\xd2\x9f\x7e\xbd\x81\x37\x03\xe8\x5f\x4a\x31\x66\x93\xfe\xdb\x91\x96\xbc\x30\x68\x87\x97\x4b\x3b\x1b\x09\x8d\xbf\xfd\x06\x00\x20\x32\xcc\x70\x8c\x17\x8b\xfe\x1d\xc9\x70\xb9\x8c\xc2\x72\xc0\xbf\xcd\xd0\x10\x10\x24\xc3\x41\x30\x65\x38\xcb\xa5\x32\x01\x24\x52\x18\x14\x66\x10\xcc\x18\x35\xe9\x80\xe2\x94\x25\xd8\x73\x0f\xaf\x81\x09\x66\x18\xe1\x3d\x9d\x10\x8e\x83\xb3\xd7\x90\x91\x07\x96\x15\xd9\x6a\xa0\xd0\xa8\xdc\x13\x19\x71\x1c\xfc\x39\x58\x93\x95\xa4\x44\x69\x34\x83\xa0\x30\xe3\xde\x5f\xea\x77\x9c\x89\x2f\xa0\x90\x0f\x02\x6d\xe6\x1c\x75\x8a\x68\x02\x48\x15\x8e\x07\xc1\x62\xd1\x61\x69\x38\x1c\x33\x8e\x19\x11\x64\x82\x8a\x09\x83\x4a\x10\x1e\x26\x5a\x87\x42\xaa\x8c\x70\xf6\x88\xfd\x44\xeb\x97\x12\x32\x96\xc2\xe8\x97\x14\x50\x82\x34\x25\x2c\x16\x3d\x60\x63\x10\x08\xfd\x4f\x1a\x55\xff\xde\xce\xb8\xb7\x62\x20\x08\xa0\x67\x9d\xef\x14\x71\x2b\xe3\xc5\x02\x2e\xef\xef\xb7\xa7\xda\x28\x28\x67\xac\x50\x51\xd0\x72\x7d\x85\x90\x28\x96\x1b\x3f\x61\x4a\x94\xf3\x2a\x0c\xe0\x6f\xf7\xbf\xdc\xf5\x73\xeb\xc3\x93\x57\x8b\x05\xdc\x12\xa5\x53\xc2\x4b\x19\xb0\x5c\xbe\x3a\x7d\x5d\x2e\xb1\xff\x66\x38\xa2\x64\x6a\xad\x1c\x40\xb0\x58\x6c\x9a\xff\x8f\xfa\xf5\x72\x19\x34\x96\x8d\x88\xc6\xce\x45\x9f\x7e\xbd\x59\x9f\x9d\x2b\x1c\xb3\x87\x7a\x7e\x4d\xf2\x87\x7a\x7c\xb9\x0c\x7e\xf4\x56\x85\x6b\x66\x79\x23\x41\xab\xe4\xc9\xfe\xf9\xac\xc3\x44\x66\x99\x14\xfd\xcf\x3a\x00\x8a\x63\x54\xf1\x06\xbc\x77\x56\xff\xbd\xbe\x62\x0a\x56\xbe\x79\x96\x50\xce\xb4\x61\x62\xb2\x5b\x2a\x72\x8d\x5f\x45\x20\x49\x30\xd4\x2a\xe9\x65\x4c\xd8\xff\x77\x4b\x7d\xa6\x55\x53\x14\x54\xaa\x70\x2c\x55\x76\xfe\x59\xbf\x98\x18\xa4\xcc\x48\xb5\x87\x3b\x41\x6b\xea\x2a\x0f\x7a\x29\xef\x8a\x89\xbc\x16\x36\xab\xd1\x27\xb3\x9b\x16\x13\xd9\x54\x85\xe4\x39\x67\x09\x31\x6c\x5f\x04\x55\xfa\x44\xa1\xcf\xea\xd1\x48\xd2\x79\xc5\x87\x1d\x43\x15\xaf\xb6\x43\x44\xd9\x14\x18\x1d\x04\x46\xe6\xbd\x11\x51\x41\xe3\x5d\xf5\x3e\x8e\xf2\xf8\x67\xc6\x11\x6e\x4b\x8a\xa2\x30\x8f\xa3\xd0\xbe\xd8\x9e\xeb\xb0\x34\x12\x95\xa4\x9b\x50\x6e\x0a\x83\x84\x13\xad\x07\x41\x46\x0c\x2a\x5b\x18\x58\x22\x85\x0e\xc0\x95\x99\x41\x70\xef\x97\x96\x10\x51\xc8\x5a\x41\x44\x5e\x18\x30\xf3\x1c\x07\x81\xc1\x07\x13\x40\xce\x49\x82\xa9\xe4\x14\x55\x85\x01\x52\x01\x3e\x60\x52\x18\x04\x02\x76\xf3\x11\x41\xfb\xfd\x7e\xab\x5a\xdb\xc6\xac\xbd\xba\x91\x84\xda\x5d\xd4\xef\xb7\xd9\x5d\x4f\xcd\xe3\x2e\xfb\x40\xe7\x4c\x04\x31\x29\x8c\x54\x28\x70\x66\x0d\xb3\x34\xb6\xa8\xd2\x46\xac\x1f\x6b\xa1\xdb\x4b\x23\x89\x8d\x8c\xc0\xb1\xcf\xe5\x44\x16\xe6\x28\xf6\x6f\xfc\x52\x7c\x60\x66\x68\xe4\x90\xe4\xf9\xb6\x0b\x36\x35\xdc\xd6\xae\x0e\x84\x91\x34\x46\x66\x9d\x71\xb5\xad\x61\xa3\x60\xd9\xfe\x03\x82\x30\xa8\x76\xce\x96\xe9\x94\x18\xd2\xa3\x4a\xe6\x54\xce\x44\x1b\x11\xb9\xc2\x29\x93\x85\x6e\xa3\x62\x27\x1d\xb1\x2e\x46\x94\x29\x4c\x8c\x54\xf3\x21\x51\x4a\xce\x86\x1c\xc7\xa6\x3d\x1c\x1d\x54\xc1\x2b\xac\x4a\xa3\x52\x87\x91\x42\x42\x13\x55\x64\xa3\x4e\x35\xac\xcd\x8a\x88\x09\xc2\x77\xcc\x60\xe6\x3a\xb5\x9f\xea\x65\xb7\x24\x87\x36\x0a\x6a\xc9\x64\xd5\x30\x54\xbd\xde\x72\x69\x1f\x2c\x58\xdf\x17\xb4\x38\xe2\x2c\xae\x07\x1d\xb5\xb6\xaa\x73\x1b\x85\x64\x87\x5e\xcd\xec\xb6\x25\x39\x2c\xf8\x81\x01\xbc\x09\xd7\xf6\x76\xdb\xef\x51\xee\x28\x4c\x0a\xa5\x50\x98\x9e\x4d\xd2\x81\x35\x62\xa5\x7f\x6e\x1f\xdb\x74\x3c\x74\xc7\xe8\x52\x6e\x5d\x73\x81\x32\xed\x12\x76\x8d\x5b\xba\xd1\xca\xee\x49\xc1\xe7\x6d\x4e\xf4\x41\x4b\x04\x85\x13\x21\x8d\x47\x3b\x85\x93\xb2\x93\x7a\xcb\xb9\x9c\x5d\x53\x66\x4e\x5b\xa9\xac\x8a\xc6\xb5\x2b\x36\x5d\xec\xb8\x39\xf8\x3b\xf4\xaf\x88\x21\xfd\x5b\x49\x11\x82\x8c\xa8\x2f\x65\xa4\x75\xee\x91\xae\x5d\x81\xb3\x00\xa4\x48\x38\x4b\xbe\x0c\x02\x21\xcd\xfb\x2c\xe7\x98\xa1\x30\x48\x4f\x70\x8a\xc2\x9c\xfe\xf8\xe4\x5d\x53\x25\x91\x0f\x5e\x40\xac\x30\x93\x53\x1c\x2a\xa4\x43\x9c\x63\x47\x2e\x3f\x32\x5a\xd6\xf9\xf8\x8d\xe9\x82\x70\x30\xaa\xc0\x27\x71\x61\x0b\x7c\x4f\xcb\x42\x25\x78\xb4\xb9\x1f\xe5\x64\xc2\x11\x2c\x14\x54\x50\x89\xa4\xcf\xb0\xf7\x69\x5c\x74\xd9\xa6\xc9\xf4\x78\xa3\xee\xdd\x62\x0b\xf1\x02\x6e\xdb\xe8\x70\x0f\x31\x46\xe6\x28\x8e\x37\x06\x11\x14\x99\x05\xb1\x45\x19\x32\x31\xf4\x05\xb8\x03\x4e\xe7\x44\xc4\x7e\x4d\x14\xba\xa7\xaf\x4c\x80\xcb\x14\x5b\xc9\xe1\xa4\xca\x1b\x4f\x21\xc6\xee\xb0\xa3\x89\xb9\x75\x8b\xc7\x52\xcd\x88\xa2\xfb\x18\xb1\x93\xc1\xe6\xc1\x97\xe3\xc4\x07\xc6\x06\x33\x4f\xe2\x43\xa1\x20\xd9\xf1\x8c\x58\x79\x41\x9c\x49\x8a\x43\xbb\xa1\x5f\x20\xf8\x9d\x9d\x1b\x06\x1e\xb1\x21\x28\x72\x34\xc7\xdb\x79\xe5\x97\x97\x30\xae\x1b\x75\x4e\xbd\xf2\xcf\xcf\xf0\x70\xdb\xfc\x7d\x65\x18\x32\x39\xaa\x2b\xac\x8f\x6b\xd5\x6a\x5d\x77\xcf\x66\x57\x0c\xa7\xa8\x5a\x9c\x76\x70\x37\xe0\x65\x13\x26\x7a\xd5\xLine truncated
|
||||
|
||||
func templatesBaseTmplBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -426,7 +426,7 @@ func templatesBaseTmpl() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "templates/base.tmpl", size: 11203, mode: os.FileMode(438), modTime: time.Unix(1492952659, 0)}
|
||||
info := bindataFileInfo{name: "templates/base.tmpl", size: 11777, mode: os.FileMode(438), modTime: time.Unix(1492955447, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
@@ -531,7 +531,7 @@ func templatesSingleTmpl() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _publicJsCommonJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x7b\x6f\x1b\xb7\xb2\xff\xdf\x80\xbf\x03\x93\x1b\x94\xbb\xb1\xb2\xb6\xdb\x83\x7b\x81\x34\x4a\x90\xd8\xee\x49\x70\x9d\xd8\x88\xdc\xf6\x02\xa9\x9b\xd2\xbb\x23\x89\xc7\x14\xb9\x87\xe4\xda\x16\x12\x7d\xf7\x0b\x3e\xf6\xc1\xd5\xee\x5a\x6a\xd2\xd3\x36\x45\x21\x69\x97\x33\x1c\xce\xfc\x38\x2f\xd2\xb8\x50\x80\x94\x96\x34\xd5\x78\x77\x67\x77\xe7\x86\x48\xa4\x61\x91\xbf\x39\x46\x63\x84\x3f\x4e\x17\x1f\x29\xd7\x20\x39\x61\x1f\xcd\x63\x21\x89\x5c\x7e\xa4\x19\x76\x23\x95\x62\x68\x8c\xa2\x5b\xca\x33\x71\x9b\x30\x91\x12\x4d\x05\x4f\x72\x29\xb4\x48\x05\x43\xe3\xf1\x18\xe1\xb9\xd6\xb9\x7a\x8a\xe3\x9a\x39\x23\x1a\x14\x1a\xa3\x4f\x2b\xcf\x06\x18\xa4\x1a\xb2\x37\x1a\x16\xe6\xf9\x87\x4b\xf7\x5c\xdc\x80\x64\x64\xe9\x7e\xa4\x8c\xa6\xd7\x67\xe5\x93\xdd\x9d\xfd\x7d\xf4\x1e\x16\xe2\x06\x14\x22\x1c\x01\x83\x05\x70\x3d\x42\x74\x8a\xe0\x8e\x2a\xad\x46\x68\x2a\xc5\xc2\xbc\x23\x52\x1a\x92\x97\xe6\xc3\xc9\xa6\x97\x39\x24\xd2\x52\x9f\x38\x42\x34\x46\xd3\x82\xa7\x46\x7c\x14\x79\x66\x31\xfa\xb4\xbb\x83\x90\x99\x9c\xa2\x31\xd2\x73\xaa\x12\xca\x33\xb8\x3b\x9b\x56\x43\xcc\x00\x3a\x45\x11\x45\x0f\xc6\x63\xf4\xe4\xd0\xd3\x20\x37\x5a\xe5\x8c\xa6\x10\xd1\x11\x3a\xb4\x23\x57\xbb\x3b\xab\x4a\xf6\x9c\x91\x34\x10\x1e\x51\xae\x68\x06\x95\xc8\xe8\x6a\x89\x08\x17\x7a\x0e\xb2\x4b\x7a\x4b\xdf\x25\xbe\x60\xd9\x49\xa9\x0e\x0e\xb7\x27\xf7\xaf\xa6\xa6\x18\x5e\xd0\x07\x7a\x89\xc6\x0d\x9e\xad\x35\x4d\x80\x67\x0a\x11\x94\x0a\xa5\x8b\x05\x82\x1b\x23\x99\x16\x88\x6a\x05\x6c\xba\xbb\x73\x2c\xd2\xc2\x90\x35\x96\xa1\x80\x67\x47\x76\xf8\xc9\x4d\x7b\x1d\x1a\xee\x4a\xa9\xad\xb4\x19\x55\x39\xd1\xe9\xdc\x8e\x8c\x38\xdc\x22\x0f\xbc\xa3\x42\x69\xe1\x18\x38\xa2\xb8\x96\xe9\x9f\xa0\x15\xd2\x73\x40\xa9\xe0\xda\xcc\x20\xa6\x56\x42\x71\x4d\xa1\x53\xa2\x19\xe8\x23\xfb\x36\x90\x85\x93\x05\x34\x34\x28\xc1\xe9\x01\xbd\x87\xd9\xc9\x5d\x1e\xe1\xe8\xc5\xd3\xe8\xc5\xd3\x5f\x3f\x27\x8f\xbf\xff\xe5\x17\xf5\x38\xc6\x68\x0f\x19\x1a\xb4\x87\xb0\x79\xf0\xcb\x2f\x63\xf3\x11\x7d\xf8\xf5\xfb\xcb\xc7\x71\xf2\xf8\x51\xfc\xf9\xd7\xe4\xf1\x23\x6c\xf5\x2d\x41\x17\x92\xa3\xac\x14\xc6\x49\x57\x9a\x38\x92\x30\x42\xf8\xd1\x21\x8e\x9b\xe8\x31\xd8\xb5\xeb\x62\x44\x69\x94\x51\x09\xa9\x16\x72\x69\x97\xc7\x51\x21\x99\xdb\x35\x0e\xe4\xa7\x44\xe9\xe3\x72\xc8\x39\x91\xfa\x6c\x1a\xac\xae\x90\xac\xb1\x38\x22\x25\x1a\x1b\x16\x16\xbf\x3a\xc2\xfb\xb8\x82\x05\x91\x32\xc9\x45\x1e\xc5\x6e\x6f\xe3\x0a\x1e\xd5\x0b\x8f\x89\x6a\x55\x96\xe4\x5f\x82\x72\xcb\xa7\x5c\x43\x35\xb7\x51\xf7\x64\xf2\xbe\x60\x80\x22\x59\x30\x50\x9e\xe3\x54\x48\x14\x31\xd0\x16\xac\x07\xdf\x23\x8a\x9e\x21\xfb\x3e\x61\xc0\x67\x7a\xfe\x3d\xa2\x7b\x7b\xd5\xec\xf6\x8d\x43\x67\xf9\x35\xd1\xe2\x54\xdc\x82\x3c\x22\x0a\x2a\xa9\xcc\x87\x61\x2a\x41\x15\xcc\xa0\x8d\x17\x8c\x95\x0f\xa7\x94\x67\x68\x8c\xda\x3b\xcd\x3c\x76\x94\xe6\x5b\x92\x12\xc6\xa2\xca\x54\x4a\x2f\x19\x4c\xe6\x00\xc6\xe1\xd4\x3f\xd0\xf8\x79\x25\x5a\x39\x55\x4d\x5d\x8f\x4b\x52\xa5\xcc\xda\xd5\x08\xf9\x6f\x0d\x4a\x2f\x95\x28\xac\x58\x53\xc2\x14\x38\x39\xcc\x3f\x63\x8c\x92\x84\x72\xa5\x09\x4f\x41\x4c\xd1\xd1\x64\x32\x31\xdc\xcd\xf3\xb8\x66\xb4\xad\x3e\xd7\xe6\x48\x9c\x8f\x16\xf2\x02\xee\x74\xa8\x5a\x8b\x84\x52\xeb\x2d\x0e\xa8\x12\x5f\xcb\x02\x9a\x6f\x56\xf5\x8f\xea\xeb\xaa\x5e\x9e\x07\x8f\xa5\x76\xcf\x56\x71\xf9\xd6\xbf\xf3\x8a\x7d\x50\x1b\xb1\x1c\x12\x0c\x28\x37\xcd\x63\x34\xf8\xdf\xee\x0e\x7a\x8c\x86\xfe\xad\x8d\x78\xf5\xe3\xc5\xc5\xd9\xbb\xc9\xc0\x88\x1e\x1e\x83\xff\xed\xbb\x7d\x7b\x55\x68\x2d\xb8\x0d\x92\x66\x45\xb9\x84\x1b\x2a\x0a\x35\xd1\x44\xc3\x53\x1b\x38\xed\xaa\xfc\xb0\x44\x81\x3e\x15\x24\xa3\x7c\xd6\xe7\xb5\x8c\x2d\x0d\x9c\xc5\xd4\x79\x72\xf3\xea\xd2\x6d\xe2\x82\x67\x30\xa5\x1c\x32\x1c\x7b\xd5\x95\x3b\xa2\x0c\x14\x6e\x74\xf2\xef\x02\xe4\x72\xe2\x81\x10\x61\x8a\xbd\xbe\xad\x77\x0e\x44\x2c\xd9\x23\x9a\x50\xce\x41\xbe\xbe\x78\x7b\x6a\xa5\x70\x1b\x26\x11\x39\x49\xa9\x5e\x1a\x28\x3a\x16\x0a\xf4\x05\x5d\x80\x28\x74\x54\x8b\x5f\x81\x89\x26\x29\x23\x4a\x9d\x52\xa5\x13\x92\x65\x11\x56\x39\xe5\xce\x29\xa1\xe6\x14\x26\x67\x21\x85\x16\x12\x38\xdc\xe2\xf2\x75\x7b\xca\x43\x8b\x95\x11\xfa\xf6\xe0\xa0\xe1\x52\x8f\xe6\x84\xcf\xc2\x78\xac\x05\xca\x04\x37\x01\x99\x2e\x6c\x66\x13\x28\xfc\xd8\xbc\x6a\x6b\x7b\x84\x54\x91\xa6\xa0\x94\x87\xbc\x5f\xc2\x16\xca\xec\x55\x91\xe1\xa1\xe7\x54\x66\x13\x0d\xb9\x49\xbb\xe2\x86\xaf\x08\x95\xd0\x67\x90\x3e\x8d\xb8\x0d\xe4\xdf\x4e\x51\x14\x24\x64\xde\x41\x58\xac\x1c\xa0\x6f\xbe\xa9\xe3\xd4\x0c\xb4\x4f\x04\x5e\x2d\xdf\x64\x11\x66\x54\x69\xca\x67\x38\x6e\x78\x81\xda\x53\x86\x91\x3e\xc2\xa9\x55\x78\xf6\xa4\x9c\xac\xb4\xe7\xaa\xe5\xab\x15\xa4\x82\xf7\x2c\xba\x43\x55\xe6\x45\x03\x4d\x95\xc6\x4a\x7b\x07\xbc\xa7\x54\x2a\xdd\xcd\xba\x46\x9c\x8b\xa1\x43\xa0\xf3\x36\x2f\xd7\xfc\x02\x61\x83\x1b\x5c\xfe\x7e\x8a\x70\xca\x84\x82\x61\x44\x06\x62\xd7\x8b\x1e\xa1\xc3\x83\x50\xf0\xe6\x5e\x29\xe5\xaf\x57\x57\x7a\x4e\x17\x2e\xfe\x20\xdf\xf7\xf3\xc9\xab\xe3\x97\x3f\x0d\x8d\xf8\x02\xdf\x77\x0b\x57\x19\xb9\xf1\xf5\xc1\xee\x8e\xfb\x99\xa4\x82\xdf\x80\xd4\x3f\xbe\x3f\xed\x49\x5d\xfc\xc2\xdb\xc5\x88\x90\x74\x46\x39\xda\xb3\x0Line truncated
|
||||
var _publicJsCommonJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x7b\x6f\xdb\xb8\xb2\xff\x3f\x40\xbe\x03\xdb\x5b\x2c\xa5\xc6\x55\xd2\xdd\x83\x7b\x81\x6e\x9d\xa2\x4d\xb2\xa7\xc5\x4d\x9b\xa0\xce\xee\x5e\xa0\xdb\x6d\x19\x69\x6c\xf3\x84\x26\x75\x48\x2a\x89\xd1\xfa\xbb\x5f\xf0\xa1\x07\x65\x49\xb1\xdb\xee\xd9\x47\xb1\x88\x2d\x71\x86\xc3\x99\x1f\xe7\x45\x1a\x17\x0a\x90\xd2\x92\xa6\x1a\xef\xee\xec\xee\x5c\x13\x89\x34\x2c\xf2\x57\xc7\x68\x8c\xf0\x87\xe9\xe2\x03\xe5\x1a\x24\x27\xec\x83\x79\x2c\x24\x91\xcb\x0f\x34\xc3\x6e\xa4\x52\x0c\x8d\x51\x74\x43\x79\x26\x6e\x12\x26\x52\xa2\xa9\xe0\x49\x2e\x85\x16\xa9\x60\x68\x3c\x1e\x23\x3c\xd7\x3a\x57\x4f\x70\x5c\x33\x67\x44\x83\x42\x63\xf4\x69\xe5\xd9\x00\x83\x54\x43\xf6\x4a\xc3\xc2\x3c\x7f\xf7\xde\x3d\x17\xd7\x20\x19\x59\xba\x2f\x29\xa3\xe9\xd5\x59\xf9\x64\x77\x67\x7f\x1f\xbd\x85\x85\xb8\x06\x85\x08\x47\xc0\x60\x01\x5c\x8f\x10\x9d\x22\xb8\xa5\x4a\xab\x11\x9a\x4a\xb1\x30\xef\x88\x94\x86\xe4\xb9\xf9\xe3\x64\xd3\xcb\x1c\x12\x69\xa9\x4f\x1c\x21\x1a\xa3\x69\xc1\x53\x23\x3e\x8a\x3c\xb3\x18\x7d\xda\xdd\x41\xc8\x4c\x4e\xd1\x18\xe9\x39\x55\x09\xe5\x19\xdc\x9e\x4d\xab\x21\x66\x00\x9d\xa2\x88\xa2\x7b\xe3\x31\x7a\xf4\xd8\xd3\x20\x37\x5a\xe5\x8c\xa6\x10\xd1\x11\x7a\x6c\x47\xae\x76\x77\x56\x95\xec\x39\x23\x69\x20\x3c\xa2\x5c\xd1\x0c\x2a\x91\xd1\xe5\x12\x11\x2e\xf4\x1c\x64\x97\xf4\x96\xbe\x4b\x7c\xc1\xb2\x93\x52\x1d\x1c\x6e\x4e\xee\x5e\x4d\x4d\x31\xbc\xa0\x77\xf4\x3d\x1a\x37\x78\xb6\xd6\x34\x01\x9e\x29\x44\x50\x2a\x94\x2e\x16\x08\xae\x8d\x64\x5a\x20\xaa\x15\xb0\xe9\xee\xce\xb1\x48\x0b\x43\xd6\x58\x86\x02\x9e\x1d\xd9\xe1\x27\xd7\xed\x75\x68\xb8\x2d\xa5\xb6\xd2\x66\x54\xe5\x44\xa7\x73\x3b\x32\xe2\x70\x83\x3c\xf0\x8e\x0a\xa5\x85\x63\xe0\x88\xe2\x5a\xa6\x7f\x82\x56\x48\xcf\x01\xa5\x82\x6b\x33\x83\x98\x5a\x09\xc5\x15\x85\x4e\x89\x66\xa0\x8f\xec\xdb\x40\x16\x4e\x16\xd0\xd0\xa0\x04\xa7\x07\xf4\x16\x66\x27\xb7\x79\x84\xa3\x67\x4f\xa2\x67\x4f\x7e\xff\x9c\x3c\xfc\xf1\xb7\xdf\xd4\xc3\x18\xa3\x3d\x64\x68\xd0\x1e\xc2\xe6\xc1\x6f\xbf\x8d\xcd\x9f\xe8\xdd\xef\x3f\xbe\x7f\x18\x27\x0f\x1f\xc4\x9f\x7f\x4f\x1e\x3e\xc0\x56\xdf\x12\x74\x21\x39\xca\x4a\x61\x9c\x74\xa5\x89\x23\x09\x23\x84\x1f\x3c\xc6\x71\x13\x3d\x06\xbb\x76\x5d\x8c\x28\x8d\x32\x2a\x21\xd5\x42\x2e\xed\xf2\x38\x2a\x24\x73\xbb\xc6\x81\xfc\x94\x28\x7d\x5c\x0e\x39\x27\x52\x9f\x4d\x83\xd5\x15\x92\x35\x16\x47\xa4\x44\x63\xc3\xc2\xe2\x57\x47\x78\x1f\x57\xb0\x20\x52\x26\xb9\xc8\xa3\xd8\xed\x6d\x5c\xc1\xa3\x7a\xe1\x31\x51\xad\xca\x92\xfc\x4b\x50\x6e\xf9\x94\x6b\xa8\xe6\x36\xea\x9e\x4c\xde\x16\x0c\x50\x24\x0b\x06\xca\x73\x9c\x0a\x89\x22\x06\xda\x82\xf5\xe0\x47\x44\xd1\x53\x64\xdf\x27\x0c\xf8\x4c\xcf\x7f\x44\x74\x6f\xaf\x9a\xdd\xbe\x71\xe8\x2c\x3f\x26\x5a\x9c\x8a\x1b\x90\x47\x44\x41\x25\x95\xf9\x63\x98\x4a\x50\x05\x33\x68\xe3\x05\x63\xe5\xc3\x29\xe5\x19\x1a\xa3\xf6\x4e\x33\x8f\x1d\xa5\xf9\x94\xa4\x84\xb1\xa8\x32\x95\xd2\x4b\x06\x93\x39\x80\x71\x38\xf5\x17\x34\x3e\xac\x44\x2b\xa7\xaa\xa9\xeb\x71\x49\xaa\x94\x59\xbb\x1a\x21\xff\xa9\x41\xe9\xa5\x12\x85\x15\x6b\x4a\x98\x02\x27\x87\xf9\xcf\x18\xa3\x24\xa1\x5c\x69\xc2\x53\x10\x53\x74\x34\x99\x4c\x0c\x77\xf3\x3c\xae\x19\x6d\xab\xcf\xb5\x39\x12\xe7\xa3\x85\xbc\x80\x5b\x1d\xaa\xd6\x22\xa1\xd4\x7a\x8b\x03\xaa\xc4\xd7\xb2\x80\xe6\x9b\x55\xfd\xa5\xfa\xb8\xaa\x97\xe7\xc1\x63\xa9\xdd\xb3\x55\x5c\xbe\xf5\xef\xbc\x62\xef\xd5\x46\x2c\x87\x04\x03\xca\x4d\xf3\x10\x0d\xfe\xdb\xdd\x41\x0f\xd1\xd0\x7f\x6b\x23\x5e\xfc\x7c\x71\x71\xf6\x66\x32\x30\xa2\x87\xc7\xe0\xbf\x7d\xb7\x6f\x2f\x0b\xad\x05\xb7\x41\xd2\xac\x28\x97\x70\x4d\x45\xa1\x26\x9a\x68\x78\x62\x03\xa7\x5d\x95\x1f\x96\x28\xd0\xa7\x82\x64\x94\xcf\xfa\xbc\x96\xb1\xa5\x81\xb3\x98\x3a\x4f\x6e\x5e\xbd\x77\x9b\xb8\xe0\x19\x4c\x29\x87\x0c\xc7\x5e\x75\xe5\x8e\x28\x03\x85\x1b\x9d\xfc\xbb\x00\xb9\x9c\x78\x20\x44\x98\x62\xaf\x6f\xeb\x9d\x03\x11\x4b\xf6\x88\x26\x94\x73\x90\x2f\x2f\x5e\x9f\x5a\x29\xdc\x86\x49\x44\x4e\x52\xaa\x97\x06\x8a\x8e\x85\x02\x7d\x41\x17\x20\x0a\x1d\xd5\xe2\x57\x60\xa2\x49\xca\x88\x52\xa7\x54\xe9\x84\x64\x59\x84\x55\x4e\xb9\x73\x4a\xa8\x39\x85\xc9\x59\x48\xa1\x85\x04\x0e\x37\xb8\x7c\xdd\x9e\xf2\xb1\xc5\xca\x08\x7d\x7f\x70\xd0\x70\xa9\x47\x73\xc2\x67\x61\x3c\xd6\x02\x65\x82\x9b\x80\x4c\x17\x36\xb3\x09\x14\x7e\x6c\x5e\xb5\xb5\x3d\x42\xaa\x48\x53\x50\xca\x43\xde\x2f\x61\x0b\x65\xf6\xaa\xc8\xf0\xd0\x73\x2a\xb3\x89\x86\xdc\xa4\x5d\x71\xc3\x57\x84\x4a\xe8\x33\x48\x9f\x46\xdc\x06\xf2\x6f\xa7\x28\x0a\x12\x32\xef\x20\x2c\x56\x0e\xd0\x77\xdf\xd5\x71\x6a\x06\xda\x27\x02\x2f\x96\xaf\xb2\x08\x33\xaa\x34\xe5\x33\x1c\x37\xbc\x40\xed\x29\xc3\x48\x1f\xe1\xd4\x2a\x3c\x7b\x54\x4e\x56\xda\x73\xd5\xf2\xd5\x0a\x52\xc1\x7b\x16\xdd\xa1\x2a\xf3\xa2\x81\xa6\x4a\x63\xa5\xbd\x03\xde\x53\x2a\x95\xee\x66\x5d\x23\xce\xc5\xd0\x21\xd0\x79\x9b\x97\x6b\x7e\x86\xb0\xc1\x0d\x2e\xbf\x3f\x41\x38\x65\x42\xc1\x30\x22\x03\xb1\xeb\x45\x8f\xd0\xe3\x83\x50\xf0\xe6\x5e\x29\xe5\xaf\x57\x57\x7a\x4e\x17\x2e\xfe\x20\xdf\xf7\xeb\xc9\x8b\xe3\xe7\xbf\x0c\x8d\xf8\x0a\xdf\x77\x03\x97\x19\xb9\xf6\xf5\xc1\xee\x8e\xfb\x9a\xa4\x82\x5f\x83\xd4\x3f\xbf\x3d\xed\x49\x5d\xfc\xc2\xdb\xc5\x88\x90\x74\x46\x39\xda\xbLine truncated
|
||||
|
||||
func publicJsCommonJsBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -546,7 +546,7 @@ func publicJsCommonJs() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "public/js/common.js", size: 16818, mode: os.FileMode(438), modTime: time.Unix(1492952840, 0)}
|
||||
info := bindataFileInfo{name: "public/js/common.js", size: 17551, mode: os.FileMode(438), modTime: time.Unix(1492956796, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
@@ -951,7 +951,7 @@ func publicCssRobotoNormalVietnameseWoff2() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _publicCssStylesCss = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x5c\x6b\x6f\xdb\xb6\xfa\x7f\x1f\x20\xdf\x81\xff\x06\xc5\x9a\xc0\x52\x7d\x89\x93\xc6\xc1\x8a\xa5\x8d\xbb\x05\xff\xa4\xe9\x49\xb3\xb3\x17\xc3\x70\x40\x4b\x94\xcd\x55\x12\x05\x89\xce\xa5\x07\xfd\xee\x07\xa2\x48\x89\x77\xd9\x5e\x77\x70\xea\x21\x4b\x24\x5e\x9f\xcb\xef\xb9\xf0\xa1\x17\x24\x7e\x06\xff\xde\xdf\x03\x20\x21\x39\x0d\x12\x98\xe1\xf4\x79\x06\x7e\xb8\x23\x0b\x42\xc9\x0f\x03\x50\xc1\xbc\x0a\x2a\x54\xe2\xe4\xbc\x6e\x55\xc0\x38\xc6\xf9\x32\xa0\xa4\x98\x81\xd3\xf0\x0d\xca\xd8\xe3\x05\x8c\xbe\x2c\x4b\xb2\xce\xe3\x20\x22\x29\x29\x67\xe0\x20\x79\x53\x7f\xce\xf7\xf7\xbe\xed\xef\xed\xef\x1d\x35\x93\x2c\xc8\x53\x50\xe1\xaf\x38\x5f\xce\xc0\x82\x94\x31\x2a\x83\x05\x79\x6a\x1b\x0d\xf6\xf7\x8e\x66\x2b\xf2\x80\x4a\xf6\x1b\x8c\x28\x7e\x40\xec\xd7\x84\x44\xeb\xaa\x19\x83\xac\x69\x8a\x73\x34\x03\x43\xde\x0d\x36\xcf\x29\x7a\xa2\x41\x8c\x22\x52\x42\x8a\x49\x3e\x03\x39\xc9\x91\x18\x1a\x67\xcb\xa6\x55\x06\x9f\x82\x47\x1c\xd3\xd5\x0c\x8c\x86\xc3\x97\xe2\x3d\x5c\xc7\x98\x0c\xf6\xf7\x1e\x70\x8c\x48\xd3\xd2\xd2\xaa\x28\x51\xf3\x8e\x93\x61\x06\x46\x82\x00\x6c\x33\x33\x30\x2a\x9e\x40\x45\x52\x1c\x83\x03\x74\x52\x7f\xa4\xb7\x41\x09\x63\xbc\xae\x66\x60\x18\x4e\x3d\x74\x9b\xd6\x1f\xf6\xf6\x71\x85\x29\x0a\xaa\x02\x46\x68\x06\x8a\x12\x05\x8f\x25\x2c\xcc\x37\x41\x46\xbe\x06\x9e\xd7\x9e\x57\x44\x7b\x49\xca\x98\xfd\x35\x03\x8b\x12\xc1\x2f\x41\xfd\x40\x6c\x7e\xb1\xa6\x94\xe4\x82\x8f\xcd\x76\x87\xe7\x0a\x35\xea\x7d\xb5\x24\xc9\x60\xb9\xc4\x79\x90\xa2\x84\x36\x6f\x6c\xa4\x08\x47\x0e\x4a\xb0\x87\xd1\xba\xac\x6a\xa2\x14\x04\xe7\x14\x95\x5a\xc3\x19\x38\x18\x8f\xce\x4e\x92\x49\xd3\x56\xd0\x2f\x49\x1c\x1c\x29\x97\x0b\xf8\x6a\x38\x00\xfc\xbf\x70\x38\x3d\x3c\x6f\x85\x72\x05\x63\xf2\x38\x03\x43\x30\x04\xd3\xe2\xc9\xd9\x96\x96\x30\xaf\x70\x23\x5f\xe1\xa8\x02\x08\x56\x08\xc0\x34\x55\x89\xd4\xc8\x30\x27\x95\xc9\xe2\xd1\xfc\xcd\x9b\xf9\x54\x74\x09\x33\xb2\xc0\x29\x0a\x48\x9e\x72\x55\x8c\x71\x55\xa4\xf0\xb9\x91\x60\xf0\x7f\x38\x2b\x48\x49\x61\x4e\xdb\x1e\x11\xc9\x29\xc4\xb9\x98\x82\x4b\xea\xd9\xf4\xe5\xb9\x26\xe2\x67\x27\xc3\xe2\x49\xe2\x06\x13\x58\x00\xd7\x94\x30\xd6\x35\xaa\x11\x56\x05\xe6\x7c\x85\x39\xce\xb8\xf6\x8c\x2a\xc0\x9e\xd7\xba\x06\x4b\x80\xf3\x04\xe7\x98\xb6\x0a\x15\x16\x71\x62\xd3\x13\x00\x56\x08\x2f\x57\x74\x06\x22\x98\x46\xaf\x46\xc3\xe1\xc3\x0a\x04\x60\x34\x41\xd9\xa1\xe8\xbb\xbf\xf7\xfa\x08\x78\x3f\xfb\x7b\xe0\x08\x48\xff\xe6\x97\x57\xf7\xb7\x77\xd2\x83\xa6\x85\xf7\xf3\xba\x9e\xe8\x00\xc5\x98\x92\x12\x84\x15\x59\x97\x11\xb2\xd0\x57\x2c\xaa\x6d\x59\x13\x17\xe5\x54\xe7\x9e\x24\x5a\xb2\xf6\x77\x74\x14\x03\x1c\xc0\xa8\xc6\x2c\xf1\xe7\x6a\x2c\xfd\x11\x26\x25\xc9\x69\x06\x29\xfd\x3e\xbc\xeb\x26\x11\xe8\xc6\x5b\x32\x4d\x64\x6d\x85\x82\x71\xe1\xd3\x05\x7b\xd2\xc8\x35\x43\xff\x47\xce\xb9\xe9\xd0\x98\x20\x84\x11\xfa\xd7\x72\xdd\xad\xdb\x86\x5c\x8c\x3c\xdb\x73\x98\x33\x37\x00\x37\x17\x77\xff\x7f\x79\xfb\xdb\xc7\xad\x38\x6c\x92\x34\x22\xe9\x3a\xcb\x83\x88\xac\x73\x3a\x03\x2d\x3a\xd4\xcf\x96\x35\xb4\x49\x14\xa9\x9f\x25\x38\x4d\x67\x60\x01\x53\x98\x47\x88\xbd\x78\x7d\xd4\x89\x48\x92\xa2\xa7\x73\x36\x15\x7b\x5e\xff\xc9\x11\x92\xa1\x66\xf7\xe6\xcf\x75\x45\x71\xf2\x1c\x70\xf1\x99\x01\x86\xb1\xc1\x02\xd1\x47\x84\x72\x7d\x88\x65\x59\xa3\xcd\xa8\x79\xfc\xcd\xd8\x47\x0a\x17\x28\xd5\x84\x75\x91\x92\xe8\xcb\xb9\x24\x33\x42\xc1\x5e\xd6\xfa\xd5\xa8\x17\xb7\x82\x35\xfa\x24\x69\x3d\x03\x4a\x53\x5c\x54\xb8\x62\xef\xba\xc7\x2b\x1c\xc7\x28\x37\x0d\x42\x4e\xb8\x2d\x70\x2c\x69\xa0\x3d\x5c\x4d\x24\xe7\x41\x15\x9f\x4e\x18\x87\xdc\x4c\x38\x24\xf0\xe4\xd0\x3a\x1f\xce\x8b\x35\xd5\xe7\xab\x77\x07\x4b\x04\xfb\x48\xd3\x82\x91\x6a\xa8\xb8\x49\x62\xce\x4b\x6b\x91\x5a\x6d\x6e\xda\xd4\x78\x17\x08\x0c\x1b\x59\x97\x16\xb2\xf9\xf4\xb5\x25\x18\xa5\x71\x85\xe8\xef\x31\xa4\x30\xa0\xcf\x05\xfa\xf1\x05\x2c\x4b\xf8\xfc\xe2\x8f\xba\xa9\x6c\x3e\x0b\x22\x6c\x48\x89\x52\x58\x3b\x39\xa6\x69\x53\xed\x58\x67\x30\xc7\x4e\x8f\xc3\xb0\x59\xa7\xdc\x68\x29\xf6\xb9\xe9\xcc\xac\x3b\xce\x2b\x1c\xa3\x19\x80\x0f\x04\xc7\x3a\xcb\x5a\x35\xd1\x49\xda\x52\x1d\xe7\x8c\x56\x82\xf8\x26\x9d\x6c\x14\x21\x8b\x3f\x51\x44\x5f\xfc\xe1\x25\x44\xbb\x0c\x07\xf9\x65\x4f\xc4\xc4\x21\x8f\x53\x60\x73\x28\x98\xc6\xc0\x14\x2f\xf3\x19\x88\x10\x7f\xcc\x66\x35\x38\x19\x60\x8a\x32\xef\xda\xfd\xfd\xc2\xda\xa3\x15\x2b\x67\x52\xd8\xc8\x5c\xd9\x48\x9b\x7d\xbb\xaa\xcc\x97\xa8\xc2\x5f\x91\x6a\xba\x9c\xf3\x31\x1d\x52\xec\x8c\x05\x33\x9a\x19\x19\x17\xc5\x02\x07\xfb\x7b\x82\x77\xea\x9a\xbb\x3d\xc3\x45\x45\xd2\x35\x6d\xf8\xa5\x2a\x14\xdf\x0d\xff\x5b\x1a\xfe\xad\x39\xfc\x5b\x65\x78\x52\xc0\x08\xd3\x67\x99\x12\xac\x63\xe3\x4f\x59\xba\xab\x2f\xb4\x41\x46\xf6\xcd\x85\x30\x8e\x2d\x1b\xac\x1f\x73\x12\x73\xdd\x57\x36\xa0\x08\x20\x9f\x0e\x6b\xc1\xc0\xb0\x33\xa5\x0d\x93\x46\xdd\x00\xed\x74\x3e\xff\xd9\x2a\x00\x6f\xdb\xae\xab\x89\x86\x39\x6f\xc3\x5a\xf4\x0b\x15\x86\xf9\xd4\x2d\x3b\x38\xe8\x2d\x08\xa5\x24\x53\xd9\xa2\x8d\xec\x1c\x6c\x18\x9e\x75\x9d\xb6\xf7\xde\x2e\xde\xdf\x5f\xdd\x7e\xdc\xc1\x7b\x53\xf8\xea\xc2\x1d\xbb\x56\x07\x8f\x68\xf1\x05\xd3\x40\x76\xd8\x87\xe1\x58\xf1\Line truncated
|
||||
var _publicCssStylesCss = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x3c\x69\x6f\xdb\x46\xda\xdf\x0d\xf8\x3f\xcc\x1b\x23\x68\x6c\x88\x8c\x0e\xcb\x8e\x65\x34\xa8\x13\x2b\xad\xf1\xda\x71\xd6\x71\xb7\x1f\x8a\x62\x31\x22\x87\xd2\x34\x24\x87\x20\x47\x3e\xb2\xc8\x7f\x5f\x70\x38\x43\xce\x4d\x49\x4d\x17\x1b\x15\xae\x4d\xce\xf5\xdc\xe7\x68\x41\xe2\x67\xf0\xef\xfd\x3d\x00\x12\x92\xd3\x20\x81\x19\x4e\x9f\x67\xe0\x87\x3b\xb2\x20\x94\xfc\x30\x00\x15\xcc\xab\xa0\x42\x25\x4e\xce\xeb\x51\x05\x8c\x63\x9c\x2f\x03\x4a\x8a\x19\x38\x0d\xdf\xa0\x8c\x3d\x5e\xc0\xe8\xcb\xb2\x24\xeb\x3c\x0e\x22\x92\x92\x72\x06\x0e\x92\x37\xf5\xe7\x7c\x7f\xef\xdb\xfe\xde\xfe\xde\x51\xb3\xc9\x82\x3c\x05\x15\xfe\x8a\xf3\xe5\x0c\x2c\x48\x19\xa3\x32\x58\x90\xa7\x76\xd0\x60\x7f\xef\x68\xb6\x22\x0f\xa8\x64\xbf\xc1\x88\xe2\x07\xc4\x7e\x4d\x48\xb4\xae\x9a\x35\xc8\x9a\xa6\x38\x47\x33\x30\xe4\xd3\x60\xf3\x9c\xa2\x27\x1a\xc4\x28\x22\x25\xa4\x98\xe4\x33\x90\x93\x1c\x89\xa5\x71\xb6\x6c\x46\x65\xf0\x29\x78\xc4\x31\x5d\xcd\xc0\x68\x38\x7c\x29\xde\xc3\x75\x8c\xc9\x60\x7f\xef\x01\xc7\x88\x34\x23\x2d\xa3\x8a\x12\x35\xef\x38\x1a\x66\x60\x24\x10\xc0\x80\x99\x81\x51\xf1\x04\x2a\x92\xe2\x18\x1c\xa0\x93\xfa\x23\xbd\x0d\x4a\x18\xe3\x75\x35\x03\xc3\x70\xea\xc1\xdb\xb4\xfe\xb0\xb7\x8f\x2b\x4c\x51\x50\x15\x30\x42\x33\x50\x94\x28\x78\x2c\x61\x61\xbe\x09\x32\xf2\x35\xf0\xbc\xf6\xbc\x22\xda\x4b\x52\xc6\xec\xaf\x19\x58\x94\x08\x7e\x09\xea\x07\x02\xf8\xc5\x9a\x52\x92\x0b\x3a\x36\xe0\x0e\xcf\x15\x6c\xd4\x70\xb5\x28\xc9\x60\xb9\xc4\x79\x90\xa2\x84\x36\x6f\x6c\xa8\x08\xc5\xe8\x68\x5d\x56\x35\xfc\x05\xc1\x39\x45\xa5\x86\x9d\x19\x38\x18\x8f\xce\x4e\x92\x49\x33\x56\xa0\x2a\x49\x1c\xc8\x2f\x97\x0b\xf8\x6a\x38\x00\xfc\xbf\x70\x38\x3d\x3c\x6f\xf9\x6f\x05\x63\xf2\x38\x03\x43\x30\x04\xd3\xe2\xc9\x39\x96\x96\x30\xaf\x70\xc3\x4a\xe1\xa8\x02\x08\x56\x08\xc0\x34\x55\xf1\xd1\xb0\x2b\xc7\x8a\x49\xcd\xd1\xfc\xcd\x9b\xf9\x54\x4c\x09\x33\xb2\xc0\x29\x0a\x48\x9e\x72\xa9\x8b\x71\x55\xa4\xf0\xb9\x61\x56\xf0\x7f\x38\x2b\x48\x49\x61\x4e\xdb\x19\x11\xc9\x29\xc4\xb9\xd8\x82\x33\xe5\xd9\xf4\xe5\xb9\xc6\xcd\x67\x27\xc3\xe2\x49\x42\x3c\xe3\x4d\x00\xd7\x94\x30\x2a\x35\x52\x10\x56\x05\xe6\x24\x84\x39\xce\xb8\xa0\x8c\x2a\xc0\x9e\xd7\x62\x05\x4b\x80\xf3\x04\xe7\x98\xb6\xb2\x13\x16\x71\x62\x13\x09\x00\x56\x08\x2f\x57\x74\x06\x22\x98\x46\xaf\x46\xc3\xe1\xc3\x0a\x04\x60\x34\x41\xd9\xa1\x98\xbb\xbf\xf7\xfa\x08\x78\x3f\xfb\x7b\xe0\x08\x48\xff\xe6\x97\x57\xf7\xb7\x77\xd2\x83\x66\x84\xf7\xf3\xba\xde\xe8\x00\xc5\x98\x92\x12\x84\x15\x59\x97\x11\xb2\xe0\x57\x1c\xaa\x1d\x59\x23\x17\xe5\x54\xa7\x9e\xc4\x5a\xb2\xa0\x77\x78\x14\x0b\x1c\xc0\xa8\x56\x4f\xe2\xcf\xd5\x58\xfa\x23\x4c\x4a\x92\xd3\x0c\x52\xfa\x7d\x68\xd7\x6d\x22\x14\x19\x1f\xc9\x84\x8e\x8d\x6d\x65\xa9\x61\x3e\x9d\xb1\x27\x0d\x5f\x33\x45\xff\xc8\x29\x37\x1d\x1a\x1b\x84\x30\x42\xff\x5a\xae\xbb\x73\xdb\x94\x14\x43\xcf\xf6\x14\xe6\xc4\x0d\xc0\xcd\xc5\xdd\xff\x5f\xde\xfe\xf6\x71\x2b\x0a\x9b\x28\x8d\x48\xba\xce\xf2\x20\x22\xeb\x9c\xce\x40\xab\x1d\xea\x67\xcb\x5a\x8b\x49\x18\xa9\x9f\x25\x38\x4d\x67\x60\x01\x53\x98\x47\x88\xbd\x78\x7d\xd4\xb1\x48\x92\xa2\xa7\x73\xb6\x15\x7b\x5e\xff\xc9\x95\x21\x53\x90\xdd\x9b\x3f\xd7\x15\xc5\xc9\x73\xc0\xd9\x67\x06\x98\x3a\x0d\x16\x88\x3e\x22\x94\xeb\x4b\x2c\xcb\x5a\xdb\x8c\x9a\xc7\xdf\x0c\x38\x52\xb8\x40\xa9\xc6\xac\x8b\x94\x44\x5f\xce\x25\x9e\x11\x02\xf6\xb2\x96\xaf\x46\xbc\xb8\xc1\xab\xb5\x4f\x92\xd6\x3b\xa0\x34\xc5\x45\x85\x2b\xf6\xae\x7b\xbc\xc2\x71\x8c\x72\x53\xf7\xe7\x84\xab\x7d\xc7\x91\x06\xda\xc3\xd5\x44\xf2\x13\x54\xf6\xe9\x98\x71\xc8\x2d\x82\x83\x03\x4f\x0e\xad\xfb\xe1\xbc\x58\x53\x7d\xbf\x1a\x3a\x58\x22\xd8\x87\x9a\x56\x19\xa9\x36\x89\x5b\x1f\xe6\xa7\xb4\xc6\xa7\x95\xe6\x66\x4c\xad\xef\x02\xa1\xc3\x46\xd6\xa3\x85\x6c\x3f\xfd\x6c\x09\x46\x69\x5c\x21\xfa\x7b\x0c\x29\x0c\xe8\x73\x81\x7e\x7c\x01\xcb\x12\x3e\xbf\xf8\xa3\x1e\x2a\x5b\xca\x82\x08\x1b\x52\xa2\x14\xd6\xfe\x8c\x69\xda\x54\x3b\xd6\xd9\xc6\xb1\xd3\xb9\x30\x6c\xd6\x29\x37\x5a\x8a\x29\x6e\x26\x33\x43\x8e\xf3\x0a\xc7\x68\x06\xe0\x03\xc1\xb1\x4e\xb2\x56\x4c\x74\x94\xb6\x58\xc7\x39\xc3\x95\x40\xbe\x89\x27\x1b\x46\xc8\xe2\x4f\x14\xd1\x17\x7f\x78\x11\xd1\x1e\xc3\x81\x7e\xd9\xe9\x30\xf5\x90\xc7\x29\xb0\x39\x14\x4c\x62\x60\x8a\x97\xf9\x0c\x44\x88\x3f\x66\xbb\x1a\x94\x0c\x30\x45\x99\xf7\xec\xfe\x79\x61\xed\xbc\x8a\x93\x33\x2e\x6c\x78\xae\x6c\xb8\xcd\x0e\xae\xca\xf3\x25\xaa\xf0\x57\xa4\x9a\x2e\xe7\x7e\x4c\x86\x14\x3b\x63\xd1\x19\xcd\x8e\x8c\x8a\xe2\x80\x83\xfd\x3d\x41\x3b\xf5\xcc\x1d\xcc\x70\x51\x91\x74\x4d\x1b\x7a\xa9\x02\xc5\xa1\xe1\x7f\x4b\xcb\xbf\x35\x97\x7f\xab\x2c\x4f\x0a\x18\x61\xfa\x2c\x63\x82\x4d\x6c\xfc\x29\xcb\x74\xf5\x85\xb6\xc8\xc8\x0e\x5c\x08\xe3\xd8\x02\x60\xfd\x98\xa3\x98\xcb\xbe\x02\x80\xc2\x80\x7c\x3b\xac\xf9\xfd\xc3\xce\x94\x36\x44\x1a\x75\x0b\xb4\xdb\xf9\x5c\x65\x2b\x03\xbc\x6d\xa7\xae\x26\x9a\xce\x79\x1b\xd6\xac\x5f\xa8\x6a\x98\x6f\xdd\x92\x83\x2b\xbd\x05\xa1\x94\x64\x2a\x59\xb4\x95\x9d\x8b\x0d\xc3\xb3\x6e\xd2\xf6\xde\xdb\xc5\xfb\xfb\xab\xdb\x8f\x3b\x78\x6f\x0a\x5d\x5d\x7a\xc7\x2e\xd5\xc1\x23\x5a\x7c\xc1\x34\x90\x1d\xf6\x61\x38\x56\x3c\x76\xd5\x9d\x37\xdf\Line truncated
|
||||
|
||||
func publicCssStylesCssBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -966,7 +966,7 @@ func publicCssStylesCss() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "public/css/styles.css", size: 20073, mode: os.FileMode(438), modTime: time.Unix(1490466775, 0)}
|
||||
info := bindataFileInfo{name: "public/css/styles.css", size: 20047, mode: os.FileMode(438), modTime: time.Unix(1492955114, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
@@ -173,6 +173,8 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
|
||||
case r.URL.Query().Get("raw") == "true" && !fi.IsDir:
|
||||
http.ServeFile(w, r, fi.Path)
|
||||
code, err = 0, nil
|
||||
case !fi.IsDir && r.URL.Query().Get("checksum") != "":
|
||||
code, err = handlers.Checksum(w, r, c, fi)
|
||||
case fi.IsDir:
|
||||
code, err = handlers.ServeListing(w, r, c, user, fi)
|
||||
default:
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"crypto/sha1"
|
||||
"crypto/sha256"
|
||||
"crypto/sha512"
|
||||
"encoding/hex"
|
||||
e "errors"
|
||||
"hash"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/hacdias/caddy-filemanager/config"
|
||||
"github.com/hacdias/caddy-filemanager/file"
|
||||
"github.com/hacdias/caddy-filemanager/utils/errors"
|
||||
)
|
||||
|
||||
// Checksum calculates the hash of a file. Supports MD5, SHA1, SHA256 and SHA512.
|
||||
func Checksum(w http.ResponseWriter, r *http.Request, c *config.Config, i *file.Info) (int, error) {
|
||||
query := r.URL.Query().Get("checksum")
|
||||
|
||||
file, err := os.Open(i.Path)
|
||||
if err != nil {
|
||||
return errors.ErrorToHTTPCode(err, true), err
|
||||
}
|
||||
|
||||
defer file.Close()
|
||||
|
||||
var h hash.Hash
|
||||
|
||||
switch query {
|
||||
case "md5":
|
||||
h = md5.New()
|
||||
case "sha1":
|
||||
h = sha1.New()
|
||||
case "sha256":
|
||||
h = sha256.New()
|
||||
case "sha512":
|
||||
h = sha512.New()
|
||||
default:
|
||||
return http.StatusBadRequest, e.New("Unknown HASH type")
|
||||
}
|
||||
|
||||
_, err = io.Copy(h, file)
|
||||
if err != nil {
|
||||
return http.StatusInternalServerError, err
|
||||
}
|
||||
|
||||
val := hex.EncodeToString(h.Sum(nil))
|
||||
w.Write([]byte(val))
|
||||
return http.StatusOK, nil
|
||||
}
|
||||
Reference in new issue
Block a user