mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove lingui (#1874)
* remove lingui Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * babelless Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak ts-loader options Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak renderer webpack config Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
050603a7b3
commit
a03da3c572
163 files changed
+1140
-12003
No files matched your search
@@ -1,11 +1,10 @@
|
||||
import React from "react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Icon } from "../icon";
|
||||
|
||||
export function NoMetrics() {
|
||||
return (
|
||||
<div className="flex justify-center align-center">
|
||||
<Icon material="info"/> <Trans>Metrics not available at the moment</Trans>
|
||||
<Icon material="info"/> Metrics not available at the moment
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { IPodMetrics } from "../../api/endpoints";
|
||||
import { getMetricLastPoints, IMetrics } from "../../api/endpoints/metrics.api";
|
||||
import { bytesToUnits } from "../../utils";
|
||||
@@ -17,16 +16,16 @@ export function ResourceMetricsText(props: Props) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<DrawerItem name={<Trans>CPU</Trans>} labelsOnly>
|
||||
<DrawerItem name="CPU" labelsOnly>
|
||||
{cpuUsage > 0 && <Badge label={`Usage: ${cpuUsage.toPrecision(2)}`}/>}
|
||||
{cpuRequests > 0 && <Badge label={`Requests: ${cpuRequests.toPrecision(2)}`}/>}
|
||||
{cpuLimits > 0 && <Badge label={`Limits: ${cpuLimits.toPrecision(2)}`}/>}
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Memory</Trans>} labelsOnly>
|
||||
<DrawerItem name="Memory" labelsOnly>
|
||||
{memoryUsage > 0 && <Badge label={`Usage: ${bytesToUnits(memoryUsage)}`}/>}
|
||||
{memoryRequests > 0 && <Badge label={`Requests: ${bytesToUnits(memoryRequests)}`}/>}
|
||||
{memoryLimits > 0 && <Badge label={`Limits: ${bytesToUnits(memoryLimits)}`}/>}
|
||||
</DrawerItem>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user