|
|
@ -1,4 +1,10 @@
|
|
|
|
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
|
|
import React, {
|
|
|
|
|
|
|
|
useCallback,
|
|
|
|
|
|
|
|
useEffect,
|
|
|
|
|
|
|
|
useMemo,
|
|
|
|
|
|
|
|
useRef,
|
|
|
|
|
|
|
|
useState,
|
|
|
|
|
|
|
|
} from 'react';
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
import { SelectProvider } from 'App/SelectContext';
|
|
|
|
import { SelectProvider } from 'App/SelectContext';
|
|
|
|
import ClientSideCollectionAppState from 'App/State/ClientSideCollectionAppState';
|
|
|
|
import ClientSideCollectionAppState from 'App/State/ClientSideCollectionAppState';
|
|
|
@ -22,12 +28,17 @@ import AddIndexerModal from 'Indexer/Add/AddIndexerModal';
|
|
|
|
import EditIndexerModalConnector from 'Indexer/Edit/EditIndexerModalConnector';
|
|
|
|
import EditIndexerModalConnector from 'Indexer/Edit/EditIndexerModalConnector';
|
|
|
|
import NoIndexer from 'Indexer/NoIndexer';
|
|
|
|
import NoIndexer from 'Indexer/NoIndexer';
|
|
|
|
import { executeCommand } from 'Store/Actions/commandActions';
|
|
|
|
import { executeCommand } from 'Store/Actions/commandActions';
|
|
|
|
import { cloneIndexer, testAllIndexers } from 'Store/Actions/indexerActions';
|
|
|
|
import {
|
|
|
|
|
|
|
|
cloneIndexer,
|
|
|
|
|
|
|
|
fetchIndexers,
|
|
|
|
|
|
|
|
testAllIndexers,
|
|
|
|
|
|
|
|
} from 'Store/Actions/indexerActions';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
setIndexerFilter,
|
|
|
|
setIndexerFilter,
|
|
|
|
setIndexerSort,
|
|
|
|
setIndexerSort,
|
|
|
|
setIndexerTableOption,
|
|
|
|
setIndexerTableOption,
|
|
|
|
} from 'Store/Actions/indexerIndexActions';
|
|
|
|
} from 'Store/Actions/indexerIndexActions';
|
|
|
|
|
|
|
|
import { fetchIndexerStatus } from 'Store/Actions/indexerStatusActions';
|
|
|
|
import scrollPositions from 'Store/scrollPositions';
|
|
|
|
import scrollPositions from 'Store/scrollPositions';
|
|
|
|
import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector';
|
|
|
|
import createCommandExecutingSelector from 'Store/Selectors/createCommandExecutingSelector';
|
|
|
|
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
|
|
|
|
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
|
|
|
@ -82,6 +93,11 @@ const IndexerIndex = withScrollPosition((props: IndexerIndexProps) => {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
const [isSelectMode, setIsSelectMode] = useState(false);
|
|
|
|
const [isSelectMode, setIsSelectMode] = useState(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
dispatch(fetchIndexers());
|
|
|
|
|
|
|
|
dispatch(fetchIndexerStatus());
|
|
|
|
|
|
|
|
}, [dispatch]);
|
|
|
|
|
|
|
|
|
|
|
|
const onAddIndexerPress = useCallback(() => {
|
|
|
|
const onAddIndexerPress = useCallback(() => {
|
|
|
|
setIsAddIndexerModalOpen(true);
|
|
|
|
setIsAddIndexerModalOpen(true);
|
|
|
|
}, [setIsAddIndexerModalOpen]);
|
|
|
|
}, [setIsAddIndexerModalOpen]);
|
|
|
|