mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 08:53:04 +10:00
Series of small fixes (#346)
* migrate bufbuild config to v2 * fix localdir lookup * fix old oidc redirect path * rework twemoji path stuff * fix torrential cmd * fix broken lock file * align dev server port with nginx * bump pnpm * bump nuxt * make translations lazy loaded * format numbers via i18n * fix prisma breaking if extension already exists
This commit is contained in:
@@ -31,6 +31,8 @@ export function getFolderSize(folderPath: string): number {
|
||||
}
|
||||
|
||||
export function formatBytes(bytes: number): string {
|
||||
// TODO: use i18n formatting https://vue-i18n.intlify.dev/guide/essentials/number.html
|
||||
|
||||
if (bytes < 1024) {
|
||||
return `${bytes} B`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user