feat: add homepage & auth

This commit is contained in:
2024-02-23 19:36:10 +07:00
parent d579c1b7c5
commit 735fa9354b
42 changed files with 981 additions and 70 deletions
+8
View File
@@ -25,3 +25,11 @@ export function getPreviewUrl(
typeof file === "string" ? file : file.path
);
}
export const ucfirst = (str: string) => {
return str.charAt(0).toUpperCase() + str.substring(1);
};
export const ucwords = (str: string) => {
return str.split(" ").map(ucfirst).join(" ");
};