Commit Graph

3 Commits (e5d9a6cf8c62a3b6334d6acfd9ed33f626f753fc)

Author SHA1 Message Date
ClaraCrazy 0770ebdfc2
Update conversion function and footer
- Conversion function updates:
    - Enabling conversion now rounds to the nearest max. value where `i > 1`, and if rounding was needed it will create a Tooltip displaying the config value on hover.
    - If rounding wasnt needed, or conversion is disabled in the config then no tooltip will be created, to avoid confusion.
- Updated footer:
    - Created new function called footerbuilder()
    - The config value is now always underlined and italic to make it more obvious you can (if rounded) "interact" with it.
2024-10-04 23:32:21 +02:00
ClaraCrazy d992ec2470
Implement convertUp helper function 2024-10-03 07:25:20 +02:00
ClaraCrazy 71fd513bc0
Refactor email purge time configuration and usage to be more precise.
- New purgeTIme now allows to configure a purge to be every X minutes, hours or days.
- Also remove a bit more trust by pulling footer deletion time from config.
- TODO: implement 'convertUp' function, converting numbers up to the biggest possible value where `i > 2 (so 48hrs still works as per slogan and domain)`. I.e. 72hrs = 3 days, 360minutes = 6hrs, 1440minutes to 24hrs

Co-authored-by: Johannes Bülow <kontakt@jmbit.de>
2024-10-03 01:22:10 +02:00