Skip to content

Conversation

@kesselb
Copy link
Contributor

@kesselb kesselb commented Nov 12, 2023

For nextcloud/files_emfviewer#1

Add support for image/emf files through a generated preview.

The actual implementation, to generate a preview image, will be provided via app or server.

Add support for image/emf files through a generated preview.

Signed-off-by: Daniel Kesselberg <[email protected]>
@szaimen
Copy link
Contributor

szaimen commented Nov 13, 2023

What happens if the files_emfviewer app is not installed or the preview provider not enalbed? does it show an error or just bug out?

@st3iny
Copy link
Member

st3iny commented Nov 13, 2023

What happens if the files_emfviewer app is not installed or the preview provider not enalbed? does it show an error or just bug out?

The default behaviour (for unsupported files) will be enabled: Files will just be downloaded when clicking on them.

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works.

@kesselb kesselb added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 13, 2023
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

The trick is to compile the frontend code so the changes are actually active 😎

@ChristophWurst
Copy link
Member

suspicious how CI passes with outdated files?

        modified:   js/viewer-main.js
        modified:   js/viewer-main.js.LICENSE.txt
        modified:   js/viewer-main.js.map

@kesselb
Copy link
Contributor Author

kesselb commented Nov 16, 2023

suspicious how CI passes with outdated files?

The JS files are built and pushed automatically #1982

@ChristophWurst
Copy link
Member

cypress is sad. restart doesn't help much

@ChristophWurst
Copy link
Member

most recent commits on master as just as red as the cypress runs here. I think we can merge 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants