mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 06:16:39 +07:00
#23 adde comment_count and last_seen to lab
This commit is contained in:
parent
ccec211727
commit
5f938cfa92
4 changed files with 18 additions and 6 deletions
|
@ -3,7 +3,7 @@ import { IError, INode, ITag } from '~/redux/types';
|
|||
export type ILabState = Readonly<{
|
||||
list: {
|
||||
is_loading: boolean;
|
||||
nodes: INode[];
|
||||
nodes: ILabNode[];
|
||||
count: number;
|
||||
error: IError;
|
||||
};
|
||||
|
@ -19,8 +19,14 @@ export type GetLabNodesRequest = {
|
|||
after?: string;
|
||||
};
|
||||
|
||||
export interface ILabNode {
|
||||
node: INode;
|
||||
last_seen: string | null;
|
||||
comment_count: number;
|
||||
}
|
||||
|
||||
export type GetLabNodesResult = {
|
||||
nodes: INode[];
|
||||
nodes: ILabNode[];
|
||||
count: number;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue