mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,3 +1,3 @@
|
||||
export * from "./ingresses.route"
|
||||
export * from "./ingresses"
|
||||
export * from "./ingress-details"
|
||||
export * from "./ingresses.route";
|
||||
export * from "./ingresses";
|
||||
export * from "./ingress-details";
|
||||
@@ -94,4 +94,4 @@ export const IngressCharts = observer(() => {
|
||||
data={{ datasets: datasets[tabId] }}
|
||||
/>
|
||||
);
|
||||
})
|
||||
});
|
||||
@@ -30,8 +30,8 @@ export class IngressDetails extends React.Component<Props> {
|
||||
}
|
||||
|
||||
renderPaths(ingress: Ingress) {
|
||||
const { spec: { rules } } = ingress
|
||||
if (!rules || !rules.length) return null
|
||||
const { spec: { rules } } = ingress;
|
||||
if (!rules || !rules.length) return null;
|
||||
return rules.map((rule, index) => {
|
||||
return (
|
||||
<div className="rules" key={index}>
|
||||
@@ -48,7 +48,7 @@ export class IngressDetails extends React.Component<Props> {
|
||||
</TableHead>
|
||||
{
|
||||
rule.http.paths.map((path, index) => {
|
||||
const backend = `${path.backend.serviceName}:${path.backend.servicePort}`
|
||||
const backend = `${path.backend.serviceName}:${path.backend.servicePort}`;
|
||||
return (
|
||||
<TableRow key={index}>
|
||||
<TableCell className="path">{path.path || ""}</TableCell>
|
||||
@@ -56,18 +56,18 @@ export class IngressDetails extends React.Component<Props> {
|
||||
<p key={backend}>{backend}</p>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
)
|
||||
);
|
||||
})
|
||||
}
|
||||
</Table>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
renderIngressPoints(ingressPoints: ILoadBalancerIngress[]) {
|
||||
if (!ingressPoints || ingressPoints.length === 0) return null
|
||||
if (!ingressPoints || ingressPoints.length === 0) return null;
|
||||
return (
|
||||
<div>
|
||||
<Table className="ingress-points">
|
||||
@@ -81,11 +81,11 @@ export class IngressDetails extends React.Component<Props> {
|
||||
<TableCell className="name">{hostname ? hostname : "-"}</TableCell>
|
||||
<TableCell className="ingresspoints">{ip ? ip : "-"}</TableCell>
|
||||
</TableRow>
|
||||
)})
|
||||
);})
|
||||
})
|
||||
</Table>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -94,7 +94,7 @@ export class IngressDetails extends React.Component<Props> {
|
||||
return null;
|
||||
}
|
||||
const { spec, status } = ingress;
|
||||
const ingressPoints = status?.loadBalancer?.ingress
|
||||
const ingressPoints = status?.loadBalancer?.ingress;
|
||||
const { metrics } = ingressStore;
|
||||
const metricTabs = [
|
||||
<Trans>Network</Trans>,
|
||||
@@ -128,7 +128,7 @@ export class IngressDetails extends React.Component<Props> {
|
||||
<DrawerTitle title={<Trans>Load-Balancer Ingress Points</Trans>}/>
|
||||
{this.renderIngressPoints(ingressPoints)}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ kubeObjectDetailRegistry.add({
|
||||
components: {
|
||||
Details: (props) => <IngressDetails {...props} />
|
||||
}
|
||||
})
|
||||
});
|
||||
kubeObjectDetailRegistry.add({
|
||||
kind: "Ingress",
|
||||
apiVersions: ["extensions/v1beta1"],
|
||||
@@ -146,4 +146,4 @@ kubeObjectDetailRegistry.add({
|
||||
components: {
|
||||
Details: (props) => <KubeEventDetails {...props} />
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -3,9 +3,9 @@ import { buildURL } from "../../../common/utils/buildUrl";
|
||||
|
||||
export const ingressRoute: RouteProps = {
|
||||
path: "/ingresses"
|
||||
}
|
||||
};
|
||||
|
||||
export interface IngressRouteParams {
|
||||
}
|
||||
|
||||
export const ingressURL = buildURL<IngressRouteParams>(ingressRoute.path)
|
||||
export const ingressURL = buildURL<IngressRouteParams>(ingressRoute.path);
|
||||
@@ -1,10 +1,10 @@
|
||||
import "./ingresses.scss"
|
||||
import "./ingresses.scss";
|
||||
|
||||
import React from "react"
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { RouteComponentProps } from "react-router-dom"
|
||||
import { IngressRouteParams } from "./ingresses.route"
|
||||
import { Ingress } from "../../api/endpoints/ingress.api"
|
||||
import { RouteComponentProps } from "react-router-dom";
|
||||
import { IngressRouteParams } from "./ingresses.route";
|
||||
import { Ingress } from "../../api/endpoints/ingress.api";
|
||||
import { ingressStore } from "./ingress.store";
|
||||
import { KubeObjectListLayout } from "../kube-object";
|
||||
import { Trans } from "@lingui/macro";
|
||||
@@ -58,6 +58,6 @@ export class Ingresses extends React.Component<Props> {
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user