From 556f1c98528c4523c4095b438b9436ade5e0d84b Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Wed, 4 Jul 2018 13:16:52 -0700 Subject: wip, simplifications --- web/rice-box.go | 8 ++++---- web/web.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'web') diff --git a/web/rice-box.go b/web/rice-box.go index d82fd72..bb8b8b5 100644 --- a/web/rice-box.go +++ b/web/rice-box.go @@ -60,8 +60,8 @@ func init() { } filec := &embedded.EmbeddedFile{ Filename: "ui.html", - FileModTime: time.Unix(1529168764, 0), - Content: string("\n\n \n neko rss mode\n \n \n \n \n \n \n \n \n \n \n \n

🐱

\n\n
\n\n
\n

Tags

\n \n \n

Feeds

\n \n
\n\n \n\n
\n
\n
\n
\n \n \n\n \n\n \n\n \n \n\n \n"), + FileModTime: time.Unix(1529169644, 0), + Content: string("\n\n \n neko rss mode\n \n \n \n \n \n \n \n \n \n \n \n

🐱

\n\n
\n\n
\n

Tags

\n \n \n

Feeds

\n \n
\n\n \n\n
\n
\n
\n
\n \n \n\n \n\n \n\n \n \n\n \n"), } filed := &embedded.EmbeddedFile{ Filename: "ui.js", @@ -82,7 +82,7 @@ func init() { // define dirs dir1 := &embedded.EmbeddedDir{ Filename: "", - DirModTime: time.Unix(1529169528, 0), + DirModTime: time.Unix(1529169644, 0), ChildFiles: []*embedded.EmbeddedFile{ file2, // ".DS_Store" file3, // "backbone-1.3.3.min.js" @@ -108,7 +108,7 @@ func init() { // register embeddedBox embedded.RegisterEmbeddedBox(`../static`, &embedded.EmbeddedBox{ Name: `../static`, - Time: time.Unix(1529169528, 0), + Time: time.Unix(1529169644, 0), Dirs: map[string]*embedded.EmbeddedDir{ "": dir1, }, diff --git a/web/web.go b/web/web.go index 1e1f628..8b3b19d 100644 --- a/web/web.go +++ b/web/web.go @@ -295,5 +295,5 @@ func Serve() { http.HandleFunc("/", AuthWrap(indexHandler)) - log.Fatal(http.ListenAndServe(config.Config.WebServer, nil)) + log.Fatal(http.ListenAndServe(":"+strconv.Itoa(config.Config.Port), nil)) } -- cgit v1.2.3