fix style and add mise env

This commit is contained in:
Emrik Östling 2025-11-15 20:55:39 +01:00
parent 02b3964664
commit 3ad7d9387e
3 changed files with 12 additions and 9 deletions

View file

@ -1,2 +1,5 @@
[tools]
bun = "1.2.2"
[env]
JWT_SECRET = "JustForDevelopmentPurposesOnlyChangeMeInProduction!"

View file

@ -133,7 +133,7 @@ export const history = new Elysia().use(userService).get(
<td>{job.num_files}</td>
<td class="max-sm:hidden">{job.finished_files}</td>
<td safe>{job.status}</td>
<td>
<td class="flex flex-row gap-4">
<a
class={`
text-accent-500 underline

View file

@ -23,6 +23,14 @@ function ResultsArticle({
<div class="mb-4 flex items-center justify-between">
<h1 class="text-xl">Results</h1>
<div class="flex flex-row gap-4">
<a
style={files.length !== job.num_files ? "pointer-events: none;" : ""}
class="flex btn-secondary flex-row gap-2 text-contrast"
href={`${WEBROOT}/delete/${job.id}`}
{...(files.length !== job.num_files ? { disabled: true, "aria-busy": "true" } : "")}
>
<DeleteIcon /> <p>Delete</p>
</a>
<a
style={files.length !== job.num_files ? "pointer-events: none;" : ""}
href={`${WEBROOT}/archive/${job.id}`}
@ -35,14 +43,6 @@ function ResultsArticle({
<button class="flex btn-primary flex-row gap-2 text-contrast" onclick="downloadAll()">
<DownloadIcon /> <p>All</p>
</button>
<a
style={files.length !== job.num_files ? "pointer-events: none;" : ""}
class="flex btn-primary flex-row gap-2 text-contrast"
href={`${WEBROOT}/delete/${job.id}`}
{...(files.length !== job.num_files ? { disabled: true, "aria-busy": "true" } : "")}
>
<DeleteIcon /> <p>Delete</p>
</a>
</div>
</div>
<progress