add live statistics
All checks were successful
deploy / build-and-deploy (push) Successful in 22s

This commit is contained in:
2025-11-11 01:53:56 +01:00
parent dfc1425c6b
commit 5ce2db9040
26 changed files with 1168 additions and 817 deletions

View File

@@ -2,7 +2,6 @@
import type { Writable } from 'svelte/store';
import SortableTr from '@components/admin/table/SortableTr.svelte';
import SortableTh from '@components/admin/table/SortableTh.svelte';
import Icon from '@iconify/svelte';
import type { Snippet } from 'svelte';
import { getObjectEntryByKey } from '@util/objects.ts';
@@ -64,12 +63,12 @@
<td>
{#if onEdit}
<button class="cursor-pointer" onclick={() => onEdit(d)}>
<Icon icon="heroicons:pencil-square" />
<span class="iconify iconify-[heroicons--pencil-square]"></span>
</button>
{/if}
{#if onDelete}
<button class="cursor-pointer" onclick={() => onDelete(d)}>
<Icon icon="heroicons:trash" />
<span class="iconify iconify-[heroicons--trash]"></span>
</button>
{/if}
</td>

View File

@@ -1,7 +1,6 @@
<script lang="ts">
import { getContext, type Snippet } from 'svelte';
import type { Writable } from 'svelte/store';
import Icon from '@iconify/svelte';
// types
interface Props {
@@ -37,9 +36,9 @@
<button class="flex items-center gap-1" onclick={() => onButtonClick()}>
<span>{@render children?.()}</span>
{#if $headerKey === key && asc}
<Icon icon="heroicons:chevron-up-16-solid" />
<span class="iconify iconify-[heroicons--chevron-up-16-solid]"></span>
{:else}
<Icon icon="heroicons:chevron-down-16-solid" />
<span class="iconify iconify-[heroicons--chevron-down-16-solid]"></span>
{/if}
</button>
{:else}