From 971c263bf8cfa6cba97d3c9c2bf326480f8394b8 Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Wed, 29 Jul 2026 23:25:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=99=9A=E6=8B=9F=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=95=9C=E5=83=8F=E4=B8=8A=E4=BC=A0=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E7=99=BE=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/MsdDialog.vue | 185 ++++++++++++++++--------------- 1 file changed, 98 insertions(+), 87 deletions(-) diff --git a/web/src/components/MsdDialog.vue b/web/src/components/MsdDialog.vue index 877b99a2..2cc0230a 100644 --- a/web/src/components/MsdDialog.vue +++ b/web/src/components/MsdDialog.vue @@ -71,6 +71,9 @@ const loadingImages = ref(false) const imagesError = ref(null) const uploadProgress = ref(0) const uploading = ref(false) +const uploadProgressPercent = computed(() => + Math.round(Math.min(100, Math.max(0, uploadProgress.value))), +) const mountMode = ref<'cdrom' | 'flash'>('flash') // Default to readwrite for flash mode; cdrom forces readonly anyway @@ -821,108 +824,116 @@ onUnmounted(() => { - - - -
-
-

{{ t('msd.operations.loadImages') }}

-

{{ imagesError }}

-
- -
- - - - {{ t('msd.noImages') }} - - - -
+
-
-
- - -
- - -

{{ image.name }}

-
- -

{{ image.name }}

-
-
-
- {{ formatBytes(image.size) }} - + + + {{ uploadProgressPercent }}% + +
+ + +
+
+

{{ t('msd.operations.loadImages') }}

+

{{ imagesError }}

+
+ +
+ + + + {{ t('msd.noImages') }} + + + +