mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added placeholders for boris stats
This commit is contained in:
parent
c6aa2139e0
commit
372e016e3d
5 changed files with 104 additions and 48 deletions
|
@ -32,18 +32,39 @@ export type IStatBackend = {
|
|||
export interface BorisUsageStats {
|
||||
git: Partial<IStatGitRow>[];
|
||||
issues: IGithubIssue[];
|
||||
backend?: IStatBackend;
|
||||
backend: IStatBackend;
|
||||
is_loading: boolean;
|
||||
}
|
||||
export type IBorisState = Readonly<{
|
||||
stats: BorisUsageStats;
|
||||
}>;
|
||||
|
||||
const initialBackendStats: IStatBackend = {
|
||||
users: {
|
||||
total: 0,
|
||||
alive: 0,
|
||||
},
|
||||
nodes: {
|
||||
images: 0,
|
||||
audios: 0,
|
||||
videos: 0,
|
||||
texts: 0,
|
||||
total: 0,
|
||||
},
|
||||
comments: {
|
||||
total: 0,
|
||||
},
|
||||
files: {
|
||||
count: 0,
|
||||
size: 0,
|
||||
},
|
||||
};
|
||||
|
||||
const BORIS_INITIAL_STATE: IBorisState = {
|
||||
stats: {
|
||||
git: [],
|
||||
issues: [],
|
||||
backend: undefined,
|
||||
backend: initialBackendStats,
|
||||
is_loading: false,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue