entry_list.js 842 B

1234567891011121314151617181920212223242526272829
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS002: Fix invalid constructor
  6. * DS102: Remove unnecessary code created because of implicit returns
  7. * DS206: Consider reworking classes to avoid initClass
  8. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
  9. */
  10. //= require views/list/paginated_list
  11. const Cls = (app.views.EntryList = class EntryList extends app.views.PaginatedList {
  12. static initClass() {
  13. this.tagName = 'div';
  14. this.className = '_list _list-sub';
  15. }
  16. constructor(entries) { this.entries = entries; super(...arguments); }
  17. init() {
  18. this.renderPaginated();
  19. this.activate();
  20. }
  21. render(entries) {
  22. return this.tmpl('sidebarEntry', entries);
  23. }
  24. });
  25. Cls.initClass();