var template = `

{{title}}

{{excerpt}}

{{id}}

{{tag.name}}
{{hostnameURL}}
`; export default { template: template, props: { id: Number, url: String, title: String, excerpt: String, imageURL: String, showId: Boolean, listMode: Boolean, index: Number, tags: { type: Array, default () { return [] } } }, data() { return {}; }, computed: { hostnameURL() { var url = new URL(this.url); return url.hostname; }, thumbnailStyleURL() { return { backgroundImage: `url("${this.imageURL}")` } }, eventItem() { return { id: this.id, index: this.index, } } }, methods: { tagClicked(name) { this.$emit("tagClicked", name); }, editBookmark() { this.$emit("edit", this.eventItem); }, deleteBookmark() { this.$emit("delete", this.eventItem); }, updateBookmark() { this.$emit("update", this.id, this.index); } } }