From 9fbe8b79f7bc12a71b62722b06f7e93334da1a52 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 2 Jan 2023 01:18:28 -0500 Subject: UI builds and embeds just fine, it mostly works. Still need to address routing all requests to index.html inside of the Go handler, shouldn't be too hard. --- ui/src/routes/list/+page.js | 2 +- ui/src/routes/list/+page.svelte | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'ui/src/routes/list') diff --git a/ui/src/routes/list/+page.js b/ui/src/routes/list/+page.js index 72e2878..1c0c1d5 100644 --- a/ui/src/routes/list/+page.js +++ b/ui/src/routes/list/+page.js @@ -11,4 +11,4 @@ export async function load({ params }) { req: req, reqJson: reqJson, }; -} \ No newline at end of file +} diff --git a/ui/src/routes/list/+page.svelte b/ui/src/routes/list/+page.svelte index c487068..3b463b5 100644 --- a/ui/src/routes/list/+page.svelte +++ b/ui/src/routes/list/+page.svelte @@ -7,8 +7,11 @@ .then((res) => res.json()) .then(resData => data = resData); + + + {#if data} -{/if} \ No newline at end of file +{:else} + Loading.... +{/if} -- cgit v1.2.3