apply linter recommendations

This commit is contained in:
Vri 🌈 2023-06-17 21:16:05 +02:00
parent f0164afe9f
commit 84bb335b90
Signed by: vrifox
GPG key ID: D40098E5B60B2197
6 changed files with 19 additions and 11 deletions

View file

@ -10,7 +10,11 @@ export default {
<template>
<ul class="flex flex-row place-content-center">
<li class="p-2 place-content-center" v-for="entry of menuEntries">
<li
v-for="{entry, i} of menuEntries"
:key="i"
class="p-2 place-content-center"
>
<a :href="entry.uri">{{ entry.name }}</a>
</li>
</ul>

View file

@ -4,4 +4,5 @@ export default {
</script>
<template>
<div></div>
</template>

View file

@ -1,4 +1,5 @@
<script lang="ts">
export type Papers = {
body: string
content: string
@ -54,7 +55,9 @@ export default {
async fetchData() {
this.papers = await (await fetch(this.apiUri)).json()
},
openPaper() {}
openPaper() {
},
date(paperDate: String) {
const date = new Date(paperDate)
return new Intl.DateTimeFormat('de-DE', { dateStyle: 'full' }).format(date)