ES6: Start on some views

This commit is contained in:
Robin Ward 2014-06-04 12:17:51 -04:00
parent b2121cd1d0
commit e690c1ff14
5 changed files with 7 additions and 28 deletions

View file

@ -1,13 +1,13 @@
/**
This view handles rendering of what actions have been taken on a post. It uses
This component handles rendering of what actions have been taken on a post. It uses
buffer rendering for performance rather than a template.
@class ActionsHistoryComponent
@extends Discourse.View
@extends Em.Component
@namespace Discourse
@module Discourse
**/
Discourse.ActionsHistoryComponent = Em.Component.extend({
export default Em.Component.extend({
tagName: 'section',
classNameBindings: [':post-actions', 'hidden'],
actionsHistory: Em.computed.alias('post.actionsHistory'),
@ -101,6 +101,3 @@ Discourse.ActionsHistoryComponent = Em.Component.extend({
return false;
}
});
Discourse.View.registerHelper('discourse-action-history', Discourse.ActionsHistoryComponent);

View file

@ -58,6 +58,3 @@ export default Ember.Component.extend({
renderIconIf('topic.invisible', 'eye-slash', 'invisible');
}
});
Discourse.View.registerHelper('topicStatus', Discourse.TopicStatusComponent);

View file

@ -1,13 +0,0 @@
/**
This view handles rendering of the core application template
@class ApplicationView
@extends Discourse.View
@namespace Discourse
@module Discourse
**/
Discourse.ApplicationView = Discourse.View.extend({
templateName: 'application'
});

View file

@ -6,6 +6,6 @@
@namespace Discourse
@module Discourse
**/
Discourse.BadgesShowView = Discourse.View.extend(Discourse.LoadMore, {
eyelineSelector: '.badge-user'
export default Discourse.View.extend(Discourse.LoadMore, {
eyelineSelector: '.badge-user',
});

View file

@ -6,8 +6,6 @@
@namespace Discourse
@module Discourse
**/
Discourse.GroupIndexView = Discourse.View.extend(Discourse.ScrollTop, Discourse.LoadMore, {
eyelineSelector: '.user-stream .item'
export default Discourse.View.extend(Discourse.ScrollTop, Discourse.LoadMore, {
eyelineSelector: '.user-stream .item',
});