moved page rendering to a different service and access is now behind

admin.DOMAIN
www.DOMAIN
db.DOMAIN
This commit is contained in:
Jakub Dorfman 2026-08-19 17:58:19 +02:00
parent c7f6b30b87
commit 1027da989e
126 changed files with 6356 additions and 1516 deletions

View file

@ -1,38 +0,0 @@
<script lang="ts">
let {
label,
options,
value,
onChange,
formatLabel = (v: string | number) => String(v),
labelStyle = '',
class: className = ''
}: {
label?: string;
options: (string | number)[];
value: string | number;
onChange: (value: string | number) => void;
formatLabel?: (value: string | number) => string;
labelStyle?: string;
class?: string;
} = $props();
</script>
<div class="form-control {className}">
<div class="flex items-center justify-between">
{#if label}
<span class="label-text w-24" style={labelStyle}>{label}</span>
{/if}
<div class="grid flex-1" style="grid-template-columns: repeat({options.length}, 1fr)">
{#each options as option, i}
<button
type="button"
class="btn btn-sm {i === 0 ? 'rounded-r-none' : ''} {i === options.length - 1 ? 'rounded-l-none' : ''} {value === option ? 'btn-active' : ''}"
onclick={() => onChange(option)}
>
{formatLabel(option)}
</button>
{/each}
</div>
</div>
</div>