Enhance serverlist#145
Conversation
Revamp ServerList.vue: add skeleton loading cards, richer error/empty states, result meta, improved search UI (icon, clear button, aria labels) and filter controls. Improve server card rendering with icon fallback, disabled card handling, safe description splitting, status dot/players/delay display, and localized defaults for unnamed servers. Add robust data handling and network logic: props for statusApiUrl/pollInterval/requestTimeout, fetchWithTimeout, statusOf/normalizeServers, batched status checks with concurrency, request timeout handling and polling cleanup. Refactor computed/reactive logic (filteredServers, onlineCount, hasActiveFilter), minor UX/CSS tweaks and responsive styles.
Lower the batch concurrency constant from 6 to 5 in ServerList.vue to reduce the number of simultaneous status-check requests, easing load and lowering the chance of hitting API or rate limits during bulk checks.
Refactor ServerList UI and behavior: reorganize filters into two rows, add search clear button and version dropdown, replace type select with clickable type chips (with clear filter), and improve styling. Implement pagination with page-size selector, jump input, and smart visible page buttons; add props for defaultPageSize and pageSizeOptions. Add computed paginatedServers, page navigation helpers, and watchers to reset/adjust current page on filter or size changes. Minor utility/comment tweaks, icon/description handling preserved, and CSS updates for responsiveness and improved visuals.
|
🎉 感谢 @ZhuYuxuan9302 提交 Pull Request! 我们会尽快审查您的代码。在此期间,请确保:
🤖 我们的 MCJPG Agent 将自动对您的代码进行初步审查。 如有代码辅助需求,请在评论区 |
Deploying mcjpg with
|
| Latest commit: |
6ff1ded
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1fe83ee8.mcjpgdev.pages.dev |
| Branch Preview URL: | https://enhance-serverlist.mcjpgdev.pages.dev |
|
Claude finished @ZhuYuxuan9302's task in 3m 27s —— View job PR #145 代码审查
总体评价本次 PR 对 问题(需要关注)🔴 中等:
|
Co-authored-by: MCJPG Agent <agent@mcjpg.org>
Co-authored-by: MCJPG Agent <agent@mcjpg.org>
|
Claude finished @ZhuYuxuan9302's task in 3m 16s —— View job PR #145 代码审查
总体评价本次 PR 功能增强方向正确,引入了骨架屏、分页、搜索筛选和服务器在线状态查询等功能。但当前代码存在导致构建失败的严重模板语法错误,需要先修复后才能合并。 🔴 严重:模板语法破损(导致 Cloudflare 构建失败)1. 双重
|
Refactor ServerList.vue to precompute paginated server items for the template (map servers to objects with id, name, link, icon, initial, descLines and status) and rename iteration variable to `item`. Add gridRef and smooth scroll-to-grid behavior on page changes. Implement abortable fetchWithTimeout and track active AbortControllers; introduce an isUnmounted guard to avoid state updates after unmount and abort all pending requests on unmount. Adjust pageSize options and replace page-size select with a custom styled select (markup + CSS). Misc: concurrency-safe status checks, CSS improvements (pulse animation uses CSS var and color-mix), minor layout and accessibility tweaks.
|
Claude finished @ZhuYuxuan9302's task in 2m 31s —— View job PR #145 代码审查(最新同步)
总体评价最新提交 ✅ 已修复问题(与上轮审查对比)
剩余问题🟡 次要:UI 文案仍为硬编码中文,不兼容 i18n位置:模板各处(第 47、64、82、103、110、137、155、161、186、224 行等) 根据 CLAUDE.md,网站已配置 i18n 国际化。但搜索占位符、版本下拉选项、状态标签("在线"/"离线")、错误提示、分页按钮文字等均为硬编码中文。英文等其他语言用户将看到中文界面。 建议通过 🟡 次要:
|
Adjusts the scroll-margin-top in docs/.vitepress/theme/components/ServerList.vue from 16px to 64px. This increases the offset when navigating to anchors so content isn't obscured by the site header or toolbar.
|
❤️ 感谢来自 @ZhuYuxuan9302 的 PR ❤️ 如果您也对 MCJPG 组织的开发工作感兴趣,欢迎联系并加入我们! |
No description provided.