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:
Jari Kolehmainen authored and GitHub committed 2020-12-29 14:53:34 +02:00
1 parent 050603a7b3
commit a03da3c572
163 files changed
+1140 -12003

No files matched your search

+20 -22
View File
@@ -1,5 +1,4 @@
import React, { useContext } from "react";
import { t } from "@lingui/macro";
import { IClusterMetrics, Node } from "../../api/endpoints";
import { BarChart, cpuOptions, memoryOptions } from "../chart";
import { isMetricsEmpty, normalizeMetrics } from "../../api/endpoints/metrics.api";
@@ -8,7 +7,6 @@ import { IResourceMetricsValue, ResourceMetricsContext } from "../resource-metri
import { observer } from "mobx-react";
import { ChartOptions, ChartPoint } from "chart.js";
import { themeStore } from "../../theme.store";
import { _i18n } from "../../i18n";
type IContext = IResourceMetricsValue<Node, { metrics: IClusterMetrics }>;
@@ -43,22 +41,22 @@ export const NodeCharts = observer(() => {
[
{
id: `${id}-cpuUsage`,
label: _i18n._(t`Usage`),
tooltip: _i18n._(t`CPU cores usage`),
label: `Usage`,
tooltip: `CPU cores usage`,
borderColor: "#3D90CE",
data: cpuUsage.map(([x, y]) => ({ x, y }))
},
{
id: `${id}-cpuRequests`,
label: _i18n._(t`Requests`),
tooltip: _i18n._(t`CPU requests`),
label: `Requests`,
tooltip: `CPU requests`,
borderColor: "#30b24d",
data: cpuRequests.map(([x, y]) => ({ x, y }))
},
{
id: `${id}-cpuCapacity`,
label: _i18n._(t`Capacity`),
tooltip: _i18n._(t`CPU capacity`),
label: `Capacity`,
tooltip: `CPU capacity`,
borderColor: chartCapacityColor,
data: cpuCapacity.map(([x, y]) => ({ x, y }))
}
@@ -67,22 +65,22 @@ export const NodeCharts = observer(() => {
[
{
id: `${id}-memoryUsage`,
label: _i18n._(t`Usage`),
tooltip: _i18n._(t`Memory usage`),
label: `Usage`,
tooltip: `Memory usage`,
borderColor: "#c93dce",
data: memoryUsage.map(([x, y]) => ({ x, y }))
},
{
id: "memoryRequests",
label: _i18n._(t`Requests`),
tooltip: _i18n._(t`Memory requests`),
label: `Requests`,
tooltip: `Memory requests`,
borderColor: "#30b24d",
data: memoryRequests.map(([x, y]) => ({ x, y }))
},
{
id: `${id}-memoryCapacity`,
label: _i18n._(t`Capacity`),
tooltip: _i18n._(t`Memory capacity`),
label: `Capacity`,
tooltip: `Memory capacity`,
borderColor: chartCapacityColor,
data: memoryCapacity.map(([x, y]) => ({ x, y }))
}
@@ -91,15 +89,15 @@ export const NodeCharts = observer(() => {
[
{
id: `${id}-fsUsage`,
label: _i18n._(t`Usage`),
tooltip: _i18n._(t`Node filesystem usage in bytes`),
label: `Usage`,
tooltip: `Node filesystem usage in bytes`,
borderColor: "#ffc63d",
data: fsUsage.map(([x, y]) => ({ x, y }))
},
{
id: `${id}-fsSize`,
label: _i18n._(t`Size`),
tooltip: _i18n._(t`Node filesystem size in bytes`),
label: `Size`,
tooltip: `Node filesystem size in bytes`,
borderColor: chartCapacityColor,
data: fsSize.map(([x, y]) => ({ x, y }))
}
@@ -108,15 +106,15 @@ export const NodeCharts = observer(() => {
[
{
id: `${id}-podUsage`,
label: _i18n._(t`Usage`),
tooltip: _i18n._(t`Number of running Pods`),
label: `Usage`,
tooltip: `Number of running Pods`,
borderColor: "#30b24d",
data: podUsage.map(([x, y]) => ({ x, y }))
},
{
id: `${id}-podCapacity`,
label: _i18n._(t`Capacity`),
tooltip: _i18n._(t`Node Pods capacity`),
label: `Capacity`,
tooltip: `Node Pods capacity`,
borderColor: chartCapacityColor,
data: podCapacity.map(([x, y]) => ({ x, y }))
}