mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-15 21:14:32 +01:00
37 lines
957 B
TypeScript
37 lines
957 B
TypeScript
import Column from 'Components/Table/Column';
|
|
import SortDirection from 'Helpers/Props/SortDirection';
|
|
import Indexer, { IndexerStatus } from 'Indexer/Indexer';
|
|
import AppSectionState, {
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState,
|
|
} from './AppSectionState';
|
|
import { Filter, FilterBuilderProp } from './AppState';
|
|
|
|
export interface IndexerIndexAppState {
|
|
isTestingAll: boolean;
|
|
sortKey: string;
|
|
sortDirection: SortDirection;
|
|
secondarySortKey: string;
|
|
secondarySortDirection: SortDirection;
|
|
view: string;
|
|
|
|
tableOptions: {
|
|
showSearchAction: boolean;
|
|
};
|
|
|
|
selectedFilterKey: string;
|
|
filterBuilderProps: FilterBuilderProp<Indexer>[];
|
|
filters: Filter[];
|
|
columns: Column[];
|
|
}
|
|
|
|
interface IndexerAppState
|
|
extends AppSectionState<Indexer>,
|
|
AppSectionDeleteState,
|
|
AppSectionSaveState {
|
|
itemMap: Record<number, number>;
|
|
}
|
|
|
|
export type IndexerStatusAppState = AppSectionState<IndexerStatus>;
|
|
|
|
export default IndexerAppState;
|