the second devlog
Didn’t make any for some time cuz I didn’t feel like making a devlog for each new page/thing I add :p
Login
I’m using Spring’s OAuth2 client for it. Currently only Discord’s OAuth2 is supported, more will come in the future. It’s creating a JWT cookie and storing user’s UUID there.
Home page
Home page contains link to the GitHub repository and the storage itself. It’s also available to create an announcement that will display there, with 4 levels of it (low, medium, high and critical) each with different color.
Storage
Finished making the storage display page, it works with database and has icons based on the entry type (file/folder), if file/folder’s permission level is higher than user’s, it will show a red block icon and redirect on click to a login page instead of the file itself.
Dashboard
Made the home page of the dashboard, right now there are only request statistics available (requests in a day/hour/minute)
Config and stats
Both are stored in a separate JSON files, I’m using Gson and made a manager so it’s easier to manage and edit them.