-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor attachment loading #5042
Commits on Nov 29, 2023
-
refactor(AttachmentService): Some code style cleanup
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 271a59a - Browse repository at this point
Copy the full SHA 271a59aView commit details -
chore(attachments): Remove support for obsolete
text://
formatThis format was only used from 03.01.2022 to 23.05.2022. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for df3e4df - Browse repository at this point
Copy the full SHA df3e4dfView commit details -
feat(attachments): API endpoint to get list of attachments for a docu…
…ment Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 8c1c6e8 - Browse repository at this point
Copy the full SHA 8c1c6e8View commit details -
chore(attachments): Remove obsolete metadata API endpoint
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 73cb49b - Browse repository at this point
Copy the full SHA 73cb49bView commit details -
feat(attachments): Use getAttachmentList API endpoint in resolver
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 153a85f - Browse repository at this point
Copy the full SHA 153a85fView commit details -
fix(attachment): Remove candidate logic from ImageView node
`AttachmentResolver` only returns one candidate now. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 680ca1d - Browse repository at this point
Copy the full SHA 680ca1dView commit details -
fix(attachments): Fix some issues with the showimage modal
* Only open images from native attachments list * Only open images, non-image attachments are not supported anyway * Fix watcher for `startIndex` * Don't set computed property `currentImage` * Show error if image cannot be found in attachments Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 86e2b97 - Browse repository at this point
Copy the full SHA 86e2b97View commit details -
chore(attachments): Remove obsolete code
* `getMetadata()` from AttachmentResolver class. * `isSupportedImage` logic from ImageView node. Was never used. * `hasPreview=true` logic from AttachmentResolver class. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for b274e37 - Browse repository at this point
Copy the full SHA b274e37View commit details -
feat(editor): Allow to pass fileId to MarkdownContentEditor
Required for AttachmentResolver to fetch list of attachments for the document. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for a2813ae - Browse repository at this point
Copy the full SHA a2813aeView commit details -
feat(attachments): Allow to get attachments without document session
For all read-only attachments API endpoints, add support to authorize with user session or share token when no document session is available. Allows to get the attachments list and attachment files from MarkdownContentEditor.vue without a document session. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for bd54a68 - Browse repository at this point
Copy the full SHA bd54a68View commit details -
chore(attachments): Remove special-handling for preview URLs
We don't remember a legitimate reason why they would end up in a text document. Probably something that predate the attachments directory era. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for d15781c - Browse repository at this point
Copy the full SHA d15781cView commit details -
fix(attachments): Open non-image attachments in viewer or download
Configuration menu - View commit details
-
Copy full SHA for e4108d4 - Browse repository at this point
Copy the full SHA e4108d4View commit details -
fix(AttachmentController): Set fileName of returned attachments
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 98ba0de - Browse repository at this point
Copy the full SHA 98ba0deView commit details -
chore(composer): Update autoloader maps
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for dade37e - Browse repository at this point
Copy the full SHA dade37eView commit details -
fix(attachments): Fix encoding of attachment URI component
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 7743591 - Browse repository at this point
Copy the full SHA 7743591View commit details -
test(cy): Test to open image in modal and download attachment
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for ec91074 - Browse repository at this point
Copy the full SHA ec91074View commit details -
chore(middleware): Rename to RequireDocumentSessionOrUserOrShareToken
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for b01c547 - Browse repository at this point
Copy the full SHA b01c547View commit details -
fix(attachments): use
getRelativePath
from userFolder fordavPath
Also don't set any davPath at all in public share. We probably don't have DAV access there anyway. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for a1f8308 - Browse repository at this point
Copy the full SHA a1f8308View commit details -
test(AttachmentResolver): Refactor jest tests after parent class refa…
…ctoring Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 3ce2e44 - Browse repository at this point
Copy the full SHA 3ce2e44View commit details -
fix(attachments): Show all loaded images in ShowImageModal
Instead of just opening native image attachments, query the HTML document to get all loaded attachments (regardless whether native, via direct URL or via DAV) and list them. Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 6796170 - Browse repository at this point
Copy the full SHA 6796170View commit details -
fix(SessionMiddleware): Check if user/share have access to document
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for c7e0cf0 - Browse repository at this point
Copy the full SHA c7e0cf0View commit details -
fix(AttachmentResolver): Require either fileId or session
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 978cbc6 - Browse repository at this point
Copy the full SHA 978cbc6View commit details -
reactor(ImageView): Simplify attachmentType/isMediaAttachment logic
Signed-off-by: Jonas <jonas@freesources.org>
Configuration menu - View commit details
-
Copy full SHA for 77a0d4a - Browse repository at this point
Copy the full SHA 77a0d4aView commit details