added content from /gdp/corpus

This commit is contained in:
2019-08-21 11:54:20 +02:00
parent 5ddfb7d286
commit 157f964783
4 changed files with 108 additions and 23 deletions
+44
View File
@@ -0,0 +1,44 @@
<template>
<article class="corpus item">
<header>
<h1>
<a
:href="item.url"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
/>
</h1>
</header>
<div class="text-quantity" v-html="item.textsQuantity"/>
</article>
</template>
<script>
export default {
name: 'CorpusItems',
props: {
item: {
type: Object,
required: true
}
},
data: () => ({
}),
methods: {
onclick () {
console.log('clicked on corpus item', this.item)
// this.$router.push({
// name:`article`,
// params: { alias:this.alias },
// query: { uuid: this.item.uuid }
// // meta: { uuid:this.item.uuid },
// })
}
}
}
</script>
<style lang="scss" scoped>
</style>