mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 07:22:07 +08:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
@@ -30,17 +30,19 @@ export default function Component({ service }) {
|
||||
<Block label="immich.users" value={immichData.usageByUser.length} />
|
||||
<Block label="immich.photos" value={immichData.photos} />
|
||||
<Block label="immich.videos" value={immichData.videos} />
|
||||
<Block label="immich.storage"
|
||||
<Block
|
||||
label="immich.storage"
|
||||
value={
|
||||
// backwards-compatible e.g. '9 GiB'
|
||||
immichData.usage.toString().toLowerCase().includes('b') ?
|
||||
immichData.usage :
|
||||
t("common.bytes", {
|
||||
value: immichData.usage,
|
||||
maximumFractionDigits: 1,
|
||||
binary: true // match immich
|
||||
})
|
||||
} />
|
||||
immichData.usage.toString().toLowerCase().includes("b")
|
||||
? immichData.usage
|
||||
: t("common.bytes", {
|
||||
value: immichData.usage,
|
||||
maximumFractionDigits: 1,
|
||||
binary: true, // match immich
|
||||
})
|
||||
}
|
||||
/>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user