Closed Gaojianli closed 1 month ago
The recent updates enhance the application's functionality, particularly focusing on implementing flexible pagination for ban logs and ranks. Key improvements include transitioning from static data retrieval to employing a pageIndex
and pageSize
system. Additionally, there are refinements in localization and component restructuring, which improve user interface clarity and navigation across different functionalities.
Files | Change Summary |
---|---|
src/components/autoUpdateBtn.vue |
Updated button class to auto-update-btn , changed icon to <icon-sync /> , and introduced a whirl animation for user feedback. |
src/locale/en-US.ts , src/locale/zh-CN.ts |
Adjusted import paths and localization strings to reflect the rebranding of "Top Bans" to "Ranks". |
src/router/index.ts |
Replaced the route for /metricsTop with /metricsRank , updating the component from TopBan to Ranks . |
src/service/banLogs.ts , src/service/ranks.ts , src/service/ruleSubscribe.ts |
Enhanced pagination handling in getBanlogs , getRanks , and GetUpdateLogs functions; adjusted return types to include common response structures with pagination details. |
src/views/banlog/components/banlogTable.vue , src/views/ranks/components/rankTable.vue |
Modified data handling for new data structures, refactored pagination logic, and improved user interactivity. |
src/views/ranks/index.vue |
Updated component from top50Table to rankTable , removing redundant alert messages for clarity. |
src/views/rule-management/components/subscribe/logModal.vue |
Adjusted data access pattern to align with new nested data structure. |
Objective | Addressed | Explanation |
---|---|---|
最多封禁查询应支持分页 (Issue #95) | ✅ | |
Pagination handling in getBanlogs and getRanks functions |
✅ | |
Update routing and localization for ranks (top bans to ranks) | ✅ |
🐇 In the fields, I hop and play,
With a new way to fetch each day.
Ranks now shine bright and clear,
Pagination brings us cheer!
Hopping through the code with glee,
Changes made, oh what a spree! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
a188cfd
|
Status: | ✅ Deploy successful! |
Preview URL: | https://e3575f13.pbh-fe.pages.dev |
Branch Preview URL: | https://page.pbh-fe.pages.dev |
close #95
Summary by CodeRabbit
New Features
Bug Fixes
Documentation