Add httpd-client api library

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-04-11 15:31:08 +02:00
parent 045890d2e1
commit c8c251fabd
80 changed files with 2391 additions and 1801 deletions
+2 -4
View File
@@ -8,16 +8,14 @@
</script>
<script lang="ts" strictEvents>
import type { State } from "@app/lib/cobs";
import { createEventDispatcher } from "svelte";
import { twemoji } from "@app/lib/utils";
import Badge from "@app/components/Badge.svelte";
type T = $$Generic<State | string | number>;
type T = $$Generic;
export let items: Item<T>[];
export let selected: string | null = null;
export let selected: T | null = null;
const dispatch = createEventDispatcher<{ select: Item<T> }>();
const onSelect = (item: Item<T>) => {