mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce some naming conventions (#4813)
This commit is contained in:
1 parent
dc6615f98f
commit
0b32775d40
197 files changed
+630
-634
No files matched your search
@@ -14,11 +14,11 @@ import { KubeObjectMeta } from "../kube-object-meta";
|
||||
import { EndpointSubsetList } from "./endpoint-subset-list";
|
||||
import logger from "../../../common/logger";
|
||||
|
||||
interface Props extends KubeObjectDetailsProps<Endpoint> {
|
||||
export interface EndpointDetailsProps extends KubeObjectDetailsProps<Endpoint> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class EndpointDetails extends React.Component<Props> {
|
||||
export class EndpointDetails extends React.Component<EndpointDetailsProps> {
|
||||
render() {
|
||||
const { object: endpoint } = this.props;
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ import { apiManager } from "../../../common/k8s-api/api-manager";
|
||||
import { Link } from "react-router-dom";
|
||||
import { getDetailsUrl } from "../kube-detail-params";
|
||||
|
||||
interface Props {
|
||||
export interface EndpointSubsetListProps {
|
||||
subset: EndpointSubset;
|
||||
endpoint: Endpoint;
|
||||
}
|
||||
|
||||
@observer
|
||||
export class EndpointSubsetList extends React.Component<Props> {
|
||||
export class EndpointSubsetList extends React.Component<EndpointSubsetListProps> {
|
||||
|
||||
getAddressTableRow(ip: string) {
|
||||
const { subset } = this.props;
|
||||
|
||||
@@ -20,11 +20,11 @@ enum columnId {
|
||||
age = "age",
|
||||
}
|
||||
|
||||
interface Props extends RouteComponentProps<EndpointRouteParams> {
|
||||
export interface EndpointsProps extends RouteComponentProps<EndpointRouteParams> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class Endpoints extends React.Component<Props> {
|
||||
export class Endpoints extends React.Component<EndpointsProps> {
|
||||
render() {
|
||||
return (
|
||||
<KubeObjectListLayout
|
||||
|
||||
Reference in new issue
Block a user