mirror of https://github.com/VERT-sh/VERT.git
parent
b93a566928
commit
00e38b6e2c
|
|
@ -94,6 +94,7 @@
|
|||
"vertd_details_error_message": "<b>Error message:</b> [view_link]View error logs[/view_link]",
|
||||
"vertd_details_close": "Close",
|
||||
"unsupported_format": "Only image, video, audio, and document files are supported",
|
||||
"format_output_only": "This format can currently only be used as output (converted to), not as input.",
|
||||
"vertd_not_found": "Could not find the vertd instance to start video conversion. Are you sure the instance URL is set correctly?",
|
||||
"worker_downloading": "The {type} converter is currently being initialized, please wait a few moments.",
|
||||
"worker_error": "The {type} converter had an error during initialization, please try again later.",
|
||||
|
|
|
|||
|
|
@ -216,6 +216,21 @@
|
|||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{:else}
|
||||
{@const formatInfo = currentConverter.supportedFormats.find(
|
||||
(f) => f.name === file.from,
|
||||
)}
|
||||
{#if formatInfo && !formatInfo.fromSupported}
|
||||
<div
|
||||
class="h-full flex flex-col text-center justify-center text-failure"
|
||||
>
|
||||
<p class="font-body font-bold">
|
||||
{m["convert.errors.cant_convert"]()}
|
||||
</p>
|
||||
<p class="font-normal">
|
||||
{m["convert.errors.format_output_only"]()}
|
||||
</p>
|
||||
</div>
|
||||
{:else if currentConverter.status === "downloading"}
|
||||
<div
|
||||
class="h-full flex flex-col text-center justify-center text-failure"
|
||||
|
|
@ -330,9 +345,12 @@
|
|||
{categories}
|
||||
from={file.from}
|
||||
bind:selected={file.to}
|
||||
onselect={(option) => handleSelect(option, file)}
|
||||
onselect={(option) =>
|
||||
handleSelect(option, file)}
|
||||
/>
|
||||
<div class="w-full flex items-center justify-between">
|
||||
<div
|
||||
class="w-full flex items-center justify-between"
|
||||
>
|
||||
<Tooltip
|
||||
text={m["convert.tooltips.convert_file"]()}
|
||||
position="bottom"
|
||||
|
|
@ -372,6 +390,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</Panel>
|
||||
{/snippet}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue