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
@@ -30,7 +30,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import kubeWatchApiInjectable
|
||||
from "../../kube-watch-api/kube-watch-api.injectable";
|
||||
|
||||
interface Props extends KubeObjectDetailsProps<ReplicaSet> {
|
||||
export interface ReplicaSetDetailsProps extends KubeObjectDetailsProps<ReplicaSet> {
|
||||
}
|
||||
|
||||
interface Dependencies {
|
||||
@@ -38,10 +38,10 @@ interface Dependencies {
|
||||
}
|
||||
|
||||
@observer
|
||||
class NonInjectedReplicaSetDetails extends React.Component<Props & Dependencies> {
|
||||
class NonInjectedReplicaSetDetails extends React.Component<ReplicaSetDetailsProps & Dependencies> {
|
||||
@observable metrics: IPodMetrics = null;
|
||||
|
||||
constructor(props: Props & Dependencies) {
|
||||
constructor(props: ReplicaSetDetailsProps & Dependencies) {
|
||||
super(props);
|
||||
makeObservable(this);
|
||||
}
|
||||
@@ -134,7 +134,7 @@ class NonInjectedReplicaSetDetails extends React.Component<Props & Dependencies>
|
||||
}
|
||||
}
|
||||
|
||||
export const ReplicaSetDetails = withInjectables<Dependencies, Props>(
|
||||
export const ReplicaSetDetails = withInjectables<Dependencies, ReplicaSetDetailsProps>(
|
||||
NonInjectedReplicaSetDetails,
|
||||
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import { Notifications } from "../notifications";
|
||||
import { cssNames } from "../../utils";
|
||||
import { ReplicaSet, ReplicaSetApi, replicaSetApi } from "../../../common/k8s-api/endpoints/replica-set.api";
|
||||
|
||||
interface Props extends Partial<DialogProps> {
|
||||
export interface ReplicaSetScaleDialogProps extends Partial<DialogProps> {
|
||||
replicaSetApi: ReplicaSetApi;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ const dialogState = observable.object({
|
||||
});
|
||||
|
||||
@observer
|
||||
export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
export class ReplicaSetScaleDialog extends Component<ReplicaSetScaleDialogProps> {
|
||||
static defaultProps = {
|
||||
replicaSetApi,
|
||||
};
|
||||
@@ -35,7 +35,7 @@ export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
@observable currentReplicas = 0;
|
||||
@observable desiredReplicas = 0;
|
||||
|
||||
constructor(props: Props) {
|
||||
constructor(props: ReplicaSetScaleDialogProps) {
|
||||
super(props);
|
||||
makeObservable(this);
|
||||
}
|
||||
|
||||
@@ -23,11 +23,11 @@ enum columnId {
|
||||
age = "age",
|
||||
}
|
||||
|
||||
interface Props extends RouteComponentProps<ReplicaSetsRouteParams> {
|
||||
export interface ReplicaSetsProps extends RouteComponentProps<ReplicaSetsRouteParams> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class ReplicaSets extends React.Component<Props> {
|
||||
export class ReplicaSets extends React.Component<ReplicaSetsProps> {
|
||||
render() {
|
||||
return (
|
||||
<KubeObjectListLayout
|
||||
|
||||
Reference in new issue
Block a user