forum-layout.js 675 B

123456789101112131415161718192021222324252627282930
  1. (function (Misago) {
  2. 'use strict';
  3. var persistent = function(el, isInit, context) {
  4. context.retain = true;
  5. };
  6. var forumLayout = {
  7. view: function(ctrl, _) {
  8. return [
  9. _.component('auth-changed-message'),
  10. _.component('alert'),
  11. _.component('navbar'),
  12. m('.navbar-dropdown',
  13. _.dropdown.slot('navbar-dropdown')
  14. ),
  15. m('#router-fixture', {config: persistent}),
  16. _.component('footer'),
  17. _.component('modal')
  18. ];
  19. }
  20. };
  21. Misago.addService('component:layout', function(_) {
  22. _.component('forum-layout', forumLayout);
  23. },
  24. {
  25. after: 'components'
  26. });
  27. }(Misago.prototype));