mirror of https://github.com/apache/druid.git
Remove context params from class component ctors (#14366)
This commit is contained in:
parent
49c056af17
commit
c14e54cf93
|
@ -54,8 +54,8 @@ export class ShowLog extends React.PureComponent<ShowLogProps, ShowLogState> {
|
||||||
private readonly log = React.createRef<HTMLTextAreaElement>();
|
private readonly log = React.createRef<HTMLTextAreaElement>();
|
||||||
private interval: number | undefined;
|
private interval: number | undefined;
|
||||||
|
|
||||||
constructor(props: ShowLogProps, context: any) {
|
constructor(props: ShowLogProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
logState: QueryState.INIT,
|
logState: QueryState.INIT,
|
||||||
tail: true,
|
tail: true,
|
||||||
|
|
|
@ -83,8 +83,8 @@ export class ConsoleApplication extends React.PureComponent<
|
||||||
private onlyUnavailable?: boolean;
|
private onlyUnavailable?: boolean;
|
||||||
private queryWithContext?: QueryWithContext;
|
private queryWithContext?: QueryWithContext;
|
||||||
|
|
||||||
constructor(props: ConsoleApplicationProps, context: any) {
|
constructor(props: ConsoleApplicationProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
capabilities: Capabilities.FULL,
|
capabilities: Capabilities.FULL,
|
||||||
capabilitiesLoading: true,
|
capabilitiesLoading: true,
|
||||||
|
|
|
@ -45,8 +45,8 @@ export interface DoctorDialogState {
|
||||||
export class DoctorDialog extends React.PureComponent<DoctorDialogProps, DoctorDialogState> {
|
export class DoctorDialog extends React.PureComponent<DoctorDialogProps, DoctorDialogState> {
|
||||||
private mounted = false;
|
private mounted = false;
|
||||||
|
|
||||||
constructor(props: DoctorDialogProps, context: any) {
|
constructor(props: DoctorDialogProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {};
|
this.state = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -347,8 +347,8 @@ ORDER BY 1`;
|
||||||
DatasourcesAndDefaultRules
|
DatasourcesAndDefaultRules
|
||||||
>;
|
>;
|
||||||
|
|
||||||
constructor(props: DatasourcesViewProps, context: any) {
|
constructor(props: DatasourcesViewProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
|
|
||||||
const datasourceFilter: Filter[] = [];
|
const datasourceFilter: Filter[] = [];
|
||||||
if (props.initDatasource) {
|
if (props.initDatasource) {
|
||||||
|
|
|
@ -228,8 +228,8 @@ ORDER BY
|
||||||
) DESC,
|
) DESC,
|
||||||
"created_time" DESC`;
|
"created_time" DESC`;
|
||||||
|
|
||||||
constructor(props: IngestionViewProps, context: any) {
|
constructor(props: IngestionViewProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
|
|
||||||
const taskFilter: Filter[] = [];
|
const taskFilter: Filter[] = [];
|
||||||
if (props.taskId) taskFilter.push({ id: 'task_id', value: `=${props.taskId}` });
|
if (props.taskId) taskFilter.push({ id: 'task_id', value: `=${props.taskId}` });
|
||||||
|
|
|
@ -253,8 +253,8 @@ END AS "time_span"`,
|
||||||
|
|
||||||
private lastTableState: TableState | undefined;
|
private lastTableState: TableState | undefined;
|
||||||
|
|
||||||
constructor(props: SegmentsViewProps, context: any) {
|
constructor(props: SegmentsViewProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
|
|
||||||
const segmentFilter: Filter[] = [];
|
const segmentFilter: Filter[] = [];
|
||||||
if (props.datasource) segmentFilter.push({ id: 'datasource', value: `=${props.datasource}` });
|
if (props.datasource) segmentFilter.push({ id: 'datasource', value: `=${props.datasource}` });
|
||||||
|
|
|
@ -235,8 +235,8 @@ ORDER BY
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props: ServicesViewProps, context: any) {
|
constructor(props: ServicesViewProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
servicesState: QueryState.INIT,
|
servicesState: QueryState.INIT,
|
||||||
serviceFilter: [],
|
serviceFilter: [],
|
||||||
|
|
|
@ -518,8 +518,8 @@ export class ColumnTree extends React.PureComponent<ColumnTreeProps, ColumnTreeS
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props: ColumnTreeProps, context: any) {
|
constructor(props: ColumnTreeProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
selectedTreeIndex: -1,
|
selectedTreeIndex: -1,
|
||||||
};
|
};
|
||||||
|
|
|
@ -230,8 +230,8 @@ export class FlexibleQueryInput extends React.PureComponent<
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props: FlexibleQueryInputProps, context: any) {
|
constructor(props: FlexibleQueryInputProps) {
|
||||||
super(props, context);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
editorHeight: 200,
|
editorHeight: 200,
|
||||||
quotedCompletions: [],
|
quotedCompletions: [],
|
||||||
|
|
Loading…
Reference in New Issue