(wip) introduce routing
This commit is contained in:
parent
24782c2d08
commit
08e07f5963
18 changed files with 182 additions and 69 deletions
7
src/views/TheAbout.vue
Normal file
7
src/views/TheAbout.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script lang="ts">
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
About
|
||||
</template>
|
7
src/views/TheDocumentation.vue
Normal file
7
src/views/TheDocumentation.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script lang="ts">
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{{ $route.name }}
|
||||
</template>
|
7
src/views/TheImprint.vue
Normal file
7
src/views/TheImprint.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script lang="ts">
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Imprint
|
||||
</template>
|
7
src/views/TheLanding.vue
Normal file
7
src/views/TheLanding.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script lang="ts">
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Landing Page
|
||||
</template>
|
7
src/views/TheMap.vue
Normal file
7
src/views/TheMap.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<script lang="ts">
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
Map
|
||||
</template>
|
33
src/views/TheTopics.vue
Normal file
33
src/views/TheTopics.vue
Normal file
|
@ -0,0 +1,33 @@
|
|||
<script lang="ts">
|
||||
import FilterView from '@/components/papers/FilterView.vue'
|
||||
import PaperList from '@/components/papers/PaperList.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FilterView,
|
||||
PaperList,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
papers: this.papers,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
topics() {
|
||||
return [...new Set(this.papers?.map((paper: any) => paper.reference))]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<FilterView
|
||||
@paperFilter="(filter) => paperFilter = filter"
|
||||
:papers="papers"
|
||||
/>
|
||||
<PaperList
|
||||
:paperQuery="search"
|
||||
:paperFilter="paperFilter"
|
||||
/>
|
||||
{{ topics }}
|
||||
</template>
|
16
src/views/TopicsShow.vue
Normal file
16
src/views/TopicsShow.vue
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script lang="ts">
|
||||
export default {
|
||||
computed: {
|
||||
topicId() {
|
||||
return this.$route.params.id
|
||||
},
|
||||
topic() {
|
||||
this.papers?.find( (paper: any) => paper.reference == this.topicId )
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
{{ $route.name }}
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue