little more integration, more api review

This commit is contained in:
2019-08-26 11:03:34 +02:00
parent b8fc27a93d
commit 99aad2e6a1
6 changed files with 123 additions and 19 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
<script>
export default {
name: 'CorpusItems',
name: 'CorpusItem',
props: {
item: {
type: Object,
+41
View File
@@ -0,0 +1,41 @@
<template>
<article class="nominum item">
<header>
<h1>
<a
:href="item.url"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
/>
</h1>
</header>
</article>
</template>
<script>
export default {
name: 'NominumItem',
props: {
item: {
type: Object,
required: true
}
},
data: () => ({
}),
methods: {
onclick () {
console.log('clicked on nominum item', this.item)
this.$router.push({
name: `nominumItem`,
query: { id: this.item.uuid }
})
}
}
}
</script>
<style lang="scss" scoped>
</style>
+41
View File
@@ -0,0 +1,41 @@
<template>
<article class="operum item">
<header>
<h1>
<a
:href="item.url"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
/>
</h1>
</header>
</article>
</template>
<script>
export default {
name: 'OperumItem',
props: {
item: {
type: Object,
required: true
}
},
data: () => ({
}),
methods: {
onclick () {
console.log('clicked on Operum item', this.item)
this.$router.push({
name: `operuumItem`,
query: { id: this.item.uuid }
})
}
}
}
</script>
<style lang="scss" scoped>
</style>