Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Fixture builder: a PageBuilder or PageDataBuilder as a route target

未关闭 适合新手
#245 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃

调研方向

负载没有指明文档文件,因此请先在 API 文档中找到 fixtures / scaffold 页面。在动笔之前,先阅读 issue 中链接的 api-components-bundle#474,以确认 linkRoute、redirect 和 linkIri 的签名以及错误情况。完成的标准是:页面记录了三种调用形式、routeName 与 page: 二选一的规则、--append 的各种情况,以及没有路由的构建器的例外。

由索引模型根据 Issue 内容生成。

描述

The API bundle's CwaFixtureBuilder now accepts the builder itself wherever a scaffold referred to a route by name (components-web-app/api-components-bundle#474, fixes components-web-app/api-components-bundle#471).

Please document, in the fixtures / scaffold page of the API docs:

  • $cwa->component($link)->linkRoute('route', page: $about) and the same on a PageDataBuilder: page: takes a PageBuilder or PageDataBuilder; pass exactly one of routeName and page:.
  • $cwa->redirect('/old', to: $about): to: takes a route name, a PageBuilder or a PageDataBuilder.
  • linkIri(): route: takes either builder (the IRI of its route), page: a PageBuilder and pageData: a PageDataBuilder (the IRI of the entity).
  • It resolves to the route generated for that page, whatever its name (e.g. a suffixed about-1), at the same moment named links resolve, so it costs no extra flush. In an --append load a kept page resolves to its existing route, and a page whose declared path was already in use resolves to the route at that path.
  • A builder with no route (a template page, withoutRoute(), untitled page data) throws, naming the page and the call that referred to it.
  • generate-fixtures keeps writing route names; this is a convenience for scaffolds written by hand.
主要语言
Vue
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

components-web-app/docs 的其他 Issue

查看 components-web-app/docs 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。