✨ Quizzes can now be exported as excel files
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
||||
|
||||
SPDX-License-Identifier: MPL-2.0
|
||||
-->
|
||||
<script lang="ts">
|
||||
import BrownButton from '$lib/components/buttons/brown.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import { fade } from 'svelte/transition';
|
||||
import { getLocalization } from '$lib/i18n';
|
||||
|
||||
const { t } = getLocalization();
|
||||
export let quiz_id: string | null = null;
|
||||
|
||||
const handle_on_click = () => {
|
||||
quiz_id = null;
|
||||
};
|
||||
onMount(() => {
|
||||
window.addEventListener('keydown', (e: KeyboardEvent) => {
|
||||
if (e.key === 'Escape') {
|
||||
quiz_id = null;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if quiz_id}
|
||||
<div
|
||||
class="w-screen h-screen fixed top-0 left-0 bg-opacity-50 bg-black z-20 flex justify-center"
|
||||
on:click={handle_on_click}
|
||||
transition:fade|local={{ duration: 100 }}
|
||||
>
|
||||
<div class="m-auto w-1/3 h-auto bg-white dark:bg-gray-700 p-4 rounded">
|
||||
<h1 class="text-3xl text-center mb-4">{$t('downloader.select_download_type')}</h1>
|
||||
<div class="flex flex-row gap-4">
|
||||
<div class="w-full flex justify-center">
|
||||
<BrownButton href="/api/v1/eximport/{quiz_id}"
|
||||
>{$t('downloader.own_format')}
|
||||
</BrownButton>
|
||||
</div>
|
||||
<div class="w-full flex justify-center">
|
||||
<BrownButton href="/api/v1/eximport/excel/{quiz_id}"
|
||||
>{$t('downloader.excel_format')}
|
||||
</BrownButton>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mt-2 text-sm text-center">{$t('downloader.help')}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@@ -45,7 +45,8 @@
|
||||
"community_driven_content": "ClassQuiz depends on its community for funding, testing ideas, feature requests, translations and more! You can also be a part of the ClassQuiz-community!",
|
||||
"how_does_classquiz_work": "How does ClassQuiz even work?",
|
||||
"no_player_limit": "No player limit",
|
||||
"no_player_limit_content": "ClassQuiz doesn't have an artificial player limit. In theory, 1000+ players could play the same quiz, but it's tested with up to 300 players per quiz."
|
||||
"no_player_limit_content": "ClassQuiz doesn't have an artificial player limit. In theory, 1000+ players could play the same quiz, but it's tested with up to 300 players per quiz.",
|
||||
"import_quiz_from_kahoot_and_edit": ""
|
||||
},
|
||||
"overview_page": {
|
||||
"created_at": "Created at",
|
||||
@@ -193,7 +194,8 @@
|
||||
"dislike": "Dislike",
|
||||
"dislike_plural": "Dislikes",
|
||||
"play_plural": "Plays",
|
||||
"info": "Info"
|
||||
"info": "Info",
|
||||
"player": "Player"
|
||||
},
|
||||
"editor": {
|
||||
"time_in_seconds": "Time in seconds",
|
||||
@@ -254,7 +256,8 @@
|
||||
"enter_answer_into_field": "Enter your answer into the input field!",
|
||||
"answers_submitted": "{{answer_count}} Answers submitted",
|
||||
"request_export_results": "Request result download",
|
||||
"download_export_results": "Download results"
|
||||
"download_export_results": "Download results",
|
||||
"export_results": "Export results"
|
||||
},
|
||||
"password_reset_page": {
|
||||
"reset_password": "Reset password"
|
||||
@@ -292,7 +295,8 @@
|
||||
"join_by_entering_code": "Join by entering the following code",
|
||||
"points_added": "Points added",
|
||||
"your_place": "You're on place {{place}}!",
|
||||
"players_waiting": "{{count}} players are waiting"
|
||||
"players_waiting": "{{count}} player are waiting",
|
||||
"players_waiting_plural": "{{count}} players are waiting"
|
||||
},
|
||||
"editor_page": {
|
||||
"add_an_answer": "Add an answer",
|
||||
@@ -448,7 +452,8 @@
|
||||
},
|
||||
"public_user_page": {
|
||||
"joined_on": "Joined on {{date}}",
|
||||
"no_original_quizzes": "This user doesn't have any original quizzes"
|
||||
"no_original_quizzes": "This user doesn't have any original quizzes",
|
||||
"user_not_found": "User not found"
|
||||
},
|
||||
"file_dashboard": {
|
||||
"not_available": "Not available",
|
||||
@@ -469,5 +474,11 @@
|
||||
"video_uploader": {
|
||||
"time_elapsed": "Time elapsed",
|
||||
"time_remaining": "Time remaining"
|
||||
},
|
||||
"downloader": {
|
||||
"select_download_type": "Select download type",
|
||||
"own_format": "Own Format",
|
||||
"excel_format": "Excel Format",
|
||||
"help": "The own format (.cqa) also includes pictures and supports every question type, whereas the excel format only supports voting and multiple-choice questions."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user