@skbkontur/cassandra-distributed-task-queue-ui
Version:
.NET library implementing distributed task queue machinery using Apache Cassandra
30 lines (29 loc) • 1.02 kB
TypeScript
import React from "react";
import { Location } from "react-router-dom";
import { RtqMonitoringTaskMeta } from "../../Domain/Api/RtqMonitoringTaskMeta";
export interface TaskTableProps {
taskInfos: RtqMonitoringTaskMeta[];
allowRerunOrCancel: boolean;
chosenTasks: Set<string>;
onRerun: (x0: string) => void;
onCancel: (x0: string) => void;
onCheck: (taskId: string) => void;
getTaskLocation: (x0: string) => string | Partial<Location>;
}
interface TasksTableState {
openedModal: boolean;
modalType: "Cancel" | "Rerun";
actionTask: string;
}
export declare class TasksTable extends React.Component<TaskTableProps, TasksTableState> {
state: TasksTableState;
private theme;
shouldComponentUpdate(nextProps: TaskTableProps, nextState: TasksTableState): boolean;
render(): JSX.Element;
renderRow(item: RtqMonitoringTaskMeta): JSX.Element;
renderModal(): JSX.Element;
rerun(id: string): void;
cancel(id: string): void;
closeModal(): void;
}
export {};