diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-02 01:18:28 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-02 01:18:28 -0500 |
| commit | 9fbe8b79f7bc12a71b62722b06f7e93334da1a52 (patch) | |
| tree | 7d845be35268425289a5ce329440f673a6671846 /ui/src | |
| parent | 2d3b4c7fc74b377698cc2f554ae7ceac76bf616b (diff) | |
| download | paste-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')
| -rw-r--r-- | ui/src/routes/list/+page.js | 2 | ||||
| -rw-r--r-- | ui/src/routes/list/+page.svelte | 7 |
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} |
