From 21832005e239012334ca2d0a2e554c75a9839eb4 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 5 Sep 2024 08:51:41 +0600 Subject: [PATCH] web/remux: handle more errors, add a basic progress bar --- web/i18n/en/error.json | 2 + web/src/routes/remux/+page.svelte | 128 +++++++++++++++++++++++++----- 2 files changed, 108 insertions(+), 22 deletions(-) diff --git a/web/i18n/en/error.json b/web/i18n/en/error.json index 39282677..6a730052 100644 --- a/web/i18n/en/error.json +++ b/web/i18n/en/error.json @@ -4,6 +4,8 @@ "import.unknown": "couldn't load data from the file. it may be corrupted or of wrong format. here's the error i got:\n\n{{ value }}", "remux.corrupted": "couldn't read the metadata from this file, it may be corrupted.", + "remux.out_of_resources": "cobalt ran out of resources and can't continue with on-device processing. this is related to limitations on your browser's side. try refreshing or reopening the app and trying again. some devices can only process tiny files.", + "tunnel.probe": "couldn't verify whether you can download this file. try again in a few seconds!", "api.auth.jwt.missing": "couldn't confirm whether you're not a robot because the processing server didn't receive the human access token. try again in a few seconds or reload the page!", diff --git a/web/src/routes/remux/+page.svelte b/web/src/routes/remux/+page.svelte index dd505060..dda32289 100644 --- a/web/src/routes/remux/+page.svelte +++ b/web/src/routes/remux/+page.svelte @@ -1,29 +1,35 @@