mirror of
https://github.com/flarum/core.git
synced 2025-10-19 02:36:08 +02:00
- Use JSX for templates - Docblock/comment everything - Mostly passes ESLint (still some work to do) - Lots of renaming, refactoring, etc. CSS hasn't been updated yet.
23 lines
937 B
JavaScript
23 lines
937 B
JavaScript
import CommentPost from 'flarum/components/CommentPost';
|
|
import DiscussionRenamedPost from 'flarum/components/DiscussionRenamedPost';
|
|
import PostedActivity from 'flarum/components/PostedActivity';
|
|
import JoinedActivity from 'flarum/components/JoinedActivity';
|
|
import DiscussionRenamedNotification from 'flarum/components/DiscussionRenamedNotification';
|
|
|
|
/**
|
|
* The `components` initializer registers components to display the default post
|
|
* types, activity types, and notifications type with the application.
|
|
*
|
|
* @param {ForumApp} app
|
|
*/
|
|
export default function components(app) {
|
|
app.postComponents.comment = CommentPost;
|
|
app.postComponents.discussionRenamed = DiscussionRenamedPost;
|
|
|
|
app.activityComponents.posted = PostedActivity;
|
|
app.activityComponents.startedDiscussion = PostedActivity;
|
|
app.activityComponents.joined = JoinedActivity;
|
|
|
|
app.notificationComponents.discussionRenamed = DiscussionRenamedNotification;
|
|
}
|