aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/StatsGenerator.js
Commit message (Collapse)AuthorAgeFilesLines
* chore: refactor stats generator to use an enum for typesZephyrrus2021-01-071-9/+25
| | | | | | | | fix: saved data not being converted to JSON automatically when using SQLite (and possibly MSSQL) feat: display when a stat was generated in the section's header fix: not being able to click through the footer (sorry IE11 users, you still won't be able to click through it) fix: add is-mobile to columns so they don't stack on top of each other feat: add text next to the NSFW toggle and make it look like the elements around it (begone round iOS edges)
* chore: Move statistics related functions to it's own fileZephyrrus2021-01-071-0/+209
fix: Extract database constructor to a separate file to ensure we only create one knex instance/db feat: Add cron for saving the stats to the database every hour feat: Get cached stats from database (if a stat is not found in the db, generate it)