Repository navigation
重构:内容访问 seam + 4 项架构深化 - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ChainBuilder uses method signatures for bivariant params so CollectionQueryBuilder<T> is structurally assignable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 pages drop raw queryCollection + useAsyncData + 500/404 boilerplate; related/other lists move behind useRelatedPosts/useRelatedArticles/useOtherProjects. home featured-learn now consistently ordered date DESC. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Hero copy matches the dark-cinematic redesign; drop the language-switch test (single-locale Chinese site, feature removed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Header and footer iterate one shared { to, label }[] (shared/nav.ts).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
useMotionAllowed() (over pure readMotion) replaces the matchMedia guard duplicated across lenis/index/TheReel/TheCursor/useScrollReveal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
One resolver (frontmatter cover/credit/alt > local Unsplash table > picsum). Adds cover/credit/creditUrl/alt to all collection schemas; projects/[slug] now honors cover (parity with blog/learn); detail heroes carry alt text. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Delete the 526-line hardcoded page (banned legacy tokens/gradients/glow/ emoji) that shadowed the route. The guide is now markdown rendered by the single [slug].vue adapter, with 4 editorial MDC components (PlatformTabs, FaqList, StepList, CardGrid) — single cobalt accent, no AI-template tells. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
源自一次架构审查(
/improve-codebase-architecture)。审查产出 5 个深化机会,本 PR 全部落地,外加修复过期 e2e、补 ADR 与实现计划。全程 TDD(纯核先行)+ 工作流并行发现 + 对抗式校验。落地内容
候选 1 · 内容访问 seam(首选)
queryCollection直呼 →useBlogPosts/useLearnArticles/useProjects(client 适配)+rss.xml.ts(server 适配),共享shared/content/{spec,predicates,apply}.ts纯核。[slug]页)收编为relatedTo/mergeFeed;500/404 抛错与 cacheKey 收进模块。docs/adr/0001-内容访问与图片解析解耦.md。候选 2 · 图片解析单一策略
resolveArticleImage:frontmatter(cover/credit/alt) > 本地 Unsplash 表 > picsum。cover/credit/creditUrl/alt;修复projects/[slug]不认cover的缺口;详情页 hero 现带 alt 文本。候选 3 · 收掉分叉文章页
blog/claude-code-guide.vue(用了设计规范明令禁止的旧 token/渐变/辉光/emoji,且影子路由覆盖了[slug])。[slug].vue渲染;新增 4 个编辑式 MDC 组件(PlatformTabs/FaqList/StepList/CardGrid)——单一钴蓝强调,无 AI 模板气息。.prettierignore排除content/**/*.md(prettier 会破坏 MDC 语法)。候选 4 · 统一动效能力守卫
(pointer:fine) && !reduced-motion守卫原在 5 处逐字重复 →useMotionAllowed()(基于纯readMotion)。按报告建议不强行合并 4 个独立 rAF loop(避免过度抽象)。候选 5 · 导航单一来源
useNavigation()(共享shared/nav.ts)。附带
验证
nuxt typecheck0 error ·eslint0 problemnuxt build成功,/rss.xml预渲染(learn+blog 合并、按日期降序)/blog/claude-code-guide的 MDC 组件正常渲染、无残留::标记🤖 Generated with Claude Code