-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
💄 style: add preview for image file #3690
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3690 +/- ##
========================================
Coverage 91.77% 91.77%
========================================
Files 448 448
Lines 29639 29639
Branches 3058 2075 -983
========================================
Hits 27202 27202
Misses 2437 2437
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❤️ Great PR @arvinxx ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
🎉 This PR is included in version 1.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
add image file preview for File Preview
📝 补充信息 | Additional Information
refs: https://github.com/cyntler/react-doc-viewer/blob/main/src/renderers/png/index.tsx
Implement Steps:
src/features/FileViewer/Renderer
namedImage
DocRenderer
type and then implement the rendererfileTypes
andweight
(weight can be 0 by default)实现步骤:
src/features/FileViewer/Renderer
目录下新建一个名为Image
的文件夹DocRenderer
,然后实现该渲染器fileTypes
和weight
属性(weight 默认可以设为 0)