From 958b69dc089198fdb4b2128d53cdbbf52a8524a2 Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Tue, 26 Mar 2024 14:32:19 +0300 Subject: [PATCH] Add basic previous days page --- README.md | 2 +- TODO.md | 5 +++-- pages/days.html | 32 ++++++++++++++++++++++++++++++++ pages/index.html | 9 ++++----- public/requests.js | 19 +++++++++++++++++++ serve.go | 3 +++ 6 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 pages/days.html diff --git a/README.md b/README.md index 6b27546..01535ba 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ As a result of this, it is also neither secure nor idiot-proof. * You can easily export everything in a zip file for backups * Everything is plain(text) and simple. No databases, encryption, OAuth, or anything fancy. Even the password is plainte- *wait is this a feature?* -* Telegram notifications support +* Optional Telegram notifications for failed login attempts are present ## Data format: ``` diff --git a/TODO.md b/TODO.md index 8b21df5..87fdd1d 100644 --- a/TODO.md +++ b/TODO.md @@ -1,10 +1,11 @@ # TODO List of things to add to this project +* Make scram configurable * Use reflection in config loading * Check export function for improvements -* Add missing frontend pages -* More slog.Debug? +* Improve viewing of data (textarea over raw API requests) +* More slog.Debug and a debug flag? * Think about timezones * Consider more secure auth methods * *Go* dependency-less? <-- this is a terrible idea \ No newline at end of file diff --git a/pages/days.html b/pages/days.html new file mode 100644 index 0000000..3486c3f --- /dev/null +++ b/pages/days.html @@ -0,0 +1,32 @@ + + + + + + + + + + Hibiscus.txt + + +
+

🌺 Hibiscus.txt

+

Today is a place

+
+
+

Previous days

+ +
+ + + + + \ No newline at end of file diff --git a/pages/index.html b/pages/index.html index bc2c828..cc6f362 100644 --- a/pages/index.html +++ b/pages/index.html @@ -16,13 +16,12 @@

- +
- -

- -
+