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

22 lines
682 B
JavaScript
Raw Normal View History

import CommentPost from 'flarum/components/comment-post';
import DiscussionRenamedPost from 'flarum/components/discussion-renamed-post';
import PostActivity from 'flarum/components/post-activity';
import JoinActivity from 'flarum/components/join-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 = {
post: PostActivity,
join: JoinActivity
2015-04-25 20:58:39 +08:00
};
app.notificationComponentRegistry = {
discussionRenamed: DiscussionRenamedNotification
2015-04-25 20:58:39 +08:00
};
}