From 525c8391a6436f17c5608a646cbcebc3cecf2beb Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 3 Sep 2022 23:56:41 +0200 Subject: [PATCH] rename prop: image -> file --- packages/client/src/components/drive.file.vue | 2 +- packages/client/src/components/media-caption.vue | 12 ++++++------ .../client/src/components/post-form-attaches.vue | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/client/src/components/drive.file.vue b/packages/client/src/components/drive.file.vue index 268c79bcf..262ce176f 100644 --- a/packages/client/src/components/drive.file.vue +++ b/packages/client/src/components/drive.file.vue @@ -141,7 +141,7 @@ function describe(): void { placeholder: i18n.ts.inputNewDescription, default: props.file.comment ?? '', }, - image: props.file, + file: props.file, }, { done: result => { if (!result || result.canceled) return; diff --git a/packages/client/src/components/media-caption.vue b/packages/client/src/components/media-caption.vue index 5b3628f64..8a973fbf3 100644 --- a/packages/client/src/components/media-caption.vue +++ b/packages/client/src/components/media-caption.vue @@ -15,12 +15,12 @@
-
{{ image.name }}
- +
{{ file.name }}
+
- {{ image.type }} - {{ bytes(image.size) }} - {{ number(image.properties.width) }}px × {{ number(image.properties.height) }}px + {{ file.type }} + {{ bytes(file.size) }} + {{ number(file.properties.width) }}px × {{ number(file.properties.height) }}px
@@ -43,7 +43,7 @@ type Input = { }; const props = withDefaults(defineProps<{ - image: misskey.entities.DriveFile; + file: misskey.entities.DriveFile; title?: string; input: Input; showOkButton: boolean; diff --git a/packages/client/src/components/post-form-attaches.vue b/packages/client/src/components/post-form-attaches.vue index fdf6fdbe7..fdf5a50ec 100644 --- a/packages/client/src/components/post-form-attaches.vue +++ b/packages/client/src/components/post-form-attaches.vue @@ -84,7 +84,7 @@ async function describe(file: DriveFile): Promise { placeholder: i18n.ts.inputNewDescription, default: file.comment ?? '', }, - image: file, + file, }, { done: result => { if (!result || result.canceled) return;