Skip to content
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

[stable28] Add live photo support based on files metadata #2127

Merged
merged 1 commit into from Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions cypress/e2e/a11y.cy.ts
Expand Up @@ -60,10 +60,10 @@ describe('A11y tests', function() {
cy.get('body > .viewer .modal-container .viewer__file:not(.viewer__file--active) video')
.parents('[inert]')
.should('exist')
cy.get('body > .viewer .modal-container img.viewer__file:not(.viewer__file--active)')
cy.get('body > .viewer .modal-container .viewer__file:not(.viewer__file--active) img')
.parents('[aria-hidden="true"]')
.should('exist')
cy.get('body > .viewer .modal-container img.viewer__file:not(.viewer__file--active)')
cy.get('body > .viewer .modal-container .viewer__file:not(.viewer__file--active) img')
.parents('[inert]')
.should('exist')
})
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/images/images-custom-list-loadmore.cy.ts
Expand Up @@ -157,7 +157,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -211,7 +211,7 @@ describe('Open custom list of images in viewer with pagination', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/images/images-custom-list.cy.ts
Expand Up @@ -108,7 +108,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -128,7 +128,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -147,7 +147,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -166,7 +166,7 @@ describe('Open custom images list in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
10 changes: 5 additions & 5 deletions cypress/e2e/images/images.cy.ts
Expand Up @@ -63,7 +63,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -117,7 +117,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -138,7 +138,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand All @@ -158,7 +158,7 @@ describe('Open images in viewer', function() {
})

it('The image source is the preview url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', '/index.php/core/preview')
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/mixins/image.ts
Expand Up @@ -81,7 +81,7 @@ export default function(fileName = 'image1.jpg', mimeType = 'image/jpeg', source
})

it(`The image source is the ${source ? 'remote' : 'preview'} url`, function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', source ?? '/index.php/core/preview')
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/non-dav-files.cy.ts
Expand Up @@ -83,7 +83,7 @@ describe('Open non-dav files in viewer', function() {
})

it('The image source is the remote url', function() {
cy.get('body > .viewer .modal-container img.viewer__file.viewer__file--active')
cy.get('body > .viewer .modal-container .viewer__file.viewer__file--active img')
.should('have.attr', 'src')
.and('contain', source)
})
Expand Down
3 changes: 0 additions & 3 deletions js/viewer-components.js

This file was deleted.

120 changes: 0 additions & 120 deletions js/viewer-components.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion js/viewer-components.js.map

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.