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
@@ -2,7 +2,6 @@ import startCase from "lodash/startCase";
|
||||
import "./volume-details.scss";
|
||||
|
||||
import React from "react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Link } from "react-router-dom";
|
||||
import { observer } from "mobx-react";
|
||||
import { DrawerItem, DrawerTitle } from "../drawer";
|
||||
@@ -29,32 +28,32 @@ export class PersistentVolumeDetails extends React.Component<Props> {
|
||||
return (
|
||||
<div className="PersistentVolumeDetails">
|
||||
<KubeObjectMeta object={volume}/>
|
||||
<DrawerItem name={<Trans>Capacity</Trans>}>
|
||||
<DrawerItem name="Capacity">
|
||||
{capacity.storage}
|
||||
</DrawerItem>
|
||||
|
||||
{mountOptions && (
|
||||
<DrawerItem name={<Trans>Mount Options</Trans>}>
|
||||
<DrawerItem name="Mount Options">
|
||||
{mountOptions.join(", ")}
|
||||
</DrawerItem>
|
||||
)}
|
||||
|
||||
<DrawerItem name={<Trans>Access Modes</Trans>}>
|
||||
<DrawerItem name="Access Modes">
|
||||
{accessModes.join(", ")}
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Reclaim Policy</Trans>}>
|
||||
<DrawerItem name="Reclaim Policy">
|
||||
{persistentVolumeReclaimPolicy}
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Storage Class Name</Trans>}>
|
||||
<DrawerItem name="Storage Class Name">
|
||||
{storageClassName}
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Status</Trans>} labelsOnly>
|
||||
<DrawerItem name="Status" labelsOnly>
|
||||
<Badge label={volume.getStatus()}/>
|
||||
</DrawerItem>
|
||||
|
||||
{nfs && (
|
||||
<>
|
||||
<DrawerTitle title={<Trans>Network File System</Trans>}/>
|
||||
<DrawerTitle title="Network File System"/>
|
||||
{
|
||||
Object.entries(nfs).map(([name, value]) => (
|
||||
<DrawerItem key={name} name={startCase(name)}>
|
||||
@@ -67,8 +66,8 @@ export class PersistentVolumeDetails extends React.Component<Props> {
|
||||
|
||||
{flexVolume && (
|
||||
<>
|
||||
<DrawerTitle title={<Trans>FlexVolume</Trans>}/>
|
||||
<DrawerItem name={<Trans>Driver</Trans>}>
|
||||
<DrawerTitle title="FlexVolume"/>
|
||||
<DrawerItem name="Driver">
|
||||
{flexVolume.driver}
|
||||
</DrawerItem>
|
||||
{
|
||||
@@ -83,16 +82,16 @@ export class PersistentVolumeDetails extends React.Component<Props> {
|
||||
|
||||
{claimRef && (
|
||||
<>
|
||||
<DrawerTitle title={<Trans>Claim</Trans>}/>
|
||||
<DrawerItem name={<Trans>Type</Trans>}>
|
||||
<DrawerTitle title="Claim"/>
|
||||
<DrawerItem name="Type">
|
||||
{claimRef.kind}
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Name</Trans>}>
|
||||
<DrawerItem name="Name">
|
||||
<Link to={getDetailsUrl(pvcApi.getUrl(claimRef))}>
|
||||
{claimRef.name}
|
||||
</Link>
|
||||
</DrawerItem>
|
||||
<DrawerItem name={<Trans>Namespace</Trans>}>
|
||||
<DrawerItem name="Namespace">
|
||||
{claimRef.namespace}
|
||||
</DrawerItem>
|
||||
</>
|
||||
|
||||
@@ -2,7 +2,6 @@ import "./volumes.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Link, RouteComponentProps } from "react-router-dom";
|
||||
import { PersistentVolume } from "../../api/endpoints/persistent-volume.api";
|
||||
import { getDetailsUrl, KubeObjectListLayout } from "../kube-object";
|
||||
@@ -41,15 +40,15 @@ export class PersistentVolumes extends React.Component<Props> {
|
||||
(item: PersistentVolume) => item.getSearchFields(),
|
||||
(item: PersistentVolume) => item.getClaimRefName(),
|
||||
]}
|
||||
renderHeaderTitle={<Trans>Persistent Volumes</Trans>}
|
||||
renderHeaderTitle="Persistent Volumes"
|
||||
renderTableHeader={[
|
||||
{ title: <Trans>Name</Trans>, className: "name", sortBy: sortBy.name },
|
||||
{ title: "Name", className: "name", sortBy: sortBy.name },
|
||||
{ className: "warning" },
|
||||
{ title: <Trans>Storage Class</Trans>, className: "storageClass", sortBy: sortBy.storageClass },
|
||||
{ title: <Trans>Capacity</Trans>, className: "capacity", sortBy: sortBy.capacity },
|
||||
{ title: <Trans>Claim</Trans>, className: "claim" },
|
||||
{ title: <Trans>Age</Trans>, className: "age", sortBy: sortBy.age },
|
||||
{ title: <Trans>Status</Trans>, className: "status", sortBy: sortBy.status },
|
||||
{ title: "Storage Class", className: "storageClass", sortBy: sortBy.storageClass },
|
||||
{ title: "Capacity", className: "capacity", sortBy: sortBy.capacity },
|
||||
{ title: "Claim", className: "claim" },
|
||||
{ title: "Age", className: "age", sortBy: sortBy.age },
|
||||
{ title: "Status", className: "status", sortBy: sortBy.status },
|
||||
]}
|
||||
renderTableContents={(volume: PersistentVolume) => {
|
||||
const { claimRef, storageClassName } = volume.spec;
|
||||
|
||||
Reference in new issue
Block a user