From 01720039931c7d1948645994c6b7bc5c30765385 Mon Sep 17 00:00:00 2001 From: wilson Date: Tue, 31 Mar 2026 07:22:58 +0100 Subject: [PATCH] feat: Add the ArticlePreview.svelte component to frontend --- .../app/jobs/[job_id]/ArticlePreview.svelte | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 frontend/src/routes/app/jobs/[job_id]/ArticlePreview.svelte diff --git a/frontend/src/routes/app/jobs/[job_id]/ArticlePreview.svelte b/frontend/src/routes/app/jobs/[job_id]/ArticlePreview.svelte new file mode 100644 index 0000000..fb2a6ee --- /dev/null +++ b/frontend/src/routes/app/jobs/[job_id]/ArticlePreview.svelte @@ -0,0 +1,127 @@ + + +{#if article} +
+ {#if fullAudioUrl} +
+

Audio

+ +
+ {/if} +

+ Generated Text + {formatLanguage(article.target_language)} +

+
{article.target_body}
+
+ +
+

+ Translation + {formatLanguage(article.source_language)} +

+
{article.source_body}
+
+ +
+

Audio Transcript

+
{JSON.stringify(article.target_body_transcript, null, 2)}
+
+ +
+

Generated Text with POS Tags

+
{JSON.stringify(article.target_body_pos, null, 2)}
+
+ +
+

Translated Text with POS Tags

+
{JSON.stringify(article.source_body_pos, null, 2)}
+
+{/if} + +