diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index 6d317d7..79628c0 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -154,7 +154,9 @@ "download": "Download", "continue": "Continue", "backup_code": "Backup-code", - "totp": "Totp" + "totp": "Totp", + "text": "Text", + "order": "order" }, "editor": { "time_in_seconds": "Time in seconds", diff --git a/frontend/src/lib/practice/question.svelte b/frontend/src/lib/practice/question.svelte index 8fa3749..1312542 100644 --- a/frontend/src/lib/practice/question.svelte +++ b/frontend/src/lib/practice/question.svelte @@ -3,11 +3,11 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> - -
-

{@html question.question}

+
+

{@html question.question}

{#if question.image !== null}
Content for Question
{/if} -

{timer_res}

+

{timer_res}

{#if question.type === QuizQuestionType.ABCD} {#if show_results}
@@ -75,8 +108,8 @@ class:bg-red-500={!question.answers[i].right} class:text-xl={i === selected_answer} class:underline={i === selected_answer} - class='p-2 rounded-lg flex justify-center w-full transition my-5 text-black' - >{answer.answer}{answer.answer} {/each}
@@ -85,7 +118,7 @@ {#each question.answers as answer, i} {:then c} -
+
{/await} @@ -131,18 +164,18 @@ bind:max={question.answers.max} pips float - all='label' + all="label" />
-
+
{/await} @@ -151,7 +184,7 @@ {#each question.answers as answer, i}
{/if} -
+ {:else if question.type === QuizQuestionType.ORDER} +
{#each question.answers as answer, i (answer.id)}
-

{answer.answer}

+

{answer.answer}

{/each} +
{/if}