-
-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract admin dashboard statistics from core into an extension
- Loading branch information
1 parent
617a76d
commit 3dcfe32
Showing
5 changed files
with
13 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import Page from 'flarum/components/Page'; | ||
import StatusWidget from 'flarum/components/StatusWidget'; | ||
import StatisticsWidget from 'flarum/components/StatisticsWidget'; | ||
|
||
export default class DashboardPage extends Page { | ||
view() { | ||
return ( | ||
<div className="DashboardPage"> | ||
<div className="container"> | ||
<StatusWidget/> | ||
<StatisticsWidget/> | ||
{this.availableWidgets()} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
availableWidgets() { | ||
return [<StatusWidget/>]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters