From 9aa52915b03d394e6443a1d6274707e8153c8b9c Mon Sep 17 00:00:00 2001 From: keven1024 Date: Sat, 28 Feb 2026 10:23:45 +0800 Subject: [PATCH] feat(front): implement ImageConvertResult component for image format conversion and update layout in ImageCompressResult --- .../components/Result/ImageCompressResult.vue | 4 +- .../components/Result/ImageConvertResult.vue | 190 ++++++++++++++++++ front/i18n/locales/en.json | 7 + front/i18n/locales/zh-CN.json | 7 + 4 files changed, 206 insertions(+), 2 deletions(-) create mode 100644 front/components/Result/ImageConvertResult.vue diff --git a/front/components/Result/ImageCompressResult.vue b/front/components/Result/ImageCompressResult.vue index 8254876..ed5e527 100644 --- a/front/components/Result/ImageCompressResult.vue +++ b/front/components/Result/ImageCompressResult.vue @@ -157,8 +157,8 @@ watch(
{{ t('page.result.imageCompress.failed') }}
-
-
+
+
{{ diff --git a/front/components/Result/ImageConvertResult.vue b/front/components/Result/ImageConvertResult.vue new file mode 100644 index 0000000..c34f0c2 --- /dev/null +++ b/front/components/Result/ImageConvertResult.vue @@ -0,0 +1,190 @@ + + diff --git a/front/i18n/locales/en.json b/front/i18n/locales/en.json index 70d8fa3..21de6f5 100644 --- a/front/i18n/locales/en.json +++ b/front/i18n/locales/en.json @@ -144,6 +144,13 @@ "retry": "Retry {0}/{1}", "failed": "Failed" }, + "imageConvert": { + "title": "Image Convert", + "convert": "Convert", + "task": "Task", + "retry": "Retry {0}/{1}", + "failed": "Failed" + }, "text": { "title": "Share Successful", "info": "Info", diff --git a/front/i18n/locales/zh-CN.json b/front/i18n/locales/zh-CN.json index bac8ce0..c610783 100644 --- a/front/i18n/locales/zh-CN.json +++ b/front/i18n/locales/zh-CN.json @@ -144,6 +144,13 @@ "retry": "重试 {0}/{1}", "failed": "失败" }, + "imageConvert": { + "title": "图片转换", + "convert": "转换", + "task": "任务", + "retry": "重试 {0}/{1}", + "failed": "失败" + }, "text": { "title": "分享成功", "info": "信息",