🚧 Added Proof of Work on image-upload and more

This commit is contained in:
Mawoka
2022-06-20 21:47:12 +02:00
parent 2b8168ad5e
commit 25ac42bdae
13 changed files with 297 additions and 23 deletions
+4
View File
@@ -8,6 +8,7 @@
export let data: EditorData;
export let selected_question: number;
export let edit_id: string;
export let pow_data;
const empty_answer: Answer = {
right: false,
answer: ''
@@ -67,6 +68,8 @@
}}
/>
</div>
{:else if pow_data === undefined}
<Spinner />
{:else}
{#await import('$lib/editor/uploader.svelte')}
<Spinner />
@@ -77,6 +80,7 @@
bind:edit_id
bind:data
bind:selected_question
bind:pow_data
/>
{/await}
{/if}