Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

Add support for new "disabled" derived var

Realmy71736035f68a
diff --cc src/routes/convert/+page.svelte
index a6ad782,85944f6..c2b2c51
--- a/src/routes/convert/+page.svelte
+++ b/src/routes/convert/+page.svelte
@@@ -179,42 -193,22 +181,38 @@@
}}
/>
</div>
- <div class="flex gap-4">
- <button onclick={convertAll} class="btn flex-grow"
- >Convert{files.files.length > 1
- ? " All"
- : ""}</button
- >
- <button
- onclick={downloadAll}
- class="btn flex-grow"
- {disabled}
- >Download{files.files.length > 1
- ? " All"
- : ""}</button
- >
+ </div>
+
+ <h2 class="font-bold text-base mb-1 mt-6">Advanced</h2>
+ <div class="flex flex-col gap-4 mt-2">
+ <div class="flex flex-col gap-3 w-fit">
+ <h3>Converter backend</h3>
+ <Dropdown
+ options={converters.map(
+ (converter) => converter.name,
+ )}
+ bind:selected={converterName}
+ />
</div>
</div>
+
+ <div class="flex gap-4 mt-8">
+ <button
+ onclick={convertAll}
+ class={clsx("btn flex-grow", {
- "btn-highlight": !files.files.find((i) => i.result),
++ "btn-highlight": disabled,
+ })}
+ >Convert{files.files.length > 1 ? " All" : ""}</button
+ >
+ <button
+ onclick={() => downloadAll}
+ class={clsx("btn flex-grow", {
- "opacity-50 pointer-events-none": files.files.find(
- (i) => !i.result,
- ),
- "btn-highlight": !files.files.find(
- (i) => !i.result,
- ),
++ "opacity-50 pointer-events-none": disabled,
++ "btn-highlight": !disabled,
+ })}
+ >Download{files.files.length > 1 ? " All" : ""}</button
+ >
+ </div>
</div>
{#each reversed as file, i (file.id)}
<div