mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-04 17:16:40 +07:00
made demo for nodes and comments count by month
This commit is contained in:
parent
e1131d961d
commit
9d5086290f
5 changed files with 58 additions and 29 deletions
|
@ -11,12 +11,6 @@ export interface GithubIssue {
|
|||
|
||||
export type IGetGithubIssuesResult = GithubIssue[];
|
||||
|
||||
export type IStatGitRow = {
|
||||
commit: string;
|
||||
subject: string;
|
||||
timestamp: string;
|
||||
};
|
||||
|
||||
export type StatBackend = {
|
||||
users: {
|
||||
total: number;
|
||||
|
@ -28,9 +22,11 @@ export type StatBackend = {
|
|||
videos: number;
|
||||
texts: number;
|
||||
total: number;
|
||||
by_month: number[];
|
||||
};
|
||||
comments: {
|
||||
total: number;
|
||||
by_month: number[];
|
||||
};
|
||||
files: {
|
||||
count: number;
|
||||
|
|
|
@ -1,24 +1,5 @@
|
|||
import { IError, INode, ITag } from '~/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 enum LabNodesSort {
|
||||
New = 'new',
|
||||
Hot = 'hot',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue