nav is going on in header menu

This commit is contained in:
2020-02-27 15:07:17 +01:00
parent 62bde64b7b
commit 6c4f38f017
16 changed files with 436 additions and 120 deletions
+11 -7
View File
@@ -10,7 +10,13 @@
/>
</h1>
</header>
<div class="text-quantity" v-html="item.textsQuantity" />
<section>
<p class="author">{{ item.author }}</p>
<p class="date">{{ item.date }}</p>
<p class="editions-quantity">{{ item.editionsQuantity }}</p>
<p class="text-quantity">{{ item.textsQuantity }}</p>
<div class="edition" v-html="item.editions" />
</section>
</article>
</template>
@@ -29,12 +35,10 @@ export default {
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 },
// })
this.$router.push({
name: `corpus`,
params: { id: this.item.uuid }
})
}
}
}
+6 -4
View File
@@ -9,6 +9,7 @@
v-html="item.title"
/>
</h1>
<p>{{ item.type }}</p>
</header>
</article>
</template>
@@ -28,10 +29,11 @@ export default {
methods: {
onclick () {
console.log('clicked on locorum item', this.item)
// this.$router.push({
// name: `locorumItem`,
// query: { id: this.item.uuid }
// })
this.$router.push({
name: `locorum`,
params: { id: this.item.uuid }
// query: { id: this.item.uuid }
})
}
}
}
+2 -2
View File
@@ -32,8 +32,8 @@ export default {
onclick () {
console.log('clicked on nominum item', this.item)
this.$router.push({
name: `nominumItem`,
query: { id: this.item.uuid }
name: `nominum`,
params: { id: this.item.uuid }
})
}
}
+16 -6
View File
@@ -2,12 +2,18 @@
<article class="operum item">
<header>
<h1>
<a
v-if="item.uuid"
:href="item.url"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
/>
>
{{ item.title }}
</a>
<span v-else class="red">
{{ item.title }}
</span>
</h1>
</header>
</article>
@@ -28,10 +34,14 @@ export default {
methods: {
onclick () {
console.log('clicked on Operum item', this.item)
this.$router.push({
name: `operuumItem`,
query: { id: this.item.uuid }
})
if (this.item.uuid) {
this.$router.push({
name: `operum`,
params: { id: this.item.uuid }
})
} else {
console.warn('no uuid', this.item)
}
}
}
}