Home.coffee 697 B

123456789101112131415161718
  1. document.head.insertAdjacentHTML 'beforeend', '<style type="text/css" file="app/pages/Home.styl">'+stylFns['app/pages/Home.styl']+'</style>'
  2. module.exports =
  3. name: 'Home'
  4. render: (new Function '_ctx', '_cache', renderFns['app/pages/Home.pug'])()
  5. data: ->
  6. return {
  7. _: _
  8. document: null
  9. }
  10. beforeMount: ->
  11. try
  12. @document = await AppDB.getDocumentByPath('/', AppDB.currentLanguage)
  13. catch e
  14. debug.log "Document load error:", e
  15. components:
  16. 'app-link': require 'app/shared/AppLink'
  17. 'hero-section': require 'app/shared/HeroSection'
  18. 'image-gallery': require 'app/shared/ImageGallery'