Index template regenerated.
And here I found that I forgot to do it last time when added a note on using of a local storage api.
This commit is contained in:
parent
3a3a7b0dca
commit
a3e0fdc046
@ -13,17 +13,18 @@ import (
|
||||
|
||||
const (
|
||||
index__0 = `<!DOCTYPE html><html lang="en"><head><title>Arav's dwelling / Files</title><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="theme-color" content="#cd2682"/><meta name="description" content="My file share."/><link rel="icon" type="image/svg+xml" href="/assets/img/favicon.svg" sizes="any"/><link href="/assets/css/main.css" rel="stylesheet"/><script src="/assets/js/main.js" defer=""></script></head><body><header><svg id="logo" viewBox="0 -25 216 40"><text class="logo">Arav's dwelling</text><text class="under" y="11">Welcome to my sacred place, wanderer</text></svg><nav><a href="`
|
||||
index__1 = `">Back to main website</a><h1>Files</h1></nav></header><section id="files"><span id="current-path">`
|
||||
index__1 = `">Back to main website</a><h1>Files</h1></nav></header><section id="files"><span>`
|
||||
index__2 = `</span><p>Files: `
|
||||
index__3 = ` (`
|
||||
index__4 = `); Directories: `
|
||||
index__5 = `.</p><table><thead><tr><th>Name</th><th>Date</th><th>Size</th></tr><tr><td><a href="../">../</a></td></tr></thead><tbody>`
|
||||
index__6 = `</tbody></table></section><section id="usage"><p>In an overlay you can use your mouse wheel to change scale of a video or an image. An audio volume is being kept across files on a current page. No cookie or local storage are being used.</p></section><section id="privacy"><h2>Privacy statements</h2><p>I collect access logs that include access date and time, IP-address, User-Agent, referer URL that tells me where have you came from, request that you sent to me. In addition there are GeoIP information added based on your IP-address that includes country, region, and city for my convenience.</p><p>This site makes use of JavaScript purely for convenient functionality, like being able to watch video, listen to music, and look images in an overlay without the need to open a file in a new tab or return back.</p></section><footer>2017—2022 Arav <<a href="mailto:me@arav.top">me@arav.top</a>></footer><div id="overlay"></div></body></html>`
|
||||
index__7 = `<tr><td><a href="`
|
||||
index__8 = `">`
|
||||
index__9 = `</a></td><td>`
|
||||
index__10 = `</td><td>`
|
||||
index__11 = `</td></tr>`
|
||||
index__6 = `</tbody></table></section><section><span>`
|
||||
index__7 = `</span></section><section id="usage"><p>In an overlay you can use your mouse wheel to change scale of a video or a picture. An audio volume is being kept across site using LocalStorage API.</p></section><section id="privacy"><h2>Privacy statements</h2><p>I collect access logs that include access date and time, IP-address, User-Agent, referer URL that tells me where have you came from, request that you sent to me. In addition there are GeoIP information added based on your IP-address that includes country, region, and city for my convenience.</p><p>This site makes use of JavaScript purely for convenient functionality, like being able to watch video, listen to music, and look images in an overlay without the need to open a file in a new tab or return back.</p></section><footer>2017—2022 Arav <<a href="mailto:me@arav.top">me@arav.top</a>></footer><div id="overlay"></div></body></html>`
|
||||
index__8 = `<tr><td><a href="`
|
||||
index__9 = `">`
|
||||
index__10 = `</a></td><td>`
|
||||
index__11 = `</td><td>`
|
||||
index__12 = `</td></tr>`
|
||||
)
|
||||
|
||||
func Index(mainSite, currentPath string, stats *files.DirStats, items *[]files.DirEntry, r *http.Request, wr io.Writer) {
|
||||
@ -42,17 +43,19 @@ func Index(mainSite, currentPath string, stats *files.DirStats, items *[]files.D
|
||||
buffer.WriteString(index__5)
|
||||
|
||||
for _, item := range *items {
|
||||
buffer.WriteString(index__7)
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Link)))
|
||||
buffer.WriteString(index__8)
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Name)))
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Link)))
|
||||
buffer.WriteString(index__9)
|
||||
buffer.WriteString(utils.ToClientTimezone(item.Datetime, r).Format(files.FileDateFormat))
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Name)))
|
||||
buffer.WriteString(index__10)
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Size)))
|
||||
buffer.WriteString(utils.ToClientTimezone(item.Datetime, r).Format(files.FileDateFormat))
|
||||
buffer.WriteString(index__11)
|
||||
buffer.WriteString(html.EscapeString(fmt.Sprintf("%v", item.Size)))
|
||||
buffer.WriteString(index__12)
|
||||
|
||||
}
|
||||
buffer.WriteString(index__6)
|
||||
buffer.WriteString(currentPath)
|
||||
buffer.WriteString(index__7)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user