misskey/packages/frontend/src/components/MkEvent.vue

24 lines
580 B
Vue
Raw Normal View History

<template>
<div><span class="mfm-x2">{{ note.event!.title }}</span></div>
<div>Start: {{ (new Date(note.event!.start)).toLocaleString() }}</div>
<div v-if="!!note.event!.end">End: {{ (new Date(note.event!.end)).toLocaleString() }}</div>
<ul>
2023-04-21 00:11:37 +00:00
<li v-for="k in Object.keys(note.event!.metadata)" :key="k">
{{ k }}: {{ note.event!.metadata[k] }}
</li>
</ul>
</template>
<script lang="ts" setup>
import * as misskey from 'misskey-js';
//import { i18n } from '@/i18n';
const props = defineProps<{
note: misskey.entities.Note
}>();
</script>
<style lang="scss" module>
</style>