This commit is contained in:
syuilo 2018-10-21 17:28:27 +09:00
parent 4c180869c6
commit a62013f54d
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -291,37 +291,22 @@ abstract class Stats<T> {
type UsersLog = { type UsersLog = {
local: { local: {
/** /**
* () *
*/ */
total: number; total: number;
/** /**
* () *
*/ */
inc: number; inc: number;
/** /**
* () *
*/ */
dec: number; dec: number;
}; };
remote: { remote: UsersLog['local'];
/**
* ()
*/
total: number;
/**
* ()
*/
inc: number;
/**
* ()
*/
dec: number;
};
}; };
class UsersStats extends Stats<UsersLog> { class UsersStats extends Stats<UsersLog> {
@ -380,71 +365,39 @@ export const usersStats = new UsersStats();
type NotesLog = { type NotesLog = {
local: { local: {
/** /**
* 稿 () * 稿
*/ */
total: number; total: number;
/** /**
* 稿 () * 稿
*/ */
inc: number; inc: number;
/** /**
* 稿 () * 稿
*/ */
dec: number; dec: number;
diffs: { diffs: {
/** /**
* 稿 () * 稿
*/ */
normal: number; normal: number;
/** /**
* 稿 () * 稿
*/ */
reply: number; reply: number;
/** /**
* Renoteの投稿数の差分 () * Renoteの投稿数の差分
*/ */
renote: number; renote: number;
}; };
}; };
remote: { remote: NotesLog['local'];
/**
* 稿 ()
*/
total: number;
/**
* 稿 ()
*/
inc: number;
/**
* 稿 ()
*/
dec: number;
diffs: {
/**
* 稿 ()
*/
normal: number;
/**
* 稿 ()
*/
reply: number;
/**
* Renoteの投稿数の差分 ()
*/
renote: number;
};
};
}; };
class NotesStats extends Stats<NotesLog> { class NotesStats extends Stats<NotesLog> {
@ -524,67 +477,37 @@ export const notesStats = new NotesStats();
type DriveLog = { type DriveLog = {
local: { local: {
/** /**
* () *
*/ */
totalCount: number; totalCount: number;
/** /**
* () *
*/ */
totalSize: number; totalSize: number;
/** /**
* () *
*/ */
incCount: number; incCount: number;
/** /**
* 使 () * 使
*/ */
incSize: number; incSize: number;
/** /**
* () *
*/ */
decCount: number; decCount: number;
/** /**
* 使 () * 使
*/ */
decSize: number; decSize: number;
}; };
remote: { remote: DriveLog['local'];
/**
* ()
*/
totalCount: number;
/**
* ()
*/
totalSize: number;
/**
* ()
*/
incCount: number;
/**
* 使 ()
*/
incSize: number;
/**
* ()
*/
decCount: number;
/**
* 使 ()
*/
decSize: number;
};
}; };
class DriveStats extends Stats<DriveLog> { class DriveStats extends Stats<DriveLog> {
@ -766,3 +689,4 @@ class HashtagStats extends Stats<HashtagLog> {
export const hashtagStats = new HashtagStats(); export const hashtagStats = new HashtagStats();
//#endregion //#endregion
//#endregion