From 9fbe8b79f7bc12a71b62722b06f7e93334da1a52 Mon Sep 17 00:00:00 2001
From: Mitchell Riedstra <mitch@riedstra.dev>
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.svelte | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'ui/src/routes/list/+page.svelte')

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);
 
+  
+
 </script>
 
+<!-- TODO: Figure out how to gracefully handle 500's and such here -->
 {#if data}
 <ul>
     {#each data as paste (paste.id)}
@@ -19,4 +22,6 @@
     </li>
     {/each}
 </ul>
-{/if}
\ No newline at end of file
+{:else}
+	Loading....
+{/if}
-- 
cgit v1.2.3

