mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
removed lab reducer
This commit is contained in:
parent
e24ea4afeb
commit
2b7b756212
26 changed files with 242 additions and 369 deletions
44
src/types/lab/index.ts
Normal file
44
src/types/lab/index.ts
Normal file
|
@ -0,0 +1,44 @@
|
|||
import { IError, INode, ITag } from '~/redux/types';
|
||||
|
||||
export type ILabState = Readonly<{
|
||||
list: {
|
||||
is_loading: boolean;
|
||||
nodes: ILabNode[];
|
||||
count: number;
|
||||
error: IError;
|
||||
};
|
||||
stats: {
|
||||
is_loading: boolean;
|
||||
heroes: Partial<INode>[];
|
||||
tags: ITag[];
|
||||
error?: string;
|
||||
};
|
||||
updates: {
|
||||
nodes: INode[];
|
||||
isLoading: boolean;
|
||||
};
|
||||
}>;
|
||||
|
||||
export type GetLabNodesRequest = {
|
||||
after?: string;
|
||||
};
|
||||
|
||||
export interface ILabNode {
|
||||
node: INode;
|
||||
last_seen: string | null | undefined;
|
||||
comment_count: number;
|
||||
}
|
||||
|
||||
export type GetLabNodesResult = {
|
||||
nodes: ILabNode[];
|
||||
count: number;
|
||||
};
|
||||
|
||||
export type GetLabStatsResult = {
|
||||
heroes: INode[];
|
||||
tags: ITag[];
|
||||
};
|
||||
|
||||
export type GetLabUpdatesResult = {
|
||||
nodes: INode[];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue