mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce template strings in eslint (#1574)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
07e6df9fdc
commit
335778aeef
52 files changed
+94
-88
No files matched your search
@@ -25,7 +25,7 @@ export const ClusterMetrics = observer(() => {
|
||||
|
||||
const datasets = [{
|
||||
id: metricType + metricNodeRole,
|
||||
label: metricType.toUpperCase() + " usage",
|
||||
label: `${metricType.toUpperCase()} usage`,
|
||||
borderColor: colors[metricType],
|
||||
data
|
||||
}];
|
||||
|
||||
@@ -73,10 +73,10 @@ export const ClusterPieCharts = observer(() => {
|
||||
},
|
||||
],
|
||||
labels: [
|
||||
i18n._(t`Usage`) + `: ${cpuUsage ? cpuUsage.toFixed(2) : "N/A"}`,
|
||||
i18n._(t`Requests`) + `: ${cpuRequests ? cpuRequests.toFixed(2) : "N/A"}`,
|
||||
i18n._(t`Limits`) + `: ${cpuLimits ? cpuLimits.toFixed(2) : "N/A"}`,
|
||||
i18n._(t`Capacity`) + `: ${cpuCapacity || "N/A"}`
|
||||
`${i18n._(t`Usage`)}: ${cpuUsage ? cpuUsage.toFixed(2) : "N/A"}`,
|
||||
`${i18n._(t`Requests`)}: ${cpuRequests ? cpuRequests.toFixed(2) : "N/A"}`,
|
||||
`${i18n._(t`Limits`)}: ${cpuLimits ? cpuLimits.toFixed(2) : "N/A"}`,
|
||||
`${i18n._(t`Capacity`)}: ${cpuCapacity || "N/A"}`
|
||||
]
|
||||
};
|
||||
const memoryData: ChartData = {
|
||||
@@ -116,10 +116,10 @@ export const ClusterPieCharts = observer(() => {
|
||||
},
|
||||
],
|
||||
labels: [
|
||||
i18n._(t`Usage`) + `: ${bytesToUnits(memoryUsage)}`,
|
||||
i18n._(t`Requests`) + `: ${bytesToUnits(memoryRequests)}`,
|
||||
i18n._(t`Limits`) + `: ${bytesToUnits(memoryLimits)}`,
|
||||
i18n._(t`Capacity`) + `: ${bytesToUnits(memoryCapacity)}`,
|
||||
`${i18n._(t`Usage`)}: ${bytesToUnits(memoryUsage)}`,
|
||||
`${i18n._(t`Requests`)}: ${bytesToUnits(memoryRequests)}`,
|
||||
`${i18n._(t`Limits`)}: ${bytesToUnits(memoryLimits)}`,
|
||||
`${i18n._(t`Capacity`)}: ${bytesToUnits(memoryCapacity)}`,
|
||||
]
|
||||
};
|
||||
const podsData: ChartData = {
|
||||
@@ -137,8 +137,8 @@ export const ClusterPieCharts = observer(() => {
|
||||
},
|
||||
],
|
||||
labels: [
|
||||
i18n._(t`Usage`) + `: ${podUsage || 0}`,
|
||||
i18n._(t`Capacity`) + `: ${podCapacity}`,
|
||||
`${i18n._(t`Usage`)}: ${podUsage || 0}`,
|
||||
`${i18n._(t`Capacity`)}: ${podCapacity}`,
|
||||
]
|
||||
};
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user