This commit is contained in:
Realmy 2024-11-12 21:29:00 +01:00
commit cecc969e8c
2 changed files with 6 additions and 4 deletions

View File

@ -55,8 +55,8 @@
</h2> </h2>
<p class="mt-6 text-transition" style="--delay: {4 * multiplier}ms"> <p class="mt-6 text-transition" style="--delay: {4 * multiplier}ms">
As of right now, VERT only supports image conversion of most popular As of right now, VERT only supports image conversion of most popular
formats. Don't worry though, as we'll add support for more formats in formats. Don't worry though, as we'll add more options and support for
the future! more formats in the future!
</p> </p>
<h2 <h2

View File

@ -8,7 +8,6 @@
import { ArrowRight, XIcon } from "lucide-svelte"; import { ArrowRight, XIcon } from "lucide-svelte";
import { onMount } from "svelte"; import { onMount } from "svelte";
import { quintOut } from "svelte/easing"; import { quintOut } from "svelte/easing";
import { downloadZip } from "client-zip";
const reversed = $derived(files.files.slice().reverse()); const reversed = $derived(files.files.slice().reverse());
@ -144,6 +143,7 @@
a.remove(); a.remove();
return; return;
} }
const { downloadZip } = await import("client-zip");
const blob = await downloadZip(dlFiles, "converted.zip").blob(); const blob = await downloadZip(dlFiles, "converted.zip").blob();
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
const a = document.createElement("a"); const a = document.createElement("a");
@ -323,7 +323,9 @@
<Dropdown <Dropdown
options={converter.supportedFormats} options={converter.supportedFormats}
bind:selected={files bind:selected={files
.conversionTypes[i]} .conversionTypes[
files.files.length - 1 - i
]}
onselect={() => { onselect={() => {
file.result = null; file.result = null;
}} }}