From 80f9a70c7281cccfd51069290440c884765a29ab Mon Sep 17 00:00:00 2001 From: exyi Date: Sat, 3 Oct 2020 22:18:47 +0000 Subject: [PATCH] Submit form prototype --- frontend/src/Odevzdavatko.svelte | 205 +++++++++++++++++++++++++++++++ frontend/src/TaskDisplay.svelte | 25 +++- frontend/src/ksp-submit-api.ts | 87 +++++++++++++ frontend/src/ksp-task-grabber.ts | 6 +- 4 files changed, 317 insertions(+), 6 deletions(-) create mode 100644 frontend/src/Odevzdavatko.svelte create mode 100644 frontend/src/ksp-submit-api.ts diff --git a/frontend/src/Odevzdavatko.svelte b/frontend/src/Odevzdavatko.svelte new file mode 100644 index 0000000..7b86bdd --- /dev/null +++ b/frontend/src/Odevzdavatko.svelte @@ -0,0 +1,205 @@ + + + + + + +
+
+ + + vstup. + +
+ + {#if validSubmitSubtasks.length > 0} +
+ Odevzdat + + vstup: + + (nebo přetáhni soubor na stránku) +
+ {/if} +
diff --git a/frontend/src/TaskDisplay.svelte b/frontend/src/TaskDisplay.svelte index e4b50b4..f0c519f 100644 --- a/frontend/src/TaskDisplay.svelte +++ b/frontend/src/TaskDisplay.svelte @@ -1,10 +1,11 @@