add storage quota display

This commit is contained in:
marlon-erler
2026-09-24 23:27:54 +02:00
parent a63488d62a
commit c5db5290ac
11 changed files with 500 additions and 326 deletions
+4
View File
@@ -177,6 +177,10 @@ export function getLocalStorageItemAndClear(key: string): string | null {
return value;
}
export function bytesToMB(bytes: number): number {
return bytes / (1024*1024);
}
// string & parsing
export function stringify(data: any): string {
return JSON.stringify(data, null, 4);