This commit is contained in:
Arman committed 2023-03-23 16:39:05 +01:00
1 parent 2b9d7ce97e
commit b5027db2e5
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -11,7 +11,6 @@
"@analytics/google-analytics": "^1.0.5",
"@appwrite.io/pink": "^0.0.6-rc.4",
"@aw-labs/appwrite-console": "^13.1.0",
"@popperjs/core": "^2.11.6",
"@sentry/svelte": "^7.44.2",
"@sentry/tracing": "^7.44.2",
"analytics": "^0.8.1",
+1 -1
View File
@@ -1,7 +1,7 @@
import prettyBytes from 'pretty-bytes';
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] as const;
export type Size = typeof sizes[number];
export type Size = (typeof sizes)[number];
export function calculateSize(bytes: number, decimals = 1) {
if (bytes === 0) return '0 Bytes';