From ec8abc08028cb0b01a8396ee3fa5bbeec71906a8 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 29 Dec 2023 11:15:43 +1100 Subject: [PATCH] minor update --- main.go | 21 ++++++++++++--------- www/mvp.css | 5 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index a4a2dc9..2045972 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,7 @@ func staticFileServer(content embed.FS) gin.HandlerFunc { // Root request should load index.htm if len(fileName) == 1 { - log.Printf("staticFileServer replacing root request with index.html") + //log.Printf("staticFileServer replacing root request with index.html") fileName = "www/index.html" } else { fileName = strings.TrimLeft(fileName, "/") @@ -97,7 +97,7 @@ func staticFileServer(content embed.FS) gin.HandlerFunc { } func main() { - + // These replacements are for the embedded html generated from README.md replacements["{SHA1VER}"] = sha1ver replacements["{BUILDTIME}"] = buildTime @@ -123,14 +123,17 @@ func main() { log.SetOutput(logfileWriter) log.Printf("SMT starting execution. Built on %s from sha1 %s\n", buildTime, sha1ver) - files, err := getAllFilenames(&staticContent) - if err != nil { - log.Printf("Unable to access embedded fs : '%s'\n", err) - } + // for debugging, list all the files that we embedded at compile time + /* + files, err := getAllFilenames(&staticContent) + if err != nil { + log.Printf("Unable to access embedded fs : '%s'\n", err) + } - for i := range files { - log.Printf("Embedded file : '%s'\n", files[i]) - } + for i := range files { + log.Printf("Embedded file : '%s'\n", files[i]) + } + */ // Initiate connection to sqlite and make sure our schema is up to date models.ConnectDatabase() diff --git a/www/mvp.css b/www/mvp.css index efe79d0..51cc881 100644 --- a/www/mvp.css +++ b/www/mvp.css @@ -16,7 +16,8 @@ --color-text-secondary: #999; --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; --hover-brightness: 1.2; - --justify-important: left; + --justify-important: center; + --justify-table: left; --justify-normal: left; --line-height: 1.5; --width-card: 285px; @@ -466,7 +467,7 @@ table td, table th, table tr { padding: 0.4rem 0.8rem; - text-align: var(--justify-important); + text-align: var(--justify-table); } table thead {