2018-04-03 14:16:57 +00:00
|
|
|
import Ember from 'ember';
|
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
|
|
|
|
const { Component, computed } = Ember;
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
tagName: 'a',
|
2018-08-28 05:03:55 +00:00
|
|
|
classNames: ['doc-link'],
|
2018-04-03 14:16:57 +00:00
|
|
|
attributeBindings: ['target', 'rel', 'href'],
|
|
|
|
|
|
|
|
layout: hbs`{{yield}}`,
|
|
|
|
|
|
|
|
target: '_blank',
|
|
|
|
rel: 'noreferrer noopener',
|
|
|
|
|
|
|
|
path: '/',
|
|
|
|
href: computed('path', function() {
|
2018-08-28 05:03:55 +00:00
|
|
|
return `https://www.vaultproject.io${this.get('path')}`;
|
2018-04-03 14:16:57 +00:00
|
|
|
}),
|
|
|
|
});
|