framework/FRONTEND FRAMEWORK REWRITE CHANGES.md
David Sevilla Martin 717442741f
update changes file
2020-04-18 09:07:26 -04:00

1.5 KiB

Changes

  • Mithril
  • Component
    • Use new Mithril lifecycle hooks (component.config is gone)
      • When implementing your own, you must call super.<hook>(vnode) to update this.attrs
    • component.render now doesn't use the current state instance
      • this is because of how Mithril v2 works
      • now calls mithril on the component class (not instance) and its props
  • Translator
    • Added app.translator.transText, automatically extracts text from translator.trans output
  • Utils
  • Modals
    • app.modal.show now takes the Modal class (not instance) and optional props (app.modal.show(ForgotPasswordModal, props))

Forum

  • Forum Application
    • Renamed to Forum
    • app.search is no longer global, extend using extend