aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-02 01:18:28 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-02 01:18:28 -0500
commit9fbe8b79f7bc12a71b62722b06f7e93334da1a52 (patch)
tree7d845be35268425289a5ce329440f673a6671846 /ui/src/routes
parent2d3b4c7fc74b377698cc2f554ae7ceac76bf616b (diff)
downloadpaste-9fbe8b79f7bc12a71b62722b06f7e93334da1a52.tar.gz
paste-9fbe8b79f7bc12a71b62722b06f7e93334da1a52.tar.xz
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.
Diffstat (limited to 'ui/src/routes')
-rw-r--r--ui/src/routes/list/+page.js2
-rw-r--r--ui/src/routes/list/+page.svelte7
2 files changed, 7 insertions, 2 deletions
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);
+
+
</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}