web/ProcessingQueueStub: static stub text

This commit is contained in:
wukko 2025-05-04 14:43:55 +06:00
parent 1ef8391639
commit c9dfd60068
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2
2 changed files with 4 additions and 13 deletions

View File

@ -1,19 +1,16 @@
{
"title": "processing queue",
"stub": "nothing here yet, just the two of us.\ntry {{ value }} something!",
"stub.fetch": "downloading",
"stub.remux": "remuxing",
"stub": "nothing here yet, just the two of us.\ntry downloading something!",
"state.waiting": "queued",
"state.retrying": "retrying",
"state.starting": "starting",
"state.starting.fetch": "starting downloading",
"state.starting.remux": "starting remuxing",
"state.starting.encode": "starting transcoding",
"state.running.remux": "remuxing",
"state.running.fetch": "downloading",
"state.running.encode": "transcoding",
"estimated_storage_usage": "estimated storage usage:"
"state.running.encode": "transcoding"
}

View File

@ -1,19 +1,13 @@
<script lang="ts">
import { t } from "$lib/i18n/translations";
import Meowbalt from "$components/misc/Meowbalt.svelte";
const stubActions = ["fetch", "remux"];
const randomAction = () => {
return stubActions[Math.floor(Math.random() * stubActions.length)];
};
</script>
<div class="queue-stub">
<Meowbalt emotion="think" />
<span class="subtext stub-text">
{$t("queue.stub", {
value: $t(`queue.stub.${randomAction()}`),
value: $t("queue.stub"),
})}
</span>
</div>