-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 43bf1b3 Author: Liam Keegan <[email protected]> Date: Mon Nov 11 08:17:47 2024 +0100 Add admin option to delete milestone images (#150) * Add admin option to delete milestone images - add delete button below existing milestone images in admin interface - add delete /milestone-images endpoint - restate /admin route for convenience during development, can be removed again later - resolves #98 * update openapi.json & openapi-ts client --------- Co-authored-by: Harald Mack <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> commit 33d4f17 Author: Harald Mack <[email protected]> Date: Fri Nov 8 17:23:58 2024 +0100 Add childquestions backend integration and refactor datainput datastructure (#138) * add childanswers and base answer model * add child question models * add question admin endpoints * make current tests work again * adjust imports, add test skeleton * add dummy questions to test fixtures * start working on backend tests * work more on backend tests and model inheritance * fix errors in test data * try to get sqlmodel inheritnace to work * get rid of inheritance in question models for now * finish user question tests * finish python test draft
- Loading branch information
Showing
18 changed files
with
180 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<svelte:options runes={true} /> | ||
|
||
<script lang="ts"> | ||
import { preventDefault } from "$lib/util"; | ||
import { TrashBinOutline } from "flowbite-svelte-icons"; | ||
import Button from "flowbite-svelte/Button.svelte"; | ||
let { | ||
filename, | ||
ondelete, | ||
}: { filename: string; ondelete: (event: Event) => void } = $props(); | ||
</script> | ||
|
||
<div class="flex flex-col m-2 justify-center"> | ||
<img | ||
src={`${import.meta.env.VITE_MONDEY_API_URL}/static/${filename}`} | ||
width="96" | ||
height="96" | ||
alt={`${filename}`} | ||
|
||
/> | ||
<Button color="red" onclick={preventDefault(ondelete)} class="w-24 rounded-none mt-1"><TrashBinOutline class="h-5 w-5" /></Button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<svelte:options runes={true} /> | ||
|
||
<script lang="ts"> | ||
import AdminPage from "$lib/components/AdminPage.svelte"; | ||
</script> | ||
|
||
<AdminPage /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.