Commit graph

14 commits

Author SHA1 Message Date
1e71c12f60 Small imports stuff, hide "hacking" Info away
No plans to resume learning about cybersecurity
2025-02-18 02:14:01 +01:00
96911a8d95 Rework how the linting is done 2025-02-16 17:05:02 +01:00
Taevas
0d9e4f6ed7 Get the osu! oauth token from MongoDB
I will likely use MongoDB for other things with this website in the future
2024-05-05 18:14:05 +02:00
Taevas
719672ffa0 Load an Info's Website separately from the Info itself
Makes it so:
- An `Info`'s `Website` doesn't need to wait for other `Website`s of that same `Info` to load to show up
- An `Info`s `Website` not working won't prevent other `Website`s of that same `Info` from showing up
- Code is more split and organized

Furthermore, the token for the osu! API is now stored, and used for ALL osu! requests for 24 hours instead of being revoked

Overall, it's a lot of future-proofing so things on working even if I'm no longer there to maintain them
Also so `Info`s can be added, changed, and removed more easily
2024-05-04 19:14:18 +02:00
Taevas
d9991ac0e7 Handle errors for Anilist, Lastfm, and Speedruncom Infos (#4)
Also make the client automatically request every 2 minutes an update for Last.fm
Also lightly change the `AnimateHeight` of `Info` (for the sake of the top border and better looks when multiple websites in one category)
2024-05-01 21:10:00 +02:00
Taevas
d2f3cada52 Lint Netlify functions 2024-04-27 21:22:48 +02:00
Taevas
eb85319f73 Also apply basic linting to Netlify functions 2024-04-27 18:45:18 +02:00
Taevas
d1c0269a81 Basic code quality stuff 2023-11-05 21:01:24 +01:00
Taevas
9d8ab705eb Introduce CopyFields 2023-10-31 00:12:55 +01:00
Taevas
121fcb02cc Fix the inconsistent indentation
The code was actually a mess regarding the indentation!
So now it uses 2 spaces

Also, there was an issue with the Anilist information
Some MediaLists can have the properties of startedAt set to null
So we filter out such MediaLists
Guess it only applies to imported animes, so it shouldn't matter much
2023-10-30 00:52:36 +01:00
Taevas
74da396a8b Get ready to add more than infos 2023-05-29 14:47:53 +02:00
Taevas
daba8dd68f Add HTB and Anilist back 2023-05-14 14:26:27 +02:00
Taevas
fee3766c2b Strongly type everything 2023-05-10 19:55:11 +02:00
Taevas
1bf1832c2a Add Anilist 2023-05-09 14:14:28 +02:00