diff --git a/web/src/pages/Home/components/create.svelte b/web/src/pages/Home/components/create.svelte index 811d0c6..a0c574f 100644 --- a/web/src/pages/Home/components/create.svelte +++ b/web/src/pages/Home/components/create.svelte @@ -33,7 +33,7 @@ }; -
+

{window.location.origin}/

diff --git a/web/src/pages/Home/components/row.svelte b/web/src/pages/Home/components/row.svelte index b550657..cc3adcb 100644 --- a/web/src/pages/Home/components/row.svelte +++ b/web/src/pages/Home/components/row.svelte @@ -10,6 +10,17 @@ $mutation.mutate(row.url); } } + + function editItem() { + const form = document.getElementById("form") as HTMLFormElement; + form.reset(); + for (const [key, value] of Object.entries(row)) { + const item = form.elements.namedItem(key) as HTMLInputElement; + if (!item) continue; + if (key === "ttl") continue; + item.value = value as string; + } + } @@ -25,7 +36,10 @@ >{row.ttl ? new Date(row.ttl).toLocaleTimeString() : "Never"} -