Big Updated, added some tests, added comments for all functions, I forgot the rest
This commit is contained in:
parent
d77271e4b7
commit
90a1059cc8
59 changed files with 1816 additions and 203 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue