mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Added info page
This commit is contained in:
parent
2b55ff908f
commit
466068ae12
5 changed files with 73 additions and 34 deletions
16
src/components/Info.vue
Normal file
16
src/components/Info.vue
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue