about summary refs log tree commit diff
path: root/client/src/components/Response.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/Response.svelte')
-rw-r--r--client/src/components/Response.svelte33
1 files changed, 0 insertions, 33 deletions
diff --git a/client/src/components/Response.svelte b/client/src/components/Response.svelte
deleted file mode 100644
index 215af1b..0000000
--- a/client/src/components/Response.svelte
+++ /dev/null
@@ -1,33 +0,0 @@
-<script lang="ts">
-    import type { ShortenRequest } from "$actions/shorten";
-
-    export let info: ShortenRequest;
-</script>
-
-<style>
-    div {
-        display: flex;
-        justify-content: space-between;
-    }
-
-    .url {
-        white-space: nowrap;
-        overflow: hidden;
-        text-overflow: ellipsis;
-    }
-
-    .output {
-        margin-left: 50px;
-    }
-</style>
-
-<div>
-    <span class="url">{info.url}</span>
-    {#await info.response}
-        <span class="output">Loading...</span>
-    {:then { hash }} 
-        <a class="output" href="https://sho.rest/{hash}">sho.rest/{hash}</a>
-    {:catch { error }}
-        <span class="output">{error}</span>
-    {/await}
-</div>
\ No newline at end of file