this is another dirty sync commit
This commit is contained in:
parent
bb22d1a728
commit
455ef5c1d5
2 changed files with 18 additions and 6 deletions
|
@ -1,18 +1,30 @@
|
|||
<script lang="ts">
|
||||
interface Paper {
|
||||
url: string
|
||||
}
|
||||
|
||||
export default {
|
||||
created() {
|
||||
this.fetchData()
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
apiUri: this.appUri,
|
||||
apiUri: 'https://raw.githubusercontent.com/CodeforLeipzig/stadtratmonitor/master/input.json',
|
||||
papers: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async fetchData() {
|
||||
|
||||
this.papers = await (await fetch(this.apiUri)).json()
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<ul>
|
||||
<li v-for="paper in papers">
|
||||
<a :href="paper.url">{{ paper.name }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
|
@ -7,7 +7,7 @@ const app = createApp(App)
|
|||
|
||||
app.config.globalProperties = {
|
||||
...app.config.globalProperties,
|
||||
apiUri: 'https://jsonplaceholder.typicode.com/posts/',
|
||||
apiUri: 'https://joergreichert.de/srm/input.json',
|
||||
applicationName: 'Stadtratmonitor',
|
||||
menuEntries: {
|
||||
0: {
|
||||
|
@ -22,7 +22,7 @@ app.config.globalProperties = {
|
|||
name: 'Glossar',
|
||||
uri: '/glossar'
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
app.mount('#app')
|
||||
|
|
Loading…
Reference in a new issue