framework/js/forum/src/initializers/components.js

23 lines
749 B
JavaScript
Raw Normal View History

import CommentPost from 'flarum/components/comment-post';
import DiscussionRenamedPost from 'flarum/components/discussion-renamed-post';
import PostedActivity from 'flarum/components/posted-activity';
import JoinedActivity from 'flarum/components/joined-activity';
import DiscussionRenamedNotification from 'flarum/components/discussion-renamed-notification';
2015-04-25 20:58:39 +08:00
export default function(app) {
app.postComponentRegistry = {
'comment': CommentPost,
'discussionRenamed': DiscussionRenamedPost
2015-04-25 20:58:39 +08:00
};
app.activityComponentRegistry = {
'posted': PostedActivity,
'startedDiscussion': PostedActivity,
'joined': JoinedActivity
2015-04-25 20:58:39 +08:00
};
app.notificationComponentRegistry = {
'discussionRenamed': DiscussionRenamedNotification
2015-04-25 20:58:39 +08:00
};
}