Feature: API Tokens (#848)

* initial commit

* fix last_used timestamp

---------

Co-authored-by: Christian Beutel <>
This commit is contained in:
Flomp
2026-03-07 10:10:25 +01:00
committed by GitHub
parent ba88d08078
commit 711a592038
26 changed files with 781 additions and 8 deletions

View File

@@ -1,12 +1,14 @@
<script lang="ts">
import { _ } from "svelte-i18n";
import type { ChangeEventHandler } from "svelte/elements";
interface Props {
name?: string;
value?: string | Date;
label?: string;
error?: string | string[] | null;
min?: string | number;
max?: string | number;
onchange?: ChangeEventHandler<HTMLInputElement>;
}
@@ -15,7 +17,9 @@
value = $bindable(),
label = "",
error = "",
onchange
min,
max,
onchange,
}: Props = $props();
</script>
@@ -32,6 +36,8 @@
class:border-red-400={(error?.length ?? 0) > 0}
class:bg-input-background-error={(error?.length ?? 0) > 0}
type="date"
{min}
{max}
bind:value
{onchange}
/>