Added info page

This commit is contained in:
Shiny Nematoda 2022-06-30 14:31:11 +00:00
parent 2b55ff908f
commit 466068ae12
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
5 changed files with 73 additions and 34 deletions

16
src/components/Info.vue Normal file
View file

@ -0,0 +1,16 @@
<script setup>
import TextModal from './TextModal.vue';
defineProps(['text']);
const parse = d =>
new DOMParser().parseFromString(d, 'text/html').body.innerText;
</script>
<template>
<TextModal>
<template #content>
<pre>{{ parse(text.replaceAll('<br>', '\n')) }}</pre>
</template>
</TextModal>
</template>