From dc7507aa28bd2e84c5b445c31d13d6cf6c079d0a Mon Sep 17 00:00:00 2001 From: krustowski Date: Thu, 12 Sep 2024 00:50:31 +0200 Subject: [PATCH] update README and docs, apply new dumpAll output --- .env.example | 2 +- README.md | 5 ++++- api/swagger.json | 2 +- cmd/littr/http_server.go | 5 ++++- configs/backend.go | 2 ++ pkg/backend/router.go | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index fe577123..710de10d 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,5 @@ # APP_NAME=littr -APP_VERSION=0.39.28 +APP_VERSION=0.40.0 GOLANG_VERSION=1.23 diff --git a/README.md b/README.md index f67ba825..caca67d3 100644 --- a/README.md +++ b/README.md @@ -171,10 +171,13 @@ Successfully copied 3.07kB to /home/user/littr/run_data/ + write integration and e2e tests + [...] +### roadmap to v0.41 ++ user activation via mail + ### roadmap to v0.40 + ~~convert GIFs to WebPs~~ + ~~e-mail duplicity check for registration~~ -+ user activation via mail ++ ~~introduce the hideReplies feature~~ ### roadmap to v0.39 + ~~fix avatar image uploading, resizing and cropping~~ diff --git a/api/swagger.json b/api/swagger.json index 11e197f0..8897ff66 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -13,7 +13,7 @@ "name": "MIT", "url": "https://github.com/krustowski/littr/blob/master/LICENSE" }, - "version": "0.39.28" + "version": "0.40.0" }, "host": "www.littr.eu", "basePath": "/api/v1", diff --git a/cmd/littr/http_server.go b/cmd/littr/http_server.go index b766e303..44cfef15 100644 --- a/cmd/littr/http_server.go +++ b/cmd/littr/http_server.go @@ -96,7 +96,8 @@ func initServer() { // load up data from local dumps (/opt/data/) // TODO: catch an error there! - db.LoadAll() + loadReport := db.LoadAll() + l.Println(loadReport, http.StatusOK) l.Println("dumped data loaded", http.StatusOK) @@ -156,12 +157,14 @@ func initServer() { }, AutoUpdateInterval: time.Minute * 1, Icon: app.Icon{ + //Maskable: "/web/android-chrome-192x192.png", Default: "/web/android-chrome-192x192.png", SVG: "/web/android-chrome-512x512.svg", Large: "/web/android-chrome-512x512.png", AppleTouch: "/web/apple-touch-icon.png", }, Image: "/web/android-chrome-512x512.svg", + //Domain: "www.littr.eu", Body: func() app.HTMLBody { return app.Body().Class("dark") }, diff --git a/configs/backend.go b/configs/backend.go index 3187c6da..99ddebab 100644 --- a/configs/backend.go +++ b/configs/backend.go @@ -52,6 +52,8 @@ var UserDeletionList []string = []string{ "passphrase", "user", "nickname", + "test", + "tester", } // This array is used in a procedure's loop to manually unshade listed users. diff --git a/pkg/backend/router.go b/pkg/backend/router.go index 1fe54533..7bd47008 100644 --- a/pkg/backend/router.go +++ b/pkg/backend/router.go @@ -1,5 +1,5 @@ // @title littr -// @version 0.39.28 +// @version 0.40.0 // @description a simple nanoblogging platform as PWA built on go-app framework // @termsOfService https://littr.eu/tos