From 63e9cb3cd8314c433b4a4b4ec3ffea40f1ec18a9 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Mon, 10 Feb 2025 22:02:23 +0300 Subject: [PATCH] feat: show supported formats in file categories + minor language change --- src/lib/sections/settings/Vertd.svelte | 2 +- src/routes/+page.svelte | 50 +++++++++++++++++++------- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/src/lib/sections/settings/Vertd.svelte b/src/lib/sections/settings/Vertd.svelte index e1971b5..e2c33ce 100644 --- a/src/lib/sections/settings/Vertd.svelte +++ b/src/lib/sections/settings/Vertd.svelte @@ -55,7 +55,7 @@ class="inline-block -mt-1 mr-2 bg-accent-red p-2 rounded-full overflow-visible" color="black" /> - Converting Video + Video conversion

+ converters.find((c) => c.name === name)?.supportedFormats.join(", ") || + "none"; + + const supportedFormats = { + images: getSupportedFormats("libvips"), + audio: getSupportedFormats("ffmpeg"), + video: getSupportedFormats("vertd"), + };

@@ -40,7 +51,7 @@
-

VERT Supports...

+

VERT supports...

@@ -51,7 +62,13 @@ Images
-

Animated images are not supported (yet).

+
+

Animated images are not supported (yet).

+

+ Supported formats: + {supportedFormats.images} +

+
@@ -62,9 +79,15 @@ Audio
-

- Fully supported -

+
+

+ Fully supported +

+

+ Supported formats: + {supportedFormats.audio} +

+
@@ -74,13 +97,16 @@
Video *
-

- Video requires special setup. Learn more -

+
+

+ Video requires special setup. Learn more. +

+

Supported formats: {supportedFormats.video}

+