mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 18:25:45 +01:00
chore(client): fix pie rendering
This commit is contained in:
parent
27fef64cf3
commit
649bb672df
1 changed files with 4 additions and 4 deletions
|
@ -413,22 +413,22 @@ onMounted(async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
os.apiGet('federation/stats', { limit: 10 }).then(res => {
|
os.apiGet('federation/stats', { limit: 10 }).then(res => {
|
||||||
topSubInstancesForPie = fedStats.topSubInstances.map(x => ({
|
topSubInstancesForPie = res.topSubInstances.map(x => ({
|
||||||
name: x.host,
|
name: x.host,
|
||||||
color: x.themeColor,
|
color: x.themeColor,
|
||||||
value: x.followersCount,
|
value: x.followersCount,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
os.pageWindow(`/instance-info/${x.host}`);
|
os.pageWindow(`/instance-info/${x.host}`);
|
||||||
},
|
},
|
||||||
})).concat([{ name: '(other)', color: '#80808080', value: fedStats.otherFollowersCount }]);
|
})).concat([{ name: '(other)', color: '#80808080', value: res.otherFollowersCount }]);
|
||||||
topPubInstancesForPie = fedStats.topPubInstances.map(x => ({
|
topPubInstancesForPie = res.topPubInstances.map(x => ({
|
||||||
name: x.host,
|
name: x.host,
|
||||||
color: x.themeColor,
|
color: x.themeColor,
|
||||||
value: x.followingCount,
|
value: x.followingCount,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
os.pageWindow(`/instance-info/${x.host}`);
|
os.pageWindow(`/instance-info/${x.host}`);
|
||||||
},
|
},
|
||||||
})).concat([{ name: '(other)', color: '#80808080', value: fedStats.otherFollowingCount }]);
|
})).concat([{ name: '(other)', color: '#80808080', value: res.otherFollowingCount }]);
|
||||||
});
|
});
|
||||||
|
|
||||||
os.api('admin/server-info').then(serverInfoResponse => {
|
os.api('admin/server-info').then(serverInfoResponse => {
|
||||||
|
|
Loading…
Reference in a new issue