diff --git a/webui/src/components/display/UpEntry.svelte b/webui/src/components/display/UpEntry.svelte new file mode 100644 index 0000000..7412cf0 --- /dev/null +++ b/webui/src/components/display/UpEntry.svelte @@ -0,0 +1,48 @@ + + +
+
+ +
+
+ {entry.attribute} +
+
+ {#if entry.value.t === "Address"} + + {:else} + {entry.value.c} + {/if} +
+
+ + diff --git a/webui/src/views/Search.svelte b/webui/src/views/Search.svelte index 4a84940..1cbed24 100644 --- a/webui/src/views/Search.svelte +++ b/webui/src/views/Search.svelte @@ -3,6 +3,7 @@ import debounce from "lodash/debounce"; import { Readable, readable } from "svelte/store"; import type { UpListing } from "upend"; + import UpEntry from "../components/display/UpEntry.svelte"; export let query: string; let debouncedQuery = ""; @@ -22,10 +23,34 @@
{#if $result} - {#each $result.entries as entry} - {entry.toString()} - {:else} - No results. - {/each} +
+

Objects

+
+
+

Raw results

+ +
{/if}
+ +