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 "./endpoint-details.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { DrawerTitle } from "../drawer";
|
||||
import { KubeEventDetails } from "../+events/kube-event-details";
|
||||
import { KubeObjectDetailsProps } from "../kube-object";
|
||||
@@ -24,7 +23,7 @@ export class EndpointDetails extends React.Component<Props> {
|
||||
return (
|
||||
<div className="EndpointDetails">
|
||||
<KubeObjectMeta object={endpoint}/>
|
||||
<DrawerTitle title={<Trans>Subsets</Trans>}/>
|
||||
<DrawerTitle title="Subsets"/>
|
||||
{
|
||||
endpoint.getEndpointSubsets().map((subset) => (
|
||||
<EndpointSubsetList key={subset.toString()} subset={subset} endpoint={endpoint} />
|
||||
|
||||
@@ -3,7 +3,6 @@ import "./endpoint-subset-list.scss";
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { EndpointSubset, Endpoint, EndpointAddress} from "../../api/endpoints";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Table, TableCell, TableHead, TableRow } from "../table";
|
||||
import { autobind } from "../../utils";
|
||||
import { lookupApiLink } from "../../api/kube-api";
|
||||
@@ -37,7 +36,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
renderAddressTable(addresses: EndpointAddress[], virtual: boolean) {
|
||||
return (
|
||||
<div>
|
||||
<div className="title flex gaps"><Trans>Addresses</Trans></div>
|
||||
<div className="title flex gaps">Addresses</div>
|
||||
<Table
|
||||
items={addresses}
|
||||
selectable={false}
|
||||
@@ -48,7 +47,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
>
|
||||
<TableHead>
|
||||
<TableCell className="ip">IP</TableCell>
|
||||
<TableCell className="name"><Trans>Hostname</Trans></TableCell>
|
||||
<TableCell className="name">Hostname</TableCell>
|
||||
<TableCell className="target">Target</TableCell>
|
||||
</TableHead>
|
||||
{
|
||||
@@ -92,7 +91,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
<div className="EndpointSubsetList flex column">
|
||||
{addresses.length > 0 && (
|
||||
<div>
|
||||
<div className="title flex gaps"><Trans>Addresses</Trans></div>
|
||||
<div className="title flex gaps">Addresses</div>
|
||||
<Table
|
||||
items={addresses}
|
||||
selectable={false}
|
||||
@@ -103,7 +102,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
>
|
||||
<TableHead>
|
||||
<TableCell className="ip">IP</TableCell>
|
||||
<TableCell className="host"><Trans>Hostname</Trans></TableCell>
|
||||
<TableCell className="host">Hostname</TableCell>
|
||||
<TableCell className="target">Target</TableCell>
|
||||
</TableHead>
|
||||
{ !addressesVirtual && addresses.map(address => this.getAddressTableRow(address.getId())) }
|
||||
@@ -113,7 +112,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
|
||||
{notReadyAddresses.length > 0 && (
|
||||
<div>
|
||||
<div className="title flex gaps"><Trans>Not Ready Addresses</Trans></div>
|
||||
<div className="title flex gaps">Not Ready Addresses</div>
|
||||
<Table
|
||||
items={notReadyAddresses}
|
||||
selectable
|
||||
@@ -124,7 +123,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
>
|
||||
<TableHead>
|
||||
<TableCell className="ip">IP</TableCell>
|
||||
<TableCell className="host"><Trans>Hostname</Trans></TableCell>
|
||||
<TableCell className="host">Hostname</TableCell>
|
||||
<TableCell className="target">Target</TableCell>
|
||||
</TableHead>
|
||||
{ !notReadyAddressesVirtual && notReadyAddresses.map(address => this.getNotReadyAddressTableRow(address.getId())) }
|
||||
@@ -132,7 +131,7 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="title flex gaps"><Trans>Ports</Trans></div>
|
||||
<div className="title flex gaps">Ports</div>
|
||||
<Table
|
||||
selectable={false}
|
||||
virtual={false}
|
||||
@@ -140,8 +139,8 @@ export class EndpointSubsetList extends React.Component<Props> {
|
||||
className="box grow"
|
||||
>
|
||||
<TableHead>
|
||||
<TableCell className="port"><Trans>Port</Trans></TableCell>
|
||||
<TableCell className="name"><Trans>Name</Trans></TableCell>
|
||||
<TableCell className="port">Port</TableCell>
|
||||
<TableCell className="name">Name</TableCell>
|
||||
<TableCell className="protocol">Protocol</TableCell>
|
||||
</TableHead>
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@ import { EndpointRouteParams } from "./endpoints.route";
|
||||
import { Endpoint } from "../../api/endpoints/endpoint.api";
|
||||
import { endpointStore } from "./endpoints.store";
|
||||
import { KubeObjectListLayout } from "../kube-object";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { KubeObjectStatusIcon } from "../kube-object-status-icon";
|
||||
|
||||
enum sortBy {
|
||||
@@ -33,13 +32,13 @@ export class Endpoints extends React.Component<Props> {
|
||||
searchFilters={[
|
||||
(endpoint: Endpoint) => endpoint.getSearchFields()
|
||||
]}
|
||||
renderHeaderTitle={<Trans>Endpoints</Trans>}
|
||||
renderHeaderTitle="Endpoints"
|
||||
renderTableHeader={[
|
||||
{ title: <Trans>Name</Trans>, className: "name", sortBy: sortBy.name },
|
||||
{ title: "Name", className: "name", sortBy: sortBy.name },
|
||||
{ className: "warning" },
|
||||
{ title: <Trans>Namespace</Trans>, className: "namespace", sortBy: sortBy.namespace },
|
||||
{ title: <Trans>Endpoints</Trans>, className: "endpoints" },
|
||||
{ title: <Trans>Age</Trans>, className: "age", sortBy: sortBy.age },
|
||||
{ title: "Namespace", className: "namespace", sortBy: sortBy.namespace },
|
||||
{ title: "Endpoints", className: "endpoints" },
|
||||
{ title: "Age", className: "age", sortBy: sortBy.age },
|
||||
]}
|
||||
renderTableContents={(endpoint: Endpoint) => [
|
||||
endpoint.getName(),
|
||||
|
||||
Reference in new issue
Block a user