aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/routes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/routes/+layout.svelte1
-rw-r--r--app/src/routes/truncate/+page.svelte15
2 files changed, 11 insertions, 5 deletions
diff --git a/app/src/routes/+layout.svelte b/app/src/routes/+layout.svelte
index a0dd68a..6ad0d22 100644
--- a/app/src/routes/+layout.svelte
+++ b/app/src/routes/+layout.svelte
@@ -42,6 +42,7 @@
</script>
<svelte:head>
+ <!-- eslint-disable-next-line svelte/no-at-html-tags VitePWA can probably be trusted -->
{@html webManifestLink}
</svelte:head>
diff --git a/app/src/routes/truncate/+page.svelte b/app/src/routes/truncate/+page.svelte
index 9e2545f..1b37f56 100644
--- a/app/src/routes/truncate/+page.svelte
+++ b/app/src/routes/truncate/+page.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import saveFile from '$lib/ts/download';
+ import saveFile from '$lib/ts/download';
import type { TruncateRequest, TruncateResponse } from '$lib/types/truncate-worker';
import { FileDropzone, ProgressBar } from '@skeletonlabs/skeleton';
import { onMount } from 'svelte';
@@ -16,7 +16,7 @@
originalName = files[0].name;
worker.postMessage({
file: files[0],
- size: truncateTo,
+ size: truncateTo
} as TruncateRequest);
form.reset();
truncateTo = 1;
@@ -27,7 +27,6 @@
worker.onmessage = (e: MessageEvent<TruncateResponse>) => {
disableInput = false;
saveFile(e.data.file, `trunc-${originalName}`);
-
};
});
</script>
@@ -56,8 +55,14 @@
<br />
<label class="label">
<span>Truncate up to... (in bytes)</span>
- <input class="input" type="number" name="truncateTo" bind:value={truncateTo} min="1" required />
-
+ <input
+ class="input"
+ type="number"
+ name="truncateTo"
+ bind:value={truncateTo}
+ min="1"
+ required
+ />
</label>
<br />
<noscript>