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