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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user