Big Updated, added some tests, added comments for all functions, I forgot the rest

This commit is contained in:
Alois 2026-03-15 14:52:09 +01:00
commit 90a1059cc8
59 changed files with 1816 additions and 203 deletions

View file

@ -1,6 +1,14 @@
import { toast as sonnerToast } from "sonner";
import { Ban, Check, Info, TriangleAlert } from "lucide-react";
/**
* Executes log.
* @param logLevel Parameter logLevel.
* @param logger Parameter logger.
* @param color Parameter color.
* @param args Parameter args.
* @returns unknown.
*/
export function log(
logLevel: number,
logger: string,
@ -23,6 +31,12 @@ export function log(
}
const size = 20;
/**
* Executes toast.
* @param type Parameter type.
* @param message Parameter message.
* @returns unknown.
*/
export function toast(
type: "error" | "info" | "warn" | "success",
message: string,