-
Notifications
You must be signed in to change notification settings - Fork 88
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
[stable27] Refactor attachment loading #5087
Commits on Dec 5, 2023
-
refactor(AttachmentService): Some code style cleanup
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a437b83 - Browse repository at this point
Copy the full SHA a437b83View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d331a36 - Browse repository at this point
Copy the full SHA d331a36View commit details -
feat(attachments): API endpoint to get list of attachments for a docu…
…ment Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0aa69d7 - Browse repository at this point
Copy the full SHA 0aa69d7View commit details -
chore(attachments): Remove obsolete metadata API endpoint
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a282b70 - Browse repository at this point
Copy the full SHA a282b70View commit details -
feat(attachments): Use getAttachmentList API endpoint in resolver
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 29c79f8 - Browse repository at this point
Copy the full SHA 29c79f8View commit details -
fix(attachment): Remove candidate logic from ImageView node
`AttachmentResolver` only returns one candidate now. Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a3ecdb1 - Browse repository at this point
Copy the full SHA a3ecdb1View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af29e57 - Browse repository at this point
Copy the full SHA af29e57View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a6fcc87 - Browse repository at this point
Copy the full SHA a6fcc87View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95ef57d - Browse repository at this point
Copy the full SHA 95ef57dView 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 969b85c - Browse repository at this point
Copy the full SHA 969b85cView 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4441e7a - Browse repository at this point
Copy the full SHA 4441e7aView commit details -
fix(attachments): Open non-image attachments in viewer or download
When viewer is available, not in use and supports the mimetype, and we're not in a public share, open the attachment in viewer. Otherwise, download the attachment. Fixes: #3849 Fixes: #4723 Fixes: #5030 Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3703ea1 - Browse repository at this point
Copy the full SHA 3703ea1View commit details -
fix(AttachmentController): Set fileName of returned attachments
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2a7fea - Browse repository at this point
Copy the full SHA c2a7feaView commit details -
chore(composer): Update autoloader maps
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95c6734 - Browse repository at this point
Copy the full SHA 95c6734View commit details -
fix(attachments): Fix encoding of attachment URI component
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e2b2c16 - Browse repository at this point
Copy the full SHA e2b2c16View commit details -
test(cy): Test to open image in modal and download attachment
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 463b55f - Browse repository at this point
Copy the full SHA 463b55fView commit details -
chore(middleware): Rename to RequireDocumentSessionOrUserOrShareToken
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd51248 - Browse repository at this point
Copy the full SHA cd51248View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d135f9d - Browse repository at this point
Copy the full SHA d135f9dView commit details -
test(AttachmentResolver): Refactor jest tests after parent class refa…
…ctoring Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 112e399 - Browse repository at this point
Copy the full SHA 112e399View 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cf30cde - Browse repository at this point
Copy the full SHA cf30cdeView commit details -
fix(SessionMiddleware): Check if user/share have access to document
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99ac897 - Browse repository at this point
Copy the full SHA 99ac897View commit details -
fix(AttachmentResolver): Require either fileId or session
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64b7639 - Browse repository at this point
Copy the full SHA 64b7639View commit details -
reactor(ImageView): Simplify attachmentType/isMediaAttachment logic
Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a4cafdc - Browse repository at this point
Copy the full SHA a4cafdcView commit details -
fix(deps): Update to cypress 13
Required for the file attachment download test to succeed. Signed-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for febbd11 - Browse repository at this point
Copy the full SHA febbd11View commit details -
chore(deps): Move
cypress-visual-regression
to dev dependenciesSigned-off-by: Jonas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 70b5a89 - Browse repository at this point
Copy the full SHA 70b5a89View commit details -
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b67f07 - Browse repository at this point
Copy the full SHA 8b67f07View commit details