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
@@ -25,7 +25,7 @@ import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import kubeWatchApiInjectable
|
||||
from "../../kube-watch-api/kube-watch-api.injectable";
|
||||
|
||||
interface Props extends KubeObjectDetailsProps<CronJob> {
|
||||
export interface CronJobDetailsProps extends KubeObjectDetailsProps<CronJob> {
|
||||
}
|
||||
|
||||
interface Dependencies {
|
||||
@@ -33,7 +33,7 @@ interface Dependencies {
|
||||
}
|
||||
|
||||
@observer
|
||||
class NonInjectedCronJobDetails extends React.Component<Props & Dependencies> {
|
||||
class NonInjectedCronJobDetails extends React.Component<CronJobDetailsProps & Dependencies> {
|
||||
componentDidMount() {
|
||||
disposeOnUnmount(this, [
|
||||
this.props.subscribeStores([
|
||||
@@ -113,7 +113,7 @@ class NonInjectedCronJobDetails extends React.Component<Props & Dependencies> {
|
||||
}
|
||||
}
|
||||
|
||||
export const CronJobDetails = withInjectables<Dependencies, Props>(
|
||||
export const CronJobDetails = withInjectables<Dependencies, CronJobDetailsProps>(
|
||||
NonInjectedCronJobDetails,
|
||||
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Input } from "../input";
|
||||
import { systemName, maxLength } from "../input/input_validators";
|
||||
import type { KubeObjectMetadata } from "../../../common/k8s-api/kube-object";
|
||||
|
||||
interface Props extends Partial<DialogProps> {
|
||||
export interface CronJobTriggerDialogProps extends Partial<DialogProps> {
|
||||
}
|
||||
|
||||
const dialogState = observable.object({
|
||||
@@ -26,11 +26,11 @@ const dialogState = observable.object({
|
||||
});
|
||||
|
||||
@observer
|
||||
export class CronJobTriggerDialog extends Component<Props> {
|
||||
export class CronJobTriggerDialog extends Component<CronJobTriggerDialogProps> {
|
||||
@observable jobName = "";
|
||||
@observable ready = false;
|
||||
|
||||
constructor(props: Props) {
|
||||
constructor(props: CronJobTriggerDialogProps) {
|
||||
super(props);
|
||||
makeObservable(this);
|
||||
}
|
||||
|
||||
@@ -26,11 +26,11 @@ enum columnId {
|
||||
age = "age",
|
||||
}
|
||||
|
||||
interface Props extends RouteComponentProps<CronJobsRouteParams> {
|
||||
export interface CronJobsProps extends RouteComponentProps<CronJobsRouteParams> {
|
||||
}
|
||||
|
||||
@observer
|
||||
export class CronJobs extends React.Component<Props> {
|
||||
export class CronJobs extends React.Component<CronJobsProps> {
|
||||
render() {
|
||||
return (
|
||||
<KubeObjectListLayout
|
||||
|
||||
Reference in new issue
Block a user