-
- Downloads
feat: Enhance viewer functionality and support for binary downloads
Summary of changes - Added content setting for binary data types, including 'application/octet-stream'. - Integrated a download button in the viewer to handle the downloading of binary contents with appropriate labels based on document locale. - Improved the viewer's markdown processing functionality. - Updated file imports for better consistency and readability. Changes - In development/issues/closed/309.mjs: - Added a setting for 'application/octet-stream' support within the viewer. - Removed unnecessary commented-out code for clarity. - Enhanced the testing of functionality for binary content handling. Changes - In source/components/content/viewer.mjs: - Refactored the `setContent` method to handle binary data and included error handling for unsupported media types. - Added `setDownload` method to create a functional download button embedded within the viewer. - Incorporated a method for dynamic internationalization of the download button label based on the document's locale. - Cleaned up code formatting for better readability and maintenance.
Please register or sign in to comment