mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
ES6: Start on some views
This commit is contained in:
parent
b2121cd1d0
commit
e690c1ff14
5 changed files with 7 additions and 28 deletions
|
@ -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);
|
|
@ -58,6 +58,3 @@ export default Ember.Component.extend({
|
|||
renderIconIf('topic.invisible', 'eye-slash', 'invisible');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Discourse.View.registerHelper('topicStatus', Discourse.TopicStatusComponent);
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
|
||||
|
|
@ -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',
|
||||
});
|
|
@ -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',
|
||||
});
|
||||
|
Loading…
Reference in a new issue