2022-04-12 23:56:18 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import type { EmbeddedFile } from "../main";
|
2022-04-17 18:45:40 +00:00
|
|
|
import sanLink from 'linkify-string'
|
2022-04-12 23:56:18 +00:00
|
|
|
|
|
|
|
export let files: EmbeddedFile[];
|
|
|
|
|
|
|
|
let contents = files.map((e) => (e.data as Buffer).toString());
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#each contents as content}
|
|
|
|
<div class="additionnal">
|
2022-04-17 18:45:40 +00:00
|
|
|
{@html sanLink(content)}
|
2022-04-12 23:56:18 +00:00
|
|
|
</div>
|
|
|
|
{/each}
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.additionnal {
|
|
|
|
border-top: 2px dashed;
|
|
|
|
clear: both;
|
|
|
|
margin-top: 10px;
|
|
|
|
padding-top: 10px;
|
2022-04-17 18:45:40 +00:00
|
|
|
white-space: pre-wrap;
|
2022-04-12 23:56:18 +00:00
|
|
|
}
|
|
|
|
</style>
|