1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 17:42:48 +00:00

expanded permissions functionality - added packr for bundling static assets

This commit is contained in:
2018-04-15 15:28:12 -05:00
parent e36b168a23
commit 89b6d89890
9 changed files with 196 additions and 122 deletions

View File

@@ -34,6 +34,7 @@ export class Stats extends Component<any, IState> {
return { username: k, count: v };
})
.orderBy(v => v.count, 'desc')
.slice(0, 10)
.value();
this.setState({ data });
@@ -61,8 +62,8 @@ export class Stats extends Component<any, IState> {
return (
<div className="content">
<div className="card" style={{ maxWidth: '1000px' }}>
<div className="card__header">Shitposts</div>
<HorizontalBar data={data} height={500} />
<div className="card__header">Posts containing links</div>
<HorizontalBar data={data} />
</div>
</div>
);