add strike reason admin panel

This commit is contained in:
2025-05-22 00:25:22 +02:00
parent 45f984e4da
commit a21d3d283a
11 changed files with 250 additions and 5 deletions

View File

@ -42,6 +42,7 @@
| 'color'
| 'date'
| 'datetime-local'
| 'number'
| 'password'
| 'tel'
| 'team-search'
@ -56,6 +57,7 @@
['color']: {};
['date']: {};
['datetime-local']: {};
['number']: {};
['password']: {};
['tel']: {};
['team-search']: {};
@ -168,7 +170,7 @@
class:grid-cols-2={key.length === 2}
>
{#each key as k (k)}
{#if k.type === 'color' || k.type === 'date' || k.type === 'datetime-local' || k.type === 'tel' || k.type === 'text'}
{#if k.type === 'color' || k.type === 'date' || k.type === 'datetime-local' || k.type === 'number' || k.type === 'tel' || k.type === 'text'}
<Input
type={k.type}
bind:value={() => target[k.key] ?? k.default, (v) => onBindChange(k.key, v, k.options)}

View File

@ -3,7 +3,7 @@
interface Props {
id?: string;
type?: 'color' | 'date' | 'datetime-local' | 'tel' | 'text' | 'email';
type?: 'color' | 'date' | 'datetime-local' | 'number' | 'tel' | 'text' | 'email';
value?: string | null;
label?: string;
required?: boolean;