Added memory info and renamed tab (#4050)
This commit is contained in:
parent
5032770ddb
commit
fb5b62d267
2 changed files with 31 additions and 2 deletions
|
@ -19,5 +19,9 @@
|
||||||
"realmInfo": "Realm info",
|
"realmInfo": "Realm info",
|
||||||
"spi": "SPI",
|
"spi": "SPI",
|
||||||
"showMore": "Show more",
|
"showMore": "Show more",
|
||||||
"showLess": "Show less"
|
"showLess": "Show less",
|
||||||
|
"memory": "Memory",
|
||||||
|
"totalMemory": "Total memory",
|
||||||
|
"freeMemory": "Free memory",
|
||||||
|
"usedMemory": "Used memory"
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,7 @@ const Dashboard = () => {
|
||||||
<Tab
|
<Tab
|
||||||
id="info"
|
id="info"
|
||||||
data-testid="infoTab"
|
data-testid="infoTab"
|
||||||
title={<TabTitleText>{t("realmInfo")}</TabTitleText>}
|
title={<TabTitleText>{t("serverInfo")}</TabTitleText>}
|
||||||
{...route("info")}
|
{...route("info")}
|
||||||
>
|
>
|
||||||
<PageSection variant="light">
|
<PageSection variant="light">
|
||||||
|
@ -176,6 +176,31 @@ const Dashboard = () => {
|
||||||
</DescriptionListGroup>
|
</DescriptionListGroup>
|
||||||
</DescriptionList>
|
</DescriptionList>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
|
<CardTitle>{t("memory")}</CardTitle>
|
||||||
|
<CardBody>
|
||||||
|
<DescriptionList>
|
||||||
|
<DescriptionListGroup>
|
||||||
|
<DescriptionListTerm>
|
||||||
|
{t("totalMemory")}
|
||||||
|
</DescriptionListTerm>
|
||||||
|
<DescriptionListDescription>
|
||||||
|
{serverInfo.memoryInfo?.totalFormated}
|
||||||
|
</DescriptionListDescription>
|
||||||
|
<DescriptionListTerm>
|
||||||
|
{t("freeMemory")}
|
||||||
|
</DescriptionListTerm>
|
||||||
|
<DescriptionListDescription>
|
||||||
|
{serverInfo.memoryInfo?.freeFormated}
|
||||||
|
</DescriptionListDescription>
|
||||||
|
<DescriptionListTerm>
|
||||||
|
{t("usedMemory")}
|
||||||
|
</DescriptionListTerm>
|
||||||
|
<DescriptionListDescription>
|
||||||
|
{serverInfo.memoryInfo?.usedFormated}
|
||||||
|
</DescriptionListDescription>
|
||||||
|
</DescriptionListGroup>
|
||||||
|
</DescriptionList>
|
||||||
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
||||||
</GridItem>
|
</GridItem>
|
||||||
<GridItem lg={10} sm={12}>
|
<GridItem lg={10} sm={12}>
|
||||||
|
|
Loading…
Reference in a new issue