enhance: improve federation chart
This commit is contained in:
parent
7ba5512a65
commit
0afebcfd9e
25 changed files with 199 additions and 64 deletions
|
|
@ -16,7 +16,7 @@ export default class InstanceChart extends Chart<typeof schema> {
|
|||
}
|
||||
|
||||
@autobind
|
||||
protected async queryCurrentState(group: string): Promise<Partial<KVs<typeof schema>>> {
|
||||
protected async tickMajor(group: string): Promise<Partial<KVs<typeof schema>>> {
|
||||
const [
|
||||
notesCount,
|
||||
usersCount,
|
||||
|
|
@ -42,6 +42,11 @@ export default class InstanceChart extends Chart<typeof schema> {
|
|||
};
|
||||
}
|
||||
|
||||
@autobind
|
||||
protected async tickMinor(): Promise<Partial<KVs<typeof schema>>> {
|
||||
return {};
|
||||
}
|
||||
|
||||
@autobind
|
||||
public async requestReceived(host: string): Promise<void> {
|
||||
await this.commit({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue