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
This commit is contained in:
parent
dec30acf14
commit
719672ffa0
45 changed files with 1125 additions and 759 deletions
|
@ -1,6 +1,6 @@
|
|||
import {type Handler} from "@netlify/functions";
|
||||
import {Octokit} from "@octokit/rest";
|
||||
import {type GithubInfo} from "../../src/components/Info/Git.js";
|
||||
import {type GithubInfo} from "../../src/components/Info/Coding/GitHub.js";
|
||||
|
||||
const handler: Handler = async () => {
|
||||
const octokit = new Octokit({auth: process.env.API_GITHUB});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue