minor update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-29 11:15:43 +11:00
parent 396d0c2f00
commit ec8abc0802
2 changed files with 15 additions and 11 deletions

21
main.go
View File

@@ -58,7 +58,7 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
// Root request should load index.htm // Root request should load index.htm
if len(fileName) == 1 { 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" fileName = "www/index.html"
} else { } else {
fileName = strings.TrimLeft(fileName, "/") fileName = strings.TrimLeft(fileName, "/")
@@ -97,7 +97,7 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
} }
func main() { func main() {
// These replacements are for the embedded html generated from README.md
replacements["{SHA1VER}"] = sha1ver replacements["{SHA1VER}"] = sha1ver
replacements["{BUILDTIME}"] = buildTime replacements["{BUILDTIME}"] = buildTime
@@ -123,14 +123,17 @@ func main() {
log.SetOutput(logfileWriter) log.SetOutput(logfileWriter)
log.Printf("SMT starting execution. Built on %s from sha1 %s\n", buildTime, sha1ver) log.Printf("SMT starting execution. Built on %s from sha1 %s\n", buildTime, sha1ver)
files, err := getAllFilenames(&staticContent) // for debugging, list all the files that we embedded at compile time
if err != nil { /*
log.Printf("Unable to access embedded fs : '%s'\n", err) files, err := getAllFilenames(&staticContent)
} if err != nil {
log.Printf("Unable to access embedded fs : '%s'\n", err)
}
for i := range files { for i := range files {
log.Printf("Embedded file : '%s'\n", files[i]) log.Printf("Embedded file : '%s'\n", files[i])
} }
*/
// Initiate connection to sqlite and make sure our schema is up to date // Initiate connection to sqlite and make sure our schema is up to date
models.ConnectDatabase() models.ConnectDatabase()

View File

@@ -16,7 +16,8 @@
--color-text-secondary: #999; --color-text-secondary: #999;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--hover-brightness: 1.2; --hover-brightness: 1.2;
--justify-important: left; --justify-important: center;
--justify-table: left;
--justify-normal: left; --justify-normal: left;
--line-height: 1.5; --line-height: 1.5;
--width-card: 285px; --width-card: 285px;
@@ -466,7 +467,7 @@ table td,
table th, table th,
table tr { table tr {
padding: 0.4rem 0.8rem; padding: 0.4rem 0.8rem;
text-align: var(--justify-important); text-align: var(--justify-table);
} }
table thead { table thead {