From 2b376bb244161d4aee161af0f7c386a2aa928f7b Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 21 May 2026 16:13:08 +0200 Subject: [PATCH] =?UTF-8?q?refactor(base):=20expose=20extractFileId,=20ded?= =?UTF-8?q?upe=20URL=E2=86=92file-id=20parsing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Promote ImageUploadService.extractFileId from private to public so edit-flow consumers don't re-implement the `/image/original/` parse. Used by market's CreateProductDialog and activities' CreateEventDialog when re-populating from a stored URL. Also clarify ImageUpload.removeImage: the `delete_token: ''` placeholder on re-populated images intentionally skips the server-side DELETE. We don't own the original upload's one-time token, and removing client-side shouldn't reach back and wipe shared files. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../components/CreateEventDialog.vue | 31 +++++++++-------- src/modules/base/components/ImageUpload.vue | 6 +++- .../base/services/ImageUploadService.ts | 7 ++-- .../market/components/CreateProductDialog.vue | 33 ++++++------------- 4 files changed, 35 insertions(+), 42 deletions(-) diff --git a/src/modules/activities/components/CreateEventDialog.vue b/src/modules/activities/components/CreateEventDialog.vue index 34477a2..a32846a 100644 --- a/src/modules/activities/components/CreateEventDialog.vue +++ b/src/modules/activities/components/CreateEventDialog.vue @@ -1,5 +1,5 @@