Can embed any file in a PNG/WebM/GIF/JPEG and upload it to a third-party host through 4chan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
701 B

<script lang="ts">
import type { EmbeddedFile } from './main.js';
import { createEventDispatcher } from 'svelte';
import Embedding from './Embedding.svelte';
export const dispatch = createEventDispatcher();
export let files: EmbeddedFile[]
export let id: string = '';
// export let embed_enums: EMBED_ENUM[] = [EMBED_ENUM.NONE, EMBED_ENUM.NONE];
let children: {[k in number]: Embedding}= {}
export async function bepis(ev: MouseEvent) {
for (let child of Object.values(children))
child.bepis(ev);
}
</script>
<!-- embed_enum={embed_enums[i]} -->
{#each files as file, i}
<Embedding on:fileinfo bind:this={children[i]} {id} {file} />
{/each}
<style scoped>
</style>