Small imports stuff, hide "hacking" Info away

No plans to resume learning about cybersecurity
This commit is contained in:
Taevas 2025-02-18 02:14:01 +01:00
parent cbc005b995
commit 1e71c12f60
13 changed files with 17 additions and 15 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -1,5 +1,5 @@
import {type Handler} from "@netlify/functions";
import {type AnilistInfo} from "../../src/components/Info/Anime/Anilist.js";
import {type AnilistInfo} from "#Infos/Anime/Anilist.js";
const handler: Handler = async () => {
const anilist = await fetch("https://graphql.anilist.co", {

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import {Octokit} from "@octokit/rest";
import {type GithubInfo} from "../../src/components/Info/Coding/GitHub.js";
import {type GithubInfo} from "#Infos/Coding/GitHub.js";
const handler: Handler = async () => {
const octokit = new Octokit({auth: process.env.API_GITHUB});

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import { Gitlab } from "@gitbeaker/rest";
import {type GitlabInfo} from "../../src/components/Info/Coding/GitLab.js";
import {type GitlabInfo} from "#Infos/Coding/GitLab.js";
const handler: Handler = async () => {
const api = new Gitlab({token: process.env.API_GITLAB!});

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import {api} from "./shared/api.js";
import {type HacktheboxInfo} from "../../src/components/Info/Hacking/Hackthebox.js";
import {type HacktheboxInfo} from "#Infos/Hacking/Hackthebox.js";
const handler: Handler = async () => {
const hackthebox: {profile: {activity: HacktheboxInfo[]}} = await api<{

View file

@ -1,5 +1,5 @@
import {type Handler} from "@netlify/functions";
import { KitsuclubInfo } from "../../src/components/Info/Fediverse/KitsuClub.js";
import { KitsuclubInfo } from "#Infos/Fediverse/KitsuClub.js";
import { api } from "./shared/api.js";
const handler: Handler = async () => {

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import {api} from "./shared/api.js";
import {type LastfmInfo} from "../../src/components/Info/Music/Lastfm.js";
import {type LastfmInfo} from "#Infos/Music/Lastfm.js";
const handler: Handler = async () => {
const lastfm = await api<{

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import * as osu from "osu-api-v2-js";
import {type OsuInfo} from "../../src/components/Info/RhythmGames/Osu.js";
import {type OsuInfo} from "#Infos/RhythmGames/Osu.js";
import {MongoClient} from "mongodb";
import {type Token} from "./osu_token.js";

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import {api} from "./shared/api.js";
import {type SpeedruncomInfo} from "../../src/components/Info/Speedrunning/Speedruncom.js";
import {type SpeedruncomInfo} from "#Infos/Speedrun/Speedruncom.js";
interface Runs {
data: {

View file

@ -1,6 +1,6 @@
import {type Handler} from "@netlify/functions";
import {api} from "./shared/api.js";
import {type WanikaniInfo} from "../../src/components/Info/Japanese/Wanikani.js";
import {type WanikaniInfo} from "#Infos/Japanese/Wanikani.js";
import { WKLevelProgression, WKResetCollection, WKSummary } from "@bachmacintosh/wanikani-api-types";
interface Subject {

View file

@ -24,8 +24,8 @@
"@tailwindcss/forms": "^0.5.10",
"@types/bun": "latest",
"@types/node": "^20.17.19",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"eslint": "^9.20.1",
@ -35,10 +35,12 @@
"react-animate-height": "^3.2.3",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0",
"typescript-eslint": "^8.24.1",
"vite": "^5.4.14"
},
"imports": {
"#Main/*": "./src/Main/*",
"#Infos/*": "./src/Infos/*",
"#parts/*": "./src/parts/*",
"#contexts": "./src/contexts.js"
},

View file

@ -27,8 +27,8 @@ export default function KitsuClub() {
useEffect(() => {
if (kitsuclub) {
const date = new Date(kitsuclub.date).toISOString();
try {
const date = new Date(kitsuclub.date).toISOString();
setElements([
<div key={"kitsuclub-details"} className="text-left mb-2">
<img key={"kitsuclub-avatar"} src={kitsuclub.avatar} alt="avatar" className="float-left rounded-lg w-12 mr-2"/>

View file

@ -1,7 +1,7 @@
import React, {Component} from "react";
import Music from "./Music/index.js";
import Speedrun from "./Speedrun/index.js";
import Hacking from "./Hacking/index.js";
// import Hacking from "./Hacking/index.js";
import Coding from "./Coding/index.js";
import RhythmGames from "./RhythmGames/index.js";
import Anime from "./Anime/index.js";
@ -24,7 +24,7 @@ export default class Infos extends Component {
<Anime/>
{/*<Japanese/>*/}
<RhythmGames/>
<Hacking/>
{/*<Hacking/>*/}
</div>
</div>;
}