From 49203f7599106321adbeff73bbb8f6c9d7048550 Mon Sep 17 00:00:00 2001 From: wx-11-ot <168356742+wx-11@users.noreply.github.com> Date: Thu, 7 Aug 2025 11:34:52 +0800 Subject: [PATCH] feat: restore direct download link button in share dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add back the missing direct download link button that was removed. This button allows users to copy a direct download URL for shared files, which is different from the share page URL. Changes: - Add direct download link button with content_paste_go icon - Import pub API for download URL generation - Add hasDownloadLink() method to check if file can be directly downloaded - Add buildDownloadLink() method to generate direct download URLs - Only show button for single file selections (not directories) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/src/components/prompts/Share.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/prompts/Share.vue b/frontend/src/components/prompts/Share.vue index 3ce2b1fd..cbcdf6d0 100644 --- a/frontend/src/components/prompts/Share.vue +++ b/frontend/src/components/prompts/Share.vue @@ -32,6 +32,16 @@ content_paste + + +