Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
1 parent dc6615f98f
commit 0b32775d40
197 files changed
+630 -634

No files matched your search

@@ -33,7 +33,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
import kubeWatchApiInjectable
from "../../kube-watch-api/kube-watch-api.injectable";
interface Props extends KubeObjectDetailsProps<Deployment> {
export interface DeploymentDetailsProps extends KubeObjectDetailsProps<Deployment> {
}
interface Dependencies {
@@ -41,10 +41,10 @@ interface Dependencies {
}
@observer
class NonInjectedDeploymentDetails extends React.Component<Props & Dependencies> {
class NonInjectedDeploymentDetails extends React.Component<DeploymentDetailsProps & Dependencies> {
@observable metrics: IPodMetrics = null;
constructor(props: Props & Dependencies) {
constructor(props: DeploymentDetailsProps & Dependencies) {
super(props);
makeObservable(this);
}
@@ -156,7 +156,7 @@ class NonInjectedDeploymentDetails extends React.Component<Props & Dependencies>
}
}
export const DeploymentDetails = withInjectables<Dependencies, Props>(
export const DeploymentDetails = withInjectables<Dependencies, DeploymentDetailsProps>(
NonInjectedDeploymentDetails,
{
@@ -25,12 +25,12 @@ enum sortBy {
age = "age",
}
interface Props {
export interface DeploymentReplicaSetsProps {
replicaSets: ReplicaSet[];
}
@observer
export class DeploymentReplicaSets extends React.Component<Props> {
export class DeploymentReplicaSets extends React.Component<DeploymentReplicaSetsProps> {
private sortingCallbacks = {
[sortBy.name]: (replicaSet: ReplicaSet) => replicaSet.getName(),
[sortBy.namespace]: (replicaSet: ReplicaSet) => replicaSet.getNs(),
@@ -16,7 +16,7 @@ import { Slider } from "../slider";
import { Notifications } from "../notifications";
import { cssNames } from "../../utils";
interface Props extends Partial<DialogProps> {
export interface DeploymentScaleDialogProps extends Partial<DialogProps> {
deploymentApi: DeploymentApi;
}
@@ -26,7 +26,7 @@ const dialogState = observable.object({
});
@observer
export class DeploymentScaleDialog extends Component<Props> {
export class DeploymentScaleDialog extends Component<DeploymentScaleDialogProps> {
static defaultProps = {
deploymentApi,
};
@@ -35,7 +35,7 @@ export class DeploymentScaleDialog extends Component<Props> {
@observable currentReplicas = 0;
@observable desiredReplicas = 0;
constructor(props: Props) {
constructor(props: DeploymentScaleDialogProps) {
super(props);
makeObservable(this);
}
@@ -27,11 +27,11 @@ enum columnId {
condition = "condition",
}
interface Props extends RouteComponentProps<DeploymentsRouteParams> {
export interface DeploymentsProps extends RouteComponentProps<DeploymentsRouteParams> {
}
@observer
export class Deployments extends React.Component<Props> {
export class Deployments extends React.Component<DeploymentsProps> {
renderPods(deployment: Deployment) {
const { replicas, availableReplicas } = deployment.status;