From 981d63c6df338447bd655125f107f2cb473b61a9 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 13 May 2022 15:01:33 +0200 Subject: [PATCH] added 404 page --- web/App.svelte | 36 ++++++++++++++++++++++++++---------- web/NotFound.svelte | 12 ++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 web/NotFound.svelte diff --git a/web/App.svelte b/web/App.svelte index 61c5b7b..025af72 100644 --- a/web/App.svelte +++ b/web/App.svelte @@ -1,16 +1,23 @@ -
- Download -
+{#if !notFound} +
+ Download +
+{/if}
- {#await getFileHeadAndComponent()} + {#await getFileHead()} Loading data... - {:then v } - + {:then} + + {#if notFound} + + {:else} + {#await getComponentForShare(contentType, filename)} + Loading component... + {:then v} + + {/await} + {/if} {/await}
diff --git a/web/NotFound.svelte b/web/NotFound.svelte new file mode 100644 index 0000000..711b45c --- /dev/null +++ b/web/NotFound.svelte @@ -0,0 +1,12 @@ + + +

Share not found

+ + \ No newline at end of file