AppLink.coffee 633 B

123456789101112131415161718
  1. document.head.insertAdjacentHTML('beforeend','<style type="text/css" file="app/shared/AppLink.styl">'+stylFns['app/shared/AppLink.styl']+'</style>')
  2. module.exports =
  3. default:
  4. render: (new Function '_ctx', '_cache', renderFns['app/shared/AppLink.pug'])()
  5. name: 'AppLink'
  6. props:
  7. to:
  8. type: [String, Object]
  9. required: true
  10. computed:
  11. isExternal: ->
  12. if typeof @.to == 'string'
  13. return @.to.startsWith('http')
  14. return false
  15. data: ->
  16. return {
  17. _: _
  18. }