Idk, quick backup

This commit is contained in:
Alois 2026-03-28 22:10:27 +01:00
commit 396defef64
19 changed files with 519 additions and 108 deletions

View file

@ -21,6 +21,18 @@ const message = z.object({
display: z.boolean().optional(),
});
export const failedUser = {
display: "Failed to load user",
iota_id: 0,
omikron_connections: [],
online_status: "user_borked",
public_key: "",
sub_end: 0,
sub_level: 0,
user_id: 0,
username: "unknown",
} as z.infer<typeof socket.get_user_data.response>;
// Socket
export const socket = {
identification: {

View file

@ -2,12 +2,11 @@ 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.
* Log Levels
* - 0: Always logged
* - 1: Errors and warnings
* - 2: Useful information
* - 3: Debug messages
*/
export function log(
logLevel: number,