-
-
Notifications
You must be signed in to change notification settings - Fork 370
feat(PdfReader): add localization doc #7195
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors the PdfReaders sample component by removing unused properties, advanced demo logic, and attribute metadata helpers, leaving only the basic PdfReader demo state and download behavior. Class diagram for simplified PdfReaders sample componentclassDiagram
class PdfReaders_Before {
- DownloadService DownloadService
- string FileName
- string Filename
- PdfReader PdfReader
- bool _showTwoPagesOneView
- bool _showPrint
- bool _showDownload
- bool _showPager
- IWebHostEnvironment WebHostEnvironment
- string FilenameStream
- PdfReader AdvancedPdfReader
- bool StreamMode
- bool ReadOnly
- string Watermark
- EnumZoomMode Zoom
- EnumPageMode PageMode
- string Search
- int Page
+ Task OnDownloadAsync()
+ Task ApplyFilenameStream()
+ Task ApplyZoom()
+ Task ApplyPageMode()
+ Task Refresh()
+ Task ApplyPage()
+ Task ApplyPagePrevious()
+ Task ApplyPageNext()
+ Task ApplySearch()
+ Task Clear()
+ AttributeItem[] GetAttributes()
}
class PdfReaders_After {
- DownloadService DownloadService
- bool _showTwoPagesOneView
- bool _showPrint
- bool _showDownload
- bool _showPager
- IWebHostEnvironment WebHostEnvironment
+ Task OnDownloadAsync()
}
PdfReaders_Before <|-- PdfReaders_After
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7195 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 745 745
Lines 32583 32583
Branches 4515 4515
=========================================
Hits 32583 32583
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the PdfReader component demo by removing unused code and upgrading the package version from beta to stable release. The localization documentation already exists in the locale files (en-US.json and zh-CN.json), so this appears to be a cleanup refactor rather than adding new localization.
Key changes:
- Removed unused demo properties, methods, and the GetAttributes documentation method
- Updated BootstrapBlazor.PdfReader package from version 10.0.1-beta08 to 10.0.1 (stable)
- Simplified the code-behind file to only include actively used members
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| PdfReaders.razor.cs | Removed unused imports, properties, demo methods, and the GetAttributes method that documented component parameters |
| BootstrapBlazor.Server.csproj | Updated PdfReader package from beta (10.0.1-beta08) to stable release (10.0.1) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Link issues
fixes #7194
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Simplify the PdfReaders sample component by removing unused advanced properties, methods, and attribute metadata related to PDF viewing and documentation.
Enhancements: