mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 16:30:31 +00:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
parent
fa50bbad9c
commit
19c25713c4
387 changed files with 4785 additions and 4109 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue