feat: 文章搜索功能#11
Merged
Merged
Conversation
- README.md: 更新为完整的项目介绍,添加徽章和功能说明 - CHANGELOG.md: 记录版本变更历史 - CONTRIBUTING.md: 贡献指南和行为准则 - LICENSE: MIT 许可证 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- .gitignore: 添加 .reports/ 和 tanstack-start/ 目录 - vite.config.ts: 配置 importProtection 保护服务端模块 - dev.sh: 开发服务器启动脚本,自动清除端口占用 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 添加搜索页面 /search?q=xxx,支持 URL 参数 - navbar-search.tsx: 实现搜索表单,导航到搜索页 - virtual-article-list.tsx: 支持搜索结果渲染 - articles.ts: 新增 searchArticlesFn 服务端函数 - article-keys.ts: 添加搜索相关的 query keys - use-article-infinite-queries.ts: 新增 useSearchArticlesInfinite - article.ts (validator): 添加 searchArticlesSchema Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- auth.ts, email.ts, r2.ts, db.ts: 添加 server-only 导入防止客户端泄露 - router.tsx: 将 defaultPreload 从 intent 改为 render - article-detail-page.tsx, navbar-actions.tsx: 小幅调整 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
通用防抖 hook,用于延迟更新值(如搜索输入) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/search?q=xxx搜索页面,支持 URL 参数Changes
searchArticlesFn)useDebouncehookserver-only导入Test plan
/search?q=test,验证页面加载pnpm build无报错🤖 Generated with Claude Code