feat: start of dm overview page

This commit is contained in:
Samuel 2024-12-12 18:44:44 +01:00
parent 67da0a72db
commit 5d2ce7705c
14 changed files with 442 additions and 34 deletions

9
src/lib/random.ts Normal file
View file

@ -0,0 +1,9 @@
export const generateRandomString = (length: number) => {
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
let result = "";
for (let i = 0; i < length; i++) {
const randomIndex = Math.floor(Math.random() * characters.length);
result += characters[randomIndex];
}
return result;
};