mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-29 23:41:16 -07:00
Enhancement: better support for raw values in block highlighting (#6434)
This commit is contained in:
@@ -105,8 +105,16 @@ export default function Component({ service }) {
|
||||
<Block label="dockhand.paused" value={t("common.number", { value: paused ?? 0 })} />
|
||||
<Block label="dockhand.pending_updates" value={t("common.number", { value: pendingUpdates ?? 0 })} />
|
||||
<Block label="dockhand.total" value={t("common.number", { value: totalContainers })} />
|
||||
<Block label="dockhand.cpu" value={t("common.percent", { value: cpuPercent, maximumFractionDigits: 1 })} />
|
||||
<Block label="dockhand.memory" value={t("common.percent", { value: memoryPercent, maximumFractionDigits: 1 })} />
|
||||
<Block
|
||||
label="dockhand.cpu"
|
||||
value={t("common.percent", { value: cpuPercent, maximumFractionDigits: 1 })}
|
||||
highlightValue={cpuPercent}
|
||||
/>
|
||||
<Block
|
||||
label="dockhand.memory"
|
||||
value={t("common.percent", { value: memoryPercent, maximumFractionDigits: 1 })}
|
||||
highlightValue={memoryPercent}
|
||||
/>
|
||||
<Block label="dockhand.images" value={t("common.number", { value: imagesTotal ?? 0 })} />
|
||||
<Block label="dockhand.volumes" value={t("common.number", { value: volumesTotal ?? 0 })} />
|
||||
<Block
|
||||
|
||||
Reference in New Issue
Block a user