Skip to content

Commit

Permalink
Merge pull request #2103 from nextcloud/artonge/feat/live_photo
Browse files Browse the repository at this point in the history
Add live photo support base on files metadata
  • Loading branch information
artonge authored Jan 18, 2024
2 parents d175ca3 + c63de6d commit 811cff9
Show file tree
Hide file tree
Showing 29 changed files with 747 additions and 562 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/a11y.cy.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.

Loading

0 comments on commit 811cff9

Please sign in to comment.